Nice, I had that problem a few times.
if you want to know your ID
ls -l /dev/serial/by-id
Now i have 2 arduino nano’s with the CH340 chip. But they have the same ID. Is there a way to change the name or keep them separate?
Keep in mind when using /dev/serial/by-path/ the devices MUST be connected at the same USB port every time.
@stingone Unfortunately this only works if you have an Serial Adapter which provides a serial number, like a genuine FTDI. Most of the fake ones and others like the CH340g, which both you find most of the time on chinese Nano clones, do not provide a serial.
@Heizelmann Thanks for that hint. That could be a useable solution, because when the system is running i dont think i would wildly replug the Arduinos on it.
Thats not true see code i use below without serial numbers. i use the idvendor and idproduct so not the serialnumber. for my ch341 clone and my homemade gateway
Save the code in the file 99-usb-serial.rules in etc/udev/rules
In your config file just refer to the symlink name
Just try to find any differents if you have 2 devices e.g. arduino’s you always will find some. And use that to define the ATTRS.
Of course that works because you have one CH341 serial converter chip and one Prolific PL2303.
That wont work if you had two CH341 chips.
I got it as below with 2 devices… i was lucky they had different version numbers.
Looks like your connection to pimatic forum was lost, please wait while we try to reconnect.