A multi-threaded independent fast synchronous simulation method for multiple radars
By adopting multi-radar multi-thread independent fast synchronization simulation method in radar simulation, the problems of low efficiency and large workload of multi-threaded radar simulation technology are solved, and an efficient and fault-tolerant radar simulation process is achieved.
Patent Information
- Application Number
- CN202111230960.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-22
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2041-10-22
AI Technical Summary
Multithreaded radar simulation technology is inefficient and has a large workload. Errors in a single module can easily lead to interruption of the entire simulation process, and poor fault tolerance.
Multi-radar multi-thread independent fast synchronization simulation method is adopted to create a process flow and multiple thread flows to realize independent management of radar data processing, thread stopping and data release, ensuring that each radar model runs in independent threads without interfering with each other.
Improve simulation efficiency, reduce development and debugging workload, enhance fault tolerance, and allow modifying radar parameters during the simulation without affecting the simulation of other radar models.
Smart Images

Figure CN113960547B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of radar simulation technology, and more specifically to the field of multi-radar multi-threaded independent fast synchronous simulation method technology. Background Art
[0002] With the development of radar simulation technology, multi-radar simulation has become a development trend, and the single-thread technology used in multi-radar simulation can no longer meet the needs.
[0003] In order to improve simulation efficiency, multi-threading and multi-process technologies are generally used in the field of radar simulation. The implementation method adopts modular sub-thread or modular sub-process processing technology. Although it can also meet the simulation requirements and multi-radar synchronization problems, the simulation process is executed serially between modules. The sub-module data of all radar models must be calculated at the same time before the data of the next sub-module can be calculated. The simulation efficiency is limited by each module and the simulation efficiency is low. The workload of program development and debugging is huge. Errors in a single module can easily lead to the interruption of the entire radar simulation process and poor fault tolerance. Summary of the invention
[0004] The purpose of the present invention is to solve the problem of low efficiency and large workload of multi-thread radar simulation technology. In order to solve the above technical problems, the present invention provides a multi-radar multi-thread independent fast synchronous simulation method.
[0005] In order to achieve the above-mentioned purpose, the present invention specifically adopts the following technical solutions:
[0006] A multi-radar multi-threaded independent fast synchronous simulation method, including one process flow and multiple thread flows;
[0007] The functions of the process flow include creating a thread flow, starting a thread flow, pausing a thread flow by setting a thread stop flag, and closing a thread flow by setting a thread data release flag;
[0008] Each thread process includes the following steps:
[0009] Step S1: radar data processing;
[0010] Step S2: determine whether there is a thread stop flag from the process flow, if not, return to step S1, if yes, go to step S3;
[0011] Step S3: Determine whether there is a thread data release flag from the process flow, if not, return to step S2, if yes, release the thread data.
[0012] Preferably, in step S1, the radar data processing specifically includes the following steps:
[0013] Step S11: Initialize radar parameters;
[0014] Step S12: Calculate the scanning propulsion time according to the radar parameters, and perform simulation processing according to the scanning propulsion time;
[0015] Step S13: beam position calculation;
[0016] Step S14: Update target data to obtain the latest target location;
[0017] Step S15: acquiring target point information through the beam position and the latest position of the target;
[0018] Step S16: Generate track data according to the target point track information data and return the point track data.
[0019] Preferably, in step S13, the method for calculating the beam position is: calculating the arrangement of the scanning beam position according to radar parameters, performing the beam position calculation during the simulation process, and obtaining the current real-time beam scanning position.
[0020] Preferably, in step S15, the method for obtaining the target point trace information is: obtaining the target point trace information by judging the relationship between the target's azimuth, pitch, distance, speed, signal-to-noise ratio and the target's latest position.
[0021] Preferably, the method for creating a thread process from a process flow is: establishing multiple thread processes and associating radar parameters with the thread processes, and the number of the multiple thread processes is the same as the number of radars.
[0022] Preferably, the method of pausing the thread process by setting a thread stop flag through the process flow is: receiving target data through the network, establishing a target data receiving time interval judgment, and setting a thread stop flag when the time interval exceeds a time threshold.
[0023] Preferably, after the process flow sets the thread stop flag, if the target data is received again, the thread flow is set to restart.
[0024] The beneficial effects of the present invention are as follows:
[0025] The present invention realizes the rapid simulation requirements of multiple and different types of radars through the parallel simulation technology of independent modeling of multiple radars, synchronization of multi-threaded simulation processes, independent simulation operation of each radar, and non-interference with each other, thereby improving the simulation efficiency, reducing the development, debugging workload and fault tolerance; the present invention provides multi-radar simulation modeling, and adopts multi-threaded simulation operation management; the present invention provides simultaneous modeling of different types of radars, which can realize different parameters of simulated radar models; the present invention provides modification of radar parameters during the simulation process, and each radar does not affect each other, and there is no need to close the simulation and restart; the present invention provides independent operation of radar models in threads, which does not interfere with other radar model simulations, and can improve the simulation efficiency. The present invention adopts the creation of multiple thread processing according to the number of radar models, and the code is highly reusable, the code volume is small, and the workload of program development, debugging, etc. is reduced; the present invention adopts multi-threaded radar model simulation processing, and the interruption of a radar simulation during the simulation process will not affect the advancement and result output of other radar model simulations, thereby increasing fault tolerance. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a schematic diagram of the process of the present invention;
[0027] Figure 2 It is a flowchart of radar data processing in Example 1. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions 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 part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0029] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0030] Example 1
[0031] like Figure 1-Figure 2 As shown, this embodiment provides a multi-radar multi-threaded independent fast synchronous simulation method, including 1 process flow and multiple thread flows;
[0032] The functions of the process flow include creating a thread flow, starting a thread flow, pausing the thread flow by setting a thread stop flag, and closing the thread flow by setting a thread data release flag; in this embodiment, preferably, the method for creating a thread flow by the process flow is: establishing multiple thread flows and associating radar parameters with the thread flows, and the number of the multiple thread flows is the same as the number of radars; preferably, the method for pausing the thread flow by setting a thread stop flag by the process flow is: receiving target data through the network, establishing a target data receiving time interval judgment, and setting a thread stop flag when the time interval exceeds a time threshold; preferably, after the process flow sets the thread stop flag, if the target data is received again, the thread flow is set to restart, and the method for restarting the thread flow may be to cancel the thread stop flag.
[0033] In addition, each thread process includes the following steps:
[0034] Step S1: radar data processing; specifically, the radar data processing of this embodiment includes the following steps:
[0035] Step S11: Initialize radar parameters;
[0036] Step S12: Calculate the scanning propulsion time according to the radar parameters, and perform simulation processing according to the scanning propulsion time;
[0037] Step S13: beam position calculation; the beam position calculation method may be: calculating the arrangement of the scanning beam position according to the radar parameters, performing the beam position calculation during the simulation process, and obtaining the current real-time beam scanning position;
[0038] Step S14: Update target data to obtain the latest target location;
[0039] Step S15: obtaining target point trace information through the beam position and the target's latest position; the method for obtaining the target point trace information may be: obtaining the target point trace information by judging the relationship between the target's azimuth, pitch, distance, speed, signal-to-noise ratio and the target's latest position.
[0040] Step S16: Generate track data according to the target point track information data and return the point track data.
[0041] Step S2: determine whether there is a thread stop flag from the process flow, if not, return to step S1, if yes, go to step S3, after receiving the thread stop flag, the thread flow is in a paused state;
[0042] Step S3: Determine whether there is a thread data release flag from the process flow, if not, return to step S2. After returning, according to the previous description of the process flow, it can be seen that the simulation operation of the thread flow based on the control operation of the process flow may be restarted after re-determining the thread stop flag. If so, the thread data is released. Whether the thread data is released or not, the thread flow is terminated.
[0043] It should be noted that the process flow controls each thread flow independently, and by setting the release thread data flag to execute the closing thread flow in all thread flows in the process flow, the radar model simulation can be switched directly without closing the program.
Claims
1. A multi-radar multi-threaded independent fast synchronous simulation method, characterized in that: It includes 1 process flow and multiple thread flows; the functions of the process flow include creating a thread flow, starting a thread flow, pausing a thread flow by setting a thread stop flag, and closing a thread flow by setting a thread data release flag; Each thread process includes the following steps: Step S1: radar data processing; Step S2: determine whether there is a thread stop flag from the process flow, if not, return to step S1, if yes, go to step S3; Step S3: determine whether there is a thread data release flag from the process flow, if not, return to step S2, if yes, release the thread data; The method for creating a thread process from a process flow is: establishing multiple thread processes and associating radar parameters with the thread processes, and the number of the multiple thread processes is the same as the number of radars.
2. A multi-radar multi-threaded independent fast synchronous simulation method according to claim 1, characterized in that: In step S1, radar data processing specifically includes the following steps: Step S11: Initialize radar parameters; Step S12: Calculate the scanning propulsion time according to the radar parameters, and perform simulation processing according to the scanning propulsion time; Step S13: beam position calculation; Step S14: Update target data to obtain the latest target location; Step S15: acquiring target point information through the beam position and the latest position of the target; Step S16: Generate track data according to the target point track information data and return the point track data.
3. A multi-radar multi-threaded independent fast synchronous simulation method according to claim 2, characterized in that: In the step S13, the method for calculating the beam position is: calculating the arrangement of the scanning beam position according to the radar parameters, performing the beam position calculation during the simulation process, and obtaining the current real-time beam scanning position.
4. The multi-radar multi-threaded independent fast synchronous simulation method according to claim 2 is characterized in that: In step S15, the method for obtaining the target point trace information is: judging and obtaining the target point trace information according to the relationship between the target's azimuth, pitch, distance, speed, signal-to-noise ratio and the target's latest position.
5. The multi-radar multi-threaded independent fast synchronous simulation method according to claim 1 is characterized in that: The method for pausing a thread process by setting a thread stop flag through a process flow is: receiving target data through a network, establishing a target data receiving time interval judgment, and setting a thread stop flag when the time interval exceeds a time threshold.
6. A multi-radar multi-threaded independent fast synchronous simulation method according to claim 5, characterized in that: After the process flow sets the thread stop flag, if the target data is received again, the thread flow is set to restart.
Citation Information
Patent Citations
Secondary-surveillance-radar (SSR) simulation system and software system based on FlexRIO
CN108388705A
Multi-threaded, self-scheduling processor
CN112088359A