Closed remy3885 closed 7 years ago
While I have not yet got my Z-stick, I have begun looking into this. Based on the documentation so far I hope this is relatively achievable. If not, I will document what I am able to do.
if you can install on Synology openzwave and operate a zstick 2 , give me the procedure...
The plan is to not need a procedure, the plan is to have it just part of the SPK. However, I need to re-install my Syno dev environment as my old one is too old.
I have had what looks like reasonable success compiling openzwave, but I have not yet confirmed that it is built correctly (hence environment). I will be continuing my investigation today.
OK tell me when you have managed your compilation and will be available when a spk I'm interested
have you advanced in your compilation?
2015-02-09 23:51 GMT+01:00 Stuart Clark notifications@github.com:
The plan is to not need a procedure, the plan is to have it just part of the SPK. However, I need to re-install my Syno dev environment as my old one is too old.
I have had what looks like reasonable success compiling openzwave, but I have not yet confirmed that it is built correctly (hence environment). I will be continuing my investigation today.
— Reply to this email directly or view it on GitHub https://github.com/SynoCommunity/spksrc/issues/1478#issuecomment-73608229 .
I know you're keen, I am too, but I have no idea when it's going to be done. I did make some more headway yesterday, so much so that when compiling Domoticz it sees the Openzwave library, but it can't link it due to a possible incorrect compilation of Openzwave. A lot of what I'm doing is just guess work, as I'm not an expert in this sort of thing.
Regardless, I do plan to put what I've done so far into a branch so that others can continue the work concurrently, I just want to re-roll a patch for Domoticz before I do that.
I did however just receive my Z-Stick, so I do have more incentive now :)
Ok very well. Sorry can't help you I don't know much.
2015-02-11 1:27 GMT+01:00 Stuart Clark notifications@github.com:
I did however just receive my Z-Stick, so I do have more incentive now :)
— Reply to this email directly or view it on GitHub https://github.com/SynoCommunity/spksrc/issues/1478#issuecomment-73813860 .
Initial commit made, it's just for the openzwave library. I also have some changes for Domoticz I need to push, but I need to re-roll a patch before I do that. This is not something that is compilable yet. Just so if others wish to help they can.
Not working yet. the main issues are:
/home/stuart/spksrc/toolchains/syno-qoriq-5.1/work/powerpc-none-linux-gnuspe/bin/../lib/gcc/powerpc-none-linux-gnuspe/4.3.2/../../../../powerpc-none-linux-gnuspe/bin/ld: /home/stuart/spksrc/cross/domoticz/work-qoriq-5.1/open-zwave-read-only/libopenzwave.a(Manager.o): Relocations in generic ELF (EM: 3)
/home/stuart/spksrc/cross/domoticz/work-qoriq-5.1/open-zwave-read-only/libopenzwave.a: could not read symbols: File in wrong format
Upon further digging/scouring google for help, I finally determined that the cause of the issue is related to the compiling of libopenzwave.a, as it's objects are definitely in the wrong format:
OpenZWave objects are: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped
Other library objects are: ELF 32-bit MSB relocatable, PowerPC or cisco 4500, version 1 (SYSV), with unknown capability 0x41000000 = 0x13676e75, with unknown capability 0x10000 = 0xb0402, not stripped
I now know how to test to ensure it's the right format, not I just need to figure out how to ensure it is the right format.
So I have now successfully cross compiled both openzwave and domoticz with openzwave support using the qoriq architecture (as that's what I own). I still need to wrap it all up in a SPK and test it, but very positive.
So I have a SPK running on my NAS, and the OpenZWave USB device is available, but I am getting the following error on run:
Error: OpenZWave: Driver Failed!!
So not quite there, yet, but getting close. It would be super helpful if someone else was able to weigh in on this though.
I don't know how much more I can do, it now compiles and is able to create a SPK with OpenZWave support, and you are able to choose 'OpenZWave USB' on the Hardware setup screen, but still getting the Driver Failed!!
error. It's possibly something as simple as missing dependencies in the package, but I don't know enough to determine this for sure, although I will test that theory tomorrow.
Confirmed it builds on 64-bit architectures as well (Bromolow 5.1 for my XPEnology VM).
No more for tonight.
I installed "usb serial drivers". The spk is on Synology website.
2015-02-12 13:07 GMT+01:00 Stuart Clark notifications@github.com:
Confirmed it builds on 64-bit architectures as well (Bromolow 5.1 for my XPEnology VM).
No more for tonight.
— Reply to this email directly or view it on GitHub https://github.com/SynoCommunity/spksrc/issues/1478#issuecomment-74060747 .
That won't give you the ability to use ZWave though, as without the openzwave library (what I've compiled) Domiticz disables that functionality. Our did you mean something else? I'm unsure of the relevance of the comment.
I tracked down the SPK you where referring to, it shouldn't be necessary as the SPK you can get from compiling from my branch will enable the relevant USB side of things in the same way (I assume) that that SPK does. The only problem left is the OpenZWave driver failing, which I'm unsure of how to debug.
@remy3885, I have to apologize for my snappiness last night, because if it wasn't for your comment I wouldn't currently have a successful connection to my OpenZWave USB device.
The problem was one missing kernel mod, that was in the USB drivers package from http://www.domoticz.com/forum/viewtopic.php?t=2620.
I will try to track down the source for the USB drivers package as baking the missing kernal mod into this SPK will make for a nice easy one-click install of Domoticz with OpenZWave support.
Let me know your Syno architecture and I'll compile a SPK for you.
Looks like spksrc has support for cross compiling kernel modules, so once I wrap my head around it it should resolve the last outstanding issue, then we can wrap this up and get a PR done. Getting very close.
I'm glad to have served at least a little bit. I have a DS213j with Marvell Armada 370
2015-02-14 5:24 GMT+01:00 Stuart Clark notifications@github.com:
Looks like spksrc has support for cross compiling kernel modules, so once I wrap my head around it it should resolve the last outstanding issue, then we can wrap this up and get a PR done. Getting very close.
— Reply to this email directly or view it on GitHub https://github.com/SynoCommunity/spksrc/issues/1478#issuecomment-74361028 .
I'll also need to know what version you're on, especially for the last bit I'm currently working on: 4.3, 5.0 or 5.1?
I can probably build you a SPK today that will require the USB Drivers that you've already got, or hopefully by tomorrow with out the need of the USB Drivers SPK.
Currently waiting for a very large download on a very slow internet connection before I can proceed any further.
Ok sorry, my DSM version is 5.1-5022 update 2.
2015-02-14 6:31 GMT+01:00 Stuart Clark notifications@github.com:
I'll also need to know what version you're on, especially for the last bit I'm currently working on: 4.3, 5.0 or 5.1?
I can probably build you a SPK today that will require the USB Drivers that you've already got, or hopefully by tomorrow with out the need of the USB Drivers SPK.
Currently waiting for a very large download on a very slow internet connection before I can proceed any further.
— Reply to this email directly or view it on GitHub https://github.com/SynoCommunity/spksrc/issues/1478#issuecomment-74362803 .
@remy3885 https://dl.dropboxusercontent.com/u/1804559/domoticz_armada370-5.1_2.0.2112-5.spk
It's still uploading (at the time of writing this), but should be done soon. This version assumes you've installed the cp210x driver via the USB Drivers 3.0.2 package.
I've tested a qoriq-5.1 version of this with a Z-Stick S2 and it worked fine, let me know how it goes for you, and if you do have any issues, let me know what hardware you are working with.
Actually, you don't even need choose the cp210x driver in USB Drivers, just having the package installed is enough.
thank you I'll test it on my way home . I'll keep you informed of the progress .
2015-02-14 10:32 GMT+01:00 Stuart Clark notifications@github.com:
Actually, you don't even need choose the cp210x driver in USB Drivers, just having the package installed is enough.
— Reply to this email directly or view it on GitHub https://github.com/SynoCommunity/spksrc/issues/1478#issuecomment-74368466 .
And success. Commits and PR coming soon, but there is now OpenZWave support for Domoticz without any need for the USB Serial Drivers SPK or any annoying messing around.
@decipher, could I trouble you for an .spk as well? I have a qoriq ds413 on DSM5.1-5022 Update 2.
Will receive an Aeon Z stick today, so would be greatly helped :-)!
Amazing, thanks a bunch for your hard work!
@Decipher Just plugged in the z-stick (series 2) and installed the package, but I do not have the OpenZwave option when adding hardware in domoticz.
Want some excerpts from specific logs?
Nevermind, Chrome localStorage wasn't updated.... All is well!
Thanks, the installation went well. the Zstick is recognized but some device does'nt work. They should not be in the openzwave library.
2015-02-14 16:27 GMT+01:00 Bas Bloembergen notifications@github.com:
Nevermind, Chrome localStorage wasn't updated.... All is well!
— Reply to this email directly or view it on GitHub https://github.com/SynoCommunity/spksrc/issues/1478#issuecomment-74379200 .
@remy3885 I have no control over the OpenZWave library itself, or even how Domoticz uses it, all I've done is allowed it to be used.
Issues with OpenZWave should be reported at: https://groups.google.com/forum/#!forum/openzwave Issues with Domoticz implementation of OpenZWave should be reported at: http://www.domoticz.com/forum/
P.s., should have a new SPK for your architecture soon, one that doesn't require the USB Serial Drivers SPK. Left it compiling over right, but accidentally compiled from the wrong directory.
@basbl Glad you figured out the localStorage thing, I should have mentioned it because I got hit with it too at one stage.
@remy3885
Armada370-5.1: https://dl.dropboxusercontent.com/u/1804559/domoticz_armada370-5.1_2.0.2112-6.spk
This is the potentially final, including the cp210x driver
Is it possible to make one for a DS213, with DSM 5.1-5022 Update 2, 88f628x ? i would be very thankfully !
Thanks i'll install this SPK today.
2015-02-15 2:30 GMT+01:00 fonske notifications@github.com:
Is it possible to make one for a DS213, with DSM 5.1-5022 Update 2, 88f628x ? i would be very thankfull
— Reply to this email directly or view it on GitHub https://github.com/SynoCommunity/spksrc/issues/1478#issuecomment-74399931 .
@fonske, there doesn't seem to be a toolchain for 88f6282, so using 88f6281, not sure if it will work on not, but will upload it once it's done.
Cedarview-5.1 I did for a friend: https://dl.dropboxusercontent.com/u/1804559/domoticz_cedarview-5.1_2.0.2112-6.spk
@Decipher Thanks for your help!
In setup of z-stick it's written "Not all Nodes have been Queried yet, OpenZWave not fully initialized yet!"
2015-02-15 12:01 GMT+01:00 Stuart Clark notifications@github.com:
@fonske https://github.com/fonske: https://dl.dropboxusercontent.com/u/1804559/domoticz_88f6281-5.1_2.0.2112-6.spk
— Reply to this email directly or view it on GitHub https://github.com/SynoCommunity/spksrc/issues/1478#issuecomment-74412972 .
@remy3885 as far as this issue goes, that's a success because it means Domoticz on your Syno has OpenZWave support. I suspect that the initialisation thing is just timing, but can't say for certain, but regardless it's unlikely related to this issue/PR, I suggest checking the Domoticz forum.
New r2270 builds:
88f6281 5.1 - https://dl.dropboxusercontent.com/u/1804559/domoticz_88f6281-5.1_2.0.2270-6.spk Armada370 5.1 - https://dl.dropboxusercontent.com/u/1804559/domoticz_armada370-5.1_2.0.2270-6.spk Cedarview 5.1 - https://dl.dropboxusercontent.com/u/1804559/domoticz_cedarview-5.1_2.0.2270-6.spk Qoriq 5.1 - https://dl.dropboxusercontent.com/u/1804559/domoticz_qoriq-5.1_2.0.2270-6.spk
Note: All previous builds have been removed.
88f6281 5.1 installed with no issues. Still need to order a z-wave stick for the synology. Thanks a lot.
Good afternoon,
Your package has been successfully installed on my DS410J running on DSM 5.0-4493 (88f6281 processor). Domoticz is running correctly and my RFXTRX433E still works.
Will order my Z-wave stick too ^^ I'll keep you in touch
Schim'
hi,
i tried to upgrade the package to release 2270 on my ds213 (88f6281), but I receive the following message ("Current version is 2246-7. Impossible to downgrade to previous version: 2.0.2270-6")
it looks like the numbering of the version is not compatible with the previous one (2247-6 against 2.0.2270-6).
Is there any way to get rid of this message without uninstalling the previous version? thank you
I have made a backup first of the domoticz database in domoticz Removed the previous version (same version i think as you) through synology interface. Reinstalled with this version and loaded the backup again. No issues. Same synology, DS213
thank you, I was just wondering how to let DSM see the new revision as an upgrade to domoticz; this is because I have some script running towards some virtual sensor's ID and don't want to lose their numbering...
any ideas? maybe DSM simply fails to compare the two versions (2247-6 is for DSM newer than 2.0.2270-6)
Domoticz package does not contain native Openzwave which prevented me to recognize a usb stick Zwave . Can be integrate Openzwave to domoticz package or create a Openzwave package?
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.