CN115705042A - Test system and method for direct network management of vehicle-mounted controller - Google Patents

Test system and method for direct network management of vehicle-mounted controller Download PDF

Info

Publication number
CN115705042A
CN115705042A CN202110892102.9A CN202110892102A CN115705042A CN 115705042 A CN115705042 A CN 115705042A CN 202110892102 A CN202110892102 A CN 202110892102A CN 115705042 A CN115705042 A CN 115705042A
Authority
CN
China
Prior art keywords
ecu
network management
message
tested
test
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
Application number
CN202110892102.9A
Other languages
Chinese (zh)
Inventor
鲁盼
鲁贝尔
刘浩锐
叶婷
郑韩麟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongfeng Motor Corp
Original Assignee
Dongfeng Motor Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Dongfeng Motor Corp filed Critical Dongfeng Motor Corp
Priority to CN202110892102.9A priority Critical patent/CN115705042A/en
Publication of CN115705042A publication Critical patent/CN115705042A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a test system and a method for direct network management of a vehicle-mounted controller, wherein the method comprises the following steps: 1) Starting an ECU to be tested, wherein the ECU is connected to CAN data conversion equipment through a CAN bus, and the CAN data conversion equipment is connected with an upper computer in a USB mode; 2) Acquiring simulation information of a test according to the test task, and acquiring a simulated corresponding network management message test signal after initializing and configuring hardware; the simulation information of the test comprises a simulation node address, increasing or decreasing operation of the simulation node, dormancy control and awakening control; 3) And sending the network management message test signals to the tested ECU through the upper computer to execute network management tests one by one, and judging whether a network management fault exists according to messages sent back by the tested ECU. The invention avoids using a high-cost CAN bus simulation test tool of German Vector company, and effectively reduces the test cost.

Description

