NED
SUCL2025T3
UME-0017-08
22
4 Camera Control
The camera can be controlled through serial communication. Two methods can be used
to change the camera
’s parameters. The first approach is to change parameters using
NCCtrl02 (Camera control software). (See
“8 NCCtrl”.) Or you can also change the
parameters directly from your application by using binary read/write commands to set
values in the camera register.
The camera can be used without the serial interface after it has been set up correctly.
4.1 Flow of Camera Control
4.1.1 Command Overview
The serial interface uses a simple ASCII-based command.
Communication begins when the computer sends control commands to the camera.
The camera receives and interprets the computer commands and then executes control
operation accordingly.
Transmission ends when the camera returns the analyzed results of control commands to
the computer.
Always allow the previous transmission to end before starting the next transmission. (Only
one command can be sent per transmission.)
4.1.2 Command Format (PC to Camera Transmission)
Format 1 CMD
VAL1 CR
CMD: Control text (1 Byte)
CR:
Carriage Return (0x0D fixed)
VAL: Setting value (decimal, 1 Byte x maximum 4 digits)
*If you don
’t have a set value, it is not required.
<Example>
r0 CR
4.1.3 Reply Format (Camera to PC Transmission)
Format 1
>R CR >[SB] CR EOT
Format 2 (for
“r0” command) >OK CR >[MEM] CR > r0 CR EOT
> :
Results start text (0
3E fixed)
R:
Camera receive command analyzed results
[SB] :
Camera receive command send back
[MEM] :
Memory data readout value
CR:
Separated text (0
0D)
EOT:
Send command all text End text (0
04)
<Example>
>OK CR >r 0 CR EOT