No.11S098-03
45
STC-GE33OX/GEC33OX
Users guide Rev. 1.03
6.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)
(Dummy, 1byte)
(8bit)
Name
SOF
Device code
Read / Write
Page selection
Command
code
Data length
Data
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
E
nd
o
f the
f
rame
Result of the sending command
EOF
Receiving code
Please check from the following page.
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 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 "000000" when access to the camera function setting.
Sets (or gets) “0” when send read command.
Gets current data from the command register when sent read command.
Sets "100000" when access to the camera extend function setting.
Please check the "The camera commands list" and "Description of the camera control commands"
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),
14H: Time out error (Two seconds),
16H: Data length error (Not mach),
17H: EPPROM write error