Start up
Pearleye Technical Manual
V2.2.0
23
Serial communication operates in echo mode by default. This means that each
character received by the module is echoed back to the sender.
In all command examples the characters sent to the camera are represented in
Bold Courier Font
and the camera’s answer in
Plain Courier
Font
.
The serial commands have the following fixed scheme:
>
B=wxyz[CR]
Example (activate correction data set number 0):
1.
The user sends the four characters
S=0[CR]
2.
The camera answers with seven characters
S=0[CR][CR][LF]>
3.
A terminal program without local echo displays
S=0
>
After successful execution of the command, the command input character
>
is
output. If any error occurred, somewhere previous to the prompt a question
mark character
?
is displayed.
To query a parameter value, send the corresponding command letter followed
by the equals sign and a question mark character:
>
s=?[CR]
If the intended action does not need any parameter, it is also sufficient in most
cases - as a shortcut - to send the command letter only, directly followed by
[CR]
.
At the beginning of a command sequence it is good practice to check the serial
communication by sending just a
[CR]
to the camera and verify that the com-
mand prompt
>
is returned. There is an input buffer holding a few characters
Sign
Description
B
Command or parameter letter
(upper and lower case letter have
different meaning)
=
Equals sign (0x3D)
wxyz
1-4 digits long value in
hexadecimal number
representation (capital letters)
[CR]
Carriage Return (0x0D)
[LF]
Line Feed (0x0A)
Table 6: Scheme of serial commands