XBee® Wi-Fi RF Modules
© 2013 Digi International, Inc. 57
Byte Offset in
Payload
Number of
Bytes
Field Name General Field Description
0 1 GPM_CMD_ID Specific GPM commands are described below
1 1 GPM_OPTIONS Command-specific option
The block number addressed in the GPM
4 2* GPM_START_INDEX The byte index within the addressed GPM block
2* GPM_NUM_BYTES
Then number of bytes in the GPM_DATA field,
or in the case of a READ, the number of bytes
8 Varies GPM_DATA
*Multi-byte parameters should be specified with big-endian byte ordering.
When a GPM command is sent to a radio via a unicast the receiving radio will unicast a
response back to the requesting radio's source endpoint specified in the request packet.
No response is sent for broadcast requests. If the source endpoint is set to the
DIGI_DEVICE endpoint (0xE6) or explicit API mode is enabled on the requesting radio
then a GPM response will be output as an explicit API RX indicator frame on the
requesting node (assuming API mode is enabled.) The format of the response is very
similar to the request packet:
Byte Offset in
Payload
Number of
Bytes
Field Name General Field Description
0 1 GPM_CMD_ID This field will be the same as the request field
1
1 GPM_STATUS
Status indicating whether the command was
successful
2 2* GPM_BLOCK_NUM The block number addressed in the GPM
The byte index within the addressed GPM block
6 2* GPM_NUM_BYTES Then number of bytes in the GPM_DATA field
8 Varies GPM_DATA
*Multi-byte parameters should be specified with big-endian byte ordering.
The following commands exist for interacting with GPM:
PLATFORM_INFO_REQUEST (0x00):
A PLATFORM_INFO_REQUEST frame can be sent to query details of the GPM structure.
Field Name Command –Specific Description
GPM_CMD_ID
Should be set to PLATFORM_INFO_REQUEST (0x00).
GPM_OPTIONS
This field is unused for this command. Set to 0.
GPM_BLOCK_NUM
GPM_START_INDEX
GPM_NUM_BYTES
GPM_DATA
No data bytes should be specified for this command.