mysmartgrid / hexabus

The HexaBus Project: An IPv6-based home automation bus. We develop both hard- and software for the future of home automation.
http://hexabus.net
49 stars 15 forks source link

ping6 works, hexaswitch -c status does not #220

Closed ChristianKniep closed 10 years ago

ChristianKniep commented 10 years ago

What am I missing? I can ping6 the hexaplug, but not ask it's status:

root@raspberrypi:~# ping6 -c1 -Iusb0 caca::50:c4ff:fe04:830E
PING caca::50:c4ff:fe04:830E(caca::50:c4ff:fe04:830e) from caca::50:c4ff:fe04:1db usb0: 56 data bytes
64 bytes from caca::50:c4ff:fe04:830e: icmp_seq=1 ttl=128 time=75.1 ms

--- caca::50:c4ff:fe04:830E ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 75.123/75.123/75.123/0.000 ms
root@raspberrypi:~# hexaswitch -Iusb0 -i fe80::50:c4ff:fe04:830E -c status
Using interface usb0
*hangs forever*

Cheers Christian

ghost commented 10 years ago

Do you have an active radvd instance for your devices as described in https://github.com/mysmartgrid/hexabus/wiki/Routing-Hexabus-packets? Also note that query and response packets may be lost, so you might have to try multiple times until you have an answer. We're working on that.

ChristianKniep commented 10 years ago

Hey myeisha,

yes I did setup the radvd instance. I used the same prefix as used in the example. As shown above the ping6 came through.

I will try again in the evening.... Thanks

ChristianKniep commented 10 years ago

hui... now it works... :) Maybe I screwed it by useing the prefix 'fe80'?

root@raspberrypi:~# hexaswitch -Iusb0 -i caca::50:c4ff:fe04:830E -c status
Using interface usb0
Info
Endpoint ID:    1
Datatype:       Bool
Value:  1

root@raspberrypi:~# hexaswitch -Iusb0 -i caca::50:c4ff:fe04:830E -c off   
Using interface usb0
root@raspberrypi:~# hexaswitch -Iusb0 -i caca::50:c4ff:fe04:830E -c on 
Using interface usb0
root@raspberrypi:~# 

Thanks, now lets try out openHAB.

Cheers from Paris Christian