Processing Forum
Packet Format
The packet interface commands are sent in packets of data, each packet must conform to the
following protocol:
[Header Byte],[Packet Count],[n Bytes of Data.....],[Check Sum]
Header Byte = 0x7e
Packet Count = Data bytes excluding Header Byte, Packet Count & Check Sum
Check Sum = 0xff – (8 bit sum of all data bytes)
PIP Modes 0 & 1
There are two PIP modes defined by the “PIP” command in the HexEngine configuration menu
In mode 0, packets are sent as above, as long as the data is not too segmented, this protocol
will usually suffice for most applications, also in mode 1, data packets are a fixed length which
makes packet reception coding easier.
Any help would be much appreciated.