Auxiliary driving navigator software architecture test evaluation method

Through the system architecture testing method of the navigator, the problem in the existing technology that the navigator testing starts from the product is solved, the efficiency of discovering and solving system defects in the early stage of product development is achieved, and the testing efficiency and the stability of data transmission are improved.

CN118567976APending Publication Date: 2024-08-30ZHEJIANG UFO AUTOMOBILE MFG CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410635944.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The testing of existing navigators usually starts from the product, which results in the need to check each unit part one by one when a system defect is discovered, which wastes time and manpower and lacks systematicity and efficiency.

Method used

Using the assisted driving navigator software structure testing and evaluation method, modular testing is carried out starting from the system architecture, including positioning module, control module, planning module and APP, through simulated data sending and receiving, timing testing, frame rate consistency check, and transmission delay measurement. and memory operation delay testing to gradually verify the functions and performance of each module, reduce the frequency of positioning information transmission, increase the frequency of big data transmission, and reduce the number of threads to observe the impact on architecture performance.

Benefits of technology

Through full-process simulation testing of system architecture, problems can be discovered and solved in the early stage of product development, improving testing efficiency, reducing labor waste, and ensuring the stability and accuracy of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567976A
    Figure CN118567976A
Patent Text Reader

Abstract

The invention relates to the field of navigator architectures, in particular to an auxiliary driving navigator architecture test and evaluation method, which comprises the following steps: 1, simulating transceiving functions of a positioning module, a control module, a planning module, a driving module and an APP; 2, testing the data receiving time sequence of each module; 3, testing whether the receiving frame rate and the sending frame rate of each module are consistent or not and whether the frame rate fluctuates or not; 4, testing the transmission time of each frame of data of each module in the system; 5, testing whether the data value received by each module is consistent with the data value during sending; 6, testing the time delay of each module for writing and reading the memory; and 7, starting all module nodes, and carrying out a whole-process simulation test, so that the problems that the test of the navigator is started from a product at the present stage, a functional test case is compiled according to the product requirement, the test case is executed to propose a final defect, and once the system defect is found, the system defect needs to be found from each unit part, so that time and manpower are wasted are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of navigator architecture, and in particular to a method for testing and evaluating an assisted driving navigator architecture. Background Art

[0002] The agricultural machinery navigator is a navigation system designed specifically for agricultural production. It can help farmers drive agricultural machinery more accurately in the fields, improve agricultural production efficiency, and reduce labor intensity. Due to its function, the navigator requires more accurate data transmission of the architecture system, smaller delay requirements, and more stable frequency of sending and receiving information.

[0003] Currently, the testing of navigation systems starts with product testing. Functional test cases are written according to product requirements, and the test cases are executed to identify the final defects. Once system defects are found, they need to be found from each unit, which wastes time and manpower.

[0004] A software structure test and evaluation method for assisted driving navigation system is proposed. Starting from the system architecture, it can effectively discover and solve problems in the early stage of product development. Summary of the invention

[0005] The present invention provides a software structure test and evaluation method for an assisted driving navigation system, which solves the problem that the current testing of navigation systems all starts with product testing, writes functional test cases according to product requirements, executes the test cases and finally proposes defects. Once a system defect is found, it is necessary to start looking for it from each unit part, which wastes time and manpower.

[0006] In order to achieve the above-mentioned purpose, the technical solution adopted by the present invention is: a method for testing and evaluating the software structure of an assisted driving navigator, wherein the navigator architecture includes an application layer, an intermediate layer, an OS layer and a hardware layer, wherein the application layer includes a positioning module, a control module, a planning module, a driver module and an APP, wherein the positioning module is used to send positioning information, wherein the planning module is used to receive positioning information and send trajectory information and working information to the control module, wherein the control module receives positioning information, trajectory information and working information and generates control information and sends it to the APP, wherein the APP sends a request task to the planning module through a trigger button, and wherein the planning module feeds back planning point information to the app end, wherein the specific steps are as follows:

[0007] Step S1, simulating the sending and receiving functions of the positioning module, control module, planning module, driving module and APP;

[0008] Step S2, testing the timing of each module receiving data;

[0009] Step S3, testing whether the receiving frame rate of each module is consistent with the sending frame rate, and whether the frame rate fluctuates;

[0010] Step S4, testing the time taken by each module for each frame of data to be transmitted in the system;

[0011] Step S5, testing whether the data value received by each module is consistent with that when it was sent;

[0012] Step S6, testing the latency of each module writing and reading memory;

[0013] Step S7, start all module nodes, perform a full-process simulation test, reduce the positioning information transmission frequency, observe the impact of the transmission frequency on the architecture performance, increase the large data transmission frequency, observe the impact of the large data transmission frequency on the architecture performance, and reduce the number of threads to observe the impact of the number of threads on the system architecture.

[0014] It is further defined that a sequence variable is added to the data serialization header field of each module, a write operation is added to the sending process, each frame is incrementally increased by calling a loop, and in the receiving process, the content of each frame is read to obtain the sequence (seq) variable value to check whether the previous and next frames differ by one frame, and a data graph is formed for observation.

[0015] It is further limited that the positioning information is sent at a frequency of 100 Hz to check whether the frequency of receiving the positioning information by the planning module and the control module changes. The received frame rate is equal to the number of frames received within 1 second. The transmission frame rate of other estimation information and working information content is calculated in the same way.

[0016] To further limit it, the time difference between the current received frame and the previous frame is mainly checked to calculate whether it fluctuates around 10ms. If the fluctuation ratio is greater than 20%, it is recorded as a large fluctuation of the data frame, and the data is invalid. The test content is recorded and a chart is generated for observation.

[0017]

[0018] Further definition, add a time_stamp variable in each module, add a write operation in the sending process, obtain the current timestamp before sending and write it into the time_stamp variable, in the receiving process, read the content of each frame, obtain the time_stamp variable, and obtain the current timestamp of the received frame at the same time. The system transmission delay is the subtraction of the two. When the time difference obtained by subtraction is greater than 20% of the total transmission interval

[0019] , the current frame transmission is considered invalid, and the data is recorded in the chart for observation.

[0020]

[0021] Further limit, the time used to write memory is the difference between the timestamps before and after calling the memory copy function to copy into physical memory, and the timestamp used to read memory is the difference between the timestamps before and after calling the memory copy function to read physical memory. Observe the writing and reading of each node module.

[0022] The beneficial effects of adopting the above technical solution are:

[0023] Start all module nodes to conduct full-process simulation tests. By reducing the transmission frequency of positioning information and increasing the frequency of large data transmission, observe whether the transmission frequency will affect the architecture performance. Starting from the system architecture, problems can be effectively discovered and solved in the early stages of product development. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a schematic diagram of the system architecture of the present invention;

[0025] Figure 2 This is a schematic diagram of sending and receiving messages by the system of the present invention;

[0026] Figure 3 A data diagram for testing the timing of receiving data by each module of the present invention;

[0027] Figure 4 This is a data diagram of the receiving frame rate and sending frame rate of each module tested by the present invention.

[0028] Figure 5 A data diagram showing the transmission delay ratio of the system of the present invention;

[0029] Figure 6 The figure is a flow chart of the testing method of the present invention. DETAILED DESCRIPTION

[0030] The specific implementation methods of the present invention are further explained in detail below by describing the embodiments with reference to the accompanying drawings, with the aim of helping those skilled in the art to have a more complete, accurate and in-depth understanding of the concept and technical solution of the present invention and facilitating its implementation.

[0031] The present invention is a software structure test and evaluation method for an assisted driving navigation device, which solves the problem that the testing of navigation devices at the current stage all starts with the product, writes functional test cases according to product requirements, executes the test cases and finally proposes defects. Once a system defect is found, it is necessary to start from each unit part, which wastes time and manpower. Starting from the system architecture, the problem can be effectively discovered and solved in the early stage of product development.