Test system and method for direct network management of vehicle-mounted controller
Technical Field
The invention relates to a test system and a test method for direct network management of a vehicle-mounted controller.
Background
There are many kinds of direct network management of local area networks of vehicle-mounted controllers, and at present, the application is widely composed of OSEK (Open Systems and the correcting Interfaces for automatic Electronics) direct network management and AUTOSAR (automatic Open System ARchitecture) direct network management. The OSEK direct network management is to implement status monitoring of all nodes on the current network and to ensure that all nodes enter a sleep state at the same time. The state of each node can be monitored by other nodes on the network, so that the monitored nodes send network management messages to the network. The AUTOSAR direct network management is a default distributed direct network management of the AUTOSAR software architecture, and each node independently controls the network state according to the state of a network management frame.
Aiming at the test of direct network management of the vehicle-mounted controller, one method is to simulate and test through a CANoe tool of German Vector company, although the method can test the network management function of the vehicle-mounted controller, the method is based on the CANoe of the German Vector company, and the hardware and software cost of the test tool is high; the other method is to test the ring device through a special test bench or hardware, and although the method can carry out network management test on single or multiple parts, the test device has a complex structure and can only test on a single network management protocol, so the universality is not strong.
Aiming at the defects in various aspects of the prior art, the invention provides a test system and a test method for direct network management of a vehicle-mounted controller.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a test system and method for direct network management of a vehicle-mounted controller, aiming at the defects in the prior art.
The technical scheme adopted by the invention for solving the technical problem is as follows: a test method for direct network management of an on-board controller comprises the following steps:
1) Starting an ECU to be tested, wherein the ECU is connected to CAN data conversion equipment through a CAN bus, and the CAN data conversion equipment is connected with an upper computer in a USB mode;
2) Acquiring a test case and test simulation information according to the test task, and simulating a corresponding network management message test signal according to the test case and the test simulation information after the hardware is initialized and configured; the simulation information of the test comprises a simulation node address, increasing or decreasing operation to the simulation node, dormancy control and awakening control;
3) And sending the network management message test signals to the tested ECU through the upper computer to execute network management tests one by one, and judging whether a network management fault exists according to messages sent back by the tested ECU.
According to the scheme, the CAN data conversion equipment in the step 1) is Kvaser which is a product of Kvaser company.
According to the above scheme, the network management test in step 3) includes: OSEK network management test and Autosar network management test;
the sequence of the network management message test signal sequence of the OSEK network management test is as follows: an Alive message format test, a Ring message format test, a LimpHome message format test T [ typ ], T [ max ] and T [ error ] time parameters, a logic loop establishment test, a logic loop stability test, a sleep behavior test and a wake-up behavior test;
the Autosar network management test comprises the following steps: parameter testing and logic testing; the parameter test comprises the following steps: source address test, network management address range test, T _ REPEAT _ MESSAGE parameter test, T _ NM _ TIMEOUT parameter test and T _ WAIT _ BUS _ SLEEP parameter test. The logic test comprises the following steps: the method comprises the steps of testing a normal sending state of a network management message from a sleep mode, testing a quick sending state of the network management message from the sleep mode, testing the normal sending state of the network management message from the network management message, testing the normal sending state of the network management message to a normal operation state, testing the quick sending state of the network management message from the normal operation state, testing the normal operation state to a sleep preparation state, testing the sleep preparation state to the normal operation state, testing the sleep preparation state to the quick sending state of the network management message, testing the message state to the sleep preparation state, testing the sleep preparation state to a pre-sleep mode, testing the normal sending state of the network management message from the pre-sleep mode, testing the network management message from the pre-sleep mode to the sleep mode, and testing the network management message from the pre-sleep mode to the sleep mode.
According to the scheme, in the step 3), whether a network management fault exists is judged according to a message sent by the tested ECU, and the specific judgment flow of the OSEK network management test is as follows:
3.1 Judging whether a first frame message sent by the ECU to be tested and received by the CAN data conversion equipment is an Alive message or not through the upper computer, and judging whether the format is consistent with an OSEK protocol or not, if so, testing through the format of the Alive message, and if not, passing the format test;
3.2 Judging whether a second frame message sent by the ECU to be tested and received by the CAN data conversion equipment is a Ring message or not through the upper computer, and judging whether the format is consistent with an OSEK protocol or not, if so, testing through the Ring message format, and if not, passing the Ring message format;
3.3 The upper computer judges whether the tenth frame message sent by the ECU to be tested and received by the CAN data conversion equipment is a LimpHome message or not and whether the format is consistent with the OSEK protocol or not. If the message format is consistent with the LimpHome message format, otherwise, the message format is not passed.
3.4 The upper computer records the moment T of sending a first Alive message by the ECU to be tested through the CAN data conversion equipment Alive1 The moment T of the first frame Ring message Ring1 Second frame Alive message time T Alive2 Fifth frame Alive message time T Alive5 And the first frame Limphome message time T LimpHome Upper computer calculating T Ring1 –T Alive1 I.e. T [ typ ]](ii) a Upper computer calculating T Alive2 –T Ring1 Is T max](ii) a Upper computer calculating T Limphome –T Alive5 Is T [ error [ ]];
3.5 The upper computer simulates a virtual node through the CAN data conversion equipment to send a network management message to the ECU to be tested, judges whether the ECU to be tested CAN establish a loop with the virtual node, if the ECU to be tested CAN establish the loop, the test is established through a logic loop, otherwise, the ECU does not pass;
3.6 The upper computer simulates a virtual node through the CAN data conversion equipment to send a network management message to the ECU to be tested, and judges whether the ECU to be tested CAN still establish a loop with the virtual node by increasing or decreasing the virtual node; if the loop can be built, the stability test of the logic loop is passed, otherwise, the loop does not pass;
3.7 The upper computer triggers the sleep condition of the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested CAN sleep and whether the sleep process meets the requirements, if so, the test of the sleep behavior is passed, otherwise, the test of the sleep behavior is not passed;
3.8 The upper computer triggers the awakening condition of the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested CAN be awakened and whether the awakening process meets the requirements, if so, the test is passed through the awakening behavior, otherwise, the test is not passed.
According to the scheme, the concrete method for the Autosar network management test in the step 3) is as follows:
testing a source address: the upper computer judges whether the first byte of a network management message sent by the ECU to be detected and received by the CAN data conversion equipment is consistent with the standard requirement, if so, the first byte passes, otherwise, the first byte does not pass;
testing the network management address range: the upper computer sends messages with the ID range of 0x 400-0 x47F and the period of 500ms to the ECU to be tested respectively through the CAN data conversion equipment, and judges whether the ECU to be tested CAN be awakened, if all the ECU to be tested CAN be awakened, the ECU to be tested passes the messages, otherwise, the ECU does not pass the messages;
t _ REPEAT _ MESSAGE parameter test: the method comprises the steps that after an upper computer awakens a network through CAN data conversion equipment, the time from a first frame of network management MESSAGE sent by an ECU to be tested to the time when the network management MESSAGE is stopped being sent, namely a T _ REPEAT _ MESSAGE parameter is recorded;
t _ NM _ TIMEOUT parameter test: after the upper computer awakens the network through the CAN data conversion equipment, recording the time from the time when the ECU to be tested stops sending the network management message to the time when the ECU to be tested stops sending the application message, namely a T _ NM _ TIMEOUT parameter;
t _ WAIT _ BUS _ SLEEP parameter test: after the upper computer awakens the network through the CAN data conversion equipment, recording the time from the ECU to be tested to the time when the ECU stops sending the application message to the BUS SLEEP, namely the T _ WAIT _ BUS _ SLEEP parameter;
testing the normal sending state of the network management message in the sleep mode: remotely awakening the ECU to be tested in the sleep mode by the upper computer through the CAN data conversion equipment, judging whether the ECU to be tested periodically sends 3 frames of network management messages and then stops sending the messages, if so, passing the messages, otherwise, not passing the messages;
testing the state from the sleep mode to the network management message quick sending: the upper computer locally awakens the ECU to be detected in the sleep mode through the CAN data conversion equipment, judges whether the ECU to be detected sends a specified number of network management messages in a specified period, if so, the network management messages pass, otherwise, the network management messages do not pass;
testing the network management message quick sending state to the network management message normal sending state: the upper computer locally awakens the ECU to be tested through the CAN data conversion equipment, immediately meets the sleep condition, judges whether the ECU to be tested enters a normal network management message sending state, if so, the ECU passes the network management message, otherwise, the ECU does not pass the network management message sending state;
testing the normal sending state of the network management message to the normal operation state: the upper computer locally awakens the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested sends network management messages in a specified period, if so, the ECU passes the network management messages, otherwise, the ECU does not pass the network management messages;
testing from the conventional operation state to the network management message rapid sending state: the upper computer locally awakens the ECU to be tested through the CAN data conversion equipment and then repeats the message request, and judges whether the ECU to be tested sends a self network management message within a specified time, if so, the ECU passes the message, otherwise, the ECU does not pass the message;
normal operating state to ready-to-sleep state test: the upper computer forbids a local wake-up signal of the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested stops sending the network management message and normally sends the application message, if so, the ECU passes, otherwise, the ECU does not pass;
prepare sleep state to normal operating state test: the upper computer triggers the ECU to be tested in the sleep preparation state through the CAN data conversion equipment, and judges whether the ECU to be tested enters a normal operation state, if so, the ECU to be tested passes the normal operation state, otherwise, the ECU does not pass the normal operation state;
preparing a sleep state to a network management message rapid sending state test: the upper computer sends a message request to the ECU to be tested in the sleep preparation state repeatedly through the CAN data conversion equipment, and judges whether the ECU to be tested is in a network access management message quick sending state, if so, the ECU passes the network access management message, otherwise, the ECU does not pass the network access management message quick sending state;
repeating the message state to prepare for the sleep state test: the upper computer sends a frame of network management awakening message to the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested enters a sleep preparation state or not, stops sending the network management message and normally sends an application message, if yes, the ECU passes the sleep preparation state, and otherwise, the ECU does not pass the application message;
prepare sleep state to pre-sleep mode test: after the upper computer closes the virtual node to the ECU to be tested in the sleep preparation state through the CAN data conversion equipment, judging whether the ECU to be tested stops sending the application message within a certain time, if so, passing the application message, otherwise, not passing the application message;
testing the normal sending state from the pre-sleep mode to the network management message: the upper computer sends a frame of network management message to the ECU to be tested in the pre-sleep mode through the CAN data conversion equipment, and judges whether the ECU to be tested sends the network management message in a specified period, if yes, the ECU passes the network management message, otherwise, the ECU does not pass the network management message;
testing the state from the pre-sleep mode to the network management message rapid sending: the upper computer triggers a local awakening condition to the ECU to be tested in the pre-sleep mode through the CAN data conversion equipment, and judges whether the ECU to be tested enters a network management message quick sending state, if so, the ECU passes, otherwise, the ECU does not pass;
pre-sleep mode to sleep mode test: and the upper computer sends an application message to the ECU to be tested in the pre-sleep mode through the CAN data conversion equipment, judges whether the ECU to be tested has an ACK response error frame within a specified time, if so, the ECU passes the application message, and otherwise, the ECU does not pass the application message.
A test system for direct network management of an onboard controller, comprising:
the starting module is used for starting the ECU to be tested; the ECU is connected to CAN data conversion equipment through a CAN bus, and the CAN data conversion equipment is connected with an upper computer in a USB mode;
the test signal simulation module is used for 2) acquiring a test case and test simulation information according to the test task, initializing and configuring hardware, and simulating a corresponding network management message test signal according to the test case and the test simulation information; the simulation information of the test comprises a simulation node address, increasing or decreasing operation to the simulation node, dormancy control and awakening control;
and the network management test module is used for sending the network management message test signals to the tested ECU through the upper computer to execute network management tests one by one and judging whether a network management fault exists according to the message sent back by the tested ECU.
According to the above scheme, the network management test in the network management test module comprises: OSEK network management test and Autosar network management test;
the sequence of the network management message test signal sequence of the OSEK network management test is as follows: an Alive message format test, a Ring message format test, a LimpHome message format test T [ typ ], T [ max ] and T [ error ] time parameters, a logic loop establishment test, a logic loop stability test, a sleep behavior test and a wake-up behavior test;
the Autosar network management test comprises the following steps: parameter testing and logic testing; the parameter test comprises the following steps: source address test, network management address range test, T _ REPEAT _ MESSAGE parameter test, T _ NM _ TIMEOUT parameter test and T _ WAIT _ BUS _ SLEEP parameter test. The logic test comprises the following steps: the method comprises the steps of testing a normal sending state of a network management message from a sleep mode, testing a quick sending state of the network management message from the sleep mode, testing the normal sending state of the network management message from the network management message, testing the normal sending state of the network management message to a normal operation state, testing the quick sending state of the network management message from the normal operation state, testing the normal operation state to a sleep preparation state, testing the sleep preparation state to the normal operation state, testing the sleep preparation state to the quick sending state of the network management message, testing the message state to the sleep preparation state, testing the sleep preparation state to a pre-sleep mode, testing the normal sending state of the network management message from the pre-sleep mode, testing the network management message from the pre-sleep mode to the sleep mode, and testing the network management message from the pre-sleep mode to the sleep mode.
According to the scheme, the network management test module judges whether a network management fault exists according to a message sent by the tested ECU, and the specific judgment flow of the OSEK network management test is as follows:
1) The upper computer judges whether a first frame message sent by the ECU to be tested and received by the CAN data conversion equipment is an Alive message or not and whether the format is consistent with an OSEK protocol or not, if so, the format test of the Alive message is passed, otherwise, the format test of the Alive message is not passed;
2) The upper computer judges whether a second frame message sent by the ECU to be tested and received by the CAN data conversion equipment is a Ring message and whether the format is consistent with the OSEK protocol, if so, the Ring message format test is passed, otherwise, the Ring message format test is not passed;
3) And the upper computer judges whether the tenth frame message sent by the ECU to be tested and received by the CAN data conversion equipment is a LimpHome message and whether the format is consistent with the OSEK protocol. If the information is consistent with the information, the information passes through the LimpHome message format, otherwise, the information does not pass.
4) The upper computer records the moment T of sending a first frame Alive message by the ECU to be tested through the CAN data conversion equipment Alive1 The moment T of the first frame Ring message Ring1 Second frame Alive message time T Alive2 Fifth frame Alive message time T Alive5 First frame Limphome message time T LimpHome Upper computer calculating T Ring1 –T Alive1 I.e. T [ typ ]](ii) a Upper computer calculating T Alive2 –T Ring1 Is T max](ii) a Upper computer calculating T Limphome –T Alive5 Is T [ error [ ]];
5) The upper computer simulates a virtual node through the CAN data conversion equipment to send a network management message to the ECU to be tested, judges whether the ECU to be tested CAN establish a loop with the virtual node, if the ECU to be tested CAN establish the loop, the test is established through a logic loop, otherwise, the ECU does not pass;
6) The upper computer simulates a virtual node through the CAN data conversion equipment to send a network management message to the ECU to be tested, and judges whether the ECU to be tested CAN still establish a loop with the virtual node by increasing or decreasing the virtual node; if the loop can be established, the stability test of the logic loop is passed, otherwise, the loop does not pass;
8) The upper computer triggers the sleep condition of the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested CAN sleep and whether the sleep process meets the requirements, if so, the upper computer passes the sleep behavior test, otherwise, the upper computer does not pass the sleep behavior test;
9) The upper computer triggers the awakening condition of the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested CAN be awakened and whether the awakening process meets the requirements, if so, the ECU to be tested passes the awakening action test, otherwise, the ECU does not pass the awakening action test.
According to the scheme, the concrete method for the Autosar network management test in the step 3) is as follows:
testing a source address: the upper computer judges whether the first byte of a network management message sent by the ECU to be detected and received by the CAN data conversion equipment is consistent with the standard requirement, if so, the first byte passes, otherwise, the first byte does not pass;
testing the network management address range: the upper computer sends messages with the ID range of 0x 400-0 x47F and the period of 500ms to the ECU to be tested through the CAN data conversion equipment respectively, and judges whether the ECU to be tested CAN be awakened, if all the ECU to be tested CAN be awakened, the ECU to be tested passes the messages, otherwise, the ECU does not pass the messages;
t _ REPEAT _ MESSAGE parameter test: after the upper computer awakens the network through the CAN data conversion equipment, recording the time from the first frame of network management MESSAGE sent by the ECU to be tested to the time of stopping sending the network management MESSAGE, namely a T _ REPEAT _ MESSAGE parameter;
t _ NM _ TIMEOUT parameter test: after the upper computer wakes up the network through the CAN data conversion equipment, recording the time from the time when the ECU to be tested stops sending the network management message to the time when the ECU to be tested stops sending the application message, namely T _ NM _ TIMEOUT parameter;
t _ WAIT _ BUS _ SLEEP parameter test: after the upper computer awakens the network through the CAN data conversion equipment, recording the time from the ECU to be tested to the time when the ECU stops sending the application message to the BUS SLEEP, namely the T _ WAIT _ BUS _ SLEEP parameter;
testing the normal sending state of the network management message in the sleep mode: the upper computer remotely wakes up the ECU to be tested in the sleep mode through the CAN data conversion equipment, judges whether the ECU to be tested periodically sends 3 frames of network management messages and then stops sending, if yes, the ECU passes, otherwise, the ECU does not pass;
testing the state from the sleep mode to the network management message quick sending: the upper computer locally awakens the ECU to be tested in the sleep mode through the CAN data conversion equipment, judges whether the ECU to be tested sends a specified number of network management messages in a specified period, if so, the network management messages pass, otherwise, the network management messages do not pass;
testing the network management message quick sending state to the network management message normal sending state: the upper computer 1 locally awakens the ECU to be tested through the CAN data conversion equipment 2, immediately meets the sleep condition, judges whether the ECU to be tested enters a normal network management message sending state, if so, the ECU passes the normal network management message sending state, and otherwise, the ECU does not pass the normal network management message sending state;
testing the normal sending state of the network management message to the normal operation state: the upper computer locally awakens the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested sends network management messages in a specified period, if so, the ECU passes the network management messages, otherwise, the ECU does not pass the network management messages;
testing from the conventional operation state to the network management message rapid sending state: the upper computer locally awakens the ECU to be tested through the CAN data conversion equipment and then repeats the message request, and judges whether the ECU to be tested sends a network management message within a specified time, if so, the ECU passes the message, otherwise, the ECU does not pass the message;
normal operating state to ready-to-sleep state test: the upper computer forbids a local wake-up signal of the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested stops sending the network management message and normally sends the application message, if so, the ECU passes, otherwise, the ECU does not pass;
prepare sleep state to normal operating state test: the upper computer triggers the ECU to be tested in the sleep preparation state through the CAN data conversion equipment, and judges whether the ECU to be tested enters a normal operation state, if so, the ECU to be tested passes the normal operation state, otherwise, the ECU does not pass the normal operation state;
preparing a sleep state to a network management message rapid sending state test: the upper computer sends a message request to the ECU to be detected in a sleep preparation state repeatedly through the CAN data conversion equipment, and judges whether the ECU to be detected is in a network access management message quick sending state, if so, the ECU passes the message, otherwise, the ECU does not pass the message;
repeating the message state to prepare for the sleep state test: the upper computer sends a frame of network management awakening message to the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested enters a sleep preparation state or not, stops sending the network management message and normally sends an application message, if yes, the ECU passes the sleep preparation state, and otherwise, the ECU does not pass the application message;
prepare sleep state to pre-sleep mode test: after the upper computer closes the virtual node to the ECU to be tested in the sleep preparation state through the CAN data conversion equipment, judging whether the ECU to be tested stops sending the application message within a certain time, if so, passing the application message, otherwise, not passing the application message;
testing the normal sending state from the pre-sleep mode to the network management message: the upper computer sends a frame of network management message to the ECU to be tested in the pre-sleep mode through the CAN data conversion equipment, and judges whether the ECU to be tested sends the network management message in a specified period, if yes, the ECU passes the network management message, otherwise, the ECU does not pass the network management message;
testing the state from the pre-sleep mode to the network management message rapid sending: the upper computer triggers a local awakening condition to the ECU to be tested in the pre-sleep mode through the CAN data conversion equipment, and judges whether the ECU to be tested enters a network management message quick sending state, if so, the ECU passes, otherwise, the ECU does not pass;
pre-sleep mode to sleep mode test: and the upper computer sends an application message to the ECU to be tested in the pre-sleep mode through the CAN data conversion equipment, judges whether the ECU to be tested has an ACK response error frame within a specified time, if so, the ECU passes the application message, and otherwise, the ECU does not pass the application message.
The invention has the following beneficial effects: the invention avoids using a high-cost CAN bus simulation test tool of German Vector company, effectively reduces the test cost, and not only CAN test the OSEK direct network management, but also CAN test the Autosar direct network management.
Drawings
The invention will be further described with reference to the following drawings and examples, in which:
FIG. 1 is a flow chart of a method of an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a testing apparatus according to an embodiment of the present invention;
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, a method for testing direct network management of an on-board controller includes the following steps:
1) Starting an ECU to be tested, wherein the ECU is connected to CAN data conversion equipment through a CAN bus, and the CAN data conversion equipment is connected with an upper computer in a USB mode;
referring to fig. 2, in the embodiment, the CAN data conversion device 2 is a device of \8230 \ 8230;, kvaser, and the ECU to be tested is connected to Kvaser hardware through a CAN bus, and is connected to the upper computer 1 through a USB by using the Kvaser hardware.
2) Acquiring simulation information of a test according to the test task, and acquiring a simulated corresponding network management message test signal after initializing and configuring hardware; the simulation information of the test comprises a simulation node address, increasing or decreasing operation of the simulation node, dormancy control and awakening control; the simulated network management message test signal comprises: the simulation test signal is defined according to OSEK standard or AUTOSAR network management standard and has information of node state, sleep indication, awakening state and the like;
3) Sending the network management message test signals to the tested ECU through the upper computer to execute network management tests one by one, and judging whether a network management fault exists according to messages sent back by the tested ECU; the network management test comprises the following steps: OSEK network management test and Autosar network management test;
the sequence of the network management message test signal sequence of the OSEK network management test is as follows: an Alive message format test, a Ring message format test, a LimpHome message format test T [ typ ], T [ max ] and T [ error ] time parameters, a logic loop establishment test, a logic loop stability test, a sleep behavior test and a wake-up behavior test;
the Autosar network management test comprises the following steps: parameter testing and logic testing; the parameter test comprises the following steps: source address test, network management address range test, T _ REPEAT _ MESSAGE parameter test, T _ NM _ TIMEOUT parameter test and T _ WAIT _ BUS _ SLEEP parameter test. The logic test comprises the following steps: the method comprises a test from a sleep mode to a normal sending state of a network management message, a test from the sleep mode to a rapid sending state of the network management message, a test from the rapid sending state of the network management message to the normal sending state of the network management message, a test from the normal sending state of the network management message to a normal operating state, a test from the normal operating state to a rapid sending state of the network management message, a test from the conventional operating state to a ready sleep state, a test from the ready sleep state to the rapid sending state of the network management message, a test from a repeated message state to the ready sleep state, a test from the ready sleep state to a pre-sleep mode, a test from the pre-sleep mode to the normal sending state of the network management message, a test from the pre-sleep mode to the rapid sending state of the network management message and a test from the pre-sleep mode to the sleep mode.
In step 3), whether a network management fault exists is judged according to a message sent by the tested ECU, and the specific judgment flow of the OSEK network management test is as follows:
3.1 The upper computer 1 judges whether a first frame message sent by the ECU to be tested and received by the CAN data conversion equipment 2 is an Alive message or not, and whether the format of the first frame message is consistent with the OSEK protocol or not, if the first frame message is consistent with the OSEK protocol, the format test of the Alive message is passed, otherwise, the first frame message does not pass;
3.2 The upper computer 1 judges whether a second frame message sent by the ECU to be detected and received by the CAN data conversion equipment 2 is a Ring message and whether the format is consistent with an OSEK protocol, if so, the Ring message format test is passed, otherwise, the Ring message format test is not passed;
3.3 The upper computer 1 judges whether the tenth frame message sent by the ECU to be tested received by the CAN data conversion device 2 is a LimpHome message and whether the format is consistent with the OSEK protocol. If the message format is consistent with the LimpHome message format, otherwise, the message format is not passed.
3.4 ) the upper computer 1 records the moment T of sending the first frame Alive message by the ECU to be tested through the CAN data conversion equipment 2 Alive1 The moment T of the first frame Ring message Ring1 Second frame Alive message time T Alive2 Fifth frame Alive message time T Alive5 And the first frame Limphome message time T LimpHome The upper computer 1 calculates T Ring1 –T Alive1 I.e. T [ typ ]](ii) a Upper computer 1 calculates T Alive2 –T Ring1 Is T max](ii) a Upper computer 1 calculates T Limphome –T Alive5 Is T [ error [ ]];
3.5 The upper computer 1 simulates a virtual node through the CAN data conversion equipment 2 to send a network management message to the ECU to be tested, judges whether the ECU to be tested CAN establish a loop with the virtual node, if the ECU to be tested CAN establish the loop, the test is established through a logic loop, otherwise, the ECU does not pass;
3.6 The upper computer 1 simulates virtual nodes through the CAN data conversion equipment 2 to send network management messages to the ECU to be tested, and judges whether the ECU to be tested CAN still establish a loop with the virtual nodes by increasing or decreasing the virtual nodes; if the loop can be built, the stability test of the logic loop is passed, otherwise, the loop does not pass;
3.7 The upper computer 1 triggers the sleep condition of the ECU to be tested through the CAN data conversion equipment 2, judges whether the ECU to be tested CAN sleep and whether the sleep process meets the requirements, passes the sleep behavior test if the ECU to be tested CAN sleep, and does not pass the sleep behavior test if the ECU to be tested CAN sleep;
3.8 The upper computer 1 triggers the awakening condition of the ECU to be tested through the CAN data conversion equipment 2, judges whether the ECU to be tested CAN be awakened and whether the awakening process meets the requirements, if so, the test of the awakening behavior is passed, otherwise, the test of the awakening behavior is not passed.
The concrete method for the Autosar network management test in the step 3) is as follows:
testing a source address: the upper computer 1 judges whether a first byte of a network management message sent by the ECU to be detected and received by the CAN data conversion equipment 2 is consistent with a standard requirement, if so, the first byte passes, otherwise, the first byte does not pass;
testing the network management address range: the upper computer 1 sends messages with the ID range of 0x 400-0 x47F and the period of 500ms to the ECU to be tested respectively through the CAN data conversion equipment 2, judges whether the ECU to be tested CAN be awakened, if all the ECU to be tested CAN be awakened, the ECU to be tested passes the messages, otherwise, the ECU does not pass the messages;
t _ REPEAT _ MESSAGE parameter test: after waking up the network through the CAN data conversion equipment 2, the upper computer 1 records the time from the first frame of network management MESSAGE sent by the ECU to be tested to the time of stopping sending the network management MESSAGE, namely a T _ REPEAT _ MESSAGE parameter;
t _ NM _ TIMEOUT parameter test: after the upper computer 1 wakes up the network through the CAN data conversion equipment 2, recording the time from the time when the ECU to be tested stops sending the network management message to the time when the ECU to be tested stops sending the application message, namely T _ NM _ TIMEOUT parameter;
t _ WAIT _ BUS _ SLEEP parameter test: after waking up a network through the CAN data conversion equipment 2, the upper computer 1 records the time from the ECU to be tested to the time when the ECU stops sending the application message to the BUS SLEEP, namely a T _ WAIT _ BUS _ SLEEP parameter;
testing the normal sending state of the network management message in the sleep mode: the upper computer 1 remotely awakens the ECU to be tested in the sleep mode through the CAN data conversion equipment 2, judges whether the ECU to be tested periodically sends 3 frames of network management messages and then stops sending, if yes, the ECU passes, otherwise, the ECU does not pass;
testing the state from the sleep mode to the network management message quick sending: the upper computer 1 locally awakens the ECU to be tested in the sleep mode through the CAN data conversion equipment 2, judges whether the ECU to be tested sends a specified number of network management messages in a specified period, if so, the network management messages pass, otherwise, the network management messages do not pass;
testing the network management message quick sending state to the network management message normal sending state: the upper computer 1 awakens the ECU to be tested locally through the CAN data conversion equipment 2, immediately meets the sleep condition, judges whether the ECU to be tested enters a normal network management message sending state, if so, the ECU passes the network management message sending state, otherwise, the ECU does not pass the network management message sending state;
testing the normal sending state of the network management message to the normal operation state: the upper computer 1 wakes up the ECU to be tested locally through the CAN data conversion equipment 2, judges whether the ECU to be tested sends a network management message in a specified period, if so, the ECU passes, otherwise, the ECU does not pass;
testing from the conventional operation state to the network management message rapid sending state: the upper computer 1 locally awakens the ECU to be tested through the CAN data conversion equipment 2, then repeats the message request, and judges whether the ECU to be tested sends the network management message within the specified time, if yes, the ECU passes, otherwise, the ECU does not pass;
normal operating state to ready-to-sleep state test: the upper computer 1 forbids a local wake-up signal of the ECU to be tested through the CAN data conversion equipment 2, judges whether the ECU to be tested stops sending the network management message and normally sends the application message, if so, the ECU passes, otherwise, the ECU does not pass;
prepare sleep state to normal operating state test: the upper computer 1 triggers the ECU to be tested in the sleep preparation state through the CAN data conversion equipment 2, judges whether the ECU to be tested enters a normal operation state, if so, the ECU passes, otherwise, the ECU does not pass;
preparing a sleep state to a network management message rapid sending state test: the upper computer 1 repeats a message request to the ECU to be detected in a sleep preparation state through the CAN data conversion equipment 2, judges whether the ECU to be detected is in a network access management message quick sending state, if so, the ECU to be detected passes the network access management message, otherwise, the ECU does not pass the network access management message quick sending state;
repeating the message state to prepare for the sleep state test: the upper computer 1 sends a frame of network management awakening message to the ECU to be tested through the CAN data conversion equipment 2, judges whether the ECU to be tested enters a sleep preparation state, stops sending the network management message and normally sends an application message, if yes, the network management awakening message passes through the network management awakening message, otherwise, the network management awakening message does not pass through the application message;
prepare sleep state to pre-sleep mode test: after closing the virtual node to the ECU to be tested in the sleep preparation state through the CAN data conversion equipment 2, the upper computer 1 judges whether the ECU to be tested stops sending the application message within a certain time, if so, the application message passes, otherwise, the application message does not pass;
testing the normal sending state from the pre-sleep mode to the network management message: the upper computer 1 sends a frame of network management message to the ECU to be tested in the pre-sleep mode through the CAN data conversion equipment 2, judges whether the ECU to be tested sends the network management message in a specified period, if so, the network management message passes, otherwise, the network management message does not pass;
testing the state from the pre-sleep mode to the network management message rapid sending: the upper computer 1 triggers a local awakening condition to the ECU to be tested in the pre-sleep mode through the CAN data conversion equipment 2, judges whether the ECU to be tested enters a network management message rapid sending state, if so, the ECU passes, otherwise, the ECU does not pass;
pre-sleep mode to sleep mode test: the upper computer 1 sends an application message to the ECU to be tested in the pre-sleep mode through the CAN data conversion equipment 2, judges whether the ECU to be tested has an ACK response error frame within a specified time, if so, the ECU passes the application message, otherwise, the ECU does not pass the application message.
The testing mode in the scheme of the invention can be manual testing or automatic testing, and the software flow of the upper computer during the manual testing is as follows:
the upper computer software obtains the simulation information of the test through the interface, such as: emulated node addresses, operations on the emulated node (increasing or decreasing), sleep, wake-up, etc.
And (4) the background software of the upper computer simulates a corresponding message signal to send out after initializing and configuring the hardware according to the information acquired by the interface. And the sent and received messages are displayed on a message display interface.
And the upper computer background is written and designed through Python language.
And the upper computer judges whether the test result meets the requirement according to the message sent by the tested ECU, and simultaneously displays the test process and the test result on a test process display interface.
The upper computer software flow during automatic test is as follows:
the upper computer software obtains test case selection information through the interface, and the test case information is shown as the above table 1.
And the upper computer background software initializes and configures the hardware according to the selected test cases and then executes the test cases one by one.
According to the method, the test system for the direct network management of the corresponding vehicle-mounted controller can be obtained, and comprises the following steps:
the starting module is used for starting the ECU to be tested; the ECU is connected to CAN data conversion equipment through a CAN bus, and the CAN data conversion equipment is connected with an upper computer in a USB mode;
the test signal simulation module is used for acquiring simulation information of the test according to the test task, and acquiring a simulated corresponding network management message test signal after initializing and configuring the hardware; the simulation information of the test comprises a simulation node address, increasing or decreasing operation of the simulation node, dormancy control and awakening control;
and the network management testing module is used for sending the network management message testing signals to the tested ECU through the upper computer to execute network management tests one by one and judging whether a network management fault exists according to the message sent back by the tested ECU.
The invention provides a test system and a test method for direct network management of a vehicle-mounted controller. And the upper computer calls Kvaser hardware to test the ECU network management to be tested through Python + Qt design and upper computer software. Through the mode, the direct network management of OSEK CAN be tested, the direct network management of Autosar CAN be tested, the CAN bus simulation test tool of Germany Vector company with high cost is avoided, and the test cost is effectively reduced. The test system is simple in structure and strong in trafficability. The system can be used for manually and automatically testing parts and can also be used for carrying out real vehicle testing on the whole vehicle network management of a real vehicle.
It will be appreciated that modifications and variations are possible to those skilled in the art in light of the above teachings, and it is intended to cover all such modifications and variations as fall within the scope of the appended claims.

