No.11S031-03
23
STC-CL500E/CLC500E
Users guide Rev. 1.3
4.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
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
Gets the data from the EEPROM when sent read.
Start of the frame
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.
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.
EOF
Receiving code
The camera rejects other commands while the data of the EEPROM is being replaced
Please check the details for the command code from the next 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.
Sending data
The data length is 1 byte when send read command.
The data length is depending on the command when send write command.
The value of the data is depending on the command
Sets (or gets) the value is as “03H” always
End of the frame
Result of the sending 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