Page 5 of 94

Re: domoticz in synology as package! Available now.

Posted: Tuesday 10 February 2015 20:30
by groetg
I installed (and updated to 2246) Domoticz at my Synology NAS (214play).

It won't work to let de NAS see my RFX module (USB) and P1 cable (USB). What do I have to do to let de NAS 'see' the serial cables?

I had trouble with Domoticz on my Rpi so I want to test Domoticz at my NAS.

Re: domoticz in synology as package! Available now.

Posted: Tuesday 10 February 2015 20:40
by Schim57300
I saw someone (do not remember who) who failed to use his RFXTRX433E once upgrading his Syno to 5.1.xx

The problem was due to thé USB drivers.

On mine (see my signature) domoticz works with a Nrfxtrx433E

May I help?

Re: domoticz in synology as package! Available now.

Posted: Tuesday 10 February 2015 21:49
by groetg
Could you help me installimg USB driver for the rfx transmitter?

Re: domoticz in synology as package! Available now.

Posted: Tuesday 10 February 2015 23:16
by jumbotroll
I have modified UsbSerialDrivers_3.0.2.spk for DSM-5.1-5022.
Download from my server and test :-)
http://jadahl.dscloud.me/sspks/

Re: domoticz in synology as package! Available now.

Posted: Tuesday 10 February 2015 23:18
by jumbotroll
groetg wrote:Could you help me installimg USB driver for the rfx transmitter?
I have modified UsbSerialDrivers_3.0.2.spk for DSM-5.1-5022.
Download from my server and test :-)
http://jadahl.dscloud.me/sspks/
I have also updated test version without zwave support domoticz to 2258 for DS214play
http://jadahl.dscloud.me/sspks/?arch=evansport

Tested and working on DS712+ with RFXCOM (Domoticz 2258) DSM-5.1-5022.

/Jumbotroll

Re: domoticz in synology as package! Available now.

Posted: Wednesday 11 February 2015 11:00
by Schim57300
jumbotroll wrote:
groetg wrote:Could you help me installimg USB driver for the rfx transmitter?
I have modified UsbSerialDrivers_3.0.2.spk for DSM-5.1-5022.
Download from my server and test :-)
http://jadahl.dscloud.me/sspks/
I have also updated test version without zwave support domoticz to 2258 for DS214play
http://jadahl.dscloud.me/sspks/?arch=evansport
/Jumbotroll

Great ! Thank you very much.

@groetg : What is your DSM version ? Could you try Jumbotroll's drivers and keeping us in touch ?

Re: domoticz in synology as package! Available now.

Posted: Wednesday 11 February 2015 12:15
by Schim57300
I have just updated my DSM to 5.1.5022 Update 2.
Your installation of USB driver does not work.
As it was asked to uninstall previous drivers... I do not have drivers aymore.

