Z-wave on Ubuntu 11.10 in VM on MacMiniServer

Forum about Domotiga Open Source Home Automation for Linux.

Moderator: RDNZL

mrqnapper
Member
Member
Posts: 234
Joined: Sat Jun 25, 2011 1:08 pm

Re: Z-wave on Ubuntu 11.10 in VM on MacMiniServer

Post by mrqnapper »

I only have one device now so I think the one I see listed, is the right one. polling the device state, starts but does not return any status info in the debug screen. So still can not switch the AN158 device on or off.

This is what appears in the log file

Code: Select all

2012-04-10 12:09:11:790 Wait::Multiple res=-1 num=3 >
2012-04-10 12:09:11:790 Node005, WriteMsg Wait Timeout m_currentMsg=a40009a0
2012-04-10 12:09:11:790
2012-04-10 12:09:11:790 Node005, Sending command (Attempt 2, Callback ID=0x71, Expected Reply=0x04) - BasicCmd_Get (Node=5): 0x01, 0x09, 0x00, 0x13, 0x05, 0x02, 0x20, 0x02, 0$
2012-04-10 12:09:11:803 Wait::Multiple res=-1 num=1 >
2012-04-10 12:09:11:811 Wait::Multiple res=2 num=3 >2,
2012-04-10 12:09:11:812 Node005,   ACK received CallbackId 0x71 Reply 0x04
2012-04-10 12:09:11:813 Wait::Multiple res=2 num=3 >2,
2012-04-10 12:09:11:813 Wait::Multiple res=0 num=1 >0,
2012-04-10 12:09:11:813 Wait::Multiple res=0 num=1 >0,
2012-04-10 12:09:11:814 Node005,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2012-04-10 12:09:11:814 Wait::Multiple res=-1 num=1 >
2012-04-10 12:09:11:814 Node005, ZW_SEND_DATA delivered to Z-Wave stack
2012-04-10 12:09:11:825 Wait::Multiple res=-1 num=1 >


2012-04-10 12:09:11:951 Wait::Multiple res=2 num=3 >2,
2012-04-10 12:09:11:952 Wait::Multiple res=0 num=1 >0,
2012-04-10 12:09:11:952 Wait::Multiple res=0 num=1 >0,
2012-04-10 12:09:11:953 Node005,   Received: 0x01, 0x05, 0x00, 0x13, 0x71, 0x01, 0x99
2012-04-10 12:09:11:953 Node005,   ZW_SEND_DATA Request with callback ID 0x71 received (expected 0x71)
2012-04-10 12:09:11:953 Node005, ERROR: ZW_SEND_DATA failed. No ACK received - device may be asleep.
2012-04-10 12:09:11:954 Node005,   WARNING: Device is not a sleeping node - retrying the send.
2012-04-10 12:09:11:954 Node005,   Expected callbackId was received
2012-04-10 12:09:11:956 Wait::Multiple res=-1 num=1 >

mrqnapper
Member
Member
Posts: 234
Joined: Sat Jun 25, 2011 1:08 pm

Re: Z-wave on Ubuntu 11.10 in VM on MacMiniServer

Post by mrqnapper »

I think there must still be something I oversee. Since it's still not working after a lot more testing. I did the inclusion with the stick again. And after plugging in it still did not work.

Some more of the info from OpenZwave:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<Driver xmlns="http://code.google.com/p/open-zwave/" version="3" home_id="0x014d02f4" node_id="1" api_capabilities="0" controller_capabilities="8">
        <Node id="1" name="" location="" basic="2" generic="2" specific="1" type="Static PC Controller" listening="true" frequentListening="false" beaming="true" routing="fal$
                <Manufacturer id="0086" name="Aeon Labs">
                        <Product type="0002" id="0001" name="Z-Stick S2" />
                </Manufacturer>
                <CommandClasses>
                        <CommandClass id="32" name="COMMAND_CLASS_BASIC" version="1" after_mark="true" create_vars="true">
                                <Instance index="1" />
                                <Value type="byte" genre="all" instance="1" index="0" label="Basic" units="" read_only="false" write_only="false" verify_changes="false" poll_$
                        </CommandClass>
                </CommandClasses>
        </Node>
        <Node id="5" name="" location="" basic="4" generic="16" specific="1" type="Binary Power Switch" listening="true" frequentListening="false" beaming="true" routing="tru$
                <Manufacturer id="" name="">
                        <Product type="" id="" name="" />
                </Manufacturer>
                <CommandClasses>
                        <CommandClass id="32" name="COMMAND_CLASS_BASIC" version="1" create_vars="true">
                                <Instance index="1" />
                                <Value type="byte" genre="all" instance="1" index="0" label="Basic" units="" read_only="false" write_only="false" verify_changes="false" poll_$
                        </CommandClass>
                        <CommandClass id="37" name="COMMAND_CLASS_SWITCH_BINARY" version="1" create_vars="true">
                                <Instance index="1" />
                                <Value type="bool" genre="user" instance="1" index="0" label="Switch" units="" read_only="false" write_only="false" verify_changes="false" pol$
                        </CommandClass>
                        <CommandClass id="39" name="COMMAND_CLASS_SWITCH_ALL" version="1" create_vars="true">
                                <Instance index="1" />
                                <Value type="list" genre="system" instance="1" index="0" label="Switch All" units="" read_only="false" write_only="false" verify_changes="fals$
                                        <Item label="Disabled" value="0" />
                                        <Item label="Off Enabled" value="1" />
                                        <Item label="On Enabled" value="2" />
                                        <Item label="On and Off Enabled" value="255" />
                                </Value>
                        </CommandClass>
                </CommandClasses>
        </Node>
</Driver>
When I manualy change this xml text. Will that have any influence on the behaviour of the Z-wave actions?

Code: Select all

2012-04-10 14:59:08:095 Node005, QueryStage_Session
2012-04-10 14:59:08:095 Node005, Queuing command: SwitchAllCmd_Get (Node=5): 0x01, 0x09, 0x00, 0x13, 0x05, 0x02, 0x27, 0x02, 0x05, 0x01, 0xc3
2012-04-10 14:59:08:095 Node005, Queuing Command: Query Stage Complete (Session)
2012-04-10 14:59:08:095 Wait::Multiple res=6 num=8 >6,
2012-04-10 14:59:08:095 Node005, WriteMsg WriteNextMsg m_currentMsg=c0008310
2012-04-10 14:59:08:095
2012-04-10 14:59:08:095 Node005, Sending command (Callback ID=0x01, Expected Reply=0x04) - SwitchAllCmd_Get (Node=5): 0x01, 0x09, 0x00, 0x13, 0x05, 0x02, 0x27, 0x02, 0x05, 0x$
2012-04-10 14:59:08:100 Wait::Multiple res=2 num=3 >2,
2012-04-10 14:59:08:100 Node005,   ACK received CallbackId 0x01 Reply 0x04
2012-04-10 14:59:08:102 Wait::Multiple res=2 num=3 >2,
2012-04-10 14:59:08:103 Wait::Multiple res=0 num=1 >0,
2012-04-10 14:59:08:103 Wait::Multiple res=0 num=1 >0,
2012-04-10 14:59:08:103 Node005,   Received: 0x01, 0x04, 0x01, 0x13, 0x01, 0xe8
2012-04-10 14:59:08:103 Node005, ZW_SEND_DATA delivered to Z-Wave stack
2012-04-10 14:59:08:203 Wait::Multiple res=2 num=3 >2,
2012-04-10 14:59:08:204 Wait::Multiple res=0 num=1 >0,
2012-04-10 14:59:08:204 Wait::Multiple res=0 num=1 >0,
2012-04-10 14:59:08:204 Node005,   Received: 0x01, 0x05, 0x00, 0x13, 0x01, 0x01, 0xe9
2012-04-10 14:59:08:204 Node005,   ZW_SEND_DATA Request with callback ID 0x01 received (expected 0x01)
2012-04-10 14:59:08:205 Node005, ERROR: ZW_SEND_DATA failed. No ACK received - device may be asleep.
2012-04-10 14:59:08:205 Node005,   WARNING: Device is not a sleeping node - retrying the send.
2012-04-10 14:59:08:205 Node005,   Expected callbackId was received
2012-04-10 14:59:08:582 Wait::Multiple res=-1 num=1 >
Now this is maybe what courses the problem?: Node005, ERROR: ZW_SEND_DATA failed. No ACK received - device may be asleep.

Now this is not getting very easy, .. I have already opened the window, here ... :x

