DevLink issues being cause by invalid HostName

Hi everyone,

I’ve discovered a strange interaction that leads to a pretty unstable Devlink connexion using the CIFS protocol. The connexion was working for a couple of minutes and then dying until a reboot. Sometimes it wouldn’t work at all, a power cycle.

The problem was that there was actually no hostname. This is normally impossible to set the hostname as nothing

It is possible to change it by directly editing the file but the code will refuse to compile.

There is still a way to do it by using CfgSetHostName using an empty string for the name. The function block documentation specify that there is no check but a valid host name is needed for a lot of connectivity application. It is therefore important to do a check in code to be sure that the hostname is define if the application is using a devlink.

This behavior has been reported and an automatic check will be added in AR 6.8.0

Hope this helps.

4 Likes