8
Communication Overview
Sensor Packet Breakdown
The packet transmitted by the controller contains 22 bytes of data. Below is a
breakdown of the packet:
Byte Position
Byte
0
1
2-3
4-9
10-17
18
19
20
21
Data
Type
Header ID
F. ver
MAC
User
Def.
Status
Type
Prior
state
Current
state
Chk
sum
Byte 0
is a header byte. This will always be 180 for PN series products.
Byte 1
is a transmission id. This id will increase 1 increment for each broadcast
sent by the controller. Note that this will reset after power cycle.
Bytes 2-3
indicate the controller’s firmware version. 01 00 would indicate v1.0
Bytes 4-9
indicate the WiFi module’s Mac address. Convert these bytes to
Hexadecimal bytes for Mac format.
Bytes 10-17
are user definable. This can be used for any purpose required by the
customer. These bytes can be customized under Scratch pad memory in Base
Station.
Byte 18
indicates the transmission data type. For current PN products this will be
1 indicating this is the status of contact closure inputs.
Byte 19
indicates the status of inputs prior to the input status change which
triggered this notification.
Byte 20
indicates the status of inputs after the input status change which triggered
this notification.
Byte 21
is a checksum for the whole packet. See API Codec guide which explains
how this check sum is calculated.
Chapter
4