Any ideas how to get this solved? I thought using Z-wave was getting into the premier league of Domotica but for now I am not so sure about that:).
j.hoekstra
Member
Member
Posts: 255
Joined: Thu Jun 25, 2009 2:09 pm
Location: Enschede, The Netherlands

Re: Z-wave on Ubuntu 11.10 in VM on MacMiniServer

Post by j.hoekstra »

mrqnapper wrote: When I manualy change this xml text. Will that have any influence on the behaviour of the Z-wave actions?
Don't know, never had to look at it. It seems however to be recreated at start of using the OZW-wrapper if I look at creation date.

Now this is maybe what courses the problem?: Node005, ERROR: ZW_SEND_DATA failed. No ACK received - device may be asleep.

Now this is not getting very easy, .. I have already opened the window, here ... :x

Any ideas how to get this solved? I thought using Z-wave was getting into the premier league of Domotica but for now I am not so sure about that:).
Pretty much certain that's the reason, what's the distance between the 2? <5m? Or more?
Also, you didn't issue a neighbour/network update recently?
Z-ave is pretty nice, I like the quick 'switch-times' and status push, so it is nice, had some problems myself getting it to work properly due to changes on the OZW-side(hard for Ron to keep up with that :/)
However Ron was quick to act and assist. I used OZW control panel for adding and naming.
Seeing that your AN158 has node-id: 5 indicates you had it connected before, what you could do to shif it back to default one is to exclude it using the stick and then reset it(I remember it as 20s pus of button), after that include it and then it should be nr 1.
I had trouble with switching speeds after I re-added nodes and the numbers went above 10 for 3 nodes, after resetting speeds went up.
mrqnapper
Member
Member
Posts: 234
Joined: Sat Jun 25, 2011 1:08 pm

Re: Z-wave on Ubuntu 11.10 in VM on MacMiniServer

Post by mrqnapper »

The distance between the stick and the AN158 is less than 2 meters. What distance may this be anyway (I thought circa 30 meters indoors?).

I will try to exclude it as you suggest. and than have it included again.
j.hoekstra
Member
Member
Posts: 255
Joined: Thu Jun 25, 2009 2:09 pm
Location: Enschede, The Netherlands

Re: Z-wave on Ubuntu 11.10 in VM on MacMiniServer

Post by j.hoekstra »

And a reset inbetween of the AN158.
Distance might be anything up to 30m depending on disturbances, here 8m is sometimes problematic, nodes inbetween help.
2m should not be a problem.
mrqnapper
Member
Member
Posts: 234
Joined: Sat Jun 25, 2011 1:08 pm

Re: Z-wave on Ubuntu 11.10 in VM on MacMiniServer

Post by mrqnapper »

Had another go with it last night and today again. Still did not succeed. I followed your advice, but instead of having the nodes starting over from node 2 or so now I even ended up with having a node 8 and 10 and both are not responding. I even moved the server (in which is the stick) nearer to the AN158 device, thinking it could be a matter of not having a good rf signal or so. Did not make any difference.

How can I KILL the nodes remaining on the stick? I tried to remove them as described in the manual, even repeated this exercise several times in a row (to be sure nothing remained). But as mentioned, I ended up having two nodes from the same device!!! Would be much easier when deleting nodes and including them could be done in the commander straight away.
Any other suggestions that might help me further?

Thanks
j.hoekstra
Member
Member
Posts: 255
Joined: Thu Jun 25, 2009 2:09 pm
Location: Enschede, The Netherlands

Re: Z-wave on Ubuntu 11.10 in VM on MacMiniServer

Post by j.hoekstra »

Even after removing them first without using domotiga?
What I did(before domotiga had parameter support etc) was using and LMCE-image on vmware to set parameters and it's possible as well to make a network etc.
Or use the much simpler OZW-controlpanel, however you need to compile stuff for that as well, but it's clearly explained at their website.
I didn't have these problems(besides the higher nodenumbers) but I was able to exclude a node from S2 and then reset node to make it get a lower number.
mrqnapper
Member
Member
Posts: 234
Joined: Sat Jun 25, 2011 1:08 pm

Re: Z-wave on Ubuntu 11.10 in VM on MacMiniServer

Post by mrqnapper »

