Get serial devices working on Synology DS216+II DiskStation

@Jaco What will probably help is to also load the usbserial.ko and ftdi_sio.ko kernel modules. These modules will most likely already be on your NAS in a directory named /lib/modules.

To load these modules issue the following commands:

sudo insmod /lib/modules/usbserial.ko
sudo insmod /lib/modules/ftdi_sio.ko

Now when you insert the Plugwise Stick into your NAS you can check with the dmesg command what path is assigned to it. I just tried this with my Stick on a 415+ NAS with DSM 6.1 and this was the output of dmesg:

[302774.647724] ftdi_sio 1-1.3:1.0: FTDI USB Serial Device converter detected
[302774.655477] usb 1-1.3: Detected FT232RL
[302774.659880] usb 1-1.3: Number of endpoints 2
[302774.664764] usb 1-1.3: Endpoint 1 MaxPacketSize 64
[302774.670235] usb 1-1.3: Endpoint 2 MaxPacketSize 64
[302774.675704] usb 1-1.3: Setting MaxPacketSize 64
[302774.681429] usb 1-1.3: FTDI USB Serial Device converter now attached to ttyUSB0

Without loading the modules my NAS also would not detect the Stick. I haven’t further tested it with openHAB but I guess it should work! Most likely the /dev/ttyUSB0 file also needs to be assigned the right permissions and something needs to be done to also load the modules after the NAS is restarted.

Additional serial driver modules

It seems there was a separate package for adding Serial Driver support to Synology NAS-es by a Domoticz user at http://www.jadahl.com . However it is no longer maintained or available. The site still has complete packages with Domoticz installations that do contain additional Serial Drivers and scripts to load them.

  • To get these additional drivers and startup scripts you can download the appropriate Domoticz SPK from http://www.jadahl.com/domoticz_stable_6.1/ .
  • When you rename the .spk to .tar.gz and extract it you will also have a package.tgz file. The package.tgz file contains additional kernel modules in the /modules directory.
  • The SPK also has a /scripts directory with a file named start-stop-status. The method start_daemon shows how these additional modules are loaded. Normally it is just with insmod, on some older DSM versions the script also executes some additional logic to dynamically create the /dev/ttyXXX files.
1 Like