Z-WavePublic / libzwaveip

libzwaveip - Control Z-Wave devices from your IP network
Apache License 2.0
75 stars 24 forks source link

AddNode doesn't work #11

Open mitsus opened 7 years ago

mitsus commented 7 years ago

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

jburon-sigma commented 7 years ago

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.

mitsus commented 7 years ago

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

jburon-sigma commented 7 years ago

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?

mitsus commented 7 years ago

Hi @jburon-sigma, please see attached

screenshot

LibZwaveIp_github_issue.zip

I executed these series of command from reference_client:

Xrlls commented 7 years ago

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 commented 7 years ago

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.

anta commented 6 years ago

@mitsus Does this issue still persist for you?