Data validation, Data description, System parameter definition response packet – Lexicon DC-2 User Manual
Page 17

Lexicon, Inc.
DC-2/MC-1 Serial Communications Protocol
Printed on: 10/19/00
17 of 44
Max:
Set by the System Parameter Count in the “Unit Configuration Packet”.
7.3.7.3 Data Validation:
The ParamId must be a valid parameter number. If it is not the DC-2/MC-1 will respond with a NAK
packet and error code DC_ERR_ INVALID_PARAM_NUMBER.
7.3.7.4 Get System Parameter Definition by Name Command Packet
Application Header:
Command
DC_CMD_GET_SYS_PARAM_BY_NAME
0x19
Data Count
strlen(ParamName) + 1
nn
Application Data:
Data[0]-Data[DataCount-1] ParamName
ch ch ch … 0x00
7.3.7.5 Data Description
ParamName:
Data Type:
Null(0x00) terminated ASCII character string.
Max Length:
PARAM_NAME_LENGTH defined in Appendix E Protocol Constants.
7.3.7.6 Data Validation:
The ParamName must be a valid Parameter name. If it is not the DC-2/MC-1 will respond with a NAK
packet and error code DC_ERR_ INVALID_PARAM_NAME.
7.3.7.7 System Parameter Definition Response Packet
This packet describes the defining information for a given system parameter.
Application Header:
Command
DC_RESP_SYS_PARAM_DEF
0x83
Data Count
3 + strlen(ParamName) + 1
nn
Application Data:
Data[0]
ParamId
nn
Data[1]
MaxValue
nn
Data[2]
Value
nn
Data[3]- Data[DataCount-1]
ParamName
ch ch ch … 0x00
7.3.7.8 Data Description
ParamId:
The Integer Id assigned to this system parameter.
Data Type:
Unsigned 8 bit integer
Max:
Set by the System Parameter Count in the “Unit Configuration Packet”
MaxValue:
Maximum Value allowed for this system parameter.
Data Type:
Unsigned 8 bit integer
Max:
255
Value:
The Current Value for this system parameter.
Data Type:
Unsigned 8 bit integer
Max:
MaxValue(in this Packet)
ParamName:
Data Type:
Null(0x00) terminated ASCII character string.
Max Length:
PARAM_NAME_LENGTH defined in Appendix E Protocol Constants.