[0032] like Figure 1-Figure 6As shown, specifically, a method for testing and evaluating the software structure of an assisted driving navigation system, the navigation system architecture includes an application layer, an intermediate layer, an OS layer and a hardware layer, the application layer includes a positioning module, a control module, a planning module, a driver module and an APP, the positioning module is used to send positioning information, the planning module is used to receive positioning information and send trajectory information and work information to the control module, the control module receives positioning information, trajectory information and work information and generates control information and sends it to the APP, the APP sends a request task to the planning module through a trigger button, and the planning module feeds back planning point information to the App end, and the specific steps are as follows:

[0033] Step S1, simulating the sending and receiving functions of the positioning module, control module, planning module, driving module and APP, the positioning module sends positioning information at a frequency of 100 Hz, the planning module receives the 100 Hz positioning information, and sends the trajectory information and 10 Hz working information to the control module at 10 Hz, the control module receives the 100 Hz positioning information, receives the 10 Hz trajectory information, 10 Hz working information, and generates 50 Hz control information at the same time and sends it to the App, the App sends the request task to the planning module through the trigger button, and the planning module feeds back the planning point information to the App;

[0034] Step S2, test the timing of receiving data in each module, add a sequence variable in the data serialization header field of each module, add a write operation in the sending process, and gradually increase each frame by calling a loop. In the receiving process, read the content of each frame, obtain the value of the sequence variable, check whether the previous and next frames differ by one frame, and form a data graph for observation;

[0035] Step S3, test whether the receiving frame rate of each module is consistent with the sending frame rate, whether the frame rate fluctuates, the positioning information is sent at a frequency of 100hz, check whether the frequency of receiving positioning information by the planning module and the control module changes, mainly by checking the time difference between the current received frame and the previous frame to calculate whether it fluctuates around 10ms. If the fluctuation ratio is greater than 20%, it is recorded as a large fluctuation of the data frame and the data is invalid;

[0036]

[0037] Step S4, test the time taken by each module to transmit each frame of data in the system, add a time_stamp variable in the protocol of each module, add a write operation in the sending process, obtain the current timestamp before sending and write it into the time_stamp variable. In the receiving process, read the content of each frame, obtain the time_stamp variable, and obtain the current timestamp of the received frame at the same time. The system transmission delay is the subtraction of the two. When the time difference obtained by subtraction is greater than 20% of the total transmission interval, the current frame transmission is considered invalid. And record the data in a chart for observation,

[0038]

[0039] Step S5, testing whether the data value received by each module is consistent with that when it was sent, setting each module to send a fixed character in each frame, comparing the character variable at the receiving end with the fixed character variable, and finding out whether the data value received by each module in each frame has changed. If it is not equal, an error exception is reported and a log prompt is performed;

[0040] Step S6, test the delay of each module writing and reading memory. The current architecture writes and reads at a high frequency, so the I / O read and write pressure is relatively large, and testing to write memory also becomes particularly important. The following method is currently used to test the delay of reading memory. Because the navigator architecture is implemented in a shared memory manner, the time used to write memory is the difference between the timestamps before and after calling the memory copy function to copy into the physical memory, and the time used to read the memory timestamp is the difference between the timestamps before and after calling the memory copy function to read the physical memory. Observe the writing and reading of each node module.

[0041] Step S7: Start all module nodes and conduct a full-process simulation test.

[0042] Step S7.1, reduce the positioning information transmission,frequency to 50hz, and observe the impact of the transmission frequency on the architecture performance.,At this time, reducing the frequency can greatly reduce the probability of positioning information frame loss,,and has a certain optimization for delay, but has no optimization for the transmission of other processes,

[0043] Step S7.2, increase the frequency of large data transmission from 0.02 Hz to 1 Hz, and observe the impact of the frequency of large data transmission on the architecture performance. At this time, the frequency of large data transmission has a greater impact on other processes, and the delay, frequency, and frame loss probability increase exponentially.

