16
Command code consists of a single character. See below for complete description of all
available commands.
Data packets start with the STX character and end with ETX character.
ETX character is followed by the BCC byte.
DATA FORMAT
STX
ETX
BCC
1 ch.
Data characters
1 ch.
1 ch.
BCC byte is a result of consecutive XOR operations on all data packet bytes excluding
STX, ETX and BCC byte itself. It is important to realize that BCC byte can contain
any
value
from 00H to FFH
.
When designing PC software, be sure to distinguish between BCC byte
and control characters.
In many cases, reception of data must be acknowledged by the receiving side. This is
done by sending the ACK character. In case the receiving side does not accept the data
(for whatever reason), the NAK character may be sent to request retransmission.
Summarized below are all supported commands:
COMMAND INDEX TABLE
Command
ASCII
Description
„S‟
53H
Set date/time
„T‟
54H
Get date/time
„I‟
49H
Download log database data
„D‟
44H
Initialize (clear) log database
„M‟
4DH
Prepare to recover log database data
„A‟
41H
Get total number of records in log database
„P‟
50H
Set Machine ID
„Q‟
51H
Get Machine ID
„V‟
56H
Get firmware version
„Z‟
5AH
Invoke Test mode
„O‟
4FH
Power down (go into Sleep)
„F‟
46H
Login EEPROM Test Mode
„X‟
58H
ISP Mode