Nice, I had that problem a few times.
if you want to know your ID
ls -l /dev/serial/by-id
Tip : homeduino & USB
Nice, I had that problem a few times.
if you want to know your ID
ls -l /dev/serial/by-id
Follow my domotica project on http://maredana.nl
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?
May be /dev/serial/by-path/
can help. Found at #1005.
Keep in mind when using /dev/serial/by-path/ the devices MUST be connected at the same USB port every time.
Gents… use this tut to get it even better… simply use /dev/homeduino or /dev/hub after defining in the file.
http://hintshop.ludvig.co.nz/show/persistent-names-usb-serial-devices/
@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.
pimatic + MySensors + Homeduino + z-way
https://github.com/n3roGit/MySensors_n3ro
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
SUBSYSTEM==“tty”, ATTRS{idVendor}==“1a86”,
ATTRS{idProduct}==“7523”, SYMLINK+=“ch341”
SUBSYSTEM==“tty”, ATTRS{idVendor}==“067b”,
ATTRS{idProduct}==“2303”, SYMLINK+=“pl2303”
Save the code in the file 99-usb-serial.rules in etc/udev/rules
In your config file just refer to the symlink name
{
“plugin”: “homeduino”,
“driver”: “serialport”,
“driverOptions”: {
“serialDevice”: “/dev/ch341”,
“baudrate”: 115200
},
“receiverPin”: 0,
“transmitterPin”: 4
},
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.
@darkside40 said in Tip : homeduino & USB:
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.
SUBSYSTEM==“tty”, ATTRS{idVendor}==“1a86”,
ATTRS{devpath}==“1.4”, SYMLINK+=“homeduino”
SUBSYSTEM==“tty”, ATTRS{idVendor}==“1a86”,
ATTRS{devpath}==“1.5”, SYMLINK+=“mysensors”
Thank you! That’s what I need!
Software for PC. ManyProg Team. http://manyprog.com