
General purpose flash memory
XLR PRO Radio Frequency (RF) Modem User Guide
67
Example:
A PLATFORM_INFO_REQUEST sent to a radio with a serial number of 0x0013a200407402AC should be formatted as
follows (spaces added to delineate fields):
7E 001C 11 01 0013A200407402AC FFFE E6 E6 0023 C105 00 00 00 00 0000 0000 0000 24
Assuming all transmissions were successful, the following API packets would be output the source node's serial
interface:
7E 0007 8B 01 FFFE 00 00 00 76
7E 001A 91 0013A200407402AC FFFE E6 E6 0023 C105 C1 80 00 0077 0200 0000 EB
•
ERASE (0x01):
The ERASE command erases (writes all bits to binary 1) one or all of the GPM flash blocks. The
ERASE command can also be used to erase all GPM blocks by setting the GPM_NUM_BYTES field to 0.
•
ERASE_RESPONSE (0x81):
When an ERASE command request has been unicast to a node, that node will send a
response in the following format to the source endpoint specified in the requesting frame.
Field name
Command-specific description
GPM_CMD_ID
Set to PLATFORM_INFO (0x80).
GPM_STATUS
A one (1) in the least-significant bit indicates an error occurred. All other bits are reserved.
GPM_BLOCK_NUM
Indicates the number of available GPM blocks.
GPM_START_INDEX
Indicates the size, in bytes, of a GPM block.
GPM_NUM_BYTES
Number of bytes in the GPM_DATA field. For this command, this field is set to 0.
GPM_DATA
No data bytes should be specified for this command.
Field name
Command-specific description
GPM_CMD_ID
Set to ERASE (0x01).
GPM_OPTIONS
At present, there are no defined options for the ERASE command. Set this field to 0.
GPM_BLOCK_NUM
Set to the index of the GPM block to erase. When erasing all GPM blocks, this field is
ignored (set to 0).
GPM_START_INDEX
The ERASE command works on entire GPM blocks only—the command cannot be used to
erase part of a GPM block. For this reason, set GPM_START_INDEX to 0 (unused).
GPM_NUM_BYTES
Set the GPM_NUM_BYTES to 0 to erase all GPM flash blocks or set GPM_NUM_BYTES to the
GPM flash block size.
GPM_DATA
No data bytes should be specified for this command.
Field name
Command-specific description
GPM_CMD_ID
Set to ERASE_RESPONSE (0x81).
GPM_STATUS
A one (1) in the least-significant bit indicates an error occurred. All other bits are
reserved.
GPM_BLOCK_NUM
Matches the parameter passed in the request frame.
GPM_START_INDEX
Matches the parameter passed in the request frame.