No.13S080-10
61
STC-CMB200PCL / STC-CMC200PCL / STC-CMB401PCL / STC-CMC401PCL
Specifications and Users guide
7.3. The communication format
A. The sending data format from the PC to the camera is as follows:
a. Send the read command
b. Send the write command
B. The receiving data format from the camera is as follows:
a. After sent the read command
b. After sent the write command
C. Descriptions of the format
D. Example command
Send the read command to read the 00H address data of the register
02, 00, 00, 01, 00, 03
SOF, (Device code/Read/Register), Command code, Data length, Data, EOF
The return command
02, 01, 00, 03
SOF
Data length
Data
EOF
(8bit)
(8bit)
(Data length byte)
(8bit)
SOF
Device code
Read
Page selection
Command code
Data length
Data
EOF
(8bit)
(6bit)
(1bit)
(1bit)
(8bit)
(8bit)
(1byte)
(8bit)
Name
SOF
Device code
Read / Write
Page selection
Command
code
Data length
Data
The value of the data is depending on the command
Sets (or gets) the value is as “03H” always
E
nd
o
f the
f
rame
Result of the sending command
Sending data
The data length is 1 byte when send read command.
The data length is depending on the command when send write command.
EOF
Receiving code
The camera rejects other commands while the data of the EEPROM is being replaced
Please refer from the following page.
(approximately 5 msec. / byte).
Data length (Unit: byte)
The data length is depending on the command after sent read command.
Receiving data
The data length is “00H” after sent write command.
The data of the EEPROM is replaced by sent data when sent write command.
The camera sends the receiving coce as "01H" to the PC after the data of the EEPROM is replaced.
Sets (or gets) the value is as “02H” always.
Sets (or gets) “1” when send write command.
Sets “0” when access to the command register of the camera
The data of the command register is replaced by the sent data when sent write command.
The data of the EEPROM is not replaced.
Sets “1” when access to the EEPROM of the camera
The camera works with the data of the EEPROM when the power on the camera.
Gets the data from the EEPROM when sent read.
S
tart
o
f the
f
rame
Descriptions
Sets the device code of the camera is as “000000”.
Sets (or gets) “0” when send read command.
Gets current data from the command register when sent read command.
SOF
Device code
Write
Page selection
Command code
Data length
Data
EOF
(8bit)
(6bit)
(1bit)
(1bit)
(8bit)
(8bit)
(Data length byte)
(8bit)
SOF
Data length
Receiving code
EOF
(8bit)
(8bit) "00"
(8bit)
(8bit)
01H: OK (ACK),
10H: Receiving problem (NAC),
11H: Communication problem
For more information please contact Aegis Electronic Group, Inc. *(888)687-6877 *[email protected] *http://www.aegiselect.com
Aegis
Electronic
Group,
Inc.