Radar test method, storage medium and electronic device
By establishing a communication connection between the test system and the target radar, acquiring and processing measurement parameters, the problem of low radar test efficiency is solved, automated performance testing is realized, and test efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202410863019.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-03
AI Technical Summary
Existing radar testing methods are inefficient and require manual reading of the target object's data multiple times, resulting in high time consumption and prone to data errors or inconsistent test standards.
By establishing a communication connection between the test system and the target radar, the measurement parameters are obtained and the detection performance parameters are determined based on the configuration parameters, thereby realizing automated performance testing and reducing manual intervention.
It improves the efficiency of radar testing, reduces manual operation time, and enhances the accuracy and consistency of test results.
Smart Images

Figure CN118584433A
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of radar, and in particular, to a radar testing method, a storage medium and an electronic device. Background Art
[0002] Radars require a lot of testing and verification during the research and development phase to ensure the accuracy and reliability of radar output data. At present, radar testing methods in related technologies are mostly manual. Engineers need to read the data of the target object on a specific radar host computer. If multiple frames of continuous data need to be recorded, they need to read it manually multiple times, or collect multiple frames of data and then search for the target data, which will take up a lot of engineers' time and is inefficient.
[0003] It can be seen that the radar testing method in the related art has the problem of low testing efficiency. Summary of the invention
[0004] The embodiments of the present invention provide a radar testing method, a storage medium and an electronic device, so as to at least solve the problem of low testing efficiency in the radar testing method in the related art.
[0005] According to one embodiment of the present invention, a radar testing method is provided, comprising: obtaining configuration parameters in a test configuration file input to a test system, wherein a communication connection is established between the test system and a target radar to be tested, and the configuration parameters are used to represent a first set of angles preset for a target object relative to the target radar; when the target object is respectively located at each angle in the first set of angles, obtaining measurement parameters of the target radar through the communication connection, wherein the measurement parameters are used to represent the angle of the target object detected by the target radar relative to the target radar; and determining detection performance parameters of the target radar based on the configuration parameters and the measurement parameters, wherein the detection performance parameters are used to represent the angular accuracy of detection by the target radar.
[0006] In an exemplary embodiment, acquiring the measurement parameters of the target radar through the communication connection includes: extracting the measurement parameters from a data stream output by the target radar when detecting the target object.
[0007] In an exemplary embodiment, determining the detection performance parameters of the target radar according to the configuration parameters and the measurement parameters includes: when the configuration parameters are used to represent n target angles preset by the target object relative to the target radar, and the measurement parameters include n groups of measurement angles, determining the detection performance parameters of the target radar according to the n target angles and the n groups of measurement angles, wherein the n groups of measurement angles include angles of the target object detected by the target radar relative to the target radar when the target object is respectively located at each of the n target angles, and each group of the n groups of measurement angles includes m measurement angles, m is a positive integer greater than or equal to 1, and n is a positive integer greater than 1.
[0008] In an exemplary embodiment, determining the detection performance parameters of the target radar based on the n target angles and the n groups of measurement angles includes: when m is equal to 1, the n groups of measurement angles include n measurement angles, and the configuration parameters also include a target starting angle and a measurement starting angle, determining the difference between each of the n target angles and the target starting angle to obtain a first group of angle differences, and determining the difference between each of the n measurement angles and the measurement starting angle to obtain a second group of angle differences; determining the detection performance parameters of the target radar based on the first group of angle differences and the second group of angle differences.
[0009] In an exemplary embodiment, determining the detection performance parameter of the target radar according to the first set of angle differences and the second set of angle differences includes: determining the detection performance parameter of the target radar by the following formula:
[0010]
[0011] Among them, A s represents the detection performance parameter, represents the first set of angle differences, Δθ i represents the second set of angle differences; in, represents the i-th target angle among the n target angles, represents the target starting angle; Δθ i =|θ i -θ0|, where θ i represents the i-th measurement angle among the n measurement angles, and θ0 represents the measurement starting angle.
[0012] In an exemplary embodiment, determining the detection performance parameters of the target radar according to the n target angles and the n groups of measurement angles includes: when m is greater than 1 and the n groups of measurement angles include n×m measurement angles, determining n groups of angle differences according to the n target angles and the n×m measurement angles, wherein each group of angle differences in the n groups of angle differences includes m angle differences, the i-th group of angle differences in the n groups of angle differences includes the angle differences between the i-th target angle in the n target angles and each measurement angle in the i-th group of measurement angles in the n groups of measurement angles, the i-th group of measurement angles includes m angles of the target object detected by the target radar relative to the target radar when the target object is respectively located at the i-th target angle in the n target angles, and i is a positive integer greater than or equal to 1 and less than or equal to n; determining the detection performance parameters of the target radar according to the n groups of angle differences.
[0013] In an exemplary embodiment, determining the detection performance parameter of the target radar according to the n groups of angle differences includes: determining the detection performance parameter of the target radar by the following formula:
[0014]
[0015] Among them, A s represents the detection performance parameters of the target radar, represents the i-th target angle among the n target angles, θ ij represents the jth measurement angle in the i-th group of measurement angles in the n groups of measurement angles, represents the j-th angle difference value in the i-th group of angle differences in the n groups of angle differences.
[0016] In an exemplary embodiment, determining the detection performance parameter of the target radar according to the n groups of angle differences includes: determining the detection performance parameter of the target radar by the following formula:
[0017]
[0018] Among them, A s represents the detection performance parameter of the target radar, represents the i-th target angle among the n target angles, θ ij represents the jth measurement angle in the i-th group of measurement angles in the n groups of measurement angles, represents the j-th angle difference value in the i-th group of angle differences in the n groups of angle differences.
[0019] According to another embodiment of the present invention, a radar testing device is provided, comprising: a first acquisition unit, used to acquire configuration parameters in a test configuration file input into a test system, wherein a communication connection is established between the test system and a target radar to be tested, and the configuration parameters are used to represent a first set of angles preset for a target object relative to the target radar; a second acquisition unit, used to acquire measurement parameters of the target radar through the communication connection when the target object is located at each angle in the first set of angles, respectively, wherein the measurement parameters are used to represent the angle of the target object detected by the target radar relative to the target radar; a determination unit, used to determine detection performance parameters of the target radar based on the configuration parameters and the measurement parameters, wherein the detection performance parameters are used to represent the angular accuracy of detection by the target radar.
[0020] In an exemplary embodiment, the second acquisition unit includes: an extraction module, configured to extract the measurement parameter from a data stream output by the target radar when detecting the target object.
[0021] In an exemplary embodiment, the determination unit includes: a determination module, used to determine the detection performance parameters of the target radar according to the n target angles and the n groups of measurement angles, when the configuration parameters are used to represent n target angles preset by the target object relative to the target radar and the measurement parameters include n groups of measurement angles, wherein the n groups of measurement angles include the angles of the target object detected by the target radar relative to the target radar when the target object is respectively located at each of the n target angles, and each group of the n groups of measurement angles includes m measurement angles, m is a positive integer greater than or equal to 1, and n is a positive integer greater than 1.
[0022] In an exemplary embodiment, the determination module includes: an execution submodule, which is used to determine the difference between each of the n target angles and the target starting angle to obtain a first group of angle differences, and determine the difference between each of the n measurement angles and the measurement starting angle to obtain a second group of angle differences when m is equal to 1, the n groups of measurement angles include n measurement angles, and the configuration parameters also include a target starting angle and a measurement starting angle; a first determination submodule, which is used to determine the detection performance parameters of the target radar based on the first group of angle differences and the second group of angle differences.
[0023] In an exemplary embodiment, the first determination submodule includes: a first determination subunit, configured to determine the detection performance parameter of the target radar by the following formula:
[0024]
[0025] Among them, A s represents the detection performance parameter, represents the first set of angle differences, Δθ i represents the second set of angle differences; in, represents the i-th target angle among the n target angles, represents the target starting angle; Δθ i =|θ i -θ0|, where θ i represents the i-th measurement angle among the n measurement angles, and θ0 represents the measurement starting angle.
[0026] In an exemplary embodiment, the determination module includes: a second determination submodule, used to determine n groups of angle differences according to the n target angles and n×m measurement angles when m is greater than 1 and the n groups of measurement angles include n×m measurement angles, wherein each group of angle differences in the n groups of angle differences includes m angle differences, the i-th group of angle differences in the n groups of angle differences includes the angle difference between the i-th target angle in the n target angles and each measurement angle in the i-th group of measurement angles in the n groups of measurement angles, and the i-th group of measurement angles includes m angles of the target object detected by the target radar relative to the target radar when the target object is respectively located at the i-th target angle in the n target angles, and i is a positive integer greater than or equal to 1 and less than or equal to n; a third determination submodule, used to determine the detection performance parameters of the target radar based on the n groups of angle differences.
[0027] In an exemplary embodiment, the third determination submodule includes: a second determination subunit, configured to determine the detection performance parameter of the target radar by the following formula:
[0028]
[0029] Among them, A s represents the detection performance parameters of the target radar, represents the i-th target angle among the n target angles, θ ij represents the jth measurement angle in the i-th group of measurement angles in the n groups of measurement angles, represents the j-th angle difference value in the i-th group of angle differences in the n groups of angle differences.
[0030] In an exemplary embodiment, the third determination submodule includes: a third determination subunit, configured to determine the detection performance parameter of the target radar by the following formula:
[0031]
[0032] Among them, A s represents the detection performance parameter of the target radar, represents the i-th target angle among the n target angles, θ ij represents the jth measurement angle in the i-th group of measurement angles in the n groups of measurement angles, represents the j-th angle difference value in the i-th group of angle differences in the n groups of angle differences.
[0033] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.
[0034] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0035] According to yet another embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0036] Through the present invention, since configuration parameters are stored in the test configuration file, a communication connection is established between the test system and the target radar to be tested, and the measurement parameters detected by the target radar can be obtained uninterruptedly. Based on the measurement parameters obtained from the target radar and the corresponding configuration parameters in the test configuration file, the test system can determine the detection performance parameters of the target radar, and realize automated performance testing of the target radar. Therefore, the problem of low test efficiency in the radar test method in the related art can be solved, and the effect of improving the test efficiency can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 is a schematic diagram of an application scenario of a radar testing method according to an embodiment of the present invention;
[0038] Figure 2 is a schematic flow chart of a radar testing method according to an embodiment of the present invention;
[0039] Figure 3 is a schematic structural diagram of a radar test system according to an embodiment of the present invention;
[0040] Figure 4 is a flow chart of another radar testing method according to an embodiment of the present invention;
[0041] Figure 5 is a structural block diagram of a radar testing device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
[0043] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0044] The method embodiment provided in the embodiment of the present invention can be executed in the host computer of the test system. Figure 1 As shown, Figure 1 is a schematic diagram of an application scenario of a radar testing method according to an embodiment of the present invention. Figure 1 As shown, a communication connection is established between the test system and the target radar to be tested, and the target object can be placed relative to the target radar according to a preset first set of angles.
[0045] Figure 2 FIG. 1 is a flow chart of a radar testing method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0046] Step S202, obtaining configuration parameters in a test configuration file input to a test system, wherein the test system has established a communication connection with a target radar to be tested, and the configuration parameters are used to represent a first set of angles preset by the target object relative to the target radar;
[0047] A radar testing method in an embodiment of the present invention can be applied to a scenario in which automated testing of the detection performance of a radar is performed. The radar may include but is not limited to a millimeter-wave radar, a laser radar, etc., including but not limited to automated testing of the radar's detection range, detection accuracy, detection resolution, missed detection rate, false alarm rate, etc. In at least some embodiments of the present invention, a millimeter-wave radar is taken as an example to perform automated testing of the detection accuracy of the millimeter-wave radar.
[0048] Millimeter-wave radar is a sensor mainly used in the fields of autonomous driving and drone monitoring. It uses high-frequency electromagnetic waves to interact with target objects, and obtains information such as the distance, speed, and direction of the target object by analyzing the reflected signals. When the transmitter of the millimeter-wave radar emits electromagnetic waves, these waves will propagate toward the target object in a manner that is approximately a straight line. When the electromagnetic waves interact with the object, part of the electromagnetic waves will be reflected back and collected by the receiver. By analyzing the received reflected signals, information such as the position and speed of the target object can be calculated. As an important sensor for the ADAS (Advanced Driver Assistance System) system, millimeter-wave radar requires a lot of testing and verification during its research and development stage to ensure the accuracy and reliability of the millimeter-wave radar output data.
[0049] However, currently most radar performance tests are done manually. Engineers need to read the data of the target object (i.e., the target under test) on a specific radar host computer. If multiple frames of continuous data need to be recorded, they need to read it manually multiple times, or collect multiple frames of data and then search for the target data. This will take up a lot of engineers' time and is inefficient. In addition, errors in reading data or inconsistent execution of test standards may occur.
[0050] In order to at least partially solve the above-mentioned problem, in the present embodiment, the measurement parameters of the target radar are obtained through the communication connection between the test system and the target radar to be tested, and the detection performance parameters of the target radar are determined based on the measurement parameters and the configuration parameters (the configuration parameters include the actual values corresponding to the measurement parameters).
[0051] Optionally, in this embodiment, since a communication connection is established between the test system and the target radar to be tested, there is no need to manually read the measurement parameters of the target radar.
[0052] For example, in this embodiment, the test system is mainly composed of a test system host computer and a communication interface. The host computer supports radar protocol import, adapts to radars with different protocols, and supports the import of test specification parameters (for example, configuration parameters); the communication interface supports CAN (Controller Area Network), CANFD (CAN with Flexible Data-Rate), and Ethernet communication protocols.
[0053] Based on the test configuration file, the test system can obtain configuration parameters. Optionally, in this embodiment, the test system can support a configuration interface, through which configuration parameters, frame number, distance, allowable error range (for example, distance error, angle error, etc.) and other test configuration information can be filled, and the above test configuration information can also be imported into the test system host computer in the form of a test configuration file, which is not limited in this embodiment.
[0054] Optionally, in this embodiment, the configuration parameter is used to represent a first set of angles preset by the target object relative to the target radar. Here, the angle value of each angle in the first set of angles may be, but is not limited to, an angle of the target object relative to the normal of the target radar, an angle of the target object relative to the perpendicular to the normal of the target radar, etc. In this embodiment, an angle in the first set of angles may correspond to a position of the target object.
[0055] Here, the normal of the target radar usually refers to the normal direction of the radar antenna. In the radar system, the antenna is a device used to transmit and receive electromagnetic waves. The normal of the antenna is a virtual line pointing to the direction of maximum radiation of the antenna, which is perpendicular to the antenna surface.
[0056] Step S204, when the target object is located at each angle in the first group of angles, obtaining a measurement parameter of the target radar through a communication connection, wherein the measurement parameter is used to represent an angle of the target object detected by the target radar relative to the target radar;
[0057] Optionally, in this embodiment, when the target object is placed at each angle in the first group of angles, the measurement parameters of the target radar are acquired through the communication connection.
[0058] Here, the measurement parameter is used to represent the angle of the target object detected by the target radar relative to the target radar. Similar to the above embodiment, the angle of the target object detected by the target radar relative to the target radar may be, but is not limited to, the angle of the target object relative to the normal of the target radar, for example, azimuth, elevation, etc.
[0059] Step S206, determining the detection performance parameter of the target radar according to the configuration parameters and the measurement parameters, wherein the detection performance parameter is used to represent the angular accuracy of the target radar detection.
[0060] Optionally, in this embodiment, the angle accuracy of the target radar detection may be determined according to the actual angle of the preset target object relative to the target radar and the measured angle of the target object detected by the target radar relative to the target radar.
[0061] Through the above steps, configuration parameters are obtained in a test configuration file input to the test system, wherein a communication connection is established between the test system and the target radar to be tested, and the configuration parameters are used to represent a first set of angles preset by the target object relative to the target radar; when the target object is located at each angle in the first set of angles, measurement parameters of the target radar are obtained through the communication connection, wherein the measurement parameters are used to represent the angle of the target object detected by the target radar relative to the target radar; detection performance parameters of the target radar are determined based on the configuration parameters and the measurement parameters, wherein the detection performance parameters are used to represent the angular accuracy of the target radar detection, thereby solving the problem of low test efficiency in the radar test method in the related art and improving the test efficiency.
[0062] The execution subject of the above steps may be a host computer of the test system.
[0063] The execution order of step S202 and step S204 is interchangeable, that is, step S204 may be executed first, and then step S202.
[0064] In an exemplary embodiment, obtaining measurement parameters of a target radar through a communication connection includes:
[0065] S11, extracting measurement parameters from a data stream output by a target radar when detecting a target object.
[0066] Optionally, in this embodiment, different radar communication protocols may correspond to different radar data transmission formats. For example, the data stream output by the target radar when detecting the target object may include but is not limited to the following information:
[0067] Timestamp: The time point when data is collected or sent, used for synchronization and analysis of data.
[0068] Distance: The time from the transmission of radar waves to the reception of echoes, used to calculate the distance between the target and the radar.
[0069] Azimuth: The horizontal direction of a target relative to the radar, usually expressed in degrees.
[0070] Elevation Angle: The vertical direction of the target relative to the radar, also expressed in degrees.
[0071] Speed: The speed of the target relative to the radar, which can be actual speed or relative speed.
[0072] Echo strength: The strength of the echo signal, which can be used to determine the size or type of the target.
[0073] Target identification information: If the radar system has identification capabilities, it may contain information such as the type and model of the target.
[0074] Doppler frequency: If the radar has Doppler measurement capability, it can detect changes in the speed or direction of movement of the target.
[0075] In this embodiment, the measurement parameters may include data such as an azimuth angle and / or an elevation angle for indicating an angle of a target object detected by the target radar relative to the target radar.
[0076] Optionally, when the target object is located at each angle in the first group of angles, obtaining the measurement parameters of the target radar through the communication connection includes:
[0077] Alternatively, the measurement parameters are extracted from the data stream output by the target radar when detecting the target object, including:
[0078] In a case where the test configuration file also includes a preset target distance, measurement parameters that meet a preset distance condition are extracted from a data stream output by the target radar when detecting the target object, wherein the preset distance condition is used to indicate that a difference between a distance of the target object detected by the target radar relative to the target radar and the target distance is less than a preset distance threshold.
[0079] That is, within the preset distance parameter reading range, measurement parameters such as measurement angle are parsed from the data stream output by radar detection.
[0080] Through this embodiment, the test system extracts measurement parameters from the data stream output by the target radar when detecting the target object, thereby improving data acquisition efficiency.
[0081] In an exemplary embodiment, determining the detection performance parameters of the target radar according to the configuration parameters and the measurement parameters includes:
[0082] S21, when the configuration parameters are used to represent n target angles preset by the target object relative to the target radar and the measurement parameters include n groups of measurement angles, determine the detection performance parameters of the target radar according to the n target angles and the n groups of measurement angles, wherein the n groups of measurement angles include the angles of the target object detected by the target radar relative to the target radar when the target object is located at each of the n target angles, each group of measurement angles in the n groups of measurement angles includes m measurement angles, m is a positive integer greater than or equal to 1, and n is a positive integer greater than 1.
[0083] In order to improve the test accuracy, n groups of measurement angles can be collected relative to the n target angles preset by the target radar. The detection performance parameters of the target radar can be determined based on the n target angles and the n groups of measurement angles. That is, when the target object is at the target angle, the target radar can collect at least one measurement angle to avoid misjudgment.
[0084] Optionally, in this embodiment, the configuration parameters may be expressed in the form of angle range and step size to represent n target angles, or in the form of enumeration to represent n target angles, or in other forms to represent n target angles, which is not limited in this embodiment.
[0085] For example, in this embodiment, the configuration parameters may be in the form of a starting angle, a final angle, and a step length, and n may be calculated using the above parameters.
[0086] Optionally, in this embodiment, m may be pre-configured in the test configuration file, for example, taking n sets of position data within the angle range, and reading the measurement angle reported by the radar m times (preferably m consecutive frames of data) at each position.
[0087] Through this embodiment, by pre-configuring the number of angles of the target object in the first set of angles preset by the target radar and the number of readings for each angle in the first set of angles in the test configuration file, the accuracy of the test results can be improved while improving the test efficiency.
[0088] In an exemplary embodiment, determining a detection performance parameter of a target radar based on n target angles and n groups of measurement angles includes:
[0089] S31, when m is equal to 1, the n groups of measurement angles include n measurement angles, and the configuration parameters also include a target starting angle and a measurement starting angle, determining a difference between each of the n target angles and the target starting angle to obtain a first group of angle differences, and determining a difference between each of the n measurement angles and the measurement starting angle to obtain a second group of angle differences;
[0090] S32, determining detection performance parameters of the target radar according to the first set of angle differences and the second set of angle differences.
[0091] Optionally, in this embodiment, taking acquiring a measurement angle at each target angle as an example, that is, m is equal to 1, and n groups of measurement angles include n measurement angles.
[0092] Here, the first frame of detection data sent by the target radar may be obtained, or the designated frame of detection data sent by the target radar may be obtained, and the value of the designated frame may be preconfigured.
[0093] When the configuration parameters include a target starting angle and a measurement starting angle, the difference between each target angle among n target angles and the target starting angle is determined to obtain a first group of angle differences, and the difference between each measurement angle among n measurement angles and the measurement starting angle is determined to obtain a second group of angle differences, and the detection performance parameters of the target radar are determined based on the first group of angle differences and the second group of angle differences.
[0094] Optionally, the target starting angle and the measurement starting angle may be angles relative to the same reference line or angles relative to different reference lines, which is not limited in this embodiment. The reference line may include but is not limited to a radar normal line, etc.
[0095] In an exemplary embodiment, determining the detection performance parameter of the target radar according to the first set of angle difference values and the second set of angle difference values includes:
[0096] S41, determine the detection performance parameters of the target radar by formula (1):
[0097]
[0098] Among them, A s represents the detection performance parameter, Represents the first set of angle differences, Δθ i represents the second set of angle differences;
[0099] in, represents the i-th target angle among n target angles, Indicates the target starting angle;
[0100] Δθ i =|θ i -θ0|, where θ i represents the i-th measurement angle among n measurement angles, and θ0 represents the starting angle of measurement.
[0101] It should be noted that formula (1) is applicable to the accuracy calculation under the condition of subtracting the system error. Within the preset distance parameter reading range, θ is parsed from the data stream output by radar detection. i , real-time radar detection and radar test calculations.
[0102] For example, in this embodiment, the distance between the target object and the target radar is d, and the radar detects an angle value θ each time. i , the target is detected at an angle value θ1 on the radar normal line, the target is detected at an angle value θ2 when it moves for the first time, and at an angle value θ3 when it moves for the second time, and so on, setting the angle value, and similarly, setting it n times. The angle detection accuracy of the radar at this distance (i.e., the detection performance parameter) is as shown in formula (1), and then the accuracy value obtained each time is arithmetic averaged.
[0103] in, The reference point can be set to an angle of 0.
[0104] In an exemplary embodiment, determining a detection performance parameter of a target radar based on n target angles and n groups of measurement angles includes:
[0105] S51, when m is greater than 1 and the n groups of measurement angles include n×m measurement angles, determine n groups of angle differences according to the n target angles and the n×m measurement angles, wherein each group of angle differences in the n groups of angle differences includes m angle differences, the i-th group of angle differences in the n groups of angle differences includes angle differences between the i-th target angle in the n target angles and each measurement angle in the i-th group of measurement angles in the n groups of measurement angles, the i-th group of measurement angles includes m angles of the target object detected by the target radar relative to the target radar when the target object is respectively located at the i-th target angle in the n target angles, and i is a positive integer greater than or equal to 1 and less than or equal to n;
[0106] S52, determining the detection performance parameters of the target radar according to the n groups of angle differences.
[0107] Optionally, in this embodiment, in order to improve the accuracy of the test result, multiple measurement angles may be acquired at each target angle, that is, when m is greater than 1 and the n groups of measurement angles include n×m measurement angles.
[0108] Similar to the above embodiment, the value of m may be pre-configured in the test configuration file.
[0109] In an exemplary embodiment, determining the detection performance parameter of the target radar according to n groups of angle differences includes:
[0110] S61, determine the detection performance parameters of the target radar using formula (2):
[0111]
[0112] Among them, A s Represents the detection performance parameters of the target radar, represents the i-th target angle among n target angles, θ ij represents the jth measurement angle in the i-th group of measurement angles among n groups of measurement angles, Represents the j-th angle difference value in the i-th group of angle differences in n groups of angle differences.
[0113] It should be noted that formula (2) is applicable to the case where the measurement of the test system is accurate and the absolute accuracy of the radar is to be judged.
[0114] Among them, M Ai Used to represent the mean single-point error, M A Used to represent the system error, σ A Used to represent random errors.
[0115] For example, in this embodiment, a stationary target with a fixed distance and RCS (Radar Cross-Section) can be set, n sets of position data are taken within the angle range, and the target angle (m≥50) reported by the radar is read m times (preferably m consecutive frames of data) at each position.
[0116] Optionally, in this embodiment, σ A It can be a standard deviation, or a parameter value of an error evaluation such as variance, mean absolute error, mean square error, or root mean square error. In this embodiment, the standard deviation is taken as an example.
[0117] In an exemplary embodiment, determining the detection performance parameter of the target radar according to n groups of angle differences includes:
[0118] S71, determine the detection performance parameters of the target radar using formula (3):
[0119]
[0120] Among them, A s represents the detection performance parameter of the target radar, represents the i-th target angle among n target angles, θ ij represents the jth measurement angle in the i-th group of measurement angles among n groups of measurement angles, Represents the j-th angle difference value in the i-th group of angle differences in n groups of angle differences.
[0121] It should be noted that formula (3) is applicable to the case where the number of frames read at each point is small or only one frame is read.
[0122] For example, the target object is at a distance d from the target radar. The target angle is changed by the system, n target angles are set, and m frames of data are read at each angle. The angle detection accuracy of the radar at the distance d is shown in formula (3).
[0123] Optionally, after determining the detection performance parameters of the target radar according to the configuration parameters and the measurement parameters, the method further includes:
[0124] Output detection performance parameters; or,
[0125] When the test configuration file also includes preset judgment conditions, it is determined whether the detection performance parameters meet the judgment conditions to obtain a judgment result, wherein the judgment result is used to indicate whether the detection performance parameters meet the judgment conditions; the judgment result is output, or the detection performance parameters and the judgment result are output.
[0126] As an optional exemplary embodiment, the radar testing method of the present invention is explained by taking a millimeter wave radar as an example.
[0127] Optionally, the millimeter wave radar performance automated test system (ie, test system) can be as follows Figure 3 As shown, the millimeter wave radar performance automation test system includes a parameter reading configuration module, a single test execution module, a batch test execution module, a parameter reading module, and an execution control module. Among them, the parameter reading configuration module is used to configure parameter information such as configuration parameters; the single test execution module and the batch test execution module are used to perform single or multiple automated tests, among which the batch test execution module can be a mode for radar performance testing based on multiple groups of configuration parameters, and the parameter values of the multiple groups of configuration parameters are at least partially different, such as different n, different m, different distance d, different starting angles, etc., and each set parameter can be included in the batch test file, and the batch test file can be imported into the test system host computer to perform batch tests in sequence; the execution control module is used to control the position of the target object, and the parameter reading module is used to read the configuration parameters. ETH is the English abbreviation for Ethernet.
[0128] Specifically, the working principle flow chart of the test system is as follows: Figure 4 As shown, the specific steps include:
[0129] Step 401, select a test item;
[0130] Step 402, start testing;
[0131] Step 403, initialization;
[0132] Step 404, the target (object) moves to the starting position of the accuracy test (determined based on the starting angle and distance);
[0133] Step 405, determine whether the target position exceeds the end position (determined based on the preset end angle and distance), if not, execute step 406, if yes, execute step 408;
[0134] Step 406, read the target parameters (ie, configuration parameters) and record them;
[0135] Step 407, the target parameter increases according to the step size, and step 405 is executed;
[0136] Step 408, output the result according to the calculation formula.
[0137] Through the present invention, the millimeter-wave radar performance automatic test system can realize the automatic test of millimeter-wave radar detection accuracy. Compared with traditional testing technology, the test efficiency is greatly improved. The system supports the writing of test specifications and standardizes the test process. Compared with traditional testing technology, the test data reading and data judgment are more standardized. The system supports the import of multiple radar protocols. Compared with customized host computers, the test system has a higher degree of universality.
[0138] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention.
[0139] In this embodiment, a radar test device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0140] Figure 5 is a structural block diagram of a radar testing device provided by an embodiment of the present invention, such as Figure 5 As shown, the device comprises:
[0141] A first acquisition unit 502 is used to acquire configuration parameters in a test configuration file input to the test system, wherein the test system has established a communication connection with the target radar to be tested, and the configuration parameters are used to represent a first set of angles preset by the target object relative to the target radar;
[0142] A second acquisition unit 504 is used to acquire a measurement parameter of the target radar through a communication connection when the target object is located at each angle in the first group of angles, wherein the measurement parameter is used to represent an angle of the target object detected by the target radar relative to the target radar;
[0143] The determination unit 506 is used to determine the detection performance parameter of the target radar according to the configuration parameters and the measurement parameters, wherein the detection performance parameter is used to represent the angle accuracy of the target radar detection.
[0144] It should be noted that the acquisition unit 502 in this embodiment can be used to execute the above step S202, the first determination unit 504 in this embodiment can be used to execute the above step S204, and the adjustment unit 506 in this embodiment can be used to execute the above step S206.
[0145] Through the embodiment of the present invention, configuration parameters are obtained in a test configuration file input to the test system, wherein a communication connection is established between the test system and the target radar to be tested, and the configuration parameters are used to represent a first set of angles preset by the target object relative to the target radar; when the target object is located at each angle in the first set of angles, the measurement parameters of the target radar are obtained through the communication connection, wherein the measurement parameters are used to represent the angle of the target object detected by the target radar relative to the target radar; according to the configuration parameters and the measurement parameters, the detection performance parameters of the target radar are determined, wherein the detection performance parameters are used to represent the angle accuracy of the target radar detection. The problem of low test efficiency in the radar test method in the related art is solved, and the test efficiency is improved.
[0146] In an exemplary embodiment, the second acquisition unit includes:
[0147] The extraction module is used to extract measurement parameters from the data stream output by the target radar when detecting the target object.
[0148] In an exemplary embodiment, the determining unit includes:
[0149] A determination module is used to determine the detection performance parameters of the target radar according to the n target angles and the n groups of measurement angles when the configuration parameters are used to represent n target angles preset by the target object relative to the target radar and the measurement parameters include n groups of measurement angles, wherein the n groups of measurement angles include the angles of the target object detected by the target radar relative to the target radar when the target object is located at each of the n target angles, each group of measurement angles in the n groups of measurement angles includes m measurement angles, m is a positive integer greater than or equal to 1, and n is a positive integer greater than 1.
[0150] In an exemplary embodiment, the determining module includes:
[0151] an execution submodule, for determining a difference between each of the n target angles and the target starting angle to obtain a first group of angle differences, and determining a difference between each of the n measurement angles and the measurement starting angle to obtain a second group of angle differences when m is equal to 1, the n groups of measurement angles include n measurement angles, and the configuration parameters further include a target starting angle and a measurement starting angle;
[0152] The first determination submodule is used to determine the detection performance parameters of the target radar according to the first group of angle differences and the second group of angle differences.
[0153] In an exemplary embodiment, the first determining submodule includes:
[0154] The first determination subunit is used to determine the detection performance parameter of the target radar by the following formula:
[0155]
[0156] Among them, A s represents the detection performance parameter, Represents the first set of angle differences, Δθ i represents the second set of angle differences;
[0157] in, represents the i-th target angle among n target angles, Indicates the target starting angle;
[0158] Δθ i =|θ i -θ0|, where θ i represents the i-th measurement angle among n measurement angles, and θ0 represents the starting angle of measurement.
[0159] In an exemplary embodiment, the determining module includes:
[0160] A second determination submodule is configured to determine n groups of angle differences according to n target angles and n×m measurement angles when m is greater than 1 and the n groups of measurement angles include n×m measurement angles, wherein each group of angle differences in the n groups of angle differences includes m angle differences, the i-th group of angle differences in the n groups of angle differences includes angle differences between the i-th target angle in the n target angles and each measurement angle in the i-th group of measurement angles in the n groups of measurement angles, the i-th group of measurement angles includes m angles of a target object detected by the target radar relative to the target radar when the target object is respectively located at the i-th target angle in the n target angles, and i is a positive integer greater than or equal to 1 and less than or equal to n;
[0161] The third determination submodule is used to determine the detection performance parameters of the target radar according to the n groups of angle differences.
[0162] In an exemplary embodiment, the third determining submodule includes:
[0163] The second determination subunit is used to determine the detection performance parameter of the target radar through the following formula:
[0164]
[0165]
[0166] Among them, A s Represents the detection performance parameters of the target radar, represents the i-th target angle among n target angles, θ ijrepresents the jth measurement angle in the i-th group of measurement angles among n groups of measurement angles, Represents the j-th angle difference value in the i-th group of angle differences in n groups of angle differences.
[0167] In an exemplary embodiment, the third determining submodule includes:
[0168] The third determination subunit is used to determine the detection performance parameter of the target radar through the following formula:
[0169]
[0170] Among them, A s represents the detection performance parameter of the target radar, represents the i-th target angle among n target angles, θ ij represents the jth measurement angle in the i-th group of measurement angles among n groups of measurement angles, Represents the j-th angle difference value in the i-th group of angle differences in n groups of angle differences.
[0171] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0172] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0173] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, 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.
[0174] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0175] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0176] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0177] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0178] An embodiment of the present invention further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0179] An embodiment of the present invention also provides a computer program, which includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above-mentioned method embodiments.
[0180] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0181] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present invention shall be included in the protection scope of the present invention.
Claims
1. A radar testing method, characterized in that: include: Acquire configuration parameters in a test configuration file input to a test system, wherein the test system has established a communication connection with a target radar to be tested, and the configuration parameters are used to represent a first set of angles preset by a target object relative to the target radar; When the target object is located at each angle in the first group of angles, obtaining a measurement parameter of the target radar through the communication connection, wherein the measurement parameter is used to represent an angle of the target object detected by the target radar relative to the target radar; A detection performance parameter of the target radar is determined according to the configuration parameter and the measurement parameter, wherein the detection performance parameter is used to represent an angular accuracy of the target radar detection.
2. The method according to claim 1, characterized in that The obtaining the measurement parameters of the target radar through the communication connection includes: The measurement parameters are extracted from a data stream output by the target radar when detecting the target object.
3. The method according to claim 1, characterized in that Determining the detection performance parameters of the target radar according to the configuration parameters and the measurement parameters includes: In a case where the configuration parameter is used to represent n target angles preset for the target object relative to the target radar, and the measurement parameter includes n groups of measurement angles, the detection performance parameter of the target radar is determined according to the n target angles and the n groups of measurement angles, wherein the n groups of measurement angles include angles of the target object relative to the target radar detected by the target radar when the target object is respectively located at each of the n target angles, each group of measurement angles in the n groups of measurement angles includes m measurement angles, m is a positive integer greater than or equal to 1, and n is a positive integer greater than 1.
4. The method according to claim 3, characterized in that Determining the detection performance parameter of the target radar according to the n target angles and the n groups of measurement angles includes: In the case where m is equal to 1, the n groups of measurement angles include n measurement angles, and the configuration parameters further include a target starting angle and a measurement starting angle, determining a difference between each of the n target angles and the target starting angle to obtain a first group of angle differences, and determining a difference between each of the n measurement angles and the measurement starting angle to obtain a second group of angle differences; The detection performance parameters of the target radar are determined according to the first group of angle differences and the second group of angle differences.
5. The method according to claim 4, characterized in that Determining the detection performance parameter of the target radar according to the first group of angle differences and the second group of angle differences includes: The detection performance parameters of the target radar are determined by the following formula: Among them, A s represents the detection performance parameter, represents the first set of angle differences, Δθ i represents the second set of angle differences; in, represents the i-th target angle among the n target angles, represents the target starting angle; Δθ i =|θ i -θ0|, where θ i represents the i-th measurement angle among the n measurement angles, and θ0 represents the measurement starting angle.
6. The method according to claim 3, characterized in that: Determining the detection performance parameter of the target radar according to the n target angles and the n groups of measurement angles includes: In the case where m is greater than 1 and the n groups of measurement angles include n×m measurement angles, n groups of angle differences are determined according to the n target angles and the n×m measurement angles, wherein each group of angle differences in the n groups of angle differences includes m angle differences, the i-th group of angle differences in the n groups of angle differences includes angle differences between the i-th target angle in the n target angles and each measurement angle in the i-th group of measurement angles in the n groups of measurement angles, respectively, the i-th group of measurement angles includes m angles of the target object detected by the target radar relative to the target radar when the target object is respectively located at the i-th target angle in the n target angles, and i is a positive integer greater than or equal to 1 and less than or equal to n; The detection performance parameters of the target radar are determined according to the n groups of angle differences.
7. The method according to claim 6, characterized in that Determining the detection performance parameter of the target radar according to the n groups of angle differences includes: The detection performance parameters of the target radar are determined by the following formula: Among them, A s represents the detection performance parameters of the target radar, represents the i-th target angle among the n target angles, θ ij represents the jth measurement angle in the i-th group of measurement angles in the n groups of measurement angles, represents the j-th angle difference value in the i-th group of angle differences in the n groups of angle differences.
8. The method according to claim 6, characterized in that Determining the detection performance parameter of the target radar according to the n groups of angle differences includes: The detection performance parameters of the target radar are determined by the following formula: Among them, A s represents the detection performance parameter of the target radar, represents the i-th target angle among the n target angles, θ ij represents the jth measurement angle in the i-th group of measurement angles in the n groups of measurement angles, represents the j-th angle difference value in the i-th group of angle differences in the n groups of angle differences.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 8 when executed by a processor.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 8 are implemented.
