Wireless Serial Gateway Message Structure

When a WPAN Gateway receives data from a Wireless Serial Gateway and is configured to receive multi-point data (PAD=0). Output from the WPAN Gateway will have the following format:

$PWPAN,ID,HeaderPayload*hh<CR><LF>
Where:
ID = 64-bit hex address of the device that sent the message
HeaderPayload = 3-byte header and variable length payload formatted as hex digits.

Example:

A data message from a device with a user defined ID=12 (0xC) with a sequence number of 0x47 would be formatted as:
$PWPAN,0013A20040111213,0C470050414E4943*03

In the above example 124700 would comprise the 3 byte header where 12 is a user defined device type, 47 is the message sequence number and 00 defines the packet data as “data”

Messages can be sent from the DCE device via the Gateway to the Wireless Serial Gateway device by using the following NMEA message:

$PPQ,WPAN,ID,HeaderPayload*hh<CR><LF>
Where:
ID = 64-bit hex address of the endpoint device
HeaderPayload = 3-byte header and variable length payload formatted as hex digits.

Example:

A Data packet from the DCE device destined for the Wireless Serial Gateway would be formatted:

$PPQ,WPAN,0013A20040111213,0C470041434B*21

Device Header Description

A 3 byte header is included with every $PWPAN message. The structure of this header is:

Byte 1 = Device Type
Byte 2 = Sequence Number
Byte 3 = Packet Type
List of device and payload types currently supported

Device Type (HEX) Description
0 Gateway
1 Man Down Pendant
3 EVDT (OBDII,J1939)
4 Marine Asset Tracker/Boom Tracker
10 PAD - Loopback
11 PAD - J1708/J1587
12-20 Reserved for other PAD devices (RTU,etc)
254 Range Extender for Man Down Pendants


Packet Type (HEX) Description
0 Data
1 Registration
2 Diagnostics
16 Raw data, no 3-byte header
254 Encapsulated packet