6
Communication Protocol
To ensure real-time communication, Hesai’s TCP protocol uses binary format and has disabled Nagle’s algorithm.
6.1
Packet Structure
A client can send command messages to the server (LiDAR). Each command message includes a fixed 8-byte header and a variable command-specific
payload. The header describes the command type and payload length.
Table 6.1 Command Message Sent from Client to LiDAR
Command code. See Section 6.2 Command Description
Data length for the command
0x00 – no payload
Indicated in Payload Length
Additional data for thecommand
The server (LiDAR) outputs a feedback message for every command it receives.
Table 6.2 Feedback Message from LiDAR to Client
Data length for the command
0x00 – no payload
Indicated in Payload Length
Additional data for thecommand