Arduino UNO on Synology Diskstation DS213j

04.04.2014 by Michael

Finally i got an Arduino UNO connected to a Synology Diskstation DS213j. It took me some time and i had to try several tutorials. I’ll try to document the necessary steps.

1. There’s no optware / IPKG installer for DS213j. Thus you have to build it yourself which is straight forward:

2. Add package sources:

3. Modify /root/.profile:
#export PATH

4. Install the modules:
ipkg install kernel-module-usbcore
ipkg install kernel-module-usbserial
ipkg install kernel-module-ftdi-sio

5. There are not all usb packages available for DS213j. Thus i had to install the precompiled SynoZWave. But don’t enable it:

6. Now usbserial works and Arduino shows up in dmesg. But it didn’t work. It took me a while to remember that Arduino UNO does not have a FTDI chip but its own. Thus i had to enable the cdc-acm module:
insmod /lib/modules/cdc-acm.ko
mknod /dev/ttyACM0 c 166 0

7. Yeah! It reads my temperature sensor. It’s quite warm in my office. Good i’m outside.
cat /dev/ttyACM0
22 Celsius, 71 fahrenheit -> 22 Max, 22 Min