No. 13S054-10
STC-HD203DV / STC-HD203DV-CS / STC-HD203SDI / STC-HD203SDI-CS
Product Specifications and Users Guide
34/78
7 The communication protocol specifications
7.1 Communication settings
Setting Value
Baud rate 9,600 bps / 19,200 bps / 38,400 bps (Default)
Data bit 8 bits
Parity None
Stop bit 1 bit
Flow control None
7.2 Communication format
The format for the sending / receiving data between the PC and the camera is in below:
SOF
8bits
Command
8bits
Direction
1bit
Data length
15bits
Data
[Data length] byte
(Variable)
Check sum
8bits
EOF
8bits
Details for the format
Details
SOF Start of the Frame. This value is always “0x02”.
Command Command Code Refer to: "The Camera Control Command"
Direction "0": Reading or receiving data from the camera is always a "0" value.
"1": Writing or sending data to the camera is always a "1" value.
Note: This value is always "0" when the Camera responds.
Data length This "Data Length" value tells how many bytes the "Data" will contain.
The "Data Length" must be specified in bytes.
Data This field is for option, set value and/or acquired value.
The size must be specified as "Data Length".
Check sum The "Check sum" functions to verify the integrity of the communication transmission.
The "Check sum" value should equal the last (low) 8 bits of the summary of
["Command" + "Direction" + "Data Length" + "Data"].
If this value of "Check sum" does not match with last (low) 8 bits of the summary data of
["Command" + "Direction" + "Data Length" + "Data"],
the camera will generate the error message: "Check Sum Error".
EOF End of the Frame. This value is always "0x03".