Page 3 of 29
Re: How to install Domoticz on a Synology NAS
Posted: Sunday 06 December 2015 23:40
by jumbotroll
greuh wrote:
Great !
I had indeed to remove also /var/packages/UsbSerialDrivers
Thanks a lot.
I am now trying to see if I can use domoticz with my Aeotec USB stick.
Should it be detected automatically ?
Try to do a dmesg and look if the stick is detected.
Sometimes you have to restart synology or only domoticz, but different solution has worked
Regards
Jumbotroll
Re: How to install Domoticz on a Synology NAS
Posted: Monday 07 December 2015 23:27
by greuh
Well, I tried the 4.2 package you compiled, without and with the USB serial drivers.
For both, I rebooted the NAS after installation, before to plug the USB stick.
I still have the same error message, and nothing is added to dmesg.
I will install a Windows version of domoticz on my laptop tomorrow and test if the key is working. Maybe I have a hardware problem...
I do not know if it make sense, but once plugged, the USB stick blinks as follow:
blue (1 sec) - off (0.5 sec) - almost white (1 sec) - off (0.5 sec) - red (1 sec) - off (0.5 sec) - ...
Re: How to install Domoticz on a Synology NAS
Posted: Tuesday 08 December 2015 18:23
by greuh
I installed Domoticz on a recent Windows 7.
Then ran domoticz.
Then plugged the stick.
The Aeotec GEN5 USB stick is still not recognized.
I can see this window for long:
and finnaly I had the message 'no driver found".
Before to return the ley to seller, can you confirm that it should be detected automatically? Should I do something I missed?
Re: How to install Domoticz on a Synology NAS
Posted: Tuesday 08 December 2015 19:32
by jumbotroll
greuh wrote:I installed Domoticz on a recent Windows 7.
Then ran domoticz.
Then plugged the stick.
The Aeotec GEN5 USB stick is still not recognized.
I can see this window for long:
and finnaly I had the message 'no driver found".
Before to return the ley to seller, can you confirm that it should be detected automatically? Should I do something I missed?
I also have the blinking on my Z-stick Gen5, so i think this is normal.
I don't use Windows, so I tested to install domoticz on my Windows 10 in parallels and z-stick Gen5 working ok
It is detected as COM3
Regards
Jumbotroll
Re: How to install Domoticz on a Synology NAS
Posted: Tuesday 08 December 2015 20:11
by jumbotroll
I did not install any drivers, but you can download drivers here:
Z-Stick Gen5 Drivers and Tools
http://aeotec.com/z-wave-usb-stick/1358 ... ivers.html
Regards
Jumbotroll
Re: How to install Domoticz on a Synology NAS
Posted: Thursday 10 December 2015 9:31
by greuh
Yeah !
Windows 8 and 10 does not need any additional driver.
But Windows 7 does.
So I installed
this driver, and I could finally install the stick on Windows.
Domoticz can now see it !
Thanks
Well, it is not such a good news, it means I miss something on my Synology...
Even if I do not have the needed kernel module, I should see a new message in dmesg when plugging in the stick. Right?
I did not find the "lspci" command on my DSM-4.2. Is there an equivalent command?
Re: How to install Domoticz on a Synology NAS
Posted: Thursday 10 December 2015 10:33
by jumbotroll
On my DS712+ Z-Stick Gen5 using cdc-acm driver.
cdc_acm 5-1:1.0: ttyACM1: USB ACM device.
I have compiled domoticz_88f6281-4.3_2.0.3780-7.spk for you to test including cdc-acm driver.
http://jadahl.dscloud.me/sspks/packages ... 3780-7.spk
Regards
Jumbotroll
Re: How to install Domoticz on a Synology NAS
Posted: Friday 11 December 2015 8:32
by greuh
Thanks again
I uninstalled the older one and installed this one.
I didn't know if I should keep the serial drivers, so I kept them.
It was still not recognized.
I uninstalled the serial drivers with no more success.
Here is the output of dmesg when plugging in the stick (without serial drivers here):
[25024.060000] usb 1-1.2: USB disconnect, address 4
[25024.300000] usb 1-1.2: new high speed USB device using orion-ehci and address 6
[25024.410000] Got empty serial number. Generate serial number from product.
[25024.420000] usb 1-1.2: configuration #1 chosen from 1 choice
[25024.460000] hub 1-1.2:1.0: USB hub found
[25024.460000] hub 1-1.2:1.0: 4 ports detected
[25024.760000] usb 1-1.2.4: new full speed USB device using orion-ehci and address 7
[25024.890000] Got empty serial number. Generate serial number from product.
[25024.900000] usb 1-1.2.4: configuration #1 chosen from 1 choice
[25024.910000] cp210x 1-1.2.4:1.0: ch341-uart converter detected
[25024.950000] cp210x: probe of 1-1.2.4:1.0 failed with error -5
[25024.950000] pl2303 1-1.2.4:1.0: ch341-uart converter detected
[25025.000000] pl2303: probe of 1-1.2.4:1.0 failed with error -5
[25025.000000] ch341 1-1.2.4:1.0: ch341-uart converter detected
[25025.050000] ch341: probe of 1-1.2.4:1.0 failed with error -5
[25025.050000] cp210x 1-1.2.4:1.1: ch341-uart converter detected
[25025.100000] cp210x: probe of 1-1.2.4:1.1 failed with error -5
[25025.110000] pl2303 1-1.2.4:1.1: ch341-uart converter detected
[25025.220000] pl2303: probe of 1-1.2.4:1.1 failed with error -5
[25025.220000] ch341 1-1.2.4:1.1: ch341-uart converter detected
[25025.280000] ch341: probe of 1-1.2.4:1.1 failed with error -5
Re: How to install Domoticz on a Synology NAS
Posted: Friday 11 December 2015 10:42
by jumbotroll
I'm out of ideas why this does not work on your NAS .
Do you use USB Hub ?
If so, test without USB Hub .
Regards
Jumbotroll
Re: How to install Domoticz on a Synology NAS
Posted: Friday 11 December 2015 10:50
by greuh
jumbotroll wrote:I'm out of ideas why this does not work on your NAS .
Do you use USB Hub ?
If so, test without USB Hub .
Regards
Jumbotroll
I do not use USB hub.
There is only a brand new 10m USB cable between the NAS and the key.
I tried without it at the beginning, but my last attempts were made with it. Maybe can I try again without this cable.
After some readings, it seems that I should see a ttyACMx in the port list when I select OpenZwave USB.
I understand that the last package you provided includes USB ACM driver, but the package is compiled for DSM-4.3. Can't it be a problem?
Isn't there some other logs I may gather to understand what happens?
Re: How to install Domoticz on a Synology NAS
Posted: Friday 11 December 2015 11:53
by jumbotroll
There may be conflict if you use both UsbSerialDrivers and domoticz package with drivers .
Delete both packages and restart NAS .
Then install
only this package including cdc-acm driver :domoticz_88f6281-4.2_2.0.3798-7.spk
http://jadahl.dscloud.me/sspks/packages ... 3798-7.spk
In the info center on NAS should also see the devices attached to NAS.
USBDevice - Sigma Design, Inc. is my z-stick.
FT232 USB-Serial. is my RFXCOM
HL-340 is my RFLink
Regards
Jumbotroll
Re: How to install Domoticz on a Synology NAS
Posted: Friday 11 December 2015 13:08
by greuh
jumbotroll wrote:There may be conflict if you use both UsbSerialDrivers and domoticz package with drivers .
Delete both packages and restart NAS .
Then install
only this package including cdc-acm driver :domoticz_88f6281-4.2_2.0.3798-7.spk
http://jadahl.dscloud.me/sspks/packages ... 3798-7.spk
In the info center on NAS should also see the devices attached to NAS.
USBDevice - Sigma Design, Inc. is my z-stick.
FT232 USB-Serial. is my RFXCOM
HL-340 is my RFLink
Regards
Jumbotroll
OK, i have uninstalled, rebooted, installed this new one, and rebooted (never know...).
I have to wait to be home to unplug and plug the stick and test. I do not have remote access to domoticz yet.
However I have checked my information center, and I can see the Sigma Design USB device. I believe...
Re: How to install Domoticz on a Synology NAS
Posted: Saturday 12 December 2015 23:56
by greuh
I did the same without the stick plugged.
Uninstall package
reboot
install the new package (domoticz_88f6281-4.2_2.0.3798-7.spk)
reboot
start domoticz
Plug the zstick
Still no /dev/ttyAMC device in the "serial port" list.
Only /dev/ttyUSB0 to /dev/ttyUSB7. None of them is working.
Something prevents the stick from being viewed by domoticz
Re: How to install Domoticz on a Synology NAS
Posted: Monday 14 December 2015 11:30
by greuh
I also uninstalled any other (non-related) packages on my Synology (sabnzbd, sab2, perl, python).
Reinstalled domoticz as above, but still the same result.
The Stick is seen by the DSM, but not by Domoticz
Re: How to install Domoticz on a Synology NAS
Posted: Monday 14 December 2015 13:02
by jumbotroll
greuh wrote:I also uninstalled any other (non-related) packages on my Synology (sabnzbd, sab2, perl, python).
Reinstalled domoticz as above, but still the same result.
The Stick is seen by the DSM, but not by Domoticz
Sorry, but I have No idea why this is not working on your NAS.
Can you check if you have: /usr/local/domoticz/rules.d
60-synocommunity.domoticz.rules
#rules for USB ACM serial devices
KERNEL=="ttyACM*", ACTION=="add", MODE="0666"
KERNEL=="ttyUSB*", ACTION=="add", MODE="0666"
Regards
Jumbotroll
Re: How to install Domoticz on a Synology NAS
Posted: Monday 14 December 2015 16:32
by greuh
jumbotroll wrote:
Sorry, but I have No idea why this is not working on your NAS.
Can you check if you have: /usr/local/domoticz/rules.d
60-synocommunity.domoticz.rules
#rules for USB ACM serial devices
KERNEL=="ttyACM*", ACTION=="add", MODE="0666"
KERNEL=="ttyUSB*", ACTION=="add", MODE="0666"
Regards
Jumbotroll
Yes, I have exactly that content in /usr/local/domoticz/rules.d/60-synocommunity.domoticz.rules
As a last try, I will give a try with the package from synocommunity, which is quite old. We will see if there is any difference...
Re: How to install Domoticz on a Synology NAS
Posted: Monday 14 December 2015 17:31
by jumbotroll
The old package from synocommunity does not support OpenZWave.
Can you check if you have this modules:
/lib/modules/usbserial.ko and
/lib/modules/ftdi_sio.ko
If you run lsmod
The last line should show something like this:
usbcore 176292 17 ch341,snd_usb_hiface,snd_usb_audio,snd_usbmidi_lib,cdc_acm,pl2303,cp210x,ftdi_sio,usbserial,usbhid,usblp,usb_storage,etxhci_hcd,xhci_hcd,ehci_pci,ehci_hcd,uhci_hcd
usb_common 1488 1 usbcore
Regards
Jumbotroll
Re: How to install Domoticz on a Synology NAS
Posted: Monday 14 December 2015 22:03
by greuh
jumbotroll wrote:The old package from synocommunity does not support OpenZWave.
Can you check if you have this modules:
/lib/modules/usbserial.ko and
/lib/modules/ftdi_sio.ko
If you run lsmod
The last line should show something like this:
usbcore 176292 17 ch341,snd_usb_hiface,snd_usb_audio,snd_usbmidi_lib,cdc_acm,pl2303,cp210x,ftdi_sio,usbserial,usbhid,usblp,usb_storage,etxhci_hcd,xhci_hcd,ehci_pci,ehci_hcd,uhci_hcd
usb_common 1488 1 usbcore
Regards
Jumbotroll
I have the modules installed, but I am not sure if my usbscore module is used by the expected modules:
DiskStation> ls /lib/modules/ | grep "usbserial\|ftdi"
ftdi_sio.ko
usbserial.ko
DiskStation>
DiskStation> lsmod | tail
dm_snapshot 21948 0
crc_itu_t 1043 1 udf
crc_ccitt 1065 0
quota_v2 2651 2
quota_tree 6676 1 quota_v2
usbcore 141170 13 ch341,pl2303,cp210x,ftdi_sio,usbserial,usbhid,usblp,usb_storage,etxhci_hcd,xhci_hcd,ohci_hcd,ehci_hcd
sg 21260 0
psnap 1655 0
llc 3178 1 psnap
ipv6 238252 58
DiskStation>
Thanks a lot (again)
Greuh
edit:
I also add the usbserial module usage:
DiskStation> lsmod | grep usbserial
usbserial 25216 4 ch341,pl2303,cp210x,ftdi_sio
usbcore 141170 13 ch341,pl2303,cp210x,ftdi_sio,usbserial,usbhid,usblp,usb_storage,etxhci_hcd,xhci_hcd,ohci_hcd,ehci_hcd
Re: How to install Domoticz on a Synology NAS
Posted: Monday 14 December 2015 22:13
by jumbotroll
I think you are missing cdc_acm.
Try this: insmod /lib/modules/cdc-acm.ko
Regards
Jumbotroll
Re: How to install Domoticz on a Synology NAS
Posted: Monday 14 December 2015 22:16
by greuh
jumbotroll wrote:I think you are missing cdc_acm.
Try this: insmod /lib/modules/cdc-acm.ko
Regards
Jumbotroll
Indeed...
DiskStation> insmod /lib/modules/cdc_acm.ko
insmod: can't insert '/lib/modules/cdc_acm.ko': No such file or directory
DiskStation> find /lib/modules/ | grep cdc
/lib/modules/cdc_ether.ko
DiskStation>