Vehicle-mounted millimeter wave radar data acquisition and recharging method

By using the UDP protocol for working mode configuration and data transmission in millimeter wave radar hardware, data acquisition and recharge are achieved on a radar, solving the problems of long testing time and difficulty in data verification in the existing technology, and improving the Test efficiency and flexibility.

CN118962664APending Publication Date: 2024-11-15NANJING UNIV OF SCI & TECH

Patent Information

Application Number
CN202410951875.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The existing millimeter-wave radar hardware needs to manually switch the working mode in the ring system, and data acquisition and recharge cannot be completed through a radar, resulting in an increase in test time and the accuracy of the collected data cannot be verified.

Method used

Through a PC as a server and a millimeter wave radar as a client, UDP protocol is used for working mode configuration and data transmission, realizing the integration of data acquisition and return functions, allowing data acquisition and return on a radar to be completed and verify the correctness of point cloud data on the server side.

Benefits of technology

It realizes data acquisition and recharge on a radar, reduces testing time and complexity, can verify the correctness of data acquisition, and avoids the need to disassemble the radar or replace the hard disk.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118962664A_ABST
    Figure CN118962664A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle-mounted millimeter-wave radar data acquisition and recharge method, which comprises the following steps that: a server establishes communication with a millimeter-wave radar through an IP address and a port number, and sends a UDP message to the millimeter-wave radar according to communication protocols in different modes, and a lower computer enters a corresponding working mode by analyzing the UDP message. In the acquisition mode, ADC data acquired by the millimeter wave radar is transferred to an SSD, data processing is performed on the ADC data, and a point cloud result is output and stored in a server; according to the recharge mode, ADC data in the millimeter wave radar SSD is carried to the DDR, data processing is carried out on the ADC data, a point cloud result is output and stored in the server side, and finally, the collected and recharged point cloud data can be simultaneously played through the server side. According to the acquisition and recharge test mode realized by the invention, the test cost is greatly reduced, the data verification time is shortened, and the radar is subjected to function verification, performance evaluation and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of millimeter wave radars, and in particular relates to a vehicle-mounted millimeter wave radar data collection and recharging method. Background Art

[0002] With the rapid development of millimeter-wave radar, the industry's technology is constantly updated and iterated, and the hardware-in-the-loop system (HIL) has become particularly important. The use of this system can shorten the R&D cycle, save manpower and development costs. For millimeter-wave radar, it is usually the ADC acquisition and re-injection of data.

[0003] In the existing millimeter-wave radar hardware-in-the-loop system, the working mode of the millimeter-wave radar needs to be changed manually, and sometimes the working process file of the millimeter-wave radar needs to be replaced. In the most troublesome time, the radar needs to be disassembled to allow the two radars to dock to complete the recharging function. It is impossible to complete data collection and recharging through one radar. This is not only very inconvenient and lacks flexibility, but also greatly increases the HIL test time and brings inconvenience to the test. Therefore, a way to switch between the two working modes of the millimeter-wave radar is needed.

[0004] Moreover, in the existing test environment, it is impossible to verify whether the collected data has data errors or frame losses by only re-injecting the collected ADC data. Summary of the invention

[0005] The invention proposes a vehicle-mounted millimeter-wave radar data collection and recharging method.

[0006] The technical solution to achieve the purpose of the present invention is: a vehicle-mounted millimeter wave radar data collection and recharging method, the specific steps are:

[0007] Step 1: The millimeter-wave radar starts the acquisition and re-injection process, initializes the relevant configuration, and waits for the connection with the server and the configuration instructions of the working mode;

[0008] Step 2: The PC establishes a connection with the millimeter-wave radar through the destination IP address, local IP address, and port number;

[0009] Step 3: After the server establishes a connection with the millimeter-wave radar, it packages the parameters of the configuration file according to the communication protocol and sends it to the millimeter-wave radar through UDP;

[0010] Step 4: After receiving the UDP data from the server, the millimeter-wave radar disassembles it according to the communication protocol and completes the selection of the working mode, entering the acquisition mode or the recharging mode.

[0011] Preferably, the acquisition mode is specifically as follows: the millimeter-wave radar enters the data acquisition mode, the millimeter-wave radar creates an acquisition folder of the current time node in the SSD, obtains ADC data from the DDR address, and stores the ADC data in the acquisition folder in sequence through the PCIE protocol, and will not affect the normal output point cloud function of the radar. The radar sends the point cloud data to the server through UDP according to the sent point cloud protocol, and saves the point cloud data results on the server side.

[0012] Preferably, the specific steps of the radar in the acquisition mode are:

[0013] Entering the acquisition mode, the radar initializes the radar RF front end according to the parameters and opens three threads, including the ADC data acquisition thread, the ADC data storage thread and the radar data processing thread;

[0014] The radar RF front end collects ADC data according to the ADC data collection thread;

[0015] The ADC data storage thread and the radar data processing thread read the ADC data stored in the DDR respectively. The ADC storage thread stores the read ADC data in the SSD solid state drive. The data processing thread performs 3DFFT processing on the data to obtain point cloud data.

[0016] The point cloud transmission protocol sends the processed point cloud data to the server and saves it on the server.

[0017] Preferably, the bin file of one frame of ADC data collected by the ADC data collection thread each time is 16MB and is stored in the DDR by the radar data processing board.

[0018] Preferably, the recharging mode is specifically:

[0019] The millimeter-wave radar enters the data re-injection mode, waiting to receive the UDP message sent by the server containing the path of the folder to be re-injected;

[0020] The millimeter-wave radar enters the data re-injection mode. The millimeter-wave radar counts the number of ADC files in the specified folder path, reads the ADC data from the SSD in sequence, puts it into the specified DDR address, and sends the point cloud data to the server according to the point cloud protocol. At the same time, the point cloud data results are saved on the server until all the ADC data in the specified folder are re-injected;

[0021] Preferably, the specific steps of the radar in the recharging mode are:

[0022] Step 7.1: Enter the recharge mode, open the recharge ADC data thread and radar data processing thread;

[0023] Step 7.2: According to the parsed destination file address, move the collected data from the SSD to the 0x50000000 address of the DDR;

[0024] Step 7.3: After receiving the semaphore, the data processing thread reads the data from the DDR and performs 3DFFT processing on the data to obtain the point cloud data;

[0025] Step 7.4: The point cloud transmission protocol sends the processed point cloud data to the server and saves it on the server.

[0026] Preferably, the radar's acquisition and re-injection functions are integrated into one process and run on a petalinux system.

[0027] Preferably, the communication protocol in step 3 includes a communication protocol in an acquisition mode and a communication protocol in a recharge mode, the communication protocol data in the acquisition mode includes a start bit, a data code, and an end bit, the data code includes a mode selection parameter and an acquisition parameter, and the acquisition parameter includes a single chirp period and a single frame period;

[0028] The communication protocol data in the recharge mode includes a start bit, a data code, and an end bit. The data code includes a mode selection parameter and a recharge parameter. The recharge parameter includes a recharge processing period, a single chirp period, and a single frame period.

[0029] Preferably, if the working state needs to be switched, a restart instruction is sent to the radar through the server, and the radar jumps to step 1 after restarting.

[0030] Compared with the prior art, the present invention has the following significant advantages: the present invention can complete the data collection and re-injection functions on one radar by using a PC and a host computer as a server and a millimeter-wave radar as a client, without the need to disassemble the radar or put the collected data hard disk into another radar with a re-injection function. The point cloud data during collection and the point cloud data output during re-injection can also be replayed on the server at the same time, which is convenient for verifying the correctness of the collected data and shortening the research and development time.

[0031] The present invention is described in further detail below in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a flow chart of controlling the working mode of the millimeter wave radar through Ethernet provided by the present invention.

[0033] Figure 2 It is a flowchart of the millimeter wave radar working in the acquisition mode.

[0034] Figure 3 It is a flow chart of the millimeter wave radar working in the recharging mode. DETAILED DESCRIPTION

[0035] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.

[0036] The present invention provides a vehicle-mounted millimeter-wave radar data acquisition and re-injection system. First of all, it should be explained that the millimeter-wave radar used in this technical solution is composed of a radar RF front end, a radar data processing board, a communication module and a storage module, and the radar acquisition function and re-injection function are integrated into one process, so that data re-injection can be performed immediately after the millimeter-wave radar has collected the data and the data results can be compared.

[0037] like Figure 1 As shown, a vehicle-mounted millimeter-wave radar data collection and recharging method disclosed in an embodiment of the present invention specifically includes the following steps:

[0038] Step 1: The millimeter-wave radar starts the acquisition and re-injection process, initializes the relevant configuration, and waits for the connection with the server and the configuration instructions of the working mode;

[0039] Step 2: The server establishes a connection with the millimeter-wave radar through the IP address and port number;

[0040] Furthermore, before the millimeter-wave radar communicates with the server, the server's IP address, radar IP address and communication port number should be specified in accordance with the protocol.

[0041] Step 3: After the server establishes a connection with the millimeter-wave radar, it packages the parameters of the configuration file according to the communication protocol and sends it to the millimeter-wave radar through UDP;

[0042] Specifically, the communication protocol used in the radar working mode is in this embodiment, and the communication protocol data in the acquisition mode is composed of a start bit, a data code, an end bit, etc. The data code mainly includes a mode selection parameter and an acquisition parameter, and the acquisition parameter includes a single chirp period and a single frame period.

[0043] Specifically, the recharge mode communication protocol data consists of a start bit, a data code, an end bit, etc. The data code mainly includes a mode selection parameter, a recharge parameter, and the recharge parameter includes a recharge processing period, a single chirp period, and a single frame period.

[0044] Furthermore, in order to prevent the corresponding parameters from being output when the host computer is used to select the mode, the corresponding configuration parameters sent in each mode have been configured on the host computer. When using it, you only need to select the working mode of the radar, and the corresponding configuration parameters will be automatically filled in. On this basis, you can also manually modify the configuration parameters.

[0045] Step 4: After receiving the UDP packet from the server, the millimeter wave radar disassembles it according to the communication protocol, completes the selection of the working mode, and enters the corresponding working mode. If it is the acquisition mode, it goes to step 5, if it is the re-injection mode, it goes to step 6;

[0046] The millimeter-wave radar enters the data collection mode. The millimeter-wave radar will create a collection folder of the current time node in the SSD, obtain the ADC data from the DDR address, and store the ADC data in the folder in sequence through the PCIE protocol. This will not affect the normal output point cloud function of the radar. The radar will send the point cloud data to the server through UDP according to the sent point cloud protocol, and the point cloud data results will be saved on the server.

[0047] In a further embodiment, Figure 2 As shown in the figure, the workflow of millimeter wave radar in step acquisition mode, the specific steps are:

[0048] Step 5.1: Enter the acquisition mode, the radar will initialize the radar RF front end according to the parameters and open three threads;

[0049] Furthermore, the three threads opened are respectively an ADC data acquisition thread, an ADC data storage thread and a radar data processing thread.

[0050] Step 5.2: The ADC data collected by the radar RF front end, each time a frame of ADC data is collected, the bin file is 16MB, and is stored by the radar data processing board at the address position of 0x50000000 of DDR;

[0051] Furthermore, in the thread for collecting ADC data, each time a frame of ADC data is stored in the DDR, a semaphore is released to the other two threads. After receiving the semaphore, the other two threads process the ADC data under the DDR address.

[0052] Step 5.3: The ADC data storage thread and the radar data processing thread read the ADC data stored in the DDR respectively. The ADC storage thread stores the read ADC data in the SSD solid state drive, and the data processing thread performs 3DFFT processing on the data to obtain point cloud data.

[0053] Step 5.4: The point cloud transmission protocol sends the processed point cloud data to the server and saves it on the server until the data collection is completed and the collection mode ends.

[0054] The millimeter-wave radar enters the data re-injection mode, waiting for the receiving server to send a UDP message containing the path of the folder to be re-injected;

[0055] Furthermore, if the folder path obtained by parsing the UDP message does not exist in the radar on-chip system, the radar lower computer will reply to the server that the destination address is wrong, and the server will change the folder path and resend the UDP message.

[0056] The millimeter wave radar will first count the number of ADC files in the specified folder path, read the ADC data from the SSD in sequence, put it into the specified DDR address for subsequent data processing, and send the point cloud data to the server according to the point cloud protocol. At the same time, the point cloud data results will be saved on the server until all the ADC data in the specified folder are refilled;

[0057] In a further embodiment, Figure 3 As shown in the figure, the millimeter wave working process in the recharging mode includes the following specific steps:

[0058] Enter the recharge mode, open the recharge ADC data thread and radar data processing thread;

[0059] According to the parsed destination file address, the collected data is moved from the SSD to the 0x50000000 address of the DDR;

[0060] Furthermore, in the ADC data refill thread, each time a frame of ADC data is transferred to the DDR, a semaphore is released to the data processing thread;

[0061] After receiving the semaphore, the data processing thread reads the data from the DDR and performs 3DFFT processing on the data to obtain the point cloud data;

[0062] The point cloud transmission protocol sends the processed point cloud data to the server and saves it on the server;

[0063] If the working state needs to be switched, a restart command is sent to the radar through the server. After restarting, the radar jumps to step 1.

[0064] The point cloud data stored in the acquisition and re-injection modes will be stored in different folders on the server side and can be replayed simultaneously through the host computer. The acquired and re-injected point cloud data can be compared to intuitively determine whether there are errors in the acquired ADC data.

[0065] Specifically, the point cloud data sending communication protocol in this embodiment, the radar point cloud data communication protocol mainly includes the x, y, z position, speed, snr and other attributes of the point cloud.

[0066] In the actual application, this solution selected ZYNQ MPSoC as the embedded system of the radar, and the radar acquisition and re-injection process worked under the petalinux system. After debugging in actual work, in the near-end mode (only one waveform was transmitted), 8 frames of point cloud data could be obtained in 1 second in both the acquisition and re-injection modes.

[0067] This embodiment proposes a method for collecting and recharging vehicle-mounted millimeter-wave radar data. The following describes the workflow of controlling the millimeter-wave radar through the server:

[0068] After the server successfully communicates with the millimeter-wave radar through the IP address and port number, the PC host will send a UDP message to the radar. The message contains the configuration of the radar mode and the various parameter configurations of the radar in this mode. After receiving the message, the radar will disassemble the message, read the message information to complete the parameter configuration of the radar itself, and enter the corresponding working mode.

[0069] Specifically, if the working configuration parameter is 0x00, the radar will be controlled to enter the acquisition mode. If the working mode configuration parameter is 0x01, the radar will enter the re-injection mode.

[0070] In data acquisition mode, the radar will store the collected ADC into the SSD solid state and record the corresponding point cloud results; in data re-injection mode, the ADC data is read from the SSD and subsequent data processing is performed to restore the point cloud results. At the same time, the previously collected point cloud results can be replayed and compared to see if there are frame drops and data errors. The test of the millimeter-wave radar acquisition and re-injection functions can be completed on one radar and one PC, reducing the time and complexity of the test.

[0071] The present invention only needs a PC host computer and a millimeter wave radar to be tested to form a server and a client. The millimeter wave radar is controlled to enter a collection mode or a re-injection mode through Ethernet to perform rapid data verification.

[0072] The above-mentioned embodiments only express the preferred implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention.

Claims

1. A vehicle-mounted millimeter wave radar data collection and recharging method, characterized in that: The specific steps are: Step 1: The millimeter-wave radar starts the acquisition and re-injection process, initializes the relevant configuration, and waits for the connection with the server and the configuration instructions of the working mode; Step 2: The PC establishes a connection with the millimeter-wave radar through the destination IP address, local IP address, and port number; Step 3: After the server establishes a connection with the millimeter-wave radar, it packages the parameters of the configuration file according to the communication protocol and sends it to the millimeter-wave radar through UDP; Step 4: After receiving the UDP data from the server, the millimeter-wave radar disassembles it according to the communication protocol and completes the selection of the working mode, entering the acquisition mode or the recharging mode.

2. The vehicle-mounted millimeter-wave radar data acquisition and recharging method according to claim 1 is characterized in that: The specific acquisition mode is as follows: the millimeter-wave radar enters the data acquisition mode, the millimeter-wave radar creates an acquisition folder of the current time node in the SSD, obtains ADC data from the DDR address, and stores the ADC data in the acquisition folder in sequence through the PCIE protocol, without affecting the normal output point cloud function of the radar. The radar sends the point cloud data to the server through UDP according to the sent point cloud protocol, and saves the point cloud data results on the server.

3. The vehicle-mounted millimeter wave radar data collection and recharging method according to claim 2 is characterized in that: The specific steps of the radar in acquisition mode are: Entering the acquisition mode, the radar initializes the radar RF front end according to the parameters and opens three threads, including the ADC data acquisition thread, the ADC data storage thread and the radar data processing thread; The radar RF front end collects ADC data according to the ADC data collection thread; The ADC data storage thread and the radar data processing thread read the ADC data stored in the DDR respectively. The ADC storage thread stores the read ADC data in the SSD solid state drive. The data processing thread performs 3DFFT processing on the data to obtain point cloud data. The point cloud transmission protocol sends the processed point cloud data to the server and saves it on the server.

4. The vehicle-mounted millimeter wave radar data collection and recharging method according to claim 3 is characterized in that: The bin file of one frame of ADC data collected by the ADC data collection thread is 16MB each time and is stored in DDR by the radar data processing board.

5. The vehicle-mounted millimeter wave radar data acquisition and recharging method according to claim 1, characterized in that: The specific recharge modes are: The millimeter-wave radar enters the data re-injection mode, waiting to receive the UDP message sent by the server containing the path of the folder to be re-injected; The millimeter-wave radar enters the data re-injection mode. The millimeter-wave radar counts the number of ADC files in the specified folder path, reads the ADC data from the SSD in sequence, puts it into the specified DDR address, and sends the point cloud data to the server according to the point cloud protocol. At the same time, the point cloud data results are saved on the server until all ADC data in the specified folder are re-injected.

6. The vehicle-mounted millimeter wave radar data collection and recharging method according to claim 5, characterized in that: The specific steps of the radar in the recharge mode are: Step 7.1: Enter the recharge mode, open the recharge ADC data thread and radar data processing thread; Step 7.2: According to the parsed destination file address, move the collected data from the SSD to the 0x50000000 address of the DDR; Step 7.3: After receiving the semaphore, the data processing thread reads the data from the DDR and performs 3DFFT processing on the data to obtain the point cloud data; Step 7.4: The point cloud transmission protocol sends the processed point cloud data to the server and saves it on the server.

7. The vehicle-mounted millimeter wave radar data collection and recharging method according to claim 1, characterized in that: The radar's acquisition and re-injection functions are integrated into one process and run on the petalinux system.

8. The vehicle-mounted millimeter-wave radar data acquisition and recharging method according to claim 1, characterized in that: The communication protocol in step 3 includes a communication protocol in an acquisition mode and a communication protocol in a recharge mode. The communication protocol data in the acquisition mode includes a start bit, a data code, and an end bit. The data code includes a mode selection parameter and an acquisition parameter. The acquisition parameter includes a single chirp period and a single frame period. The communication protocol data in the recharge mode includes a start bit, a data code, and an end bit. The data code includes a mode selection parameter and a recharge parameter. The recharge parameter includes a recharge processing period, a single chirp period, and a single frame period.

9. The vehicle-mounted millimeter wave radar data collection and recharging method according to claim 1, characterized in that: If the working state needs to be switched, a restart command is sent to the radar through the server. After restarting, the radar jumps to step 1.

Citation Information

Patent Citations

  • Radar echo simulation system and method capable of echo signal collection and playback

    CN106646408A

  • Data acquisition and playback device and data acquisition and playback system

    CN111025248A

  • Integrated radar data acquisition and processing device based on server architecture

    CN114185005A

  • Radar data processing method, device and equipment

    CN116303299A

  • Radar alarm automatic test method and system based on laser radar as true value

    CN117129975A

Cited By

  • Recharge test method and device and storage medium

    CN121151261A