I did the removal without using Domotiga few times on a row now. So one of the nodes was removed (n10) but node 8 remains visible in the Domotiga Z-wave commander screen! One would think that, also this node might disappear after the removal from the stick?
To be sure I did well: now my AN158 has a blinking led (reading the manual that means there are no nodes included). so the resetting of the AN158 took place Right?
User avatar
RDNZL
Forum Moderator
Forum Moderator
Posts: 1008
Joined: Sun Sep 24, 2006 1:45 pm
Location: Dordrecht, The Netherlands
Contact:

Re: Z-wave on Ubuntu 11.10 in VM on MacMiniServer

Post by RDNZL »

You cannot remove a Z-Wave node from DomotiGa, well you only remove it from the devices table, but not from the Z-Wave stick, so when it re-scans it you get the node back.
In newer wrapper code (not uploaded yet) I implemented a Controller Reset command, so you can wipe the stick, and re add nodes so they start at 1 again.
Regards, Ron.
mrqnapper
Member
Member
Posts: 234
Joined: Sat Jun 25, 2011 1:08 pm

Re: Z-wave on Ubuntu 11.10 in VM on MacMiniServer

Post by mrqnapper »

Thanks for sharing this (good News) info Ron.

When will you have the newer wrapper code on-line? (since I now have arrived at node 13 already and still have nothing working, its driving me .....).
Will than adding the devices from within the Commander be possible as well? Or is taking out the stick still needed every time you want to ad new nodes?
mrqnapper
Member
Member
Posts: 234
Joined: Sat Jun 25, 2011 1:08 pm

Re: Z-wave on Ubuntu 11.10 in VM on MacMiniServer

Post by mrqnapper »

In the meantime, waiting for Ron's new wrapper code, I made an VM running Ubuntu and installed the OZW control panel: strengholt-online.nl/howto-compile-open ... on-ubuntu/
Running this showed the Aeon z-stick and the nodes included. It also enabled me to remove all the nodes form the stick (reset). Also it ensured me, that the problem is not in the working of the stick or the device I'm using, they are both fine. Also the working of the VM using the stick is no problem.

So, why can't I get them switching through Domotiga?

How can I test the switching (find out of its working or not) of the device with the use of OZW panel?
j.hoekstra
Member
Member
Posts: 255
Joined: Thu Jun 25, 2009 2:09 pm
Location: Enschede, The Netherlands

Re: Z-wave on Ubuntu 11.10 in VM on MacMiniServer

Post by j.hoekstra »

Not @ home right now, but you need to change the value. You can do this when you have the node selected and then you can select which value you want to change.
mrqnapper
Member
Member
Posts: 234
Joined: Sat Jun 25, 2011 1:08 pm

Re: Z-wave on Ubuntu 11.10 in VM on MacMiniServer

Post by mrqnapper »

@j. hoekstra thanks for the info, will have a look at it later on. In the meantime Ron did a lot of work on Domotiga and has it updated to revison 854. For me this is working out great, now the open-zwave wrapper seems to work in Domitoga. I am able to switch the AN158 device on and off. Also polling seems to work. Thanks to Ron for the great work. Now will be able to explore all the zwave possibilities i hope.
mrqnapper
Member
Member
Posts: 234
Joined: Sat Jun 25, 2011 1:08 pm

Re: Z-wave on Ubuntu 11.10 in VM on MacMiniServer

Post by mrqnapper »

Mmm. its working but I am still not very enthusiast.

1. if I switch from the commander or form the Domotiga control the zwave device "sometimes" responds and will switch on or off. Also sometimes it just won't or after pushing the on or off button several times in a row.
2. The very strange thing is, that when I switch the device itself on or off (with the button on the AN158), I see a status update in Domotiga instantly!!!
3. When I move the device further away than the less than 2mtrs I have it right now. Its not responding at all (so what up to 30 mtrs reach in house ....???)?
4. I'am still not able getting energy readings of the device in Domotiga.

Now my question is, is this normal behaviour? Or might be something wrong with the device itself? Will the reach be better when more devices are used?
Please share your experience with this (AN158 and my system, MacMini with Ubuntu in a Virtualbox, an Aeon Stick and). For now I have even more trust in the KIKA devices I have in use:), and which are much cheaper..


Thanks
Wiechert Hooghwinkel
Post Reply

Return to “DomotiGa Forum”