[GTALUG] Problem with /dev/ttyUSB* serial port
Jim Ruxton
jim.ruxton at gmail.com
Thu Oct 31 21:13:15 EDT 2019
>>> Is there a way that I can always have it show up as /dev/ttyUSB0
>>
>> I think the proper way is to provide a udev rule to identify the
>> device and assign a fixed name to it.
>>
>> https://unix.stackexchange.com/questions/66901/how-to-bind-usb-device-under-a-static-name
>>
>
> The other option is to write your software so that it gets notified
> when a USB device is installed/removed. You will be told the actual
> device name. I needed to do this to detect insertion/removal of a
> barcode reader.
The problem isn't really identifying the USB device. It is the fact that
the software I am using only works when the device shows up as
/dev/ttyUSB0 . When it shows up as /dev/ttyUSB1 it doesn't work. For
some reason the motor control software I am using will only work if the
serial port shows up as /dev/ttyUSB0 so I was hoping I could have it
show up as this every time the device is inserted. I will try setting up
a udev rule to do this .
Jim
More information about the talk
mailing list