mysmartgrid/hexabus — Issue #44: libhexabus doesn't fly on ARM
Author: gonium
Created: 2011-12-25 13:44:39+00:00
State: open

The libhexabus doesn't parse files correctly on the ARM architecture. Example on my QNAP 219P NAS:

$ uname -a
Linux datenfriedhof 2.6.30-2-kirkwood #1 Sun Sep 27 22:57:55 UTC 2009 armv5tel GNU/Linux

Hexaswitch reports (including some of my debugging lines):

$ ./build/src/hexaswitch beef::50:c4ff:fe04:8335 power
hexaswitch -- command line hexabus client
libhexabus version 0.4.0
received raw: HX0B
Packet type: 1
Data type: 3
Hexabus Packet:	Yes
CRC Okay:	Yes
Datatype:	(unknown)Endpoint ID:	0
Value:	(unknown)0

The socket can be switched w/o any problems. I assume this is due to different endian on the ARM plattform.