Baldanos/rd6006

Connect to Synology NAS

Closed this issue · 1 comments

Hi,
thanks a lot for this repo! I got it working on macOS, in particular when plugging in the USB cable, a new device appears in /dev on my Mac and I can control it (an RD6024) through Python.

However, on my Synology NAS, I can't find the device. I checked $ dmsg from terminal and see that the device is recognized somehow:
[ 1554.743898] usb 1-2.3: new full-speed USB device number 29 using xhci_hcd
[ 1554.872206] Got empty serial number. Generate serial number from product.

However, nothing appears in /dev on the Synology NAS. Can anybody help?

I got it working. The problem is the missing USB drivers in DSM7.
One can get them for example here: https://github.com/robertklep/dsm7-usb-serial-drivers
After adding the drivers as described there, a new device /dev/ttyUSB0 popped up (it may have another name for others). And this was precisely my RD6024 :)
When calling r = RD6006('/dev/ttyUSB0') in python, I first got a Permission denied error. I solved this by calling $ sudo chmod 666 /dev/ttyUSB0 in the command line terminal. Not the most elegant and probably insecure solution. But i works for me.