23
NED
XCM8085DLMT8
UME-0060-04
4 Camera Control
The camera can be controlled through the serial communication. Two methods can
be used to change the camera
’s parameters. The first approach is to change
parameters using CLISBeeCtrl (Camera control software). (See
“8 CLISBeeCtrl”.) Or
you can also change the parameters directly from your application by using serial
communication commands to set values in the camera register.
Once the camera has been set up according to your requirements, the camera can
be used to read data without need of controlling it via the serial interface.
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 operations accordingly.
Transmission ends when the camera returns the analyzed results of the 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 Camera Receiving Message (PC Sending Command)
Format 1
CMD CR
Format 2
CMD
□
VAL 1 CR
Format 3
CMD
□
VAL 1
□
VAL2 CR
Format 4
CMD
□
VAL 1
□
VAL2
□
VAL3 CR
CMD
:
Control text (3 Bytes) Use 3 lowercase letters only. No numerals allowed.
CR
:
Carriage Return (0x0D)
□
:
Space (0x20) or Comma (0x2C)
VAL
:
Setting value (decimal, 1 Byte x maximum 5 digits
)
<Example>
gax
□
0 CR