On my side, I have no USB Driver, no Domoticz and no Apache anymore :-(

Re: domoticz in synology as package! Available now.

Posted: Wednesday 11 February 2015 14:13
by jumbotroll
Schim57300 wrote:I have just updated my DSM to 5.1.5022 Update 2.
Your installation of USB driver does not work.
As it was asked to uninstall previous drivers... I do not have drivers aymore.

On my side, I have no USB Driver, no Domoticz and no Apache anymore :-(
Strange.. I am running DSM-5.1-5022 Update 2 on DS-712+ fine with the updated driver.
Sure you did use this package? http://jadahl.dscloud.me/sspks/packages ... _3.0.2.spk

Re: domoticz in synology as package! Available now.

Posted: Wednesday 11 February 2015 23:15
by Schim57300
Back to normal with DSM 5.0-4493 ^^
In fact I added this adress to the Package Center Source
-> http://jadahl.dscloud.me/sspks/

My DSM recently updated found the update and asked me to uninstall the UsbSerialDrivers_2.0.0.spk before installing the UsbSerialDrivers_3.0.2.spk
But at the end, the install failed :(

Re: domoticz in synology as package! Available now.

Posted: Wednesday 11 February 2015 23:28
by jumbotroll
Schim57300 wrote:Back to normal with DSM 5.0-4493 ^^
In fact I added this adress to the Package Center Source
-> http://jadahl.dscloud.me/sspks/

My DSM recently updated found the update and asked me to uninstall the UsbSerialDrivers_2.0.0.spk before installing the UsbSerialDrivers_3.0.2.spk
But at the end, the install failed :(
I suggest you first uninstall UsbSerialdrivers manually with telnet i you know how to do that.
And manually install http://jadahl.dscloud.me/sspks/packages ... _3.0.2.spk don´t add http://jadahl.dscloud.me/sspks/ in Package Center source.
If you have another Package source in Package Center Source with older UsbSerialDrivers_3.0.2.spk (not modified version) you maybe got wrong version installed.

Re: domoticz in synology as package! Available now.

Posted: Friday 13 February 2015 14:20
by Decipher
I have also been working on this in the SynoCommunity, and have got Domoticz compiling with OpenZWave support as well as enabling the USB drivers as part of the package daemon, but I am having one last problem where the OpenZWave driver fails.

If anyone is able to help out, the code is linked from https://github.com/SynoCommunity/spksrc/issues/1478

Re: domoticz in synology as package! Available now.

Posted: Friday 13 February 2015 22:31
by Decipher
@Jumbotroll,

Is the source for your USB drivers package available anywhere? I'm testing with your drivers in the case that they are the last part of the recipe (which I do hope they are), but if they are I'd really like to have the relevant drivers baked directly into the final SPK so it's a one-click install experience for everyone.

Re: domoticz in synology as package! Available now.

Posted: Friday 13 February 2015 23:06
by Decipher
I tried the UsbSerialDrivers_3.0.2.spk, but it appears that the drivers are the same that are on my DS413. At least, ftdi_sio reports it's version 1.5.0 when I run dmesg. It doesn't look like Syno has modinfo so I am unable to confirm for sure.

So I'm still getting the "Error: OpenZWave: Driver Failed!!" problem with my Domoticz w/OpenZWave package, which is a shame because it's so very close.

Re: domoticz in synology as package! Available now.

Posted: Friday 13 February 2015 23:08
by jumbotroll
Decipher wrote:@Jumbotroll,

Is the source for your USB drivers package available anywhere? I'm testing with your drivers in the case that they are the last part of the recipe (which I do hope they are), but if they are I'd really like to have the relevant drivers baked directly into the final SPK so it's a one-click install experience for everyone.
It is lebovitz who has made this source, so you have to ask him for the source.
I have only done some small modification i the spk package.
You can contact lebovitz on synology forum http://forum.synology.com/enu/viewtopic ... 55&t=82843
Keep up the god work!

/Jumbotroll aka Jadahl

Re: domoticz in synology as package! Available now.

Posted: Friday 13 February 2015 23:18
by jumbotroll
Decipher wrote:I tried the UsbSerialDrivers_3.0.2.spk, but it appears that the drivers are the same that are on my DS413. At least, ftdi_sio reports it's version 1.5.0 when I run dmesg. It doesn't look like Syno has modinfo so I am unable to confirm for sure.

So I'm still getting the "Error: OpenZWave: Driver Failed!!" problem with my Domoticz w/OpenZWave package, which is a shame because it's so very close.

Here is my dmesg on DS-712+ with DSM 5.1-5022 update 2.

[ 1471.857118] usbcore: registered new interface driver usbserial
[ 1471.862991] usbserial: USB Serial Driver core
[ 1471.870719] USB Serial support registered for FTDI USB Serial Device
[ 1471.877331] ftdi_sio 5-1:1.0: FTDI USB Serial Device converter detected
[ 1471.884066] usb 5-1: Detected FT232RL
[ 1471.887756] usb 5-1: Number of endpoints 2
[ 1471.891869] usb 5-1: Endpoint 1 MaxPacketSize 64
[ 1471.896497] usb 5-1: Endpoint 2 MaxPacketSize 64
[ 1471.901128] usb 5-1: Setting MaxPacketSize 64
[ 1471.908549] usb 5-1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 1471.915855] usbcore: registered new interface driver ftdi_sio
[ 1471.921630] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver
DS712>

Re: domoticz in synology as package! Available now.

Posted: Friday 13 February 2015 23:42
by Decipher
Thanks for your response. I actually succeed finally, and the USB drivers package did solve the issue, as it was the cp210x.ko mod that was the missing piece of the puzzle. I suspect that the native usbserial.ko and ftdi_sio.ko mods may be fine, but I'll confirm this soon.

I will definitely be chasing lebovitz down, as if I can get the missing driver backed into my SPK which is cross-compilable as per SynoCommunity guidelines, then we should have a nice easy one-click install solution for all.

But I can currently confirm that I have OpenZWave USB support without any compilation on the Syno required.

Re: domoticz in synology as package! Available now.

Posted: Saturday 14 February 2015 0:08
by jumbotroll
Decipher wrote:Thanks for your response. I actually succeed finally, and the USB drivers package did solve the issue, as it was the cp210x.ko mod that was the missing piece of the puzzle. I suspect that the native usbserial.ko and ftdi_sio.ko mods may be fine, but I'll confirm this soon.

I will definitely be chasing lebovitz down, as if I can get the missing driver backed into my SPK which is cross-compilable as per SynoCommunity guidelines, then we should have a nice easy one-click install solution for all.

But I can currently confirm that I have OpenZWave USB support without any compilation on the Syno required.

GREAT WORK!!
Time for some Zwave gadget shopping :P

Re: domoticz in synology as package! Available now.

Posted: Saturday 14 February 2015 7:28
by steef84
Very nice. Good job. Time for zwave for me as well

Re: domoticz in synology as package! Available now.

Posted: Saturday 14 February 2015 7:31
by Decipher
I'm just in the process of finalising the package, it tuns out the the SynoCommunity spksrc has the ability to cross compile kernel modules, so once I've got that sorted out I'll be able to put a PR in for an update to the Domoticz package which will be fully contained.

Re: domoticz in synology as package! Available now.

Posted: Saturday 14 February 2015 22:38
by Decipher
So last night at about midnight I put the PR in, I know have a fully cross-compilable package that contains Domoticz with OpenZWave support including the required USB Drivers without the need of any additional SPKs or messing around to install.

I've built a Qoriq-5.1 SPK and am just finishing up a Armada370-5.1 SPK, both of which are (will be) linked at the Github issue: https://github.com/SynoCommunity/spksrc/issues/1478

If anyone has requests for a specific architecture let me know, including the syno version (4.3, 5.0, 5.1, etc) and I'll do my best. Compiling for an architecture I don't have the toolchain for does take a few hours as compiling the USB driver requires a 1.2 GB download.

In return, feedback would be appreciated.

For those familiar with the SynoCommunity spksrc who would like to compile it themselves, you can find the PR at https://github.com/SynoCommunity/spksrc/pull/1488