Olei Lr-16f 3d Lidar Sensor Communication Data Protocol User Manual

Olei Lr-16f 3d Lidar Sensor Communication Data Protocol User Manual

OLEI-logo

OLEI LR-16F 3D LiDAR Sensor Communication Data Protocol

OLEI-LR-16F-3D-LiDAR-Sensor-Communication-Data-Protocol-fig-1

Please read this manual before using the product for the best product performance.
Be sure to keep this manual for future reference.

Type of Connector

  1. Connector: RJ-45 standard internet connector
  2. Basic protocol: UDP/IP standard internet protocol, Data are in little-endian format, lower byte first

Data Packet Format

Overview

OLEI-LR-16F-3D-LiDAR-Sensor-Communication-Data-Protocol-fig-2

The total length of a data frame is 1248 bytes, including:

  • Frame header: 42 bytes
  • Data block: 12X(2+2+96) = 1,200 bytes
  • Time stamp: 4 Bytes
  • Factory mark: 2 Bytes

Header

OffsetLengthDescription
 

 

0

 

 

14

Ethernet II include: Destination MAC:(6 Byte) Sourse MAC:(6 Byte)

Type: (2 Byte)

 

 

 

 

 

 

14

 

 

 

 

 

 

20

Internet Protocol include:

Version & Header Length :(1 Byte) Differentiated Services Field: (1 Byte) Total Length:(2 Byte)

Identification: (2 Byte)

Flags: (1 Byte)

Fragment Offse: (1 Byte) Time to Live: (1 Byte) Protocol: (1 Byte)

Header Checksum: (2 Byte)

Destination IP: (4 Byte)

Sourse IP: (4 Byte)

 

 

34

 

 

8

User Datagram Protocol include: Sourse Port:(2 Byte) Destination Port: (2 Byte)

Data Length:(2 Byte)

Checksum: (2 Byte)

Data block definition
The laser returned data consists of 12 data blocks. Each data block starts with a 2-byte identifier 0xFFEE, followed by a 2-byte azimuth angle and a total of 32 data points. The lase returned value of each channel contains a 2-byte distance value and a 1-byte calibration reflectivity value.

OffsetLengthDescription
02Flag, it is always 0xFFEE
22Angle Data
42Ch0 Ranging Data
61Ch0 Reflectivity Data
72Ch1 Ranging Data
91Ch1 Reflectivity Data
102Ch2 Ranging Data
121Ch2 Reflectivity Data
492Ch0 Ranging Data
511Ch15 Reflectivity Data
522Ch0 Ranging Data
541Ch0 Reflectivity Data
552Ch1 Ranging Data
571Ch1 Reflectivity Data
582Ch2 Ranging Data
601Ch2 Reflectivity Data
972Ch15 Ranging Data
991Ch15 Reflectivity Data

The vertical angle is defined as following:

Laser IDVertical Angle
0-15°
1
2-13°
3
4-11°
5
6-9°
7
8-7°
9
10-5°
1111°
12-3°
1313°
14-1°
1515°

OLEI-LR-16F-3D-LiDAR-Sensor-Communication-Data-Protocol-fig-3

Time stamp

OffsetLengthDescription
 

0

 

4

Timestamp [31:0]: [31:20] count of Seconds

[19:0] count of Microsecond

Factory mark

OffsetLengthDescription
02Factory:(2 Byte)0x00,0x10

Example

OLEI-LR-16F-3D-LiDAR-Sensor-Communication-Data-Protocol-fig-4
OLEI-LR-16F-3D-LiDAR-Sensor-Communication-Data-Protocol-fig-5

Communication protocol-information package

Overview

HeaderLidar InfoGPS Info
42 Bytes768Bytes74 Bytes

Length of data package: 884 Bytes
Note: The port number of the information package cannot be changed, the local and target ports are both 9866

Definition of header

OffsetLengthDescription
 

 

0

 

 

14

Ethernet II Include: Destination MAC:(6 Byte) Sourse MAC:(6 Byte)

Type: (2 Byte)

 

 

14

 

 

20

Internet Protocol Include:

Version & Header Length :(1 Byte) Differentiated Services Field: (1 Byte) Total Length:(2 Byte)

Identification: (2 Byte)

Flags: (1 Byte)

Fragment Offse: (1 Byte) Time to Live: (1 Byte) Protocol: (1 Byte)

Header Checksum: (2 Byte) Destination IP: (4 Byte)

Sourse IP: (4 Byte)

 

 

34

 

 

8

User Datagram Protocol Include: Sourse Port:(2 Byte) Destination Port: (2 Byte)

Data Length:(2 Byte)

Checksum: (2 Byte)

Definition of Lidar Info

OffsetLengthDescription
06Factory Code
612Model Number
1812Series Number
304Sourse IP
342Sourse data Port
364Destination IP
402Destination data Port
426Source MAC
482Motor Speed
 

