If I reboot the Synology I experience two problems:
1. The usb ports are not always linked to the same usb device (rfxcom, p1 cable)
2. I always need to unplug the usb device one time before the usb devices are recognized again in Domoticz
For the first issue I have added the following script:
Code: Select all
DS715> cat 50-tty-serial.rules
SUBSYSTEM!="tty", GOTO="tty_end"
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{product}=="RFXtrx433", SYMLINK+="ttyUSB21"
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{product}=="P1 Converter Cable", SYMLINK+="ttyUSB22"
LABEL="tty_end"
DS715>
This creates a symlink that can be used in Domoticz:
Code: Select all
DS715> ls -las /dev/ttyUSB*
0 crw-rw-rw- 1 root root 188, 0 Jul 11 11:02 /dev/ttyUSB0
0 crw-rw-rw- 1 root root 188, 1 Jul 11 11:00 /dev/ttyUSB1
0 lrwxrwxrwx 1 root root 7 Jul 11 11:00 /dev/ttyUSB21 -> ttyUSB0
0 lrwxrwxrwx 1 root root 7 Jul 11 11:00 /dev/ttyUSB22 -> ttyUSB1
DS715>
Any ideas how to fix the second issue?
BTW
The following script was already present:
Code: Select all
DS715> cat 60-synocommunity.domoticz.rules
#rules for USB ACM serial devices
KERNEL=="ttyACM*", ACTION=="add", MODE="0666"
KERNEL=="ttyUSB*", ACTION=="add", MODE="0666"
DS715>