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:
https://github.com/trepmag/ds213j-optware-bootstra

2. Add package sources: http://www.leben-zwo-punkt-null.com/?p=3787#more-3787

3. Modify /root/.profile:
#PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin
#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:
http://wiki.synozwave.com/index.php?title=Installation/en&setlang=en

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:
http://www.hetlab.tk/artikelen/synology-cdc-acm-ko
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