42
The data within a command or response packet may contain 8-bit binary data with
escaping as described below. The camera requires only one stop bit for framing and
sends one stop bit when responding.
Baud Rate
To comply with the Camera Link specification, the default baud rate is 9600. The serial
baud rate can be changed with a command on the serial link or via the USB port. To allow
recovery after inadvertent setting of a higher baud rate than the host can handle, the serial
link will revert to 9600 baud after 5 framing errors without receiving a valid command. The
factory default startup baud rate is 9600, but the actual power-on baud rate can be
changed via the user start-up settings.
Command Protocol
Commands all begin with a character in the range g-z or G-Z where the case is ignored.
Subsequent bytes of the command are command-specific, but most commands use hex
characters 0-9 and a-f or A-F for the subsequent bytes. For commands using the hex
encoding, all arguments are full bytes. Thus an odd number of hex digits are considered a
protocol error. For commands that use binary encoding, the following character
sequences are required:
Character (hex, ASCII) Sequence
0d, <cr>
\<cr>
5c, \
\\
All commands end in a non-escaped carriage-return, hex 0d.
When commands take arguments in hex, data must consist of pairs of hex characters
representing full bytes. Within each byte the most significant nibble is sent first, but for
multi-byte values the least significant byte is normally sent first. Thus when a command
required a 32-bit value the string "23568912" would produce the hex value 12895623.
Commands using hex arguments will ignore space characters, so "23568912" is equivalent
to "23 56 89 12". Other characters will cause the command to abort and respond with
negative acknowledge at the next non-escaped carriage-return.