Discussion:
Re "Fixing" serial port addresses, session to session. SOLVED! (Return...)
'Dave B' g8kbvdave-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org [linuxham]
2014-10-09 15:54:26 UTC
Permalink
Hi again.

Well.. It seems that the RXTX library in the java runtime (YAAC is a Java app)
cannot handle port names of the type:-

/dev/GPS /dev/ttyUSBGPS /dev/ttyUSB_GPS /dev/ttyUSB-GPS
(Or anything with a non numeric part after the "ttyUSB")

The requiste part of the udev rule is .. SYMLINK+="ttyUSB_GPS" for example.

The OS itself, and other app's are more than hapy to use any variant of the
above symlink names, numeric or otherwise.

But Java/YAAC IS happy with port names in the form...

/dev/ttyUSB101 (..102 ..103 etc)

Question:
Is there any compelling reason NOT to use such practices? (Faking things that
could be valid in their own right, but don't exist by default.)

Best Regards.

Dave G0WBX.



------------------------------------
Posted by: "Dave B" <g8kbvdave-gM/Ye1E23mwN+***@public.gmane.org>
------------------------------------
ab4mw
2014-10-12 17:18:34 UTC
Permalink
Perhaps it relies on the numeric incrementing of adding a new device of the same "nature".
Loading...