34
VICTOREM
2KSDI-Mini User's Manual
7 Camera Commands
For advanced users, control of a 2KSDI-Mini camera can be done using a terminal program or control
can be incorporated into a custom user interface or application using the simple ASCII command
protocol. Below are some key points about the serial control:
•
8-bit, 115200 baud (default), 1 stop bit and no parity.
•
All sent commands end with a carriage return (0x0d), which can also be sent at any time to
reset the uart receiver state machine within the camera and return it to an idle/ready state.
•
Commands are 3 ASCII characters followed by the setting or simply a carriage return when no
settings are associated with the command.
•
A space is sent between the command and the setting.
•
All settings are in hexadecimal.
•
All commands letters are in lower case (including settings hex values a-f).
•
To query a command a carriage return is sent after the last command character.
•
Successful commands return ACK (0x06, generally seen as a dash (-) in terminal programs),
invalid or rejected commands return NAK (0x15, generally seen as plus sign (+) in terminal
programs). Note: some terminal programs do not display non-printable characters such as ACK
and NAK.
•
A query returns the command, the current value, the minimum and maximum allowable values
within brackets, a carriage return and finally an ACK.
•
Get camera parameters command (
gcp
) returns all command settings.
Examples:
1. Set exposure time to 563 lines:
◦
Command:
exp 233<CR>
◦
Response:
<ACK>
2. Query exposure time:
◦
Command:
exp<CR>
◦
Response:
exp 233 (001,454)<CR>
<ACK>
IO Industries Inc.
Revision 3.0