[0044] Step S7.3, reduce the number of threads and observe the impact of the number of threads on the system architecture. At this time, there is a certain improvement in the frame loss of positioning information reception, but it does not optimize the delay and frequency.

[0045] The present invention is described above by way of example in conjunction with the accompanying drawings. Obviously, the specific implementation of the present invention is not limited to the above-mentioned method. As long as various non-substantial improvements are made using the method concept and technical solution of the present invention; or the above-mentioned concept and technical solution of the present invention are directly applied to other occasions without improvement, they are all within the protection scope of the present invention.

Claims

1. A method for testing and evaluating the architecture of an assisted driving navigation system, wherein the navigation system architecture includes an application layer, an intermediate layer, an OS layer, and a hardware layer, wherein the application layer includes a positioning module, a control module, a planning module, a driver module, and an APP, and wherein: The positioning module is used to send positioning information, the planning module is used to receive positioning information and send trajectory information and work information to the control module, the control module receives positioning information, trajectory information and work information and generates control information and sends it to the APP, the APP sends a request task to the planning module through a trigger button, and the planning module feeds back planning point information to the app end. The specific steps are as follows: Step S1, simulating the sending and receiving functions of the positioning module, control module, planning module, driving module and APP. Step S2, testing the timing of each module receiving data; Step S3, testing whether the receiving frame rate of each module is consistent with the sending frame rate, and whether the frame rate fluctuates; Step S4, testing the time taken by each module for each frame of data to be transmitted in the system; Step S5, testing whether the data value received by each module is consistent with that when it was sent; Step S6, testing the latency of each module writing and reading memory; Step S7, start all module nodes, perform a full-process simulation test, reduce the positioning information transmission frequency, observe the impact of the transmission frequency on the architecture performance, increase the large data transmission frequency, observe the impact of the large data transmission frequency on the architecture performance, and reduce the number of threads to observe the impact of the number of threads on the system architecture.

2. The test and evaluation method for the assisted driving instrument architecture according to claim 1, characterized in that: Add a sequence variable to the data serialization header field of each module, add a write operation in the sending process, and gradually increase each frame by calling a loop. In the receiving process, read the content of each frame, obtain the sequence (seq) variable value, check whether the previous and next frames differ by one frame, and form a data graph for observation.

3. The test and evaluation method for the assisted driving instrument architecture according to claim 1, characterized in that: The positioning information is sent at a frequency of 100 Hz to check whether the frequency of receiving the positioning information by the planning module and the control module has changed. The received frame rate is equal to the number of frames received within 1 second. The transmission frame rate of other estimation information and working information content is calculated in the same way.

4. The test and evaluation method for the assisted driving instrument architecture according to claim 1, characterized in that: It mainly calculates whether the time difference between the current received frame and the previous frame fluctuates around 10ms. If the fluctuation ratio is greater than 20%, it is recorded as a large fluctuation of the data frame and the data is invalid. The test content is recorded and a chart is generated for observation.

5. The test and evaluation method for the assisted driving instrument architecture according to claim 1, characterized in that: Add a time_stamp variable in each module and add a write operation in the sending process. Get the current timestamp before sending and write it into the time_stamp variable. In the receiving process, read the content of each frame, get the time_stamp variable, and get the current timestamp of the received frame at the same time. The system transmission delay is the subtraction of the two. When the time difference obtained by subtraction is greater than 20% of the total transmission interval, the current frame transmission is considered invalid, and the data is recorded in the chart for observation.

6. The test and evaluation method for the assisted driving instrument architecture according to claim 1, characterized in that: Set each module to send fixed characters in each frame, compare the character variable at the receiving end with the fixed character variable, and find out whether the data value received by each module in each frame has changed. If it is not equal, report an error exception and log a prompt.

7. The test and rating method for the assisted driving instrument architecture according to claim 1, characterized in that: The time used to write memory is the difference between the timestamps before and after calling the memory copy function to copy into physical memory. The time used to read memory is the difference between the timestamps before and after calling the memory copy function to read physical memory. Observe the writing and reading of each node module.