Claims (9)

1. A test method for direct network management of a vehicle-mounted controller is characterized by comprising the following steps:
1) Starting an ECU to be tested, wherein the ECU is connected to CAN data conversion equipment through a CAN bus, and the CAN data conversion equipment is connected with an upper computer in a USB mode;
2) Acquiring a test case and test simulation information according to the test task, and simulating a corresponding network management message test signal according to the test case and the test simulation information after the hardware is initialized and configured; the simulation information of the test comprises a simulation node address, increasing or decreasing operation to the simulation node, dormancy control and awakening control;
3) And sending the network management message test signals to the tested ECU through the upper computer to execute network management tests one by one, and judging whether a network management fault exists according to messages sent back by the tested ECU.
2. The method for testing the direct network management of the vehicle-mounted controller according to claim 1, wherein the CAN data conversion device in the step 1) is Kvaser product Kvaser.
3. The method for testing the direct network management of the vehicle-mounted controller according to claim 1, wherein the network management test in the step 3) comprises: an OSEK network management test and an Autosar network management test;
the sequence of the network management message test signal sequence of the OSEK network management test is as follows: an Alive message format test, a Ring message format test, a LimpHome message format test T [ typ ], T [ max ] and T [ error ] time parameters, a logic loop establishment test, a logic loop stability test, a sleep behavior test and an awakening behavior test;
the Autosar network management test comprises the following steps: parameter testing and logic testing; the parameter test comprises the following steps: source address test, network management address range test, T _ REPEAT _ MESSAGE parameter test, T _ NM _ TIMEOUT parameter test and T _ WAIT _ BUS _ SLEEP parameter test. The logic test comprises the following steps: the method comprises the steps of testing a normal sending state of a network management message from a sleep mode, testing a quick sending state of the network management message from the sleep mode, testing the normal sending state of the network management message from the network management message, testing the normal sending state of the network management message to a normal operation state, testing the quick sending state of the network management message from the normal operation state, testing the normal operation state to a sleep preparation state, testing the sleep preparation state to the normal operation state, testing the sleep preparation state to the quick sending state of the network management message, testing the message state to the sleep preparation state, testing the sleep preparation state to a pre-sleep mode, testing the normal sending state of the network management message from the pre-sleep mode, testing the network management message from the pre-sleep mode to the sleep mode, and testing the network management message from the pre-sleep mode to the sleep mode.
4. The method for testing direct network management of vehicle-mounted controller according to claim 3, wherein in step 3), whether a network management fault exists is determined according to a message sent by the tested ECU, and a specific determination flow of the OSEK network management test is as follows:
3.1 Judging whether a first frame message sent by the ECU to be tested and received by the CAN data conversion equipment is an Alive message or not through the upper computer, and judging whether the format is consistent with an OSEK protocol or not, if so, testing through the format of the Alive message, and if not, passing the format test;
3.2 Judging whether a second frame message sent by the ECU to be tested and received by the CAN data conversion equipment is a Ring message or not through the upper computer, and judging whether the format is consistent with an OSEK protocol or not, if so, testing through the Ring message format, and if not, passing the Ring message format;
3.3 The upper computer judges whether the tenth frame message sent by the ECU to be tested and received by the CAN data conversion equipment is a LimpHome message or not and whether the format is consistent with the OSEK protocol or not. If the information is consistent with the information, the information passes through the LimpHome message format, otherwise, the information does not pass.
3.4 ) the upper computer records the moment T of sending the first frame Alive message by the ECU to be tested through the CAN data conversion equipment Alive1 The moment T of the first frame Ring message Ring1 Second frame Alive message time T Alive2 Fifth frame Alive message time T Alive5 First frame Limphome message time T LimpHome Upper computer calculating T Ring1 –T Alive1 I.e. T [ typ ]](ii) a Upper computer calculating T Alive2 –T Ring1 Is T max](ii) a Upper computer calculating T Limphome –T Alive5 Is T [ error [ ]];
3.5 The upper computer simulates a virtual node through the CAN data conversion equipment to send a network management message to the ECU to be tested, judges whether the ECU to be tested CAN establish a loop with the virtual node, if the ECU to be tested CAN establish the loop, the test is established through a logic loop, otherwise, the ECU does not pass;
3.6 The upper computer simulates a virtual node through the CAN data conversion equipment to send a network management message to the ECU to be tested, and judges whether the ECU to be tested CAN still establish a loop with the virtual node by increasing or decreasing the virtual node; if the loop can be built, the stability test of the logic loop is passed, otherwise, the loop does not pass;
3.7 The upper computer triggers a sleep condition of the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested CAN sleep and whether the sleep process meets the requirements, if so, the sleep behavior test is passed, otherwise, the ECU does not pass;
3.8 The upper computer triggers the awakening condition of the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested CAN be awakened and whether the awakening process meets the requirement, if so, the ECU to be tested passes the awakening behavior test, and otherwise, the ECU does not pass the awakening behavior test.
5. The method for testing the direct network management of the vehicle-mounted controller according to claim 3, wherein the concrete method for the Autosar network management test in the step 3) is as follows:
testing a source address: the upper computer judges whether the first byte of a network management message sent by the ECU to be tested and received by the CAN data conversion equipment is consistent with the standard requirement, if so, the first byte passes, otherwise, the first byte does not pass;
testing the network management address range: the upper computer sends messages with the ID range of 0x 400-0 x47F and the period of 500ms to the ECU to be tested through the CAN data conversion equipment respectively, and judges whether the ECU to be tested CAN be awakened, if all the ECU to be tested CAN be awakened, the ECU to be tested passes the messages, otherwise, the ECU does not pass the messages;
t _ REPEAT _ MESSAGE parameter test: the method comprises the steps that after an upper computer awakens a network through CAN data conversion equipment, the time from a first frame of network management MESSAGE sent by an ECU to be tested to the time when the network management MESSAGE is stopped being sent, namely a T _ REPEAT _ MESSAGE parameter is recorded;
t _ NM _ TIMEOUT parameter test: after the upper computer wakes up the network through the CAN data conversion equipment, recording the time from the time when the ECU to be tested stops sending the network management message to the time when the ECU to be tested stops sending the application message, namely T _ NM _ TIMEOUT parameter;
t _ WAIT _ BUS _ SLEEP parameter test: after the upper computer awakens the network through the CAN data conversion equipment, recording the time from the ECU to be tested to the time when the ECU stops sending the application message to the BUS SLEEP, namely a T _ WAIT _ BUS _ SLEEP parameter;
testing the normal sending state of the network management message in the sleep mode: the upper computer remotely wakes up the ECU to be tested in the sleep mode through the CAN data conversion equipment, judges whether the ECU to be tested periodically sends 3 frames of network management messages and then stops sending, if yes, the ECU passes, otherwise, the ECU does not pass;
testing the state from the sleep mode to the network management message quick sending: the upper computer locally awakens the ECU to be detected in the sleep mode through the CAN data conversion equipment, judges whether the ECU to be detected sends a specified number of network management messages in a specified period, if so, the network management messages pass, otherwise, the network management messages do not pass;
testing from the network management message fast sending state to the network management message normal sending state: the upper computer locally awakens the ECU to be tested through the CAN data conversion equipment, immediately meets the sleep condition, judges whether the ECU to be tested enters a normal network management message sending state, if so, the ECU passes the network management message, otherwise, the ECU does not pass the network management message sending state;
testing the normal sending state of the network management message to the normal operation state: the upper computer locally awakens the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested sends network management messages in a specified period, if so, the ECU passes the network management messages, otherwise, the ECU does not pass the network management messages;
and testing the normal operation state to the network management message rapid sending state: the upper computer locally awakens the ECU to be tested through the CAN data conversion equipment and then repeats the message request, and judges whether the ECU to be tested sends a self network management message within a specified time, if so, the ECU passes the message, otherwise, the ECU does not pass the message;
normal operating state to ready-to-sleep state test: the upper computer forbids a local wake-up signal of the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested stops sending the network management message and normally sends the application message, if so, the ECU passes, otherwise, the ECU does not pass;
prepare sleep state to normal operating state test: the upper computer triggers the ECU to be tested in the sleep preparation state through the CAN data conversion equipment, and judges whether the ECU to be tested enters a normal operation state, if so, the ECU passes through the normal operation state, otherwise, the ECU does not pass through the normal operation state;
preparing a sleep state to a network management message rapid sending state test: the upper computer sends a message request to the ECU to be tested in the sleep preparation state repeatedly through the CAN data conversion equipment, and judges whether the ECU to be tested is in a network access management message quick sending state, if so, the ECU passes the network access management message, otherwise, the ECU does not pass the network access management message quick sending state;
repeating the message state to prepare for the sleep state test: the upper computer sends a frame of network management awakening message to the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested enters a sleep preparation state or not, stops sending the network management message and normally sends an application message, if yes, the network management awakening message passes through the network management awakening message, otherwise, the network management awakening message does not pass through the application message;
prepare sleep state to pre-sleep mode test: after the upper computer closes the virtual node to the ECU to be tested in a sleep preparation state through the CAN data conversion equipment, judging whether the ECU to be tested stops sending the application message within a certain time, if so, passing, otherwise, not passing;
testing the normal sending state from the pre-sleep mode to the network management message: the upper computer sends a frame of network management message to the ECU to be tested in the pre-sleep mode through the CAN data conversion equipment, and judges whether the ECU to be tested sends the network management message in a specified period, if so, the ECU passes the network management message, otherwise, the ECU does not pass the network management message;
testing the state from the pre-sleep mode to the network management message rapid sending: the upper computer triggers a local awakening condition to the ECU to be tested in the pre-sleep mode through the CAN data conversion equipment, and judges whether the ECU to be tested enters a network management message quick sending state, if so, the ECU passes, otherwise, the ECU does not pass;
pre-sleep mode to sleep mode test: and the upper computer sends an application message to the ECU to be tested in the pre-sleep mode through the CAN data conversion equipment, and judges whether the ECU to be tested has an ACK response error frame within a specified time, if so, the ECU passes the test, otherwise, the ECU does not pass the test.
6. A test system for direct network management of vehicle-mounted controllers is characterized by comprising:
the starting module is used for starting the ECU to be tested; the ECU is connected to CAN data conversion equipment through a CAN bus, and the CAN data conversion equipment is connected with an upper computer in a USB mode;
the test signal simulation module is used for acquiring simulation information of the test according to the test task, and acquiring a simulated corresponding network management message test signal after initializing and configuring the hardware; the simulation information of the test comprises a simulation node address, increasing or decreasing operation of the simulation node, dormancy control and awakening control;
and the network management test module is used for sending the network management message test signals to the tested ECU through the upper computer to execute network management tests one by one and judging whether a network management fault exists according to the message sent back by the tested ECU.
7. The vehicle controller direct network management test system according to claim 6, wherein the network management test in the network management test module comprises: an OSEK network management test and an Autosar network management test;
the sequence of the network management message test signal sequence of the OSEK network management test is as follows: an Alive message format test, a Ring message format test, a LimpHome message format test T [ typ ], T [ max ] and T [ error ] time parameters, a logic loop establishment test, a logic loop stability test, a sleep behavior test and a wake-up behavior test;
the Autosar network management test comprises the following steps: parameter testing and logic testing; the parameter test comprises the following steps: source address test, network management address range test, T _ REPEAT _ MESSAGE parameter test, T _ NM _ TIMEOUT parameter test and T _ WAIT _ BUS _ SLEEP parameter test. The logic test comprises the following steps: the method comprises the steps of testing a normal sending state of a network management message from a sleep mode, testing a quick sending state of the network management message from the sleep mode, testing the normal sending state of the network management message from the network management message, testing the normal sending state of the network management message to a normal operation state, testing the quick sending state of the network management message from the normal operation state, testing the normal operation state to a sleep preparation state, testing the sleep preparation state to the normal operation state, testing the sleep preparation state to the quick sending state of the network management message, testing the message state to the sleep preparation state, testing the sleep preparation state to a pre-sleep mode, testing the normal sending state of the network management message from the pre-sleep mode, testing the network management message from the pre-sleep mode to the sleep mode, and testing the network management message from the pre-sleep mode to the sleep mode.
8. The system according to claim 7, wherein the network management test module determines whether there is a network management fault according to a message sent by the ECU to be tested, and the specific determination process of the OSEK network management test is as follows:
1) The upper computer judges whether a first frame message sent by the ECU to be tested and received by the CAN data conversion equipment is an Alive message or not and whether the format is consistent with an OSEK protocol or not, if so, the first frame message passes the Alive message format test, otherwise, the first frame message does not pass the OSEK protocol test;
2) The upper computer judges whether a second frame message sent by the ECU to be tested and received by the CAN data conversion equipment is a Ring message and whether the format is consistent with the OSEK protocol, if so, the Ring message format test is passed, otherwise, the Ring message format test is not passed;
3) And the upper computer judges whether the tenth frame message sent by the ECU to be detected and received by the CAN data conversion equipment is a LimpHome message or not and whether the format of the tenth frame message is consistent with the OSEK protocol or not. If the message format is consistent with the LimpHome message format, otherwise, the message format is not passed.
4) The upper computer records the moment T of sending a first frame Alive message by the ECU to be tested through the CAN data conversion equipment Alive1 The moment T of the first frame Ring message Ring1 Second frame Alive message time T Alive2 Fifth frame Alive message time T Alive5 And the first frame Limphome message time T LimpHome Upper computer calculating T Ring1 –T Alive1 I.e. T [ typ ]](ii) a Upper computer calculating T Alive2 –T Ring1 Is T max](ii) a Upper computer calculating T Limphome –T Alive5 Is T [ error ]];
5) The upper computer simulates a virtual node through the CAN data conversion equipment to send a network management message to the ECU to be tested, judges whether the ECU to be tested CAN establish a loop with the virtual node, if the ECU to be tested CAN establish the loop, the test is established through a logic loop, otherwise, the ECU does not pass;
6) The upper computer simulates a virtual node through the CAN data conversion equipment to send a network management message to the ECU to be tested, and judges whether the ECU to be tested CAN still establish a loop with the virtual node by increasing or decreasing the virtual node; if the loop can be established, the stability test of the logic loop is passed, otherwise, the loop does not pass;
8) The upper computer triggers the sleep condition of the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested CAN sleep and whether the sleep process meets the requirements, if so, the upper computer passes the sleep behavior test, otherwise, the upper computer does not pass the sleep behavior test;
9) The upper computer triggers the awakening condition of the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested CAN be awakened and whether the awakening process meets the requirements, if so, the ECU to be tested passes the awakening action test, otherwise, the ECU does not pass the awakening action test.
9. The system for testing the direct network management of the vehicle-mounted controller according to claim 7, wherein the concrete method for the Autosar network management test in the step 3) is as follows:
testing a source address: the upper computer judges whether the first byte of a network management message sent by the ECU to be tested and received by the CAN data conversion equipment is consistent with the standard requirement, if so, the first byte passes, otherwise, the first byte does not pass;
testing the network management address range: the upper computer sends messages with the ID range of 0x 400-0 x47F and the period of 500ms to the ECU to be tested respectively through the CAN data conversion equipment, and judges whether the ECU to be tested CAN be awakened, if all the ECU to be tested CAN be awakened, the ECU to be tested passes the messages, otherwise, the ECU does not pass the messages;
t _ REPEAT _ MESSAGE parameter test: after the upper computer awakens the network through the CAN data conversion equipment, recording the time from the first frame of network management MESSAGE sent by the ECU to be tested to the time of stopping sending the network management MESSAGE, namely a T _ REPEAT _ MESSAGE parameter;
t _ NM _ TIMEOUT parameter test: after the upper computer awakens the network through the CAN data conversion equipment, recording the time from the time when the ECU to be tested stops sending the network management message to the time when the ECU to be tested stops sending the application message, namely a T _ NM _ TIMEOUT parameter;
t _ WAIT _ BUS _ SLEEP parameter test: after the upper computer awakens the network through the CAN data conversion equipment, recording the time from the ECU to be tested to the time when the ECU stops sending the application message to the BUS SLEEP, namely a T _ WAIT _ BUS _ SLEEP parameter;
testing the normal sending state of the network management message in the sleep mode: remotely awakening the ECU to be tested in the sleep mode by the upper computer through the CAN data conversion equipment, judging whether the ECU to be tested periodically sends 3 frames of network management messages and then stops sending the messages, if so, passing the messages, otherwise, not passing the messages;
testing the state from the sleep mode to the network management message quick sending: the upper computer locally awakens the ECU to be tested in the sleep mode through the CAN data conversion equipment, judges whether the ECU to be tested sends a specified number of network management messages in a specified period, if so, the network management messages pass, otherwise, the network management messages do not pass;
testing from the network management message fast sending state to the network management message normal sending state: the upper computer locally awakens the ECU to be tested through the CAN data conversion equipment, immediately meets the sleep condition, judges whether the ECU to be tested enters a normal network management message sending state, if so, the ECU passes the network management message, otherwise, the ECU does not pass the network management message sending state;
testing the normal sending state of the network management message to the normal operation state: the upper computer locally awakens the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested sends a network management message in a specified period, if so, the ECU to be tested passes the network management message, otherwise, the ECU does not pass the network management message;
and testing the normal operation state to the network management message rapid sending state: the upper computer locally awakens the ECU to be tested through the CAN data conversion equipment and then repeats the message request, and judges whether the ECU to be tested sends a self network management message within a specified time, if so, the ECU passes the message, otherwise, the ECU does not pass the message;
normal operating state to ready-to-sleep state test: the upper computer forbids a local wake-up signal of the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested stops sending the network management message and normally sends the application message, if so, the ECU passes, otherwise, the ECU does not pass;
prepare sleep state to normal operating state test: the upper computer triggers the ECU to be tested in the sleep preparation state through the CAN data conversion equipment, and judges whether the ECU to be tested enters a normal operation state, if so, the ECU to be tested passes the normal operation state, otherwise, the ECU does not pass the normal operation state;
preparing a sleep state to a network management message rapid sending state test: the upper computer sends a message request to the ECU to be detected in a sleep preparation state repeatedly through the CAN data conversion equipment, and judges whether the ECU to be detected is in a network access management message quick sending state, if so, the ECU passes the message, otherwise, the ECU does not pass the message;
repeating the message state to prepare for the sleep state test: the upper computer sends a frame of network management awakening message to the ECU to be tested through the CAN data conversion equipment, judges whether the ECU to be tested enters a sleep preparation state or not, stops sending the network management message and normally sends an application message, if yes, the network management awakening message passes through the network management awakening message, otherwise, the network management awakening message does not pass through the application message;
prepare sleep state to pre-sleep mode test: after the upper computer closes the virtual node to the ECU to be tested in a sleep preparation state through the CAN data conversion equipment, judging whether the ECU to be tested stops sending the application message within a certain time, if so, passing, otherwise, not passing;
testing the normal sending state from the pre-sleep mode to the network management message: the upper computer sends a frame of network management message to the ECU to be tested in the pre-sleep mode through the CAN data conversion equipment, and judges whether the ECU to be tested sends the network management message in a specified period, if so, the ECU passes the network management message, otherwise, the ECU does not pass the network management message;
testing the state from the pre-sleep mode to the network management message quick sending state: the upper computer triggers a local awakening condition to the ECU to be tested in the pre-sleep mode through the CAN data conversion equipment, and judges whether the ECU to be tested enters a network management message quick sending state, if so, the ECU passes, otherwise, the ECU does not pass;
pre-sleep mode to sleep mode test: and the upper computer sends an application message to the ECU to be tested in the pre-sleep mode through the CAN data conversion equipment, judges whether the ECU to be tested has an ACK response error frame within a specified time, if so, the ECU passes the application message, and otherwise, the ECU does not pass the application message.
CN202110892102.9A 2021-08-04 2021-08-04 Test system and method for direct network management of vehicle-mounted controller Pending CN115705042A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110892102.9A CN115705042A (en) 2021-08-04 2021-08-04 Test system and method for direct network management of vehicle-mounted controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110892102.9A CN115705042A (en) 2021-08-04 2021-08-04 Test system and method for direct network management of vehicle-mounted controller

