Download User Manual - K

Transcript
7 Serial Communication Protocol
B
Read software version
Command:
Answer:
Effect:
I
Read image line
Command:
Answer:
Effect:
L
L, led, state
l
Set the given LED state. Each LED can be switched on (1)
or switched off (0).
Get min and max pixels
Command:
Answer:
Effect:
N
I, line
i, pixel0, pixel1, pixel2, ... pixel158, pixel159
Return the 160 pixels of the given line. A decimal value is
returned for each pixel of the line, separated with commas.
An image must be acquired first.
Set LED state
Command:
Answer:
Effect:
M
B
b, bios version, protocol version
Read software version stored in the turret’s non-volatile
memory.
M
m, min x, min y, max x, max y
Return coordinates, for minimum intensity pixel and maximum intensity pixel. An image must be acquired first.
Read one fourth of image line
Command:
Answer:
Effect:
K-Team S.A.
N, line
n, pixel0, pixel1, pixel2, ... pixel38, pixel39
Return one pixel out of four for the given line. A decimal
value is returned for each of the 40 pixels, separated with
commas. An image must be acquired fisrt.
22