Download User Manual

Transcript
12.2.6 Block Check Character (BCC)
The BCC is used to detect transmission errors. The BCC is calculated XOR-ing each
byte of the transmission frame excluding the STX/BCC and ETX characters. The
flags are part of the data.
BCC = ( StatID) XOR ( Length) XOR (Command / Data 0 ) XOR ... XOR (Command / Data N )
12.2.7 ETX
End of transmission. (03h)
12.2.8 Remarks
If the reader device receives an invalid instruction frame (i.e. wrong BCC) or the
requested station ID does not match the internal ID of the reader, the command is
not executed. The reader waits for the next valid frame.
The automatic binary time-out (see protocol configuration register) is used to detect
incomplete binary frames.
12.2.9 Examples:
02h
64h
01h
78h
1Dh
03h
STX
Station ID
Length
‘x’
BCC
ETX
This instruction frame will reset the reader module with the station ID 64h.