Skip to content

Instantly share code, notes, and snippets.

@scrapix
Last active May 2, 2024 14:42
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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 fine for DS920+, in case your NAS has another process, change "geminilake" within the commands to your processors architecture name according to https://kb.synology.com/en-global/DSM/tutorial/What_kind_of_CPU_does_my_NAS_have!

Download usb drivers from Github

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

Review available USB Devices

ls /dev/ttyU*

Copy necessary driver to lib/modules

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

Adjust access rights of new ko module

sudo chmod 644 /lib/modules/cp210x.ko

Initiate usb-serial-drivers.sh

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

sudo sh /usr/local/etc/rc.d/usb-serial-drivers.sh start

Check all devices connected to NAS

ls /dev/ttyU*

Add following startup script to NAS through Task Manager

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

Did you select root as task executer?

Thanks, it works now.
I switched to root and I had to change the script, since the files are located inside a user folder.
It had to be something like:

sudo cp /var/services/homes/USER/Downloads/DSM-USB-DRIVER/modules/geminilake/dsm-7.2/cp210x.ko /lib/modules
bash /var/services/homes/USER/Downloads/DSM-USB-DRIVER/usb-serial-drivers.sh start

@rossco555
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

@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?

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