Your SICK ID gives you access to our extensive range of services. This includes direct online orders, price and availability checks, and access to our digital services.
picoScan100: How to check the CRC8 checksum in Cola B?
Article No: KA-10324
Version: 1.0
Subject to change without notice
The article describes how to check the CRC8 checksum in Cola B.
Related Products
picoScan100
Table of Contents
This note shows how a host separates binary Cola B frames from a TCP byte stream, interprets the length, and
validates the checksum for picoScan150 and other LiDARs with the same interface.
The dummy payload below is an exemplary LMDscandata response containing some beams. It was captured
from a picoScan150 with firmware V2.1.0. The focus is on demonstrating frame separation and XOR-based checksum
validation.
Transport
Ethernet, Cola B over TCP
Purpose
Parameterization and measurement data
Checksum
1-byte XOR over payload (excluding sync, length and CRC).
Frame layout
Offset Size Field
0 4 Sync: 0x02 0x02 0x02 0x02
4 4 Length (LE, total frame size in bytes)
8 N Payload (incl. Cola B command/flags, length = Length-9)
8+N 1 Checksum (XOR over bytes [8 .. 8+N-1])