ZWave Debugging
Micasaverde (Talk | contribs) (New page: Here are some hints on debugging ZWave protocol issues. First, check the box "verbose logs" under Advanced, Logging, or, from a console comment out the LogLevels in /etc/cmh.conf and run ...) |
Micasaverde (Talk | contribs) |
||
Line 6: | Line 6: | ||
/usr/bin/MessageSend localhost 0 20 1 191 9 "x26 x1 50" | /usr/bin/MessageSend localhost 0 20 1 191 9 "x26 x1 50" | ||
+ | |||
+ | ask node 4 (a thermostat) to report it's temperature: "0 0x13 0x4 0x2 0x40 0x2 5 1" |
Revision as of 20:47, 23 January 2009
Here are some hints on debugging ZWave protocol issues. First, check the box "verbose logs" under Advanced, Logging, or, from a console comment out the LogLevels in /etc/cmh.conf and run /usr/bin/VerboseLogging.sh enable. Next, if you want to turn off automatic polling, temporarily for this session so the logs aren't cluttered with polling traffic, do: /usr/bin/MessageSend localhost 0 9 1 966 5 0 (assuming the ZWave device is #9, as default).
Next you can send "COMMAND: #191 - Send Code" to either a ZWave Node and the parameter 9 (Text) is a command, or send it to the zwave device and it is a frame. The contents of text are a string of hex or decimal numbers separated with spaces dashes or underscores, and hex values are preceded with 0x or x. So assuming a dimmable light is device 20 is node 15, either command below will dim it to 50%:
/usr/bin/MessageSend localhost 0 9 1 191 9 "0 x13 15 0x3 0x26 0x1 50 4 1" #send data to node 15 command class 0x26 command 0x1 (set multi level) to 10% (size=3) with transmit options=4 and funcid=1
/usr/bin/MessageSend localhost 0 20 1 191 9 "x26 x1 50"
ask node 4 (a thermostat) to report it's temperature: "0 0x13 0x4 0x2 0x40 0x2 5 1"