OpenMarine
Naming for Serial Ports Allows Upper Case - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: Bug Reports (https://forum.openmarine.net/forumdisplay.php?fid=4)
+--- Thread: Naming for Serial Ports Allows Upper Case (/showthread.php?tid=1311)



Naming for Serial Ports Allows Upper Case - abarrow - 2018-07-15

Just a little thing, but it caused me an hour of fiddling before I figured it out.

In the Serial Port assignment, you are allowed to use an upper case name. In my case, I'm using a dAISy Hat, so I named the port 'AIS', which became /dev/ttyOP_AIS. This in turn named the serial port in the system "AIS".

When I assigned that port to kplex, there was an input with an upper case name, "AIS". Since that isn't allowed in kplex, it didn't work.

Of course, the work-around was to rename the serial port /dev/ttyOP_ais, which gave the serial port, and the kplex interface, a lower case name.

I suggest either using the same alert that is used in the kplex page about using lower case names, or perhaps just using a little code to make whatever name is inserted lower case when it is assigned to kplex.


RE: Naming for Serial Ports Allows Upper Case - Sailoog - 2018-07-25

good point, thanks.