LD2450 Serial Port Communication Protocol V1.03
LD2450 Serial Port Communication Protocol V1.03
,Ltd
HLK-LD2450
Motion Target Detection and Tracking Module
Version:V1.03 Revise date:2023-10-17 All rights reserved © Shenzhen Hi-link Electronic..co Ltd
Shenzhen Hi-Link Electronic Co.,Ltd
LD2450
Content
1 Communication Interface Introduction .......................................................................................... 4
1.1 Pin definitions ............................................................................................................................. 4
1.2 Use and configuration ................................................................................................................ 4
1.2.1 Typical application circuit .................................................................................................. 4
1.2.2 Visualization upper tool description .................................................................................. 4
2 Communications Protocol ................................................................................................................ 6
2.1 Protocol format ...........................................................................................................................6
2.1.1 Protocol data format ........................................................................................................... 6
2.1.2 Command protocol frame format ...................................................................................... 6
2.2 Send command with ACK ......................................................................................................... 7
2.2.1 Enable configuration commands ........................................................................................7
2.2.2 End configuration commands .............................................................................................7
2.2.3 Single target tracking .......................................................................................................... 7
2.2.4 Multi target tracking ........................................................................................................... 8
2.2.5 Query target tracking mode ............................................................................................... 8
2.2.6 Read firmware version command ...................................................................................... 8
2.2.7 Setting the serial port baud rate .........................................................................................9
2.2.8 Restore factory setting .........................................................................................................9
2.2.9 Restart module ...................................................................................................................10
2.2.10 Bluetooth setup ................................................................................................................ 10
2.2.11 Get mac address ...............................................................................................................10
2.2.12 Query the current zone filtering configuration .............................................................11
2.2.13 Setting up regional filtering configurations ...................................................................12
2.3 Radar data output protocol ..................................................................................................... 12
2.4 Radar command configuration method ..................................................................................13
3 Revision History .............................................................................................................................. 14
4 Technical Support and Contact ..................................................................................................... 14
Page 2 / 14
Shenzhen Hi-Link Electronic Co.,Ltd
LD2450
Chart Index
Table 1 Pin definition ........................................................................................................................4
Table 2 Send command protocol frame format ............................................................................. 6
Table 3 Transmit in-frame data format ..........................................................................................6
Table 4 ACK command protocol frame format .............................................................................6
Table 5 ACK intra-frame data format ............................................................................................6
Table 6 Serial baud rate selection ....................................................................................................9
Table 7 Factory default configuration values .................................................................................9
Table 8 Regional filtering configuration value format ................................................................11
Table 9 Reported data frame format ............................................................................................ 12
Table 10 In-frame data format ...................................................................................................... 12
Page 3 / 14
Shenzhen Hi-Link Electronic Co.,Ltd
LD2450
Pin Function
5V Power supply input 5V
GND Power ground
Tx Serial port Tx pin
Rx Serial port Rx pin
Page 4 / 14
Shenzhen Hi-Link Electronic Co.,Ltd
LD2450
module on the target.
How to use the upper tool:
1. Use the USB to Serial tool to connect the module serial port correctly, please refer to Table 1
Pin Definition Table for the module pin description;
2. Open ICLM_MTT.exe PC tool software, click the Detect Device button, the PC software
automatically searches for the LD2410 module through the serial port; after the module is detected,
the PC software will have a prompt as follows.
3. Then click the start button, the upper computer software will receive the detection data reported
by the LD2450 module and display it on the software surface in real time.
The display includes the real-time positions of up to three targets on a sector map, with distance,
angle and speed information for each target.
Page 5 / 14
Shenzhen Hi-Link Electronic Co.,Ltd
LD2450
2 Communications Protocol
This communication protocol is mainly for users who need to do secondary development away
from the visualization tool. the LD2450 communicates with the outside world through a serial port
(TTL level). Radar data output and parameter configuration commands are carried out under this
protocol. The default baud rate of the radar serial port is 256000, 1 stop bit, no parity bit.
Page 6 / 14
Shenzhen Hi-Link Electronic Co.,Ltd
LD2450
Radar ACK(success):
FD FC FB FA 08 00 FF 01 00 00 01 00 40 00 04 03 02 01
Radar ACK(success):
FD FC FB FA 04 00 FE 01 00 00 04 03 02 01
Page 7 / 14
Shenzhen Hi-Link Electronic Co.,Ltd
LD2450
2.2.4 Multi target tracking
Set to multi-target tracking
Command word: 0x0090
Command value: none
Return value: 2 byte ACK status (0 success, 1 failure)
Send data:
FD FC FB FA 02 00 90 00 04 03 02 01
Radar ACK(success):
FD FC FB FA 04 00 90 01 00 00 04 03 02 01
FD FC FB FA 06 00 91 01 00 00 02 00 04 03 02 01
The return value of 0x0002 means that it is currently in multi-target tracking mode.
Page 8 / 14
Shenzhen Hi-Link Electronic Co.,Ltd
LD2450
2.2.7 Setting the serial port baud rate
This command is used to set the baud rate of the serial port of the module, the configured value is not
lost when power down, and the configured value takes effect after restarting the module.
Command Word: 0x00A1
Command value: 2-byte baud rate selection index
Return Value: 2 bytes ACK status (0 success, 1 failure)
Table 6 Serial baud rate selection
Baud rate selection index value Baud rate
0x0001 9600
0x0002 19200
0x0003 38400
0x0004 57600
0x0005 115200
0x0006 230400
0x0007 256000
0x0008 460800
The factory default value is 0x0007, which is 256000.
Send data:
FD FC FB FA 04 00 A1 00 07 00 04 03 02 01
Radar ACK(success):
FD FC FB FA 04 00 A1 01 00 00 04 03 02 01
Page 9 / 14
Shenzhen Hi-Link Electronic Co.,Ltd
LD2450
2.2.9 Restart module
The module receives this command and will automatically reboot after the answer is sent.
Command word: 0x00A3
Command value: none
Return Value: 2 bytes ACK status (0 success, 1 failure)
Send data:
FD FC FB FA 02 00 A3 00 04 03 02 01
Radar ACK(success):
FD FC FB FA 04 00 A3 01 00 00 04 03 02 01
Radar ACK(success):
FD FC FB FA 04 00 A4 01 00 00 04 03 02 01
Radar ACK(success):
FD FC FB FA 0A 00 A5 01 00 00 8F 27 2E B8 0F 65 04 03 02 01
The queried mac address is: 8F 27 2E B8 0F 65
Page 10 / 14
Shenzhen Hi-Link Electronic Co.,Ltd
LD2450
2.2.12 Query the current zone filtering configuration
This command queries the current zone filtering configuration of the module
Command word: 0x00C1
Command value: none
Return: 2 bytes ACK status (0 success, 1 failure) + 2 bytes area filter type + 24 bytes area coordinate
configuration
Regional 2- Regional 3-
Type of regional filtering Regional 1-coordinate setting
coordinate setting coordinate setting
Send data:
FD FC FB FA 02 00 C1 00 04 03 02 01
Radar ACK(success):
FD FC FB 1E C1 00 01 E803 E803 0000 0000 0000 0000 04 03
FA 00 01 00 00 18FC 8813 0000 0000 0000 0000 02 01
Represents the current configuration: only detect targets in the rectangular area delineated by two
diagonal vertices with coordinates (1000,1000) and (-1000,5000), corresponding to the detection
range of the red box area as follows.
Page 11 / 14
Shenzhen Hi-Link Electronic Co.,Ltd
LD2450
2.2.13 Setting up regional filtering configurations
This command is used to set the region filtering configuration of the module, the configuration value
will not be lost when power down, and it takes effect immediately after setup.
Command word: 0x00C2
Command value: 26 bytes of region filtering configuration value, see Table 8 Region filtering
configuration value format.
Return value: 2-byte ACK status (0 success, 1 failure)
Send data:
FD FC FB 1C C2 02 E803 E803 18FC 0000 0000 0000 0000 0000 04 03 02
FA 00 00 00 8813 0000 0000 0000 01
Represents the setting of not detecting targets in the rectangular area delimited by the coordinates of the two
diagonal vertices (1000,1000) and (-1000,5000).
Radar ACK(success):
FD FC FB FA 04 00 C2 01 00 00 04 03 02 01
The specific information contained in the individual targets is shown in the table below
Target X coordinate Target Y coordinate Target speed Distance resolution
Example of data:
AA FF 03 00 0E 03 B1 86 10 00 40 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 CC
This set of data indicates that the radar is currently tracking a target i.e. target 1 (blue field in the
example), and target 2 and target 3 (corresponding to the red and black fields in the example
respectively) do not exist, so their corresponding data segment is 0x00. The process of converting the
Page 12 / 14
Shenzhen Hi-Link Electronic Co.,Ltd
LD2450
data of target 1 into relevant information is demonstrated as follows:
Target 1 X coordinate: 0x0E + 0x03 * 256 = 782 0 - 782 = -782 mm
Target 1 Y coordinate: 0xB1 + 0x86 * 256 = 34481 34481 - 2^15 = 1713 mm
Target 1 speed: 0x10 + 0x00 * 256 = 16 0 -16 = -16 cm/s
Target 1 distance resolution: 0x40 +0x01* 256 = 320 mm
Page 13 / 14
Shenzhen Hi-Link Electronic Co.,Ltd
LD2450
3 Revision History
Data Version Contents of the modification
Page 14 / 14