Language :
 

OpenZWave running on Synology DS1010+

I have recently bought two ZWave micro-modules from Solution Domotique. These dimmer modules, branded Fibaro, will support up to 500W. Here is the Datasheet. A nice review (in French) can be found here: Fibaro Micro Module Review (Maison et Domotique).

To discuss with these modules, I have bought a cheap USB to ZWave controller. It might have been indeed a bit too cheap, since it came without any documentation. Once plugged-in, Windows was able to suggest to download a driver for the Prolific PL2303 usb to serial adapter. Afterward, the system recognized the controller as a standard COM port.

I have downloaded Homeseer trial, and was able to easily associate everything together. However, the price for this software is not cheap, and will need either a Windows computer or dedicated hardware to run. This did not make sense for me, especially since I do own a nice Synology NAS already running 24h/24.

A nice group of people is working actively on making an open source implementation of ZWave. The project is called OpenZWave and can be found on Googlecode. It is still stated to be in alpha stages, but already worked pretty nice. It was pretty easy to have everything working on Windows, however, it has been more tricky on the Synology. The software requires libudev or libusb1.0 for the HIDAPI implementation, both of which are not available for the Synology. It is probably possible to compile these using the toolchains provided, but there is a much simple solution if you are using a simple COM port controller.

 

1) Compile the appropriate modules

You will need usbserial.ko, ftdi_sio.ko, pl2303.ko.

An excellent tutorial is found here : How to compile modules on Synology

After you install the modules on your NAS, you should see the following when you plug-in your adapter (dmesg):

[443446.488043] USB Serial support registered for pl2303
[443446.493306] pl2303 7-2:1.0: pl2303 converter detected
[443446.510895] usb 7-2: pl2303 converter now attached to ttyUSB0
[443446.517255] usbcore: registered new interface driver pl2303
[443446.523084] pl2303: Prolific PL2303 USB to serial adaptor driver

Note on which TTY your adapter is mapped. If for some reason /dev/ttyUSB* does not exists on your system, you can create it using the following:

mknod /dev/ttyUSB0 c 188 0

 

2) Modify the Makefiles and Sources

- Remove every reference to HIDAPI that you can find in the makefiles

- In Driver.cpp, also remove the inclusion and reference to HIDAPI.

- I also had to add a newline character at the end of 3 or 4 source files.

- Edit Main.cpp to ensure it uses the same ttyUSB on which your adapter is connected.

You can cross-compile on the same system that was used to build the modules. If like myself you have one of these newer NAS with an ATOM processor, it is perfectly possible to compile directly on it. Don’t expect it to be fast, but it works Smile

From this point, you can experiment with your ZWave system on your Synology NAS.

Hopefully, more to come on this Smile

One Response to “OpenZWave running on Synology DS1010+”

  1. Daniel Says:

    Hi…

    http://www.webcamgirls4.com/