APPENDIX 1. -- RS-232 Protocol
1.Setup
1.1Use Null Modem cable (The standard
1
RX 2
TX 3
4
GND 5
6
RTS 7
CTS 8
9
1
2 RX
3 TX
4
5 GND
6
7 RTS
8 CTS
9
1.2Set the
1.3Set communication parameters: 9600 bps, No Parity, 8 Data Bits, 1 Stop Bit.
2. Communication Protocol:
2.0 General Command Format
<Lead Code = 0x41>, <Main category >, <Second category >, {<Number of parameters>, <Parameter 1>, <Parameter 2> ..,} <End Code= 0x4f>
Lead Code | = 0x41 |
|
Main Category | = 0x01 | Keys and Signals |
=0x02 Command
Second Category = 0x01 Handshake
=0x02 Request Time/Set Time
=0x05 Request System State
End Code | = 0x4f |
The different command types and their corresponding parameters are as follows:
41