20
6. SERIAL PROTOCOL
This chapter describes the serial communication protocol between RCP and Cunima MCU[2].
• Serial communication (RS-232 style) with LVTTL signals
• 38400Baud, 8N1, no parity, no handshake
• RS-485, half duplex
6.1 FRAME FORMAT
!
a
a
$
c
c
c
c
c
c
=
v
v
v
v
#
The address token is optional and starts with a ! followed by a 2 digit hex address,
the address FF is the broadcast address
Every command starts with a „$“
Next is a six character command token, e.g. SETRES for set resolution
Next character is a „=“ to keep command and data 20separated
Next four characters are data. Please fill unused characters with 0
The frame en
ds with a „#“ token
Every frame is 13 characters in size
Characters between frames are ignored
All values are in hexadecimal format
Complete communication is handled with the same frame format (from/to camera)
Each command is acknowledged by the camera with an CAMACK or CAMGET
frame. The CAMACK/CAMGET frame is send after the command is finished. A
timeout of 0.5sec is reasonable.
After booting the camera sends a $READY_=0000#