VCC-16MV02
Rev.905-0163-00
©2018 CIS Corporation. All rights reserved.
25
9.
Serial Communication Function
Via camera link serial communication function, the camera can be controlled.
(1)
The settings for serial communication
Baud rate
9,600bps
or
115,200bps
Data
8bit
Stop bit
1bit
Parity
None
XON/XOFF
Not controlled
(2)
Control Code
・
The control code conforms to ASCII code.
・
A control code consists of command, parameter and CR (0Dh). Changing the camera setting or acquiring the
setting information can be done by issuing commands from PC.
Command
Parameter 1
Parameter 2 ~ 7
Function
GU
Address
Data 1
Obtain setting information
SU
Address
Data
Change camera settings
INIT
None
None
Restore to the factory settings
SAVE
None
None
Save the camera settings
GSI
1
None
Acquire its model name
As to the address and the data details, please refer to the
Section 5. “Camera Function settings”
(3)
How to set a command
・
Input a command in capital letters.
・
Separate between a command and a parameter by one space.
・
From the head of input character to the linefeed code [¥r]or[¥n] is analyzed as one command.
・
Parameter with 0x shall be analyzed by hexadecimal and parameter as it is shall be analyzed by decimal.
・
No decimal fraction or alphabet shall be input.
・
The identifiable letters from the head are to be analyzed.
・
The returned command from the PC will be received by the camera, and then echoed back.
・
Section 5. “Camera Function settings”
for the details on address and data.
・
Do not input any values or letters other than the commands specified above and those mentioned in the
Section 5. “Camera Function settings”
・
Do not issue the next command until the prompt, which shows the completion of the prior command is shown.
(4)
Setting Examples
【
Example of Get Command
】
To get the information of the address 21
[Send]
GU[sp]21[¥r] or[¥n]
[Returned value] 50[¥r] [¥n]
[Acquired data + Linefeed]
[Returned value] [¥r] [¥n]
[Linefeed]
[Returned value] >[sp]
[ Space]
【
Example of Set Command
】
To set 30 to the address 21
[Send]
SU[sp]21[sp]30[¥r]or[¥n]
[Returned value] [¥r] [¥n]
[Linefeed]
[Returned value] >[sp]
[ Space]
[¥r]=CR(0x0D)
[¥n]=LF(0x0A)
[sp]=Space(0x20)