Перейти до вмісту

EXT0001: Device Parameters

Цей контент ще не доступний вашою мовою.

  • Extension dependencies: none
  • Document status: Approved (2020-02-01)

This extension describes reading and setting device parameters (setpoints/settings). Parameters are stored in persistent memory. To optimize work with many records and eliminate intermediate states, the extension supports transactions—changes are saved in RAM first, then written to permanent memory when the transaction completes.

Read a block of parameters from persistent memory.

Request:

<TID> 3900 <LEN> 0002 <SOURCE> [( <OFFSET> <BLOCKLEN> ) ...]

If OFFSET and BLOCKLEN are not specified, returns maximum data without offset. Multiple pairs can be specified for multiple blocks in response.

Response:

<TID> 3900 <LEN> 0002 (<BLOCKDATA>) ...
FieldLengthDescription
SOURCE1 byteData source
OFFSET2 bytesOffset in parameter structure
BLOCKLEN2 bytesBlock length
BLOCKDATABLOCKLENParameter block bytes

Errors:

CodeDescription
0010Incorrect SOURCE
0011Reading out of bounds
0012Response overflow
0013ROM read error

Write parameters and manage transactions.

When initialized, the device allocates RAM for the parameter structure and copies from permanent memory. Changes accumulate in RAM. Device keeps the structure for at least 10 seconds. On transaction completion (TRCON = 2), changes are written to permanent memory.

Request:

<TID> 3900 <LEN> 0003 <SOURCE> <TRCON> [( <OFFSET> <BLOCKLEN> <BLOCKDATA> ) ...]

Response:

<TID> 3900 0002 0003
FieldLengthDescription
SOURCE1 byteData source
TRCON1 byteTransaction control: 0=start new, 1=continue, 2=commit
OFFSET2 bytesOffset in parameter structure
BLOCKLEN2 bytesBlock length
BLOCKDATABLOCKLENParameter block bytes

Errors:

CodeDescription
0010Incorrect SOURCE
0011Writing out of bounds
0012ROM write error
0013ROM resource expired
0014RAM error (can’t allocate)
0015Transaction aborted by another connection
0016Transaction timeout
0017Attempting to continue completed transaction