Campbell-scientific TDRSDK Software Developement Kit Manual de usuario Pagina 23

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 28
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 22
B-1
Appendix B. TDR100 Response
Protocol
|S| quoted data |E|
S Start Character 0x3A : (colon)
E End Character 0x0D (carriage return)
Quote Character 0x22 “ (double quote)
Quoted Data includes
Unquoted Data
CRC-16
Quoted data is the same as unquoted data except that it doesn’t allow the bytes
(characters) colon, carriage return or double quote. When those values are
encountered in the data they are replaced with the quote character <”> followed
by the 2’s complement of the data. i.e.
unsigned char data;
data = -data;
Quoted Replacements
: 0x22C6
cr 0x22F3
“ 0x22DE
Unquoted Formats
Unquoted data adheres to the following formats with a maximum of 8200 bytes
followed by the CRC-16.. The first byte of unquoted data is “:”, and the last
byte is “cr”. The CRC is computed on the unquoted data without the first byte
, the last byte, and CRC16. CRC16 is in the Big-Endian format. Since the CRC
might have quoted characters, the CRC cannot be compared until the unquoted
data is retrieved.
Vista de pagina 22
1 2 ... 18 19 20 21 22 23 24 25 26 27 28

Comentarios a estos manuales

Sin comentarios