![Campbell SkyVUE 8 Product Manual Download Page 74](http://html1.mh-extra.com/html/campbell/skyvue-8/skyvue-8_product-manual_3808856074.webp)
6. Messages
6.2 Checksums used in SkyVUE 8 messages
6.1 Data messages general
The SkyVUE 8 can provide a variety of data message types to allow efficient output of data. Not
all messages provide the full information available, but these messages may be more efficient in
terms of data storage and transmission.
CL31 and CT25K messages follow formats used by common existing CL31 and CT25K sensors
allowing easier replacement or network expansion.
6.2 Checksums used in SkyVUE 8 messages
This is based on the CRC-16 with the output XOR’d with Hex 0xFFFF and outputs a two-byte
CRC-16 character. The CRC-16 is calculated on all characters after the SOH character up to and
including the ETX character.
The following example uses the
C
code to calculate the SkyVUE 8 checksum.
NOTE:
Shorts are 16 bits long and ints are 32 bits long.
// ----------------------------------------------------------------
// Calculate CRC-16
// buf is a pointer to the input string
// len is the length of the input string
// ----------------------------------------------------------------
unsigned short crc16(char *buffer, int length)
{
unsigned short crc;
unsigned short m;
int i, j;
crc = 0xFFFF;
for (i=0; i < length; ++i)
{
SkyVUE™8 (CS136) LIDAR Ceilometer
62
Summary of Contents for SkyVUE 8
Page 1: ...Revision 08 2020 Copyright 2019 2020 Campbell Scientific CSL I D 1301...
Page 2: ......
Page 4: ......
Page 6: ......
Page 8: ......
Page 108: ......
Page 112: ...SkyVUE 8 CS136 LIDAR Ceilometer 99...
Page 115: ......