4
Cairsens - UART Version
1
UART Port settings
Baud rate data bits
9600
8
2
Queries / answers structures between UART cairsens
and host
The structure of the query / answer frame passing between the Cairsens and the host can be defined
by a series of bytes, the number of which varying and being represented in hexadecimal.
The query frames have a fixed length and are structured as follows:
SYNC STX LG REF DATA CRC ETX
The answer frames have a fixed length and are structured as follows:
SYNC STX LG REF DATA END CRC ETX
Bytes definition is:
· SYNC = Synchro Word
· STX = Start Frame
· LG = Length of Data
· REF =
Cairsens identification
· DATA = [CMD+PARAM] (Series of bytes for command and parameters)
· END =End Frame
· CRC [2 bytes/LSB First]
· ETX
· LIFE =
Life used
Synchronization and start frame bytes have the following values and constant number of bytes:
· SYNC = 1 byte = 0xFF
· STX = 1 byte = 0x02
· CRC = 2 bytes
· END = 2 bytes = LIFE 0xFF
· ETX = 1 byte = 0x03
3
Life
Byte value
0x00
0x80
0xC0
0xE0
0xFF
4
Available commands
CMD
0x0C
Parity
Stop bits
N
1
7
4
the sensor can't return it's % life used
New sensor
50 % of life used
75% life used
100% life used ( end of life )
Get stored data
Flow control
none
Description
© 2016 Cairpol