I get "Initialization status:255" when I test bin_switch example (running on my raspberry pi 2B) under zwportal/src/zwave/hcapi. The followings are settings in my app.cfg. I am sure zipgateway (also running on my raspberry pi) uses 10.15.8.62 as IPv4 address because my PC controller has no problem to connect to it.
# Host listening and sending port ZipLanPort = 0 #ZipLanPort = 2233 # Z/IP gateway IPv4 or IPv6 address #ZipRouterIP = 10.40.12.87 ZipRouterIP = 10.15.8.62 #ZipRouterIP = fd00:aaaa::3 #DebugZipIpv4Disable=1 # DTLS pre-shared key (PSK) in hexadecimal string with maximum string length of 64 (i.e. 32 hexadecimal bytes). # Note: string length must be multiple of 2 and must be at least 32. If this field is empty, no DTLS will be used # Example of PSK with string length of 10 : 03A1B2C3FF #DTLSPSK = DTLSPSK = 123456789012345678901234567890AA
So, what am I doing wrong and how can I fix this issue?
Sorry for the late response. Not sure if you are able to successfully run the Binary Switch demo now or not.
The Gateway IP can be seen by using the Avahi daemon:
$ sudo apt-get install avahi-utils
$ avahi-browse _z-wave._udp -r
Also, the Gateway Discovery sample application can be used to check the current IP address using following command, use -4 option for IPv4.