HexaBus

Home automation with enabled IPv6 RF communication. Schematics available and open source software: https://github.com/mysmartgrid/hexabus

USB stick network bridge device: switch device on/off, get power consumption and some status/device information
Plug single power outlet: device on/off
Plug+ single power outlet: device on/off, power consumption

Plug(+) Doku https://github.com/mysmartgrid/hexabus/wiki/HexaBus-Plug

address location device
fe80::50:c4ff:fe04:823b k├╝che, power outlet on the refrigerator Plug+
fe80::50:c4ff:fe04:81d0 maxi Plug+
fe80::50:c4ff:fe04:839f wipp, corner Plug+
fe80::50:c4ff:fe04:824d wipp, table Plug+
fe80::50:c4ff:fe04:8410 labor, power outlet Plug+
fe80::50:c4ff:fe04:8185 noc: transrapid, switch, modem?, xenu (brezn, ..) Plug+ without device on/off
fe80::50:c4ff:fe04:8240 free Plug+
fe80::50:c4ff:fe04:82d8 free Plug+
fe80::50:c4ff:fe04:825f free Plug+
fe80::50:c4ff:fe04:8420 free Plug+
fe80::50:c4ff:fe04:8152 free Plug
fe80::50:c4ff:fe04:8315 free Plug
fe80::50:c4ff:fe04:8119 free Plug
fe80::50:c4ff:fe04:81f9 free Plug
fe80::50:c4ff:fe04:82ca free Plug
fe80::50:c4ff:fe04:81e9 free Plug
fe80::50:c4ff:fe04:833b free Plug
fe80::50:c4ff:fe04:836f free Plug
fe80::50:c4ff:fe04:8453 free Plug
fe80::50:c4ff:fe04:813a free Plug
fe80::50:c4ff:fe04:020d free USB stick
fe80::50:c4ff:fe04:0244 free USB stick
fe80::50:c4ff:fe04:0223 free USB stick
fe80::50:c4ff:fe04:02b3 uberstar USB stick
fe80::50:c4ff:fe04:0211 free USB stick

After building libklio, hexaswitch. Quickstart guide.

uberstar:~# dmesg
[38141.996299] usb 2-1: new full-speed USB device number 17 using uhci_hcd
[38142.225191] cdc_ether 2-1:130.0: usb0: register 'cdc_ether' at usb-0000:00:1d.0-1, CDC Ethernet Device, 02:50:c4:04:02:b3
[38142.227062] cdc_acm 2-1:130.2: ttyACM0: USB ACM device
uberstar:~# ip link show usb0
27: usb0: <BROADCAST,MULTICAST> mtu 1284 qdisc noop state DOWN qlen 1000
    link/ether 02:50:c4:04:02:b3 brd ff:ff:ff:ff:ff:ff
uberstar:~# ip link set usb0 up
uberstar:~# ip link show usb0
27: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1284 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 02:50:c4:04:02:b3 brd ff:ff:ff:ff:ff:ff
uberstar:~# ping6 -c1 -Iusb0 fe80::50:c4ff:fe04:2b3
PING fe80::50:c4ff:fe04:2b3(fe80::50:c4ff:fe04:2b3) from fe80::50:c4ff:fe04:2b3 usb0: 56 data bytes
64 bytes from fe80::50:c4ff:fe04:2b3: icmp_seq=1 ttl=64 time=0.051 ms
--- fe80::50:c4ff:fe04:2b3 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.051/0.051/0.051/0.000 ms
uberstar:~# ping6 -c1 -Iusb0 fe80::50:c4ff:fe04:8185
PING fe80::50:c4ff:fe04:8185(fe80::50:c4ff:fe04:8185) from fe80::50:c4ff:fe04:2b3 usb0: 56 data bytes
64 bytes from fe80::50:c4ff:fe04:8185: icmp_seq=1 ttl=64 time=103 ms
--- fe80::50:c4ff:fe04:8185 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 103.266/103.266/103.266/0.000 ms
uberstar:~# /usr/local/bin/hexaswitch fe80::50:c4ff:fe04:8185 status
hexaswitch -- command line hexabus client
libhexabus version 0.4.0
Hexabus Packet:	Yes
CRC Okay:	Yes
Datatype:	Bool
Endpoint ID:	1
Value:		1
uberstar:~# /usr/local/bin/hexaswitch fe80::50:c4ff:fe04:8185 power
hexaswitch -- command line hexabus client
libhexabus version 0.4.0
Hexabus Packet:	Yes
CRC Okay:	Yes
Datatype:	Uint32
Endpoint ID:	2
Value:		285
uberstar:~#

Everybody get on the Hexabus!!

  • hexabus.txt
  • Last modified: 2021/04/18 12:35
  • (external edit)