50

 

1

[7] GPS Connection, 0: Connected, 1: No connection

[6] Top circuit error flag 0: Normal, 1: Error [5:0] Reserve

 

 

51

 

 

1

GPS Enable & Baud rate 0x00:GPS GPS Power Off

0x01:GPS Power On, Baud rate 4800 0x02:GPS Power On, Baud rate 9600

0x03:GPS Power On, Baud rate 115200

521Reserve
531Reserve
542Top circuit Temperature, DataX0.0625℃
562Bottom circuit Temperature, DataX0.0625℃
582Reserve
6032CH0-CH15 Channel static offset
924Reserve
96672Reserve
76874GPS Information

Example

OLEI-LR-16F-3D-LiDAR-Sensor-Communication-Data-Protocol-fig-6OLEI-LR-16F-3D-LiDAR-Sensor-Communication-Data-Protocol-fig-7

Setup the protocol

Follow the UDP protocol, user setup protocol, upper computer sends 8 bytes

NameAddressData
Number of bytes2 Bytes6 Bytes
AddressNameByte Definition [31:0]
F000Local IP[47:16]=local_ip,[15:0] =local_port
F001Remote IP[31:0]=remote_ip,[15:0]= remote_port
 

 

 

F002

 

 

 

Speed, GPS enable, baud rate

[47:32] =rom_speed_ctrl [31:24]=GPS_en 0x00 = off

0x01 = enabled and the baud rate is 4800 0x02= enabled and the baud rate is 9600 0x03 = enabled and 115200 baud rate

[23:0]Reserved

Example:
Local ip and portF0 00 C0 A8 01 64 09 40192.168.1.100 2368
Target ip and portF0 01 C0 A8 01 0A 09 40192.168.1.10 2368
Rotating speedF0 02 02 58 00 00 00 00speed 600

Example:

  • Local ip and port F0 00 C0 A8 01 64 09 40 192.168.1.100 2368
  • Target ip and port F0 01 C0 A8 01 0A 09 40 192.168.1.10 2368
  • Rotating speed F0 02 02 58 00 00 00 00 speed 600
  • Restart the 3D LiDAR each time the modification is completed.
  • Optional rotating speed: 300 or 600. optional baud rate:4800/9600/115200 .

Coordinate conversion

The information in the LR-16F data package is the azimuth value and distance value established in the polar coordinate system. It’s more convenient to construct three-dimensional scene through the point cloud data by converting polar coordinate value to Cartesian coordinate system.
The above values corresponding to each channel is shown in the following table:

 

Channel#

Vertical angle

(ω)

Horizontal angle

(α)

Horizontal offset

(A)

Vertical offset

(B)

CH0-15°α21mm5.06mm
CH1α+1*0.00108*H21mm-9.15mm
CH2-13α+2*0.00108*H21mm5.06mm
CH3α+3*0.00108*H21mm-9.15mm
CH4-11α+4*0.00108*H21mm5.06mm
CH5α+5*0.00108*H21mm-9.15mm
CH6-9α+6*0.00108*H21mm5.06mm
CH7α+7*0.00108*H21mm-9.15mm
CH8-7α+8*0.00108*H-21mm9.15mm
CH9α+9*0.00108*H-21mm-5.06mm
CH10-5α+10*0.00108*H-21mm9.15mm
CH1111°α+11*0.00108*H-21mm-5.06mm
CH12-3α+12*0.00108*H-21mm9.15mm
CH1313°α+13*0.00108*H-21mm-5.06mm
CH14-1α+14*0.00108*H-21mm9.15mm
CH1515°α+15*0.00108*H-21mm-5.06mm

Note: Under normal accuracy, the horizontal angle α only needs to increase the parameters in the table above.

The calculation formula for space coordinates is

OLEI-LR-16F-3D-LiDAR-Sensor-Communication-Data-Protocol-fig-9

Definitions:

  • The measured distance output by each channel of the LiDAR is set as R. Note that the unit of the LiDAR input is 2mm, please convert to 1mm first
  • Rotating speed of LiDAR is set as H (usually 10Hz)
  • The vertical angle of each channel of the LiDAR is set as ω
  • The horizontal angle output by the LiDAR is set as α
  • The horizontal offset of each channel of the LiDAR is set as A
  • The vertical offset of each channel of the LiDAR is set as B
  • The spatial coordinate system of each channel of the LiDAR is set to X, Y, Z

    OLEI-LR-16F-3D-LiDAR-Sensor-Communication-Data-Protocol-fig-8

ABOUT COMPANY

References

Documents / Resouces

Download manual
Here you can download full pdf version of manual, it may contain additional safety instructions, warranty information, FCC rules, etc.


Related Manuals