14 | Learn more about i3TOUCH and other product in the i3 line? Visit www.i3-learning.com
3.6 RS232 Command
3.6.1 Introduction
This document is the communication protocol between the Monitor and PC Via RS232.
3.6.2 Data format
Data will be transferred serially according to RS232 protocol using the following settings.
Female DB9 DCE pin numbering and definitions: recommended communication rates are:
(higher baud rates are fine but 9600 is by far the most common and is sufficient for the
volume of data being transmitted)
Baud Rates
9600
Data Bits
8
Stop Bits
1
Parity
No
3.6.3 Data structure
Note
• All numbers shown are in the protocol description are in string unless indicated
otherwise. Percentages are shown in decimal.
General Command Form
• STX. The first character is the standard Start of Text (STX) character ‘S’.
• Address. The second character is the device address. If a device does not support
addressing, these should be 0 and 9 to act as the global address.
• Type. The third character is the command type.
TBD
• Property ID (CmdH and CmdL). The four and fifth and characters are the
property(command) identifier. By using one byte we have 256(0x00~0xFF)
• Data0~Data2. Following the sixth, seven and eight characters are the parameter data
section This parameter section contains the value
(
Decimal
)
for the property from 000~100.
• ETX1~ETX2. The last two characters are the standard End of Text (ETX) ‘EN’.
Sample:
STX
Addr
Type CmdH CmdL D2
D1
D0
ETX1
ETX0
S
0
0
0
1
0
0
1
E
N
In this example (Power On to everything), the Address character 0, which is the global address
for all devices connected to the serial port. The Type character is 0 to indicate the
transmission is a command. The Property ID characters indicate a property identifier of 1,
which in this protocol is the value for power. The Length character is a 1, which indicates that
there is one character of data associated with this command. The Data has a value of 1, which
is the value for ON. The ETX is command End code.
All manuals and user guides at all-guides.com