Digi XLR PRO User Manual page 118

Radio frequency (rf) module
Hide thumbs Also See for XLR PRO:
Table of Contents

Advertisement

Advanced application features
Field name
GPM_BLOCK_NUM
GPM_START_INDEX
GPM_NUM_BYTES
GPM_DATA
ERASE_RESPONSE (0x81)
When an ERASE command request has been unicast to a node, that node sends a response in the
following format to the source endpoint specified in the requesting frame.
Field name
GPM_CMD_ID
GPM_STATUS
GPM_BLOCK_NUM
GPM_START_INDEX
GPM_NUM_BYTES
GPM_DATA
Example
To erase flash block 42 of a target radio with serial number of 0x0013a200407402ac format an ERASE
packet as follows (spaces added to delineate fields):
7E 001C 11 01 0013A200407402AC FFFE E6 E6 0023 C105 00 C0 01 00 002A 0000 0200 37
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 81 00 002A 0000 0000 39
WRITE (0x02) and ERASE_THEN_WRITE (0x03)
The WRITE command writes the specified bytes to the specified GPM location. Before writing bytes to
a GPM block, make sure all the bytes have first been erased. The ERASE_THEN_WRITE command
performs an ERASE of the entire GPM block specified with the GPM_BLOCK_NUM field prior to doing a
WRITE.
XLR PRO Radio Frequency (RF) Module User Guide
Command-specific description
Set to the index of the GPM block that should be erased. When
erasing all GPM blocks, this field is ignored (set to 0).
The ERASE command only works on complete GPM blocks. The
command cannot be used to erase part of a GPM block. For this
reason GPM_START_INDEX is unused (set to 0).
Setting GPM_NUM_BYTES to 0 has a special meaning. It indicates
that every flash block in the GPM should be erased (not just the
one specified with GPM_BLOCK_NUM). In all other cases, the
GPM_NUM_BYTES field should be set to the GPM flash block size.
No data bytes are specified for this command.
Command-specific description
Should be set to ERASE_RESPONSE (0x81).
A 1 in the least significant bit indicates an error occurred. All
other bits are reserved at this time.
Matches the parameter passed in the request frame.
Matches the parameter passed in the request frame.
The number of bytes in the GPM_DATA field. For this command,
this field will be set to 0.
No data bytes are specified for this command.
General Purpose Flash Memory
118

Advertisement

Table of Contents
loading

Table of Contents