Publications (1)

Publication Number Publication Date
CN115705042A true CN115705042A (en) 2023-02-17

Family

ID=85179839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110892102.9A Pending CN115705042A (en) 2021-08-04 2021-08-04 Test system and method for direct network management of vehicle-mounted controller

Country Status (1)

Country Link
CN (1) CN115705042A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117651012A (en) * 2024-01-25 2024-03-05 江铃汽车股份有限公司 Vehicle central gateway testing method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117651012A (en) * 2024-01-25 2024-03-05 江铃汽车股份有限公司 Vehicle central gateway testing method and system
CN117651012B (en) * 2024-01-25 2024-05-31 江铃汽车股份有限公司 Vehicle central gateway testing method and system

Similar Documents

Publication Publication Date Title
TW201914161A (en) Electric vehicle power-on method based on wake-up sources
CN112241164A (en) Automobile network dormancy testing method, device, equipment and storage medium
CN107370637B (en) Vehicle-mounted ECU communication function automatic test system and method
CN103676939B (en) A kind of Auto-Test System based on OSEK straight-forward network administrative mechanisms
CN105404568A (en) CAN bus test system and test method
CN109992464A (en) A kind of VCU automatic test approach that integrated application layer software is write with a brush dipped in Chinese ink
CN113965483B (en) AUTOSAR network management pre-dormancy to dormancy time testing device and method
CN113407393B (en) Chip verification method, terminal device, verification platform and storage medium
CN115705042A (en) Test system and method for direct network management of vehicle-mounted controller
CN112702220B (en) Network testing method and network testing device
CN115550760A (en) Intelligent cabin automation test system, method, device, processor and computer readable storage medium thereof
CN112965470B (en) Commercial car data center test system
CN108255145B (en) Test system and method for vehicle transmission control unit
CN117560310A (en) Vehicle-mounted network CAN consistency testing device and method
CN117008566A (en) Automatic test method and system for remote diagnosis of vehicle
CN112046548A (en) Simulation method and device for sleeping and awakening function of full-automatic running train of rail transit
CN107807868A (en) A kind of dual control storage system disaster dump method of testing and system
CN215340823U (en) Commercial car data center test system
CN116540666A (en) Vehicle diagnosis system, method, electronic equipment and medium based on TBOX
CN218938444U (en) Battery voltage acquisition circuit, fuel cell voltage inspection instrument and vehicle
CN113965484A (en) Test method and system for automobile bus dormancy awakening rack
CN115314431A (en) Automatic DoIP test system
CN114356760A (en) CANFD controller software remote upgrade test method and system based on L3 whole vehicle architecture
CN114328184A (en) Big data cloud test method based on vehicle-mounted Ethernet architecture
CN114594754A (en) HIL automatic test method and system for vehicle networking controller

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