SeaTrac Serial Command Interface Reference
Page 72
7.2.2.
CID_PROG_BLOCK
Once the CID_PROG_INIT command has been sent and accepted successfully by the beacon
(returning a STATUS code of CST_OK), the CID_PROG_BLOCK command is then sent
repeatedly to transfer each DATA node found in the FWX file under the required TARGET node.
Data in the FWX file is encoded in ASCII-HEX pairs, so for a DATA node length attribute of 64,
there will 128 ASCII-HEX characters.
A CID_PROG_BLOCK command should be sent for each DATA node in sequence, and a valid
STATUS code should be received back from the beacon before sending the next block.
Command Message Parameters
Parameter Type Description
MSG_ID
Command identification code (CID_PROG_BLOCK)
DATA_LENGTH
UINT16
The number of bytes that will follow in this
message.
DATA
UINT8[x]
An array of data bytes read from the relevant DATA
node in the FWX file, where “x” is the number of
bytes specified by DATA_LENGTH.
Response Message Parameters
Parameter Type Description
MSG_ID
Command identification code (CID_PROG_BLOCK)
STATUS
Status code used to indicate if the command
executed successfully.
Valid values are…
CST_OK – The command was performed
successfully and the next
CID_PROG_BLOCK command can be sent.
CST_CMD_PARAM_MISSING – One or more
of the command parameters is formatted
incorrectly.
CST_CMD_PARAM_INVALID – The length of
data specified if too large.
CST_PROG_FLASH_ERROR – A problem
with flash memory is preventing
programming.
CST_PROG_INIT_ERROR – There beacon
has not initialised programming, send a
command and get a valid
CST_OK response.
CST_PROG_LENGTH_ERROR – The amount
of data sent has exceeded the amount of
Содержание seatrac X100 Series
Страница 2: ......
Страница 6: ...SeaTrac Serial Command Interface Reference Page 6...
Страница 139: ......