Copyright 2019 ID TECH. All rights reserved.
Document Number: 80145503-001
Page 15 of 32
Note that the LRC comes at the end and represents the XOR of all preceding byte values including STX
and ETX.
8.2.
NGA Protocol Format
<STX><CLenL><CLenH><Command_Body/Response_Body/Notification/Output
Body/Input Body>…<LRC> <CheckSum><ETX>
•
Function Command
Command Format:
<TaskID><F><Command>…
Response:
If valid command and no problem during execution
<ACK>[<Response>]…
Otherwise
<NAK><ErrorCode1>][<ErrorCode2>
•
Setting Command
Command Format:
<TaskID> <S> <00>
or
<TaskID><S><NoFunc><FuncBlock>
Where:
•
<TaskID> <S> <00>
means Default the Task
•
<All (0x7F)> <S> <00>
means Default All
•
<NoFunc>
is number of function blocks to set in a task. Now only support
<NoFunc> = 1
•
<FuncBlock>
has the following format of
<FuncID><Len><FuncData>
•
<FuncID>
is a one byte Property ID.
•
<Len>
is a one byte length count for a setting
<FuncData>
.
•
<
FuncData>
is a setting for a property.
Response:
If valid command and no problem during execution
<ACK>
Or (fail)
<NAK><ErrorCode1><ErrorCode2>
For setting command, reader will scan command first and send back error codes if it found any
error(s), and do setting if no error has been found.
<Unknown ID in Setting/Review list> (1600)
and
<Setting value out of
range> (1400)
will be treated as warning. i.e.: Do setting for other properties but skip setting for
those properties which have warning. Warning will be sent to host.
•
Host Review Command
Command Format:
<TaskID><R><00>
or