Skip to content

Instantly share code, notes, and snippets.

@scrapix
Last active July 9, 2024 08:43
Show Gist options
  • Save scrapix/2f9ad27459c3646732f510f50ead3410 to your computer and use it in GitHub Desktop.
Save scrapix/2f9ad27459c3646732f510f50ead3410 to your computer and use it in GitHub Desktop.
Synology DSM 7.2 - Adding USB Devices / Dongles (SkyConnect / Z-Wave)

Adding SkyConnect Dongle according to Blog Post or better Youtube

image

Summary

Synology has disabled USB drivers. Additionally one important driver is not available on Synology DSM 7+. Thus we need to enable some USB drivers plus download one driver and enable this on the system. For future DSM updates we need to add a Scheduled Task, so that the drivers will be loaded.

This Tutorial works for DS920+. In case your NAS has another processor, change "geminilake" within the commands to your processors architecture name, as described in https://kb.synology.com/en-global/DSM/tutorial/What_kind_of_CPU_does_my_NAS_have!

1. Download usb drivers from Github

git clone https://github.com/robertklep/dsm7-usb-serial-drivers.git ~/dsm7-usb-serial-drivers

2. Review connected USB Devices

ls /dev/ttyU*

3. Copy necessary driver to lib/modules

sudo cp ~/dsm7-usb-serial-drivers/modules/geminilake/dsm-7.2/cp210x.ko /lib/modules

4. Adjust access rights of new ko module

sudo chmod 644 /lib/modules/cp210x.ko

5. Initiate usb-serial-drivers.sh

sudo chmod +x ~/dsm7-usb-serial-drivers/usb-serial-drivers.sh
sudo sh ~/dsm7-usb-serial-drivers/usb-serial-drivers.sh start

6. Review connected USB Devices again

Now it should list your USB Device

ls /dev/ttyU*

7. Add following startup script to NAS through Task Manager

Select script to be exectued as root!

cp ~/dsm7-usb-serial-drivers/modules/geminilake/dsm-7.2/cp210x.ko /lib/modules
bash ~/dsm7-usb-serial-drivers/usb-serial-drivers.sh start
@jaroshimo
Copy link

When I run sudo sh /usr/local/etc/rc.d/usb-serial-drivers.sh start, I get:

sh: /usr/local/etc/rc.d/usb-serial-drivers.sh: No such file or directory

What is the output of:

sudo ls -la /usr/local/etc/rc.d/ | grep "usb"

@maol01
Copy link

maol01 commented May 2, 2024

I am tryin to update usb following this instruction. However I can not getting it to work. After download using git clone iget this reply
ls: cannot access '/dev/ttyU*': No such file or directory. What am I doing wrong?

@Oscarz90
Copy link

Oscarz90 commented Jul 8, 2024

o such file or directory. What am I doing wron

I'm having the same issue, I installed everything but it didn't work

@scrapix
Copy link
Author

scrapix commented Jul 9, 2024

@maol01 & @Oscarz90 I've updated the instructions. Give it another try accordingly! Hope it'll work now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment