Radar data processing method, system and electronic equipment
By implementing parallel data processing between the processing system and the programmable logic device in the radar data processing system, the problem of tight coupling between the PL and PS parts is solved, the radar data processing speed and real-time performance are improved, and the feasibility of target data is improved. .
Patent Information
- Application Number
- CN202210592153.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-27
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-05-27
AI Technical Summary
In existing 4D imaging radar data processing, the tight coupling between the PL part and the PS part leads to resource waste, slow processing speed, and poor real-time performance, thereby reducing the feasibility of target data.
By performing second data processing when the processing system receives the first data processing completion signal, and sending the first data processing signal of the next subframe to the programmable logic device, the data between the processing system and the programmable logic device is Processing is done in parallel to reduce waiting time.
It improves the processing speed of radar data, ensures the real-time and feasibility of outputting target data, and improves the overall performance of the imaging radar.
Smart Images

Figure CN115061091B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a radar data processing method, system and electronic equipment. Background Art
[0002] FPGA (Field Programmable Gate Device) is a product that is further developed on the basis of programmable array logic, general array logic and other programmable devices. It appears as a semi-custom circuit in the field of application-specific integrated circuits, which not only solves the shortcomings of custom circuits, but also overcomes the shortcomings of the limited number of gate circuits of the original programmable devices.
[0003] In the prior art, FPGA chips based on SOC (System on Chip) models such as Zynq are used to process 4D imaging radar data. In PL, the SOC part that is not related to PL is called the processing system (PS for short), and the PL part is called the programmable logic (PL for short). For an FPGA device, the PL part and the PS part are two relatively independent parts, and the two interact with each other through the AXI (Advanced eXtensible Interface, bus protocol) bus, interrupts, GPIO (General Purpose Input Output, general input / output), shared DDR, etc. 4D imaging radar data is processed by the PL part and the PS part. For example, the data processing of the PL part includes FFT (fast Fourier transform) processing and NCI (Non-coherent integration) processing, and the data processing of the PS part includes CFAR (Constant False Alarm Rate, constant false alarm detection) processing and DOA (Direction of Arrival, angle of arrival) processing.
[0004] In the data processing flow of the PL part and the PS part, the imaging radar data must be processed by the PL part and the PS part in turn to obtain the target data, that is, the processing of the PL part and the PS part is executed sequentially. After the NCI of the PL part is completed, the CFAR on the PS side starts to run. When the DOA operation on the PS side is completed, a wave signal is generated to start the next round of work of the PL part. In the existing signal processing flow, the PL part and the PS part are tightly coupled. The work of each part of the PL and PS is strongly related to the other parts, so that the functional modules that can work independently are in a waiting situation, resulting in a waste of resources, resulting in a slow processing speed of the imaging radar data, and then the output speed of the target data is slow, the real-time performance is poor, and the feasibility of the target data is reduced.
[0005] Therefore, it is necessary to provide a radar data processing method, system and electronic equipment that can improve the processing speed of imaging radar data and ensure the real-time and feasibility of the output target data. Summary of the invention
[0006] The embodiments of the present application provide a radar data processing method, system and electronic device, which can improve the processing speed of imaging radar data and ensure the real-time and feasibility of the output target data.
[0007] In a first aspect, an embodiment of the present application provides a radar data processing method, which is applied to an electronic device, wherein the electronic device includes a programmable logic device (i.e., the above-mentioned PL part) and a processing system (i.e., the above-mentioned PS part), and the method includes:
[0008] The processing system receives the first data processing completion signal for the current subframe, and when the second data processing is not performed, in response to the first data processing completion signal, performs the second data processing on the intermediate data of the current subframe to obtain the target data of the current subframe, and simultaneously sends the first data processing signal for the next subframe to the programmable logic device; wherein the first processing completion signal is generated after the first data processing of the programmable logic device is completed, and the intermediate data of the current subframe is obtained by the programmable logic device performing the first data processing on the radar detection data of the current subframe;
[0009] The programmable logic device, in response to the first data processing signal for the next subframe sent by the processing system, acquires radar detection data of the next subframe, performs first data processing on the radar detection data of the next subframe to obtain intermediate data corresponding to the next subframe, and sends a first data processing completion signal for the next subframe to the processing system;
[0010] Furthermore, the second data processing of the current subframe by the processing system and the first data processing of the next subframe by the programmable logic device are parallel processing.
[0011] In some optional embodiments, the method further comprises:
[0012] When the second data processing is not performed, the processing system controls the radar to perform detection.
[0013] In some optional embodiments, the method further comprises:
[0014] When the processing system has not received the first data processing completion signal and has not performed the second data processing, the processing system sends the first data processing signal to the programmable logic device.
[0015] In some optional embodiments, the programmable logic device is provided with a state machine, an initial state, a first state, a ping state, and a pong state, and the method further comprises:
[0016] Before the programmable logic device receives the first data processing signal corresponding to the first subframe, the state machine is in the initial state;
[0017] When the programmable logic device receives the first data processing signal corresponding to the first subframe, the state machine jumps from the initial state to the first state;
[0018] When the programmable logic device generates the first data processing completion signal corresponding to the first subframe, the state machine jumps from the first state to the pong state;
[0019] When the programmable logic device receives the first data processing signal corresponding to a subframe other than the first subframe and an adjacent next subframe, the state machine jumps between the ping state and the pong state.
[0020] In some optional embodiments, the method further comprises:
[0021] The intermediate data obtained by the programmable logic device in the pong state and the intermediate data obtained in the ping state are respectively stored in the first storage unit and the second storage unit by using a ping-pong storage operation;
[0022] or,
[0023] After performing the first data processing, the programmable logic device stores the intermediate data obtained in the first state and the ping state in a first storage unit; and stores the intermediate data obtained in the ping state in a second storage unit.
[0024] In some optional embodiments, the method further comprises:
[0025] Before performing the second data processing, the processing system alternately obtains the intermediate data from the first storage unit and the second storage unit.
[0026] In some optional embodiments, the first data processing includes distance measurement and / or speed measurement based on fast Fourier transform.
[0027] In some optional embodiments, the second data processing includes data screening and / or angle processing; the data screening is implemented based on constant false alarm detection of the processing system; and the angle processing is implemented based on arrival angle calculation of the processing system.
[0028] In a second aspect, an embodiment of the present application provides a radar data processing system, the system comprising: a programmable logic device and a processing system;
[0029] The processing system is used to receive the first data processing completion signal for the current subframe, and when the second data processing is not performed, in response to the first data processing completion signal, perform the second data processing on the intermediate data of the current subframe to obtain the target data of the current subframe, and send the first data processing signal for the next subframe to the programmable logic device at the same time; wherein the first processing completion signal is generated after the first data processing of the programmable logic device is completed, and the intermediate data of the current subframe is obtained by the programmable logic device performing the first data processing on the radar detection data of the current subframe;
[0030] The programmable logic device is used to respond to a first data processing signal for a next subframe sent by the processing system, obtain radar detection data of the next subframe, perform first data processing on the radar detection data of the next subframe to obtain intermediate data corresponding to the next subframe, and send a first data processing completion signal for the next subframe to the processing system;
[0031] Furthermore, the second data processing of the current subframe by the processing system and the first data processing of the next subframe by the programmable logic device are parallel processing.
[0032] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded by the processor and executes the above-mentioned radar data processing method.
[0033] The present application receives the first data processing completion signal for the current subframe through the processing system, and when the second data processing is not performed, in response to the first data processing completion signal, performs the second data processing on the intermediate data of the current subframe to obtain the target data of the current subframe, and sends the first data processing signal for the next subframe to the programmable logic device at the same time; the programmable logic device responds to the first data processing signal for the next subframe sent by the processing system, obtains the radar detection data of the next subframe, performs the first data processing on the radar detection data of the next subframe to obtain the intermediate data corresponding to the next subframe, and sends the first data processing completion signal for the next subframe to the processing system; and the second data processing of the current subframe by the processing system and the first data processing of the next subframe by the programmable logic device are parallel processing. In this way, by controlling the processing system to perform the second data processing on the intermediate data of the current subframe, while controlling the programmable logic device to perform the first data processing on the radar data of the next subframe to obtain the intermediate data of the next subframe, the waiting time of the programmable logic device and the processing system can be reduced, the processing speed of the radar data can be improved, and the real-time and feasibility of the output target data can be guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0035] Figure 1 It is a schematic diagram of radar data processing in the prior art;
[0036] Figure 2 It is a flowchart of a radar data processing method provided in an embodiment of the present application;
[0037] Figure 3 is a schematic diagram of another radar data processing provided by an embodiment of the present application;
[0038] Figure 4 is a flowchart of another radar data processing method provided in an embodiment of the present application;
[0039] Figure 5A It is a state diagram of a programmable logic device in radar data processing provided by an embodiment of the present application;
[0040] Figure 5B It is a state jump schematic diagram of a programmable logic device provided in an embodiment of the present application;
[0041] Figure 6is a schematic diagram of a process for processing radar data by a processing system provided in an embodiment of the present application;
[0042] Figure 7 is a schematic diagram of the structure of a radar data processing system provided in an embodiment of the present application;
[0043] Figure 8 This is a hardware structure block diagram of an electronic device for implementing a radar data processing method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0045] "One embodiment" or "embodiment" referred to herein refers to a specific feature, structure or characteristic that may be included in at least one implementation of the present invention. In the description of the present invention, it should be understood that the terms "first", "second", "third" and "fourth" in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units that are inherent to these processes, methods, products or devices.
[0046] See also Figure 1 , Figure 1It is a schematic diagram of radar data processing in the prior art. In the process of radar data processing, the first data processing (including distance dimension FFT and speed dimension FFT) of the programmable logic device (PL part) and the second data processing (including CFAR and DOA) of the processing system (PS part) are required. Among them, the data is processed serially between the PL part and the PS part. For example, the processing process for each subframe radar data is that the PS part generates a chirp_start signal to the PL part. After receiving the chirp_start signal, the PL part performs the first data processing on each subframe radar data to obtain intermediate data. After completion, the nci_done signal is generated to the PS part. The processing time of the PL part is T1. Then, after receiving the nci_done signal, the PS part performs the second data processing on the intermediate data to obtain the target data. After completion, the doa_done signal is generated to the PL part. The processing time of the PS part is T2, and T2 is greater than T1. After obtaining the target data, the PS part controls the radar to transmit waves to obtain the radar data of the next subframe and enter a new round of subframe processing. The sum of the processing time of the PL part of a subframe plus the processing time of the PS part is the minimum frame period of a frame rate, so the processing time T of each subframe radar data is T1+T2. For example, assuming that the time of the PL part is 33ms and the time of the PS part is 67ms, the corresponding frame rate is 100ms. If a subframe generates 500 points, the number of point clouds generated in 1 second is 5000.
[0047] As mentioned above, the programmable logic device and the processing system are tightly coupled because of the serial data processing, which causes the programmable logic device and the processing system to wait, resulting in a waste of resources and time, leading to a slow data processing speed of radar data, which in turn makes the output speed of target data slow and the real-time performance poor, thereby reducing the feasibility of target data. Single subframe frame rate ( Figure 1 If the time T) shown is too long, the frame rate will be reduced, which will lead to a decrease in the number of point clouds per unit time, affecting the overall performance indicators of the radar.
[0048] In order to solve the above problems, the present application provides a radar data processing method. Specifically, the programmable logic device responds to a first data processing signal for the current subframe sent by the processing system to obtain radar detection data of the current subframe, performs a first data processing on the radar detection data of the current subframe to obtain intermediate data corresponding to the current subframe, and sends a first data processing completion signal for the current subframe to the processing system; the processing system receives the first data processing completion signal, and when the second data processing is not performed, responds to the first data processing completion signal to perform the second data processing on the intermediate data of the current subframe, and sends the first data processing signal for the next subframe to the programmable logic device, so that while the processing system performs the second data processing on the intermediate data of the current subframe, the programmable logic device responds to the first data processing signal for the next subframe sent by the processing system to obtain radar detection data of the next subframe, performs the first data processing on the radar detection data of the next subframe to obtain the intermediate data corresponding to the next subframe, and sends the first data processing completion signal for the next subframe to the processing system. In this way, data is processed in parallel by programmable logic devices and processing systems, which improves the processing speed of imaging radar data and ensures the real-time and feasibility of the output target data.
[0049] The following describes a specific embodiment of a radar data processing method of the present application. Figure 2 It is a flowchart of a radar data processing method provided in an embodiment of the present application. This specification provides method operation steps such as the embodiment or flowchart, but may include more or fewer operation steps based on conventional or non-creative labor. The order of steps listed in the embodiment is only one way of executing the steps among many orders, and does not represent the only order of execution. When the actual system or server product is executed, it can be executed in the order shown in the embodiment or the drawings or in parallel (for example, in a parallel processor or multi-threaded processing environment). Specifically, Figure 2 As shown, the method is applied to an electronic device, the electronic device includes a programmable logic device and a processing system, and the method may include:
[0050] S202: The programmable logic device responds to the first data processing signal for the current subframe sent by the processing system, obtains the radar detection data of the current subframe, performs the first data processing on the radar detection data of the current subframe to obtain the intermediate data corresponding to the current subframe, and sends the first data processing completion signal for the current subframe to the processing system.
[0051] In some optional embodiments, the first data processing includes distance measurement and / or speed measurement based on fast Fourier transform. For example, the distance and speed between radar targets are resolved through the first data processing; and the above intermediate data is 2D-FTT data including distance and speed information.
[0052] In some optional embodiments, the current subframe may refer to the first subframe at the start time of processing radar subframe data, or may refer to a subframe at any time after the start time, the next subframe refers to a subframe at the next time adjacent to the current subframe, and the previous subframe refers to a subframe at the previous time adjacent to the current subframe.
[0053] In some optional embodiments, before radar data processing is started, neither the programmable logic device nor the processing system starts the data processing process. At the initial moment of starting radar data processing, the processing system first sends a first data processing signal for the current subframe to the programmable logic device to instruct the programmable logic device to start the first data processing process and perform the first data processing on the current subframe. The current subframe can be understood as the first subframe of radar data.
[0054] S204: The processing system receives a first data processing completion signal for the current subframe, and when the second data processing is not performed, in response to the first data processing completion signal, performs the second data processing on the intermediate data of the current subframe to obtain the target data of the current subframe, and simultaneously sends the first data processing signal for the next subframe to the programmable logic device;
[0055] The programmable logic device, in response to the first data processing signal for the next subframe sent by the processing system, acquires radar detection data of the next subframe, performs first data processing on the radar detection data of the next subframe to obtain intermediate data corresponding to the next subframe, and sends a first data processing completion signal for the next subframe to the processing system;
[0056] Furthermore, the second data processing of the current subframe by the processing system and the first data processing of the next subframe by the programmable logic device are parallel processing.
[0057] In some optional embodiments, the second data processing includes data screening and / or angle processing.
[0058] In some optional embodiments, the data screening is implemented based on the constant false alarm rate (CFAR) of the processing system; the angle processing is implemented based on the angle of arrival (DOA) calculation of the processing system. The target data of the frame is obtained after the second data processing is performed on the intermediate data.
[0059] In some optional embodiments, the first data processing time T1 is less than the second data processing time T2, and a situation in which the second data processing of the current subframe by the processing system and the first data processing of the next subframe by the programmable logic device are processed in parallel means that the first data processing of the programmable logic device starts and is completed within the processing time of the second data processing by the processing system, and this processing time is the second data processing time T2. It can be understood that the present application does not limit the time relationship between the first data processing and the second data processing, that is, the first data processing time T1 can be greater than, less than or equal to the second data processing time T2.
[0060] In some optional embodiments, the content of step 204 is continuously looped, and in the first T2 time period, the processing system processes the second data of the current subframe in parallel with the processing of the first data of the next subframe by the programmable logic device; in the second T2 time period, the processing system processes the second data of the next subframe in parallel with the processing of the first data of the next subframe by the programmable logic device, and so on, until the radar data of the last subframe are processed.
[0061] In some optional embodiments, the processing time of the first data processing time T1 is included in the second data processing time T2, so the single subframe processing time T is reduced from T1+T2 to T2.
[0062] In the above embodiment, the processing system receives the first data processing completion signal for the current subframe, and when the second data processing is not performed, in response to the first data processing completion signal, performs the second data processing on the intermediate data of the current subframe to obtain the target data of the current subframe, and sends the first data processing signal for the next subframe to the programmable logic device; the programmable logic device responds to the first data processing signal for the next subframe sent by the processing system, obtains the radar detection data of the next subframe, performs the first data processing on the radar detection data of the next subframe to obtain the intermediate data corresponding to the next subframe, and sends the first data processing completion signal for the next subframe to the processing system; and the second data processing of the current subframe by the processing system and the first data processing of the next subframe by the programmable logic device are parallel processing. In this way, while the processing system is controlled to perform the second data processing on the intermediate data of the current subframe, the programmable logic device is controlled to perform the first data processing on the radar data of the next subframe to obtain the intermediate data of the next subframe. The waiting time of the processing system and the programmable logic device is reduced, the processing speed of the radar data is improved, the frame rate is improved, and the real-time and feasibility of the output target data are guaranteed.
[0063] Combine the following Figure 3The radar data processing method of the embodiment of the present application is further described. Figure 3 As shown, in some embodiments, at the initial moment, the processing system first sends (i.e., PS TO PL) a first data processing signal chirp_start for the first subframe to the programmable logic device;
[0064] After receiving the chirp_start signal, the programmable logic device starts to perform the first data processing on the first subframe to obtain the intermediate data of the first subframe. After completing the first data processing, the programmable logic device sends a first data processing completion signal Nci_done for the first subframe to the processing system (i.e., PLT0 PS);
[0065] The processing system receives the signal Nci_done and confirms it as the first received signal Nci_done, and generates the first data processing signal chirp_start for the second subframe again, so that after the programmable logic device receives the signal chirp_start, it starts to perform the first data processing on the second subframe to obtain the intermediate data of the second subframe. After completing the first data processing, the programmable logic device sends (i.e., PLTO PS) the first data processing completion signal Nci_done for the second subframe to the processing system;
[0066] At the same time, in response to the first signal Nci_done, the second data processing of the intermediate data of the first subframe is started. After the second data processing is completed, the target data of the first subframe is obtained, and the second data processing completion signal doa_done of the first subframe is generated. At this point, the data processing process of the first subframe is completed. Because the PS processing time is generally longer than the PL processing time, the nci_done signal of the second subframe is generally generated earlier than the doa_done signal of the first subframe, that is, the situation shown in the figure;
[0067] When the processing system receives the first processing completion signal Nci_done for the second subframe sent by the programmable logic device, when the second processing completion signal doa_done for the first subframe is obtained, the processing system generates the chirp_start signal for the third subframe again, so that after the programmable logic device receives the chirp_start signal, it starts to perform the first data processing on the third subframe to obtain the intermediate data of the third subframe. After completing the first data processing, the programmable logic device sends (i.e., PLTO PS) the first data processing completion signal Nci_done for the third subframe to the processing system;
[0068] At the same time, in response to the second signal Nci_done, the second data processing is started on the intermediate data of the second subframe, and after the second data processing is completed, the target data of the second subframe is obtained, and the second data processing completion signal doa_done of the second subframe is generated. At this point, the data processing process of the second subframe is completed.
[0069] The subsequent cycles perform independent ping-pong pipeline operations on PL and PS. The two are no longer tightly coupled in series as before, and no waiting is required.
[0070] In summary, by decoupling and adjusting the PL and PS serial tight coupling modes, under the new interaction mechanism, the waiting time of each module is reduced, and the frame rate of radar signal processing can be improved. For example, the PL side time is 33ms, the PS side time is 67ms, and the original serial mode frame rate is 100ms. After adopting the solution of this application, the frame rate can be reduced to 67ms.
[0071] Figure 4 is a flow chart of another radar data processing method provided in an embodiment of the present application, such as Figure 4 As shown, the method includes Figure 2 The steps shown, namely steps S202-S204, are Figure 2 The specific steps of the method also include:
[0072] Before the programmable logic device receives the first data processing signal in step S202, step S201 is performed, and the processing system sends the first data processing signal.
[0073] S201: When the processing system has not received the first data processing completion signal and has not performed the second data processing, the processing system sends a first data processing signal to the programmable logic device.
[0074] In step S204, after the processing system processes the second data, the process proceeds to step S206, where the processing system controls the radar to perform detection.
[0075] S206: When the processing system does not perform the second data processing, the processing system controls the radar to perform detection.
[0076] Through the above-mentioned embodiment, the control condition of the processing system on the first data processing signal realizes the control of the programmable logic device, and realizes the processing system and the programmable logic device to process data simultaneously, thereby reducing the waiting time and improving the data processing speed.
[0077] See also Figure 3As shown, before the processing system controls the radar to transmit the first wave, if the first data processing completion signal is not received and the second data processing is not performed, the processing system controls the radar to perform detection. After the radar receives the control information, it performs initialization, calibration, and wave transmission operations.
[0078] See also Figure 3 As shown, when the processing system receives the first first data processing completion signal, the processing system starts the second data processing, sends the first data processing signal to the programmable logic device, and controls the radar to detect. After receiving the control information, the radar performs the initialization, calibration, and wave transmission operations again. When the processing system processes the second data processing corresponding to the first first data processing completion signal, the programmable logic device responds to the first data processing signal, starts to receive the radar's detection data and performs the first data processing.
[0079] See also Figure 3 As shown, when the processing system receives the second first data processing completion signal (i.e., generates intermediate data corresponding to the third subframe), after the second data processing corresponding to the first first data processing completion signal is completed (i.e., the second data processing is completed for the intermediate data corresponding to the second subframe), a third first data processing signal is sent to the programmable logic device to control the editable logic device to perform first data processing on the radar data of the third subframe, and at the same time, the processing system performs second data processing on the intermediate data corresponding to the above-mentioned second subframe (realizing the parallelization of the first data processing for the radar data of the second subframe and the second data processing for the intermediate data of the third subframe), and controls the radar to perform detection.
[0080] Combine the following Figure 5A , Figure 5B and Figure 6 The radar data processing method is further described.
[0081] In some optional embodiments, the programmable logic device is provided with a state machine, an initial state, a first state, a ping state, and a pong state;
[0082] Before the programmable logic device receives the target signal corresponding to the first subframe, the state machine is in the initial state;
[0083] When the programmable logic device receives the target signal corresponding to the first subframe, the state machine jumps from the initial state to the first state;
[0084] When the programmable logic device generates the first data processing completion signal corresponding to the first subframe, the state machine jumps from the first state to the pong state.
[0085] When the programmable logic device receives the target signal corresponding to a subframe other than the first subframe and an adjacent next subframe, the state machine jumps between the ping state and the pong state.
[0086] In some optional embodiments, when the programmable logic device receives the first data processing signal corresponding to the current subframe and the adjacent next subframe, the state machine jumps between the ping state and the pong state.
[0087] For example, Figure 5B 1 is a schematic diagram of the state transition of the programmable logic device provided in the embodiment of the present application, wherein the initial state is the IDEL state shown in the figure; the first state is the state Master_one shown in the figure; the ping state is the state Master_ping shown in the figure; the pong state is the state Master_pang shown in the figure. The first data processing signal is the signal chirp_start in the figure.
[0088] For example, Figure 5A 1 is a schematic diagram of the state of a programmable logic device in radar data processing provided by an embodiment of the present application. When the programmable logic device (ie, PL) receives Figure 3 The first signal chirp_start shown, the programmable logic device enters the state Master_one from the initial state, and after generating the first signal nci_done, the programmable logic device jumps from the state Master_one to the state Master_pang. After receiving the second signal chirp_start, the programmable logic device jumps from the state Master_pang to the state Master_ping. After receiving the third signal chirp_start, the programmable logic device jumps from the state Master_ping to the state Master_pang, and so on, jumping between the state Master_ping and the state Master_pang.
[0089] The above embodiment further facilitates the state transfer of the programmable logic device by setting a state machine, designs state jump conditions, reduces the waiting time of each module, and improves the radar data processing frame rate.
[0090] In some optional embodiments, the intermediate data obtained by the programmable logic device in the pong state and the intermediate data obtained in the ping state are respectively stored in the first storage unit and the second storage unit using a ping-pong storage operation.
[0091] For example, after performing the first data processing, the programmable logic device stores the intermediate data obtained in the first state and the pong state in a first storage unit; and stores the intermediate data obtained in the ping state in a second storage unit.
[0092] For example, Figure 5A As shown, the programmable logic device stores the intermediate data obtained in the state Master_one (ie, the first state) and the state Master_pang (ie, the pong state) in the first storage unit, and stores the intermediate data obtained in the state Master_ping (ie, the ping state) in the second storage unit.
[0093] The first storage unit and the second storage unit can be implemented in a variety of ways, and the present application does not limit the implementation. For example, different data storage bodies in DDR (Double Data Rate Synchronous Dynamic Random Access Memory) are used to respectively constitute the first storage unit and the second storage unit. For another example, different RAMs (Random Access Memory) are used to respectively implement the first storage unit and the second storage unit.
[0094] In some optional embodiments, before performing the second data processing, the processing system alternately obtains the intermediate data from the first storage unit and the second storage unit.
[0095] For example, after the FFT on the PL side is completed, the DDR-Ping address is placed first, followed by the DDR-Pang address, and so on. Therefore, when the PS takes the 2D-FFT data, it also needs to follow the above order, that is, the first frame of 2D-FFT data is prepared to correspond to DDR-Ping, the next frame of 2D-FFT data is prepared to correspond to DDR-Pang, the next frame of 2D-FFT data is prepared to correspond to DDR-Ping, and the next frame of 2D-FFT data is prepared to correspond to DDR-Pang.
[0096] In the above embodiment, the ping-pong storage method is used, that is, two storage units are used to store the intermediate data of different subframes, which can reduce the capacity of the storage unit and thus improve the storage efficiency compared with the sequential storage method in the prior art. In addition, the processing system alternately identifies and reads the intermediate data of different subframes from different storage units, which can improve the data reading efficiency.
[0097] Figure 6 The following is a schematic diagram of the process of processing radar data by the processing system side provided in the embodiment of the present application. The process of processing radar data by the processing system side is the main line. Figure 3 , Figure 5A and Figure 5B The implementation of the radar data processing method provided by the present application in the above embodiment is introduced by way of example. The details are as follows:
[0098] S601: Control radar initialization and calibration. The processing system controls radar initialization and calibration to prepare for subsequent radar transmission.
[0099] S602: Control the radar to emit waves. The processing system controls the radar to emit waves and sends a first signal chirp_start (equivalent to the first data processing signal in the above embodiment) to the programmable logic device.
[0100] On the PLD side, the PLD receives Figure 3 The first signal chirp_start shown is in the initial state, namely IDLE (such as Figure 5A and Figure 5B After the programmable logic device receives the first signal chirp_start, it enters Figure 5A and Figure 5B The state Master_one shown in the figure obtains the radar data of the first subframe and performs the first data processing on the radar data of the first subframe.
[0101] S603: Determine whether the signal Nci_done is received. That is, the processing system determines whether the signal Nci_done is received.
[0102] Figure 3 The programmable logic device shown in the figure obtains the intermediate data of the first subframe after performing the first data processing on the radar data of the first subframe, generates the first signal Nci_done, and stores the intermediate data of the first subframe in the first memory address ( Figure 5A shown).
[0103] If the processing system determines that the first signal Nci_done has been received, it enters step S604 to prepare the intermediate data of the first subframe; at the same time, it also enters steps S601 and S602 to control the radar to emit waves and generate the next frame of radar data; and sends the second signal chirp_start to the programmable logic device.
[0104] The programmable logic device responds to the second signal chirp_start, such as Figure 5B As shown, the second signal chirp_start is received, the state Master_pang is entered, and the first data of the radar data of the second subframe is processed to obtain the intermediate data of the second subframe, and then ( Figure 5AAs shown), the intermediate data of the second subframe is stored in the second memory address of the memory, and a second signal Nci_done is sent to the processing system.
[0105] After entering step S603 again, the processing system determines that a non-first signal Nci_done (ie, the second signal Nci_done) is received, and then enters step S606 to prepare intermediate data of the next subframe.
[0106] S604: Prepare intermediate data of the first subframe. For example, the processing system obtains the intermediate data of the first subframe from the memory based on the first memory address.
[0107] S605: CFAR processing and DOA processing. The processing system performs a second data processing, which includes CFAR processing and DOA processing.
[0108] S606: Prepare the intermediate data of the next subframe. For example, the processing system prepares to obtain the intermediate data of the second subframe based on the second memory address.
[0109] like Figure 3 As shown, when the processing system completes the second data processing of the intermediate data of the first subframe, a signal first is generated. Then, the process proceeds to step S606 to determine whether a signal doa_done is generated.
[0110] S607: Determine whether the signal doa_done is generated. If the processing system determines that the signal doa_done is generated, it proceeds to step S601, and based on the received second signal Nci_done and the first signal doa_done, sends a third signal chirp_start to the programmable logic device (e.g. Figure 3 As shown), the programmable logic device responds to the third signal chirp_start, such as Figure 5A and Figure 5B As shown, the state Master_ping is entered, radar data of the third subframe is acquired, and the first data processing is performed to obtain intermediate data of the third subframe.
[0111] If the processing system determines that the signal doa_done is not generated, it continues to wait and query the signal doa_done. If the processing system does not generate the signal doa_done within the preset time in step S607, it sends a signal err( Figure 5B As shown), the editable logic device enters the initial state.
[0112] like Figure 6As shown, when the PS part completes the second data processing (step S603), the PS part obtains the intermediate data of the next subframe from the PL part, and controls the radar to initialize and transmit. In order to speed up the processing of data by the PS part, in some optional embodiments, the PS part adopts multi-core processing Figure 6 The process shown, in which Figure 6 Steps S601 to S603 (i.e. controlling the radar to initialize and transmit) are processed by the first core (core0); steps S604 to S607 (i.e. obtaining the intermediate data of the next subframe and performing the second data processing) are processed by the second core (core1).
[0113] As described above, the editable logic device is associated with the memory address of the storage data by setting the state jump, so that the intermediate data generated in different states are stored in the corresponding memory address, that is, ping-pong storage. The processing system controls the signal chirp_start through the signal Nci_done and the signal doa_done to control the editable logic device to perform the first data processing and start processing the data at the same time; wherein the editable logic device sends the information that the first data processing is completed to the processing system through the signal Nci_done.
[0114] The present application implements the above radar data processing method through a radar data processing system. Figure 7 Schematic diagram of the structure of the radar data processing system provided in the embodiment of the present application. Figure 7 As shown, the radar data processing system includes a programmable logic device and a processing system.
[0115] The programmable logic device is used to respond to a first data processing signal for the current subframe sent by the processing system, obtain radar detection data of the current subframe, perform first data processing on the radar detection data of the current subframe to obtain intermediate data corresponding to the current subframe, and send a first data processing completion signal for the current subframe to the processing system;
[0116] The processing system is used to receive the first data processing completion signal for the current subframe, and when the second data processing is not performed, in response to the first data processing completion signal, perform the second data processing on the intermediate data of the current subframe, and send the first data processing signal for the next subframe to the programmable logic device;
[0117] The programmable logic device, in response to the first data processing signal for the next subframe sent by the processing system, acquires radar detection data of the next subframe, performs first data processing on the radar detection data of the next subframe to obtain intermediate data corresponding to the next subframe, and sends a first data processing completion signal for the next subframe to the processing system;
[0118] Furthermore, the second data processing of the current subframe by the processing system and the first data processing of the next subframe by the programmable logic device are parallel processing.
[0119] In some optional embodiments, the first data processing includes distance measurement and / or speed measurement based on fast Fourier transform.
[0120] In some optional embodiments, the second data processing includes data screening and / or angle processing.
[0121] In some optional embodiments, the data screening is implemented based on constant false alarm detection of the processing system; and the angle processing is implemented based on arrival angle calculation of the processing system.
[0122] In some optional embodiments, the processing system controls the radar to perform detection when the second data processing is not performed.
[0123] In some optional embodiments, when the processing system has not received the first data processing completion signal and has not performed the second data processing, the processing system sends the first data processing signal to the programmable logic device.
[0124] In some optional embodiments, the programmable logic device stores the intermediate data in a memory after performing the first data processing; wherein the intermediate data of the current subframe and the intermediate data corresponding to an adjacent subframe are stored using ping-pong storage.
[0125] Through the above embodiment, the programmable logic device responds to the first data processing signal for the current subframe sent by the processing system, performs the first data processing on the radar detection data of the current subframe to obtain the intermediate data corresponding to the current subframe, and sends the first data processing completion signal for the current subframe to the processing system; when the processing system does not perform the second data processing, it responds to the first data processing completion signal to perform the second data processing on the intermediate data of the current subframe, and sends the first data processing signal for the next subframe to the programmable logic device, so that the programmable logic device responds to the first data processing signal for the next subframe sent by the processing system, obtains the radar detection data of the next subframe, performs the first data processing on the radar detection data of the next subframe to obtain the intermediate data corresponding to the next subframe, and sends the first data processing completion signal for the next subframe to the processing system; and the second data processing of the current subframe by the processing system and the first data processing of the next subframe by the programmable logic device are parallel processing. In this way, while the processing system is controlled to perform the second data processing on the intermediate data of the current subframe, the programmable logic device is controlled to perform the first data processing on the radar data of the next subframe to obtain the intermediate data of the next subframe. Reduce the waiting time of the processing system and programmable logic devices, increase the processing speed of radar data, improve the frame rate, and ensure the real-time and feasibility of the output target data.
[0126] In this way, the radar data processing method is implemented through the radar data processing system.
[0127] Figure 8 1 is a hardware structure diagram of an electronic device for implementing a radar data processing method provided in an embodiment of the present application. The electronic device may be a server or a terminal device, and its internal structure diagram may be as follows: Figure 8 As shown. Figure 8As shown, the electronic device 800 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 810 (the central processing unit 810 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 830 for storing data, and one or more storage media 820 (such as one or more mass storage devices) for storing application programs 823 or data 822. Among them, the memory 830 and the storage medium 820 can be short-term storage or permanent storage. The program stored in the storage medium 820 may include one or more modules, each of which may include a series of instruction operations on the server. Furthermore, the central processing unit 810 can be configured to communicate with the storage medium 820 and execute a series of instruction operations in the storage medium 820 on the electronic device 800. The electronic device 800 may also include one or more power supplies 850, one or more wired or wireless network interfaces 850, one or more input and output interfaces 840, and / or one or more operating systems 821, such as Windows, Mac OS, Unix, Linux, FreeBSD, etc.
[0128] The input / output interface 840 may be used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the electronic device 800. In one example, the input / output interface 840 includes a network adapter (Network Interface Controller, NIC), which may be connected to other network devices via a base station so as to communicate with the Internet. In one example, the input / output interface 840 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0129] The power supply 860 can be logically connected to the central processing unit 810 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.
[0130] It can be understood by those skilled in the art that Figure 8 The structure shown is for illustration only and does not limit the structure of the above electronic device. Figure 8 More or fewer components as shown, or with Figure 8 Different configurations are shown.
[0131] An embodiment of the present application further provides a computer storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or at least one program is loaded and executed by a processor to implement the above-mentioned radar data processing method.
[0132] Optionally, in this embodiment, the storage medium may be located in at least one of the multiple network servers of the computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0133] An embodiment of the present application also provides an electronic device, which includes at least a central processing unit 810 and a memory 830, wherein the memory 830 stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded by the central processing unit 810 and executes the above-mentioned radar data processing method.
[0134] It can be seen from the embodiments of a radar data processing method, system, medium and electronic device provided by the present application that, through a programmable logic device, in response to a first data processing signal for a current subframe sent by a processing system, radar detection data of the current subframe is obtained, a first data processing is performed on the radar detection data of the current subframe to obtain intermediate data corresponding to the current subframe, and a first data processing completion signal for the current subframe is sent to the processing system according to the intermediate data; the processing system receives the first data processing completion signal, and when the second data processing is not performed, in response to the first data processing completion signal, the intermediate data of the current subframe is subjected to the second data processing, and at the same time, the first data processing signal for the next subframe is sent to the programmable logic device, the programmable logic device responds to the first data processing signal for the next subframe sent by the processing system, obtains radar detection data of the next subframe, performs the first data processing on the radar detection data of the next subframe to obtain the intermediate data corresponding to the next subframe, and sends the first data processing completion signal for the next subframe to the processing system; and the second data processing of the current subframe by the processing system and the first data processing of the next subframe by the programmable logic device are parallel processing. In this way, by controlling the processing system to perform the second data processing on the intermediate data of the current subframe, the programmable logic device is controlled to perform the first data processing on the radar data of the next subframe to obtain the intermediate data of the next subframe. This can reduce the waiting time of the programmable logic device and the processing system, improve the processing speed of the radar data, and ensure the real-time and feasibility of the output target data.
[0135] It should be noted that the above-mentioned sequence of the embodiments of the present application is for description only and does not represent the advantages and disadvantages of the embodiments. The above-mentioned specific embodiments of this specification are described. Other embodiments are within the scope of the attached claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0136] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0137] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0138] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A radar data processing method, applied to an electronic device, wherein the electronic device comprises a programmable logic device and a processing system, characterized in that: The method comprises: The processing system receives a first data processing completion signal for a current subframe, and when the second data processing is not performed, in response to the first data processing completion signal, performs the second data processing on the intermediate data of the current subframe to obtain the target data of the current subframe, and simultaneously sends the first data processing signal for the next subframe to the programmable logic device; wherein the first data processing completion signal is generated after the first data processing of the programmable logic device is completed, and the intermediate data of the current subframe is obtained by the programmable logic device performing the first data processing on the radar detection data of the current subframe; The programmable logic device, in response to the first data processing signal for the next subframe sent by the processing system, acquires the radar detection data of the next subframe, performs the first data processing on the radar detection data of the next subframe to obtain intermediate data corresponding to the next subframe, and sends a first data processing completion signal for the next subframe to the processing system; Furthermore, the processing system performs a parallel process on the second data of the current subframe and the programmable logic device performs a parallel process on the first data of the next subframe.
2. The method according to claim 1, characterized in that: The method further comprises: When the processing system has not received the first data processing completion signal and has not performed the second data processing, the processing system sends the first data processing signal to the programmable logic device.
3. The method according to claim 1, characterized in that The programmable logic device is provided with a state machine, the state machine includes a ping state and a pong state, and the method further includes: When the programmable logic device receives the first data processing signal corresponding to the current subframe and the adjacent next subframe, the state machine jumps between the ping state and the pong state.
4. The method according to claim 3, characterized in that The state machine includes an initial state and a first state, and the method further includes: Before the programmable logic device receives the first data processing signal for the first subframe, the state machine is in the initial state; When the programmable logic device receives the first data processing signal corresponding to the first subframe, the state machine jumps from the initial state to the first state; When the programmable logic device generates the first data processing completion signal corresponding to the first subframe, the state machine jumps from the first state to the pong state.
5. The method according to claim 3, characterized in that: The method further comprises: The intermediate data obtained by the programmable logic device in the pong state and the intermediate data obtained in the ping state are respectively stored in a first storage unit and a second storage unit by using a ping-pong storage operation.
6. The method according to claim 5, characterized in that The method further comprises: Before performing the second data processing, the processing system alternately obtains the intermediate data from the first storage unit and the second storage unit.
7. The method according to claim 1, characterized in that The first data processing includes distance measurement and / or speed measurement based on fast Fourier transform.
8. The method according to claim 1 or 7, characterized in that: The second data processing includes data screening and / or angle processing; the data screening is implemented based on constant false alarm detection of the processing system; and the angle processing is implemented based on arrival angle calculation of the processing system.
9. A radar data processing system, characterized in that: The system includes: a programmable logic device and a processing system; The processing system receives a first data processing completion signal for a current subframe, and when the second data processing is not performed, in response to the first data processing completion signal, performs the second data processing on the intermediate data of the current subframe to obtain the target data of the current subframe, and simultaneously sends the first data processing signal for the next subframe to the programmable logic device; wherein the first data processing completion signal is generated after the first data processing of the programmable logic device is completed, and the intermediate data of the current subframe is obtained by the programmable logic device performing the first data processing on the radar detection data of the current subframe; The programmable logic device is used to, in response to a first data processing signal for the next subframe sent by the processing system, obtain radar detection data of the next subframe, perform the first data processing on the radar detection data of the next subframe to obtain intermediate data corresponding to the next subframe, and send a first data processing completion signal for the next subframe to the processing system; Furthermore, the processing system performs a parallel process on the second data of the current subframe and the programmable logic device performs a parallel process on the first data of the next subframe.
10. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded by the processor and executes the radar data processing method according to any one of claims 1 to 8.
