CN119835185A - Gateway route automatic test method, device and storage medium - Google Patents
Gateway route automatic test method, device and storage medium Download PDFInfo
- Publication number
- CN119835185A CN119835185A CN202411846621.1A CN202411846621A CN119835185A CN 119835185 A CN119835185 A CN 119835185A CN 202411846621 A CN202411846621 A CN 202411846621A CN 119835185 A CN119835185 A CN 119835185A
- Authority
- CN
- China
- Prior art keywords
- network segment
- routing
- test
- gateway
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Small-Scale Networks (AREA)
Abstract
The application provides a gateway route automatic test method, a gateway route automatic test device and a storage medium. The method comprises the steps of obtaining a complete vehicle CAN network segment routing relation demand table and complete vehicle network segment DBC files in a standard format, comparing and analyzing the complete vehicle CAN network segment routing relation demand table and the complete vehicle network segment DBC files to generate gateway routing configuration files, solving and solving problems existing in the complete vehicle CAN network segment routing relation demand table and the network segment DBC files, analyzing message routing information of the gateway routing configuration files by using a gateway routing test program, defining simulation messages according to the message routing information and testing in sequence according to selected test cases, and monitoring and analyzing data of all CAN channels of a gateway by using a bus monitoring and analyzing tool to obtain test results.
Description
Technical Field
The present invention relates to the field of vehicle-mounted gateway routing test technologies, and in particular, to a gateway routing automatic test method, device and storage medium.
Background
With the gradual increase of the market share of the new energy commercial vehicle, the related electric control products of the new energy commercial vehicle are frequently iterated, the current main stream of the commercial vehicle industry adopts a distributed electronic and electric architecture, a single network segment can not meet the communication requirement, a gateway controller is required to be added, and the network segment management is realized so as to reduce the bus load rate. The gateway controller CAN realize message routing among different CAN bus segments, and if the gateway controller cannot work normally or lacks key message routing, the whole vehicle cannot work normally, so that the gateway controller program needs to perform systematic functional test. Because the gateway controller has more programs, and the gateway controller supports the message routing of the multipath CAN gateway, the test is performed manually, the efficiency is low, the accuracy of routing information and the time delay requirement of routing messages cannot be ensured, and the development of an automatic test device for gateway routing is needed. At present, patent and technology disclose automatically analyzing DBC files to generate gateway routing information, and further carrying out test case configuration based on the gateway routing information so as to realize an automatic test process. However, the correctness of the routing relationship is not checked before the test, and an abnormality caused by a non-gateway fault may exist, and the test case of the gateway controller does not relate to the gateway diagnosis network segment test, the gateway diagnosis mechanism route test, the route behavior test under a small number of error frames, the route behavior test under BusOff faults and the route behavior test under DLC errors.
Disclosure of Invention
In order to solve the above technical problems or at least partially solve the above technical problems, the present invention provides a gateway routing automation test method, a device and a storage medium.
In a first aspect, the present invention provides a method for automatically testing a gateway route, including:
The method comprises the steps of obtaining a complete vehicle CAN network segment routing relation demand table and complete vehicle network segment DBC files in a standard format, comparing and analyzing the complete vehicle CAN network segment routing relation demand table and the complete vehicle network segment DBC files to generate gateway routing configuration files, solving problems existing in the complete vehicle CAN network segment routing relation demand table and the network segment DBC files, analyzing message routing information of the gateway routing configuration files by using a gateway routing test program, defining simulation messages according to the message routing information and sequentially testing the selected test cases, wherein test contents related to the test cases comprise identifier ID consistency test, data length consistency test, signal value consistency test, gateway routing delay time test in a normal state, gateway routing delay time test in a high priority load rate state, gateway routing delay time test in a low priority load rate state, gateway diagnosis network segment test, gateway diagnosis mechanism routing test, routing behavior test in a small number of error frames, routing behavior test in BusOff fault and routing behavior test in error, and using a monitoring bus to obtain all monitoring data channel analysis results.
Further, the process of comparing and analyzing the whole CAN network segment routing relation demand table and each network segment DB C file to generate a gateway routing configuration file, and solving the problems existing in the whole CAN network segment routing relation demand table and the network segment DBC file comprises S201, importing the whole CA N network segment routing relation demand table into a test management system;
S202, a test management system determines the number of network segments tested in the round according to the network segment names of the routing relation demand table of the CAN network segments of the whole vehicle;
s203, setting serial numbers of each CAN network segment based on the number of the network segments, and importing corresponding network segment DBC files;
S204, analyzing the uploaded network segment DBC file by the test management system, and comparing the uploaded network segment DBC file with the information of the whole-vehicle CA N network segment routing relation demand table;
s205, judging whether the number of the messages which are not analyzed to the source network segment in the network segment DBC file is 0, if so, turning to S206;
Otherwise, go to S210;
S206, judging whether the number of the messages which are not analyzed to the target network segment in the network segment DBC file is 0, if so, turning to S207;
Otherwise, go to S210;
s207, judging whether the number of the messages of the message signal start bit which is not analyzed to the source network segment is 0, if so, turning to S208;
Otherwise, go to S210;
S208, judging whether the number of the messages of the message signal start bit which is not analyzed to the target network segment is 0, if so, turning to S209;
Otherwise, go to S210;
s209, generating the gateway route configuration file;
S210, locating a message of a problem according to the prompt, modifying the whole vehicle platform communication database, and turning to S201.
Furthermore, the routing behavior test under a small number of error frames is used for testing that the gateway controller does not route the error frames to other network segments and the routing function is normal, and comprises the following steps that S301, power is supplied to the tested gateway controller, and waiting for the bus communication to be stable;
S302, using a bus monitoring analysis tool to simulate and send error frames to any source network segment channel of a tested gateway controller in a set period;
S303, monitoring other network segment channels by using a bus monitoring analysis tool to check whether an error frame exists or not, and lasting for a certain time;
S304, according to the definition of the gateway route configuration file, simulating any message based on the message route by using a bus monitoring analysis tool to send the message to a source network segment channel of the tested gateway controller, and checking whether the tested gateway controller can simulate the message correctly;
s305, monitoring a target network segment by using a bus monitoring analysis tool, judging whether a message consistent with a routing message ID sent by a source network segment is received or not, and continuing S306 if the tested gateway controller can correctly forward the message;
s306, repeating S302 to S305, and respectively simulating error frames in other network segments by using a bus monitoring analysis tool to check whether the routing function of the tested gateway controller is affected.
Further, the route behavior test under a small number of error frames includes S301 supplying power to the gateway controller to be tested, waiting until the bus communication is stable;
S302, using a bus test interferometer to interfere RTR bits of network management messages sent by any source network segment channel of a tested gateway controller, manufacturing sending error frames, and interfering set message frames each time according to set intervals and interference set times;
S303, monitoring other network segment channels by using a bus monitoring analysis tool, checking whether an error frame exists, and continuously setting time;
s304, according to the definition of the gateway route configuration file, simulating any message based on the message route by using a bus monitoring analysis tool to send the message to a source network segment channel of the tested gateway controller, and checking whether the tested gateway controller can simulate the message correctly;
S305, monitoring a target network segment by using a bus monitoring analysis tool, judging whether a message consistent with a source network segment sending route message ID is received or not, and continuing S306 if the tested gateway controller can correctly forward the message;
And S306, repeating S302 to S305, and using the bus monitoring analysis tool to simulate error frames in other network segments respectively to check whether the routing function of the tested gateway controller is affected.
Further, the routing behavior test at BusOff failure is used to detect whether the routing policy of the gateway meets the requirement when a certain channel of the gateway controller has BusOff failure, and includes:
s311, supplying power to the tested gateway controller, and waiting until bus communication is stable;
S312, simulating and transmitting application messages except gateway routing messages in all network segments by using a bus monitoring and analyzing tool;
s313, after ensuring that a tested gateway controller can correctly receive an application message, using a bus test interferometer to interfere an RTR bit of a network management message sent by any source network segment channel of the tested gateway controller, so that the source network segment channel is always in BusOff states;
s314, monitoring a target network segment by using a bus monitoring analysis tool, judging whether a tested gateway controller is defined according to a routing relation demand table of the whole vehicle CAN network segment, and sending a corresponding routing message;
S315, repeating the steps S312 to S313, and respectively judging whether the routing function between other network segments is normal or not by using a bus monitoring analysis tool;
s316, repeating the steps S312 to S314, and respectively judging whether the routing functions of other network segments of the controlled controller are normal when any network segment is in BusOff state.
Further, the routing behavior test when DLC is wrong is used to detect whether the gateway can forward the message when DLC is wrong in the routing process, including:
s321, supplying power to a tested gateway controller, and waiting until bus communication is stable;
S322, according to the definition of the gateway route configuration file, using a bus monitoring analysis tool to simulate any message and send the message to a source network segment channel corresponding to the tested gateway controller;
S323, changing DLC of the message to be smaller than the defined length in the network segment DBC file;
S324, monitoring a target network segment by using a bus monitoring analysis tool, and observing whether the target network segment can route a message sent by a source network segment;
S325, according to the definition of the gateway route configuration file, using a bus monitoring analysis tool to simulate other messages and send the messages to a source network segment channel corresponding to a tested gateway controller;
s326, repeating the steps S323 to S325, and changing DLC of the message to be smaller than the defined length in the network segment DBC file;
s327, changing the source network segment to traverse all source network segments, repeating steps S322 to S326.
Further, the routing behavior test when DLC is wrong is used to verify whether the source network segment message DLC is larger than the normal routing message defined in the network segment DBC file, and includes:
s331, supplying power to a tested gateway controller, and waiting until bus communication is stable;
s332, according to the definition of the gateway routing configuration file, using a bus monitoring analysis tool to simulate any DLC message smaller than 8 and send the message to a source network segment channel corresponding to a tested gateway controller;
S333, changing DLC of the message to 8;
s334, monitoring a target network segment by using a bus monitoring analysis tool, and observing whether the target network segment can route a message sent by a source network segment or not, wherein DLC is 8 or not;
S335, according to the definition of the gateway route configuration file, other messages with DLC less than 8 simulated by using a bus monitoring analysis tool are sent to a source network segment channel corresponding to the tested gateway controller;
S336, changing the source network segment to traverse all source network segments, repeating steps S322 to S325.
Further, the test result comprises a test case number, a test time, a test description, an actual test result value, an expected result value, a case test result, a picture name and a picture description.
The invention provides a gateway route automation testing device, which comprises computer equipment, a bus monitoring analysis tool, a power supply and a tested gateway controller, wherein the computer equipment is used for running a test management system and a gateway route testing program, the bus monitoring analysis tool and the tested gateway controller are communicated through a multi-path CAN bus connection so as to conduct route relation testing, the computer equipment comprises at least one processing unit, the processing unit is connected with a storage unit through the bus unit, the storage unit stores the computer program, and the processing unit executes the computer program to realize the gateway route automation testing method.
In a third aspect, the present invention provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the gateway routing automation test method.
Compared with the prior art, the technical scheme provided by the embodiment of the invention has the following advantages:
The gateway route automatic test method provided by the invention applies for obtaining the standard-format complete vehicle CAN network segment route relation demand table and the complete vehicle network segment DBC files, compares and analyzes the complete vehicle CAN network segment route relation demand table and the complete vehicle network segment DBC files to generate gateway route configuration files, and solves the problems existing in the complete vehicle CAN network segment route relation demand table and the network segment DBC files, and CAN automatically and accurately detect the accuracy of the message route relation before test execution, thereby avoiding repeated test and avoiding abnormity caused by non-gateway faults.
And analyzing the message routing information of the gateway routing configuration file by using a gateway routing test program, defining a simulation message according to the message routing information, and sequentially testing the selected test cases, wherein the test cases comprise an identifier ID consistency test, a data length consistency test, a signal value consistency test, a gateway routing delay time test in a normal state, a gateway routing delay time test in a high-priority load rate state, a gateway routing delay time test in a low-priority load rate state, a gateway diagnosis network segment test, a gateway diagnosis mechanism routing test, a routing behavior test in a small number of error frames, a routing behavior test in BusOff failure and a routing behavior test in DLC error.
The user of the automatic gateway route testing device does not need to master the whole process of all message route designs, so that the verification of the gateway route function is standardized and simplified, the gateway route delay time under a typical scene can be automatically counted, the human error is reduced, and the testing efficiency of the gateway controller is greatly improved.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a flow chart of a gateway routing automation test method;
FIG. 2 is a flow chart for comparing and analyzing the network segment routing relation demand table and the network segment DBC files of the whole vehicle by the test management system to generate gateway routing configuration files, and for solving and solving the problems existing in the network segment routing relation demand table and the network segment DBC files of the whole vehicle;
FIG. 3 is a schematic diagram of a complete vehicle CAN network segment routing relationship demand table;
FIG. 4 is a schematic diagram of a gateway routing profile;
FIG. 5 is a schematic diagram of an overall test report of gateway routing test results;
FIG. 6 is a schematic diagram of a test report of a specific item of gateway routing test results;
Fig. 7 is a schematic diagram of a gateway route automation test device.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
Example 1
Referring to fig. 1 and 2, the present application provides an automatic testing method for gateway routing, which includes:
S100, acquiring a routing relation demand table of the whole vehicle CAN network segment and DBC files of each network segment of the whole vehicle in a standard format. And using VDE (Vehicle Database Editor) software to manage a whole vehicle platform communication database, and automatically deriving a whole vehicle CAN network segment routing relation demand table and a whole vehicle network segment DBC file in a standard format from the whole vehicle platform communication database platform.
As shown in fig. 3, the routing relationship requirement table of the whole vehicle CAN network segment includes a source network segment name, a source network segment signal name, a source network segment message ID, a target network segment name, a target network segment signal name, a target network segment message ID, a routing type, a gateway controller name, a message change record, and a timeout value. And acquiring transmission paths and message change records of all messages of the tested gateway according to the whole CAN network segment routing relation demand table.
The timeout value is a physical value of the target network segment signal, and is calculated according to a bus value of the timeout value of the target network segment signal, and the timeout value is filled with digital 0 for the target network segment signal without defining the timeout value or an invalid value.
And S200, the test management system compares and analyzes the routing relation demand table of the whole CAN network segment and the DBC files of each network segment to generate gateway routing configuration files, and the problems in the routing relation demand table of the whole CAN network segment and the DBC files of the network segment are solved, so that the meaningless test results caused by using the wrong input test are avoided, and the time and the energy are wasted.
As shown in fig. 2, the method comprises the following steps:
s201, importing the routing relation demand table of the whole CAN network segment into a test management system;
S202, a test management system determines the number of network segments tested in the round according to the network segment names of the routing relation demand table of the CAN network segments of the whole vehicle;
s203, setting serial numbers of each CAN network segment based on the number of the network segments, and importing corresponding network segment DBC files;
S204, analyzing the uploaded network segment DBC file by the test management system, and comparing the uploaded network segment DBC file with the information of the whole-vehicle CA N network segment routing relation demand table;
s205, judging whether the number of the messages which are not analyzed to the source network segment in the network segment DBC file is 0, if so, turning to S206;
Otherwise, go to S210;
S206, judging whether the number of the messages which are not analyzed to the target network segment in the network segment DBC file is 0, if so, turning to S207;
Otherwise, go to S210;
s207, judging whether the number of the messages of the message signal start bit which is not analyzed to the source network segment is 0, if so, turning to S208;
Otherwise, go to S210;
S208, judging whether the number of the messages of the message signal start bit which is not analyzed to the target network segment is 0, if so, turning to S209;
Otherwise, go to S210;
s209, generating the gateway route configuration file;
In this embodiment, as shown in fig. 4, the gateway routing configuration file includes a number of message routes, an nth message route, a message routing manner, a source network segment CAN channel number, a source network segment DBC name, a source network segment message ID, a source network segment message name, a source network segment node name, a source network segment signal name, a target network segment CAN channel number, a target network segment DBC name, a target network segment message ID, a target network segment message name, a target network segment node name, a target network segment signal name, and a signal timeout value.
The message routing method is divided into direct message routing and periodic message routing, wherein the direct message routing is recommended to be represented by 1, and the periodic message routing is recommended to be represented by 2.
S210, locating a message of a problem according to the prompt, modifying the whole vehicle platform communication database, and turning to S201.
And S300, analyzing the message routing information of the gateway routing configuration file by using a gateway routing test program, defining a simulation message according to the message routing information, and sequentially testing the selected test cases.
In this embodiment, the test cases include identifier ID consistency test, data length consistency test, signal value consistency test, gateway routing delay time test in normal state, gateway routing delay time test in high priority load rate state, gateway routing delay time test in low priority load rate state, gateway diagnostic network segment test, gateway diagnostic mechanism routing test, routing behavior test in small number of error frames, routing behavior test in Bus Off fault and routing behavior test in DLC fault.
In this embodiment, for the gateway routing delay time test in the normal state, the gateway routing delay time test in the high priority load rate state, and the gateway routing delay time test in the low priority load rate state, it is recommended that the routing delay time of the direct message route is less than 2ms. The bus state load rate recommended by the high-priority load rate state and the low-priority load rate state is more than or equal to 90 percent.
The routing behavior test under a small number of error frames is used to test that the gateway controller does not route the error frames to other network segments and the routing function is normal. The specific flow can be executed according to the following steps:
s301, supplying power to a tested gateway controller, and waiting for 1S until bus communication is stable;
s302, using a bus monitoring analysis tool to simulate and send error frames to a certain source network segment channel of a tested gateway controller by taking 100ms as a period;
in this embodiment, the bus monitoring and analyzing tool is not limited to the CAN card of CANoe, qigong of Vector company.
S303, monitoring other network segment channels by using a bus monitoring analysis tool to check whether an error frame exists or not, and lasting for a certain time;
in this embodiment, the duration is recommended to be 30s.
S304, according to the definition of the gateway route configuration file, simulating any message based on the message route by using a bus monitoring analysis tool to send the message to a source network segment channel of the tested gateway controller, and checking whether the tested gateway controller can simulate the message correctly;
s305, monitoring a target network segment by using a bus monitoring analysis tool, judging whether a message consistent with a routing message ID sent by a source network segment is received or not, and continuing S306 if the tested gateway controller can correctly forward the message;
s306, repeating S302 to S305, and respectively simulating error frames in other network segments by using a bus monitoring analysis tool to check whether the routing function of the tested gateway controller is affected.
The route behavior test flow under a small number of error frames can also be executed according to the following steps:
s301, supplying power to a tested gateway controller, and waiting for stable communication from 1S to a bus;
S302, using a bus test interferometer to interfere RTR bits of a network management message sent by a source network segment channel of a tested gateway controller, and manufacturing a sending error frame, wherein each time of interference is 10 frames, the interval is 100ms, and the interference is 100 times;
in this embodiment, the bus test interferometer is not limited to CANSTRESS devices of Vector and CANSPIDER devices of ihr.
S303, monitoring other network segment channels by using a bus monitoring analysis tool to check whether an error frame exists or not, and lasting for a certain time;
s304, according to the definition of the gateway route configuration file, simulating any message based on the message route by using a bus monitoring analysis tool to send the message to a source network segment channel of the tested gateway controller, and checking whether the tested gateway controller can simulate the message correctly;
S305, monitoring a target network segment by using a bus monitoring analysis tool, judging whether a message consistent with a source network segment sending route message ID is received or not, and continuing S306 if the tested gateway controller can correctly forward the message;
And S306, repeating S302 to S305, and using the bus monitoring analysis tool to simulate error frames in other network segments respectively to check whether the routing function of the tested gateway controller is affected.
The routing behavior test at BusOff failure is used to detect whether the routing policy of the gateway meets the requirements when a certain channel of the gateway controller fails BusOff. The specific flow can be executed according to the following steps:
s311, supplying power to the tested gateway controller, and waiting for 1S until the bus communication is stable;
S312, simulating and transmitting application messages except gateway routing messages in all network segments by using a bus monitoring and analyzing tool;
s313, after ensuring that a tested gateway controller can correctly receive an application message, using a bus test interferometer to interfere an RTR bit of a network management message sent by a certain source network segment channel of the tested gateway controller, so that the source network segment channel is always in BusOff state;
s314, monitoring a target network segment by using a bus monitoring analysis tool, judging whether a tested gateway controller is defined according to a routing relation demand table of the whole vehicle CAN network segment, and sending a corresponding routing message;
S315, repeating the steps S312 to S313, and respectively judging whether the routing function between other network segments is normal or not by using a bus monitoring analysis tool;
S316, repeating the steps S312 to S314, and respectively judging whether the routing function of other network segments of the controlled controller is normal or not when the network segment is in BusOff state.
The routing behavior test when DLC is wrong is used for detecting whether the gateway can forward the message when DLC is wrong in the routing process. It can be performed as follows:
S321, supplying power to a tested gateway controller, and waiting for 1S until bus communication is stable;
S322, according to the definition of the gateway route configuration file, using a bus monitoring analysis tool to simulate a certain message to be sent to a source network segment channel corresponding to the tested gateway controller;
s323, changing DLC of the message to be smaller than DBC definition length;
S324, monitoring a target network segment by using a bus monitoring analysis tool, and observing whether the target network segment can route a message sent by a source network segment;
S325, according to the definition of the gateway route configuration file, using a bus monitoring analysis tool to simulate other messages and send the messages to a source network segment channel corresponding to a tested gateway controller;
s326, repeating the steps S323 to S325, and changing DLC of the message to be smaller than DBC definition length;
S327, changing the source network segment (traversing all network segments), repeating steps S322 to S326.
In this embodiment, for message routing, when the source network segment message DLC is smaller than the message DLC defined by the DBC, the gateway does not route the message.
The routing behavior test when DLC is wrong is used for verifying whether the source network segment message DLC is larger than the DBC definition and can normally route the message, and the method is implemented according to the following steps:
s331, supplying power to a tested gateway controller, and waiting for stable communication from 1S to a bus;
S332, according to the definition of the gateway route configuration file, using a bus monitoring analysis tool to simulate a certain message (DLC < 8) and sending the message to a source network segment channel corresponding to a tested gateway controller;
S333, changing DLC of the message to 8;
s334, monitoring a target network segment by using a bus monitoring analysis tool, and observing whether the target network segment can route a message sent by a source network segment or not, wherein DLC is 8 or not;
s335, according to the definition of the gateway route configuration file, using a bus monitoring analysis tool to simulate other messages (DLC < 8) and sending the messages to a source network segment channel corresponding to a tested gateway controller;
S336, changing the source network segment (traversing all network segments), repeating steps S322 to S325.
In this embodiment, for message routing, when the source network segment message DLC is greater than the DBC definition, the gateway routes the message normally, and DLC is the source network segment message.
And S400, monitoring and analyzing the data of all CAN channels of the gateway by using a bus monitoring and analyzing tool to obtain a test result, and uploading the test result to a test management system for a tester to check.
In this embodiment, as shown in fig. 5 and 6, the test result includes a test case number, a test time, a test description, an actual test result value, an expected result value, a case test result, a picture name, and a picture description.
Example 2
As shown in fig. 7, the gateway route automation test apparatus includes a computer device for running a test management system and a gateway route test program, a bus monitoring analysis tool, a power supply, and a gateway controller under test. The bus monitoring analysis tool and the tested gateway controller are communicated through the multi-path CAN bus connection, so that the routing relation test is carried out. The computer equipment comprises at least one processing unit, wherein the processing unit is connected with a storage unit through a bus unit, the storage unit stores a computer program, and the processing unit executes the computer program to realize the gateway route automatic test method, and the method comprises the following steps:
The method comprises the steps of obtaining a complete vehicle CAN network segment routing relation demand table and complete vehicle network segment DBC files in a standard format, comparing and analyzing the complete vehicle CAN network segment routing relation demand table and the complete vehicle network segment DBC files to generate gateway routing configuration files, solving problems existing in the complete vehicle CAN network segment routing relation demand table and the network segment DBC files, analyzing message routing information of the gateway routing configuration files by using a gateway routing test program, defining simulation messages according to the message routing information and sequentially testing the selected test cases, wherein test contents related to the test cases comprise identifier ID consistency test, data length consistency test, signal value consistency test, gateway routing delay time test in a normal state, gateway routing delay time test in a high priority load rate state, gateway routing delay time test in a low priority load rate state, gateway diagnosis network segment test, gateway diagnosis mechanism routing test, routing behavior test in a small number of error frames, routing behavior test in BusOff fault and routing behavior test in error, and using a monitoring bus to obtain all monitoring data channel analysis results.
Of course, the storage unit in the automatic test device for gateway routing provided by the embodiment of the present invention is not limited to the above-mentioned method operations, and may also perform the related operations in the automatic test method for gateway routing provided by any embodiment of the present invention.
Example 3
The embodiment of the invention provides a computer readable storage medium, which stores a computer program, and when the computer program is executed, the method for automatically testing gateway routing is realized, comprising the following steps:
The method comprises the steps of obtaining a complete vehicle CAN network segment routing relation demand table and complete vehicle network segment DBC files in a standard format, comparing and analyzing the complete vehicle CAN network segment routing relation demand table and the complete vehicle network segment DBC files to generate gateway routing configuration files, solving problems existing in the complete vehicle CAN network segment routing relation demand table and the network segment DBC files, analyzing message routing information of the gateway routing configuration files by using a gateway routing test program, defining simulation messages according to the message routing information and sequentially testing the selected test cases, wherein test contents related to the test cases comprise identifier ID consistency test, data length consistency test, signal value consistency test, gateway routing delay time test in a normal state, gateway routing delay time test in a high priority load rate state, gateway routing delay time test in a low priority load rate state, gateway diagnosis network segment test, gateway diagnosis mechanism routing test, routing behavior test in a small number of error frames, routing behavior test in BusOff fault and routing behavior test in error, and using a monitoring bus to obtain all monitoring data channel analysis results.
The computer readable storage medium according to the embodiment of the present invention stores a computer program not limited to the above-described method operations, but also can perform related operations in a gateway routing automation test method according to any embodiment of the present invention.
In the embodiments of the present invention, it should be understood that the disclosed method, apparatus and storage medium may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the described division of circuitry is merely a logical functional division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling shown or discussed as being coupled directly or indirectly to one another through some interface, device or unit, may be in the form of electrical, mechanical, or otherwise.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411846621.1A CN119835185A (en) | 2024-12-16 | 2024-12-16 | Gateway route automatic test method, device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411846621.1A CN119835185A (en) | 2024-12-16 | 2024-12-16 | Gateway route automatic test method, device and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN119835185A true CN119835185A (en) | 2025-04-15 |
Family
ID=95293562
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202411846621.1A Pending CN119835185A (en) | 2024-12-16 | 2024-12-16 | Gateway route automatic test method, device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN119835185A (en) |
-
2024
- 2024-12-16 CN CN202411846621.1A patent/CN119835185A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109039824B (en) | Automatic test system and method for wireless remote communication protocol of vehicle-mounted terminal | |
| CN107491061B (en) | A network automated test system and method for commercial vehicle OBD diagnostic equipment | |
| CN109388530B (en) | Blade server-oriented automatic test platform and test method | |
| WO2017000424A1 (en) | Protocol detection method and apparatus | |
| CN109840207A (en) | One kind being based on AUTOSAR network management automatization test system and test method | |
| CN106330618A (en) | Gateway routing automatic test system and test method based on CAN/LIN/MOST hybrid buses | |
| CN108092854B (en) | Test method and device for train-level Ethernet equipment based on IEC61375 protocol | |
| CN107370637B (en) | Vehicle-mounted ECU communication function automatic test system and method | |
| CN118972279B (en) | A vehicle-mounted TBOX signal test verification method, device and medium | |
| CN110768871A (en) | Test method and system for automatically counting data transmission correctness of DCS (distributed control system) | |
| CN118316825A (en) | Vehicle Ethernet ring network testing method, device, electronic equipment and storage medium | |
| CN119005081A (en) | Chip verification method, verification device, electronic equipment and storage medium | |
| CN111970166B (en) | Test method, device, equipment, system and computer readable storage medium | |
| CN120416085A (en) | Service supervision and automated testing methods in AFDX network testing | |
| CN114124727B (en) | Network management communication pressure testing method and system | |
| CN119835185A (en) | Gateway route automatic test method, device and storage medium | |
| CN117891700A (en) | 61850 transformer substation spacer layer GOOSE data simulation method | |
| CN116953383A (en) | Automatic line protection testing method and system capable of simulating abnormality of optical fiber channel | |
| CN105044552A (en) | Fault diagnosis method, system and device for distribution network automation system | |
| CN116866239A (en) | Service interface testing method, device and equipment | |
| KR20230099772A (en) | Evaluation system and method of vehicle controller function providing device | |
| CN117110733A (en) | Automatic diagnosis method and device for battery management system | |
| CN118067418B (en) | Automatic test system, method and whole vehicle test system | |
| Pallierer et al. | A generic tool for systematic tests in embedded automotive communication systems | |
| CN120342900A (en) | Message testing method, device, vehicle and storage medium for vehicle gateway |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |