libzwaveip icon indicating copy to clipboard operation
libzwaveip copied to clipboard

AddNode doesn't work

Open mitsus opened this issue 8 years ago • 7 comments

I try to add/remove node using libzwaveip (...usinbg reference_client example). I type

(ZIP)addnode ...but from my zwavesniffer i don't see packages (while if using pyzip add node function) it work....while?

Thanks a lot

mitsus avatar Feb 22 '17 09:02 mitsus

Please provide packet traces of

  1. succesful add node with pyzip
  2. failing add node with reference_client

Also make sure to start the packet captures before pyzip and reference_client is started. Otherwise we won't be able to decrypt the DTLS sessions.

jburon-sigma avatar Mar 03 '17 07:03 jburon-sigma

pyzip_sniff.zip reference_client_sniff.zip

Hi @jburon-sigma , please see attached wireshark packet traces from client end server (pyzip and reference_client)

Please see that with pyzip I'm able to add a node, but with reference_client i'm not able to see any packet from client to server after connection and handshake.

Thanks a lot

mitsus avatar Mar 06 '17 10:03 mitsus

It looks like the reference_client DTLS session is established properly and then closed 3 seconds later.

Can you post the console output from reference_client? Do type the quit command after 3 seconds? An addnode command before that?

jburon-sigma avatar Mar 09 '17 15:03 jburon-sigma

Hi @jburon-sigma, please see attached

screenshot

LibZwaveIp_github_issue.zip

I executed these series of command from reference_client:

  • Connection [OK]
  • list [OK]
  • send "Switch Binary [c4882ee02100]" COMMAND_CLASS_SWITCH_BINARY SWITCH_BINARY_SET ff [OK]
  • send "Switch Binary [c4882ee02100]" COMMAND_CLASS_SWITCH_BINARY SWITCH_BINARY_SET 00 [OK]
  • addnode [Doesn't Work] (On Zniffer i see only another package send, but I'm not able to see Zwave host that listen for incoming connections)

mitsus avatar Mar 09 '17 16:03 mitsus

Hi @mitsus

you problem is not entirely clear, I am not certain what is meant by "On Zniffer i see only another package send, but I'm not able to see Zwave host that listen for incoming connections"

Are you talking about the Z-wave sniffer looking like this: image

If so, I am not certain what is meant by "I'm not able to see Zwave host that listen for incoming connections". A Z-wave node does not annonce it self on Z-wave unless it is in learn mode. The Zniffer trace would be very helpful to understand what you are seeing.

Xrlls avatar Mar 22 '17 07:03 Xrlls

Hi @mitsus, I just saw the attachments of Zniffer trace and Pcap on your earlier post.

The image attached says that you are running Z/IP Gateway on a beaglebone. Could you possibly state the exact version of Z/IP Gateway.

If possible please provide the console output, showing all output from when the gateway is started.

Xrlls avatar Mar 22 '17 10:03 Xrlls

@mitsus Does this issue still persist for you?

anta avatar Aug 08 '18 12:08 anta