Data collector format: packet structure

Applicable receivers:  All receivers

Every command and report packet, regardless of its source and except for protocol sequences, has the same format as shown in the following table.

Byte #

Message

Description

Begin packet header

0

STX (02h)

Start transmission

1

STATUS

Receiver status code

2

PACKET TYPE

Hexadecimal code assigned to the packet

3

LENGTH

Single byte # of data bytes, limits data to 255 bytes

Begin packet data

4 to length

DATA BYTES

Data bytes

Begin packet trailer

Length + 4

CHECKSUM

Sum bytes (status + type + length + data bytes) and modulo 256 the summation

Length + 5

ETX (03h)

End transmission