Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get reference_listerner to work #55

Open
chuongle opened this issue Nov 8, 2018 · 4 comments
Open

Can't get reference_listerner to work #55

chuongle opened this issue Nov 8, 2018 · 4 comments

Comments

@chuongle
Copy link

chuongle commented Nov 8, 2018

I installed z/ip gateway as the instruction. I use wireless instead of wired. I left all the ip config the default value since I don't know what to change. This is my configuration:

# Refer to zipgateway manual page in the documentation for
#  more information.

ZipUnsolicitedDestinationIp6 = fd00:4ea4:f00e:676c:ba27:ebff:fe24:6756
ZipUnsolicitedDestinationPort = 41230
ZipUnsolicitedDestination2Ip6 = fd00:4ea4:f00e:676c:ba27:ebff:fe24:6756
ZipUnsolicitedDestination2Port = 41231
#SerialLog = /tmp/ziprouter.serlog
ZipCaCert=/usr/local/etc/Portal.ca_x509.pem
ZipCert=/usr/local/etc/ZIPR.x509_1024.pem
ZipPrivKey=/usr/local/etc/ZIPR.key_1024.pem
#Eepromfile=/etc/eeprom.dat
#TunScript=/usr/local/etc/zipgateway.tun
#PVSStorageFile=/etc/provisioning_list_store.dat
#ProvisioningConfigFile=/usr/local/etc/zipgateway_provisioning_list.cfg
ZipLanGw6 = fd00:4ea4:f00e:676c::1234
#ZipPortal=192.168.1.1
#ZipPortalPort=44123
#ZipTunPrefix = 2000::
#ZipTunIp6PrefixLength = 128
#ZipManufacturerID=0
#ZipHardwareVersion=1
#ZipProductID=1
#ZipProductType=1
#ZipMBPort=41230
#ZipMBDestinationIp6=
#ZipMBMode=1
ZipPSK=123456789012345678901234567890AA
#ExtraClasses= 0x43 0x75
ExtraClasses = 0x8F 0x85 0x59 0x5A 0xF100
ZipSerialAPIPortName=/dev/ttyACM0
ZipLanIp6=fd00:aaaa::3
ZipPanIp6=fd00:bbbb::1

When I run ./reference_listener -l fd00:aaaa::3, it said Listening on fd00:aaaa::3 port 41230 but nothing return when I tried to control the device. Can you guys tell me what I'm missing?

@hanskroner
Copy link
Collaborator

The first line in your posted zipgateway.cfg file instructs zipgateway to send unsolicited traffic to fd00:4ea4:f00e:676c:ba27:ebff:fe24:6756 but you're telling reference_listener to listen for traffic on fd00:aaaa::3 - which is zipgateway's address, so this isn't right.

What you want to do is tell reference_listener to listen on the address and port you told zipgateway to send unsolicited traffic to.

@chuongle
Copy link
Author

@hanskroner Thanks for replying! I just did a fresh install zip and libzwaveip. This is my new zipgateway.cfg

ZipUnsolicitedDestinationIp6 = fd00:d27b:13b3:40f2::1234
ZipUnsolicitedDestinationPort = 55442
ZipUnsolicitedDestination2Ip6 = fd00:d27b:13b3:40f2:ba27:ebff:fe18:b5c3
ZipUnsolicitedDestination2Port = 41231
#SerialLog = /tmp/ziprouter.serlog
ZipCaCert=/usr/local/etc/Portal.ca_x509.pem
ZipCert=/usr/local/etc/ZIPR.x509_1024.pem
ZipPrivKey=/usr/local/etc/ZIPR.key_1024.pem
#Eepromfile=/etc/eeprom.dat
#TunScript=/usr/local/etc/zipgateway.tun
#PVSStorageFile=/etc/provisioning_list_store.dat
#ProvisioningConfigFile=/usr/local/etc/zipgateway_provisioning_list.cfg
ZipLanGw6 = fd00:d27b:13b3:40f2::1234
#ZipPortal=192.168.1.1
#ZipPortalPort=44123
#ZipTunPrefix = 2000::
#ZipTunIp6PrefixLength = 128
#ZipManufacturerID=0
#ZipHardwareVersion=1
#ZipProductID=1
#ZipProductType=1
#ZipMBPort=41230
#ZipMBDestinationIp6=
#ZipMBMode=1
ZipPSK=123456789012345678901234567890AA
#ExtraClasses= 0x43 0x75
ZipSerialAPIPortName=/dev/ttyACM0
ZipLanIp6 = fd00:d27b:13b3:40f2::3
ZipPanIp6 = fd00:eded:efcf:dc02::1
ExtraClasses = 0x8F 0x85 0x59 0x5A 0xF100

I ran ./reference_listener -l fd00:d27b:13b3:40f2::1234 -o 55442 then this showed up

_-------55442
PSK not configured - using default
Listening on fd00:d27b:13b3:40f2::1234 port 55442

But the same as last time, it does not show anything. Did I configure it wrong somehow?

@hanskroner
Copy link
Collaborator

hanskroner commented Nov 13, 2018

That configuration looks better. If you're not getting any traffic, I would suggest trying to ping6 the ZipLanIp6 address from where you're running reference_listener and ZipUnsolicitedDestinationIp6 from where you're running zipgateway to rule out networking issues. You could also use reference_client to connect to ZipLanIp6 and try to send commands to your Z-Wave nodes through it to verify connectivity and further rule out network issues.

Keep in mind that zipgateway will only forward unsolicited traffic to ZipUnsolicitedDestinationIp6. Traffic that is a response, for example a REPORT response answering a GET request, is not forwarded.

@anta
Copy link
Contributor

anta commented Apr 17, 2019

Hi @chuongle, are you still encountering issues with reference_listener?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants