CN109840207B - AutoSAR-based network management automation test system and test method - Google Patents
AutoSAR-based network management automation test system and test method Download PDFInfo
- Publication number
- CN109840207B CN109840207B CN201811602879.1A CN201811602879A CN109840207B CN 109840207 B CN109840207 B CN 109840207B CN 201811602879 A CN201811602879 A CN 201811602879A CN 109840207 B CN109840207 B CN 109840207B
- Authority
- CN
- China
- Prior art keywords
- test
- bus
- ecu
- simulation
- network management
- 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.)
- Active
Links
Images
Landscapes
- Small-Scale Networks (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention provides an AUTOSAR (automotive open system architecture) -based network management automatic test system and a test method, which comprises a PC (personal computer) host, an oscilloscope, a program-controlled voltage-stabilized power supply, a bus simulation acquisition tool VN1640A, a relay board card and a voltage-stabilized power supply; KL31, KL30 and KL15 of the tested ECU are respectively connected with the relay board card, and CANH and CANL of the tested ECU are respectively connected with an oscilloscope and DB9 of one CAN channel of a bus simulation acquisition tool VN 1640A; the DB9 of the other path of CAN channel of the bus simulation acquisition tool VN1640A is connected to the relay board card; positive and negative electrode wire harnesses of the program-controlled voltage-stabilized power supply are connected into the relay board card; positive and negative wire harnesses of the voltage-stabilized power supply are connected to the relay board card; the bus acquisition simulation tool VN1640A, the program-controlled stabilized voltage supply and the oscilloscope are respectively connected to the PC; the PC runs with upper software and lower software, the upper software is an automatic test operation system for managing the test process; the lower software comprises a test sequence project and a device program control driving instruction library. The invention can realize high-efficiency test with high real-time performance and quick execution.
Description
Technical Field
The invention belongs to the field of vehicle-mounted bus testing, and particularly relates to an AUTOSAR (automotive open system architecture) -based network management automatic testing system and a testing method.
Background
At present, with the development of an automobile electronic control module (ECU) and urgent requirements of energy conservation and emission reduction of the whole automobile, in the design and development of a whole automobile electronic and electrical appliance architecture, a dormancy awakening strategy of a vehicle-mounted ECU, namely a network management strategy, directly influences the magnitude of static power consumption, how to ensure the normal execution of functions of the ECU under the condition that the power-on working time of each partner node is unknown, and the like. In order to ensure that each ECU can timely and correctly execute the dormancy awakening strategy and send related state messages and signals, the ECU participating in network management needs to be tested and verified before mass production. The current mainstream network management logic type is AUTOSAR, and the patent is directed to the definition of an automatic test method and the statement of an automatic test system for the AUTOSAR network management logic strategy. Currently, the AUTOSAR network management test mainly has the following problems.
The AUTOSAR network management test verification mainly adopts a manual test mode as a main mode. The method comprises the steps of manually developing and compiling residual bus simulation models of other partner nodes according to interaction bus information of each ECU and other partner nodes, and completing establishment of a tested ECU test environment by manually controlling high and low level states of KL31/KL30/KL15 hardwires.
The existing bus simulation monitoring test tool is mainly CANoe software of a Vector tool chain. Aiming at AUTOSAR network management test, the automatic simulation model generation tool of the software can only realize the conventional network management logic execution of each simulation partner node, can not realize the switching of each fault/abnormal test bus environment and any modification of time parameters, and can not realize the synchronization of the time stamp with hard wire control, and the existing test tool chain has weak universality, expansibility and specificity solution.
In the test process, the following work is also required to be completed, wherein, firstly, each test item needs to analyze mass bus data, the analyzed content comprises the contents of bus behavior interval time, message ID, signal state byte and the like, and the manual analysis time is 1-2 times of the test execution time; recording various effective data, and storing the recorded data according to a naming rule; and thirdly, after the test execution is finished, the test report needs to be collated and compiled, and the test report is mainly analyzed and described by the test result, evaluated by the test result, counted by the test result and the like. The prior art has the defects of high testing strength, multiple artificial factors, small consistency degree and the like.
Disclosure of Invention
The invention aims to provide an AUTOSAR-based network management automatic test system and a test method, which realize the automatic generation of a residual bus simulation test logic model and also realize the time stamp synchronization of the residual bus simulation model and a hard wire signal. Meanwhile, the high-efficiency automatic execution efficiency of automatic analysis of test data, automatic calculation of test results and automatic generation of test reports is realized through the cooperation development of upper software and CANoe-based software.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
an AUTOSAR-based network management automatic test system comprises a PC host, an oscilloscope, a program-controlled voltage-stabilized power supply, a bus simulation acquisition tool VN1640A, a relay board card and a voltage-stabilized power supply;
three wire harnesses of KL31, KL30 and KL15 of the tested ECU are respectively connected with corresponding connecting terminals of the relay board card, and two wire harnesses of CANH and CANL of the tested ECU are respectively connected with the oscilloscope and DB9 of one CAN channel of the bus simulation acquisition tool VN 1640A;
the DB9 of the other path of CAN channel of the bus simulation acquisition tool VN1640A is connected to the relay board card;
the positive and negative electrode wire harnesses of the program-controlled stabilized voltage supply are connected into the relay board card, and the connection and disconnection of the positive and negative electrode wire harnesses of the program-controlled stabilized voltage supply and KL31, KL30 and KL15 of the tested ECU are controlled through the relay board card;
positive and negative electrode wire harnesses of the voltage-stabilized power supply are connected into the relay board card to supply power to the relay board card;
the bus acquisition simulation tool VN1640A, the program-controlled voltage-stabilized power supply and the USB program-controlled wire of the oscilloscope are respectively connected to the USB interface of the PC;
the PC runs with upper software and lower software, the upper software is an automatic test operation system and is used for managing the test process; the lower software comprises a test sequence project and a device program control driving instruction library, wherein the test sequence project comprises an AUTOSAR network management test execution script developed under a CANoe software CAPL programming environment, and the AUTOSAR network management test execution script is added under the CANoe software for loading and running, so that a BusSleep/Repeat/Normal/Ready Sleep/prepareBusSleep state switching test, a simulation partner node fault injection test, a NMPDU receiving test and a network dormancy awakening state test under a diagnosis state can be completed.
Further, the upper level software comprises a test sequence engineering interaction module, a test software deployment module, a user information management module, a task creation module, a test execution state monitoring module and a test report generation module.
Further, the test sequence engineering interaction module comprises a CAN bus data file analysis library, an ECU attribute information analysis library to be tested and a partner node attribute information analysis library.
Further, the test sequence engineering includes:
the test sequence editing module is used for changing and editing the test sequence;
the partner node behavior simulation module is used for automatically generating a partner node simulation model participating in the test and can be called by the test case script;
the fault injection module comprises diagnostic message interference injection and partner node abnormal behavior injection;
the evaluation module is used for analyzing the key data acquired in the various fault processes according to the test evaluation standard and carrying out correlation comparison with the test standard;
and the report description module is used for filling necessary processes and results in the test process into the report and presenting the report to a tester for reading and using.
Further, the device program control driving instruction library is a dll file which is compiled by editing each device program control driving instruction through a C # environment and according to a syntax format supported by a CAPL programming environment, and comprises a program control power supply driving instruction library, an oscilloscope driving instruction library and a relay board card driving instruction library.
An AUTO-TEST METHOD FOR AUTO-MANAGEMENT OF NETWORK BASED ON AUTO-TEST, applied to the AUTO-TEST SYSTEM FOR AUTO-MANAGEMENT OF THE INVENTION of any one of claims 1-4, the method comprising the steps of:
s1: software deployment, namely completing AUTOSAR test report template entry, test sequence engineering path entry and host factory information entry through the login of a super administrator authority;
s2: the user logs in, inputs the user name and the password, the software background user library checks the information, if the input is correct, the step S3 is executed, and if the input is incorrect, the step S2 is returned to;
s3: selecting an interface, selecting user management to enter step S4, selecting to create a test task to enter step S5, and executing a test sequence to enter step S6;
s4: the user management is the management of the operation and use permission of the software, and comprises adding users, deleting users and modifying information, wherein the modifying information comprises editing user information and modifying passwords, and the step S3 is returned after the completion;
s5: creating a test task comprising software and hardware version number information, a test time and place and ECU attribute information of the tested ECU, and returning to the step S3 after the test task is completed;
s6: executing the test, including selecting a test task and selecting a test case;
s7: starting the test, calling up the test sequence engineering file, executing the self-test of the test state, displaying the reason of failing to pass if the self-test fails, and re-entering the step S7; if the self-check is passed, go to step S8;
s8: executing the test case, displaying the test progress and the test result, and generating a test report after the test is finished;
s9: if the user needs to test again, the user performs step S6 again, and if the user does not need to test again, the user exits the system.
Further, in step S5, the ECU test attribute information includes presence or absence of an ECU termination resistance, a communication voltage value, CAN communication protocol selection (including 11898, J1939, and CANFD), a communication database path, a network management packet base address, a test partner node selection, and a partner node network management packet ID selection.
Further, in step S8, the method for executing the test case includes the following steps:
s11: sending a serial port and CAN bus command through a test sequence code, and controlling a program control power supply and a relay board card to complete the test environment construction required by each test case;
s12: after the input attribute information of the tested ECU and the information of the corresponding partner node of the ECU are analyzed and can be called by the test sequence engineering, the bus acquisition simulation tool VN1640A is used for sending related simulation bus data to the ECU according to the analyzed information, wherein the simulation bus data comprises simulation partner node online and offline, replay/Active/Source address state bit abnormity and abnormal simulation contents with overlarge or undersize simulation node sending time intervals;
s13: test data are acquired through a bus acquisition simulation tool VN1640A and are mapped with an evaluation standard;
s14: and analyzing and storing the key data of the bus, and feeding back the result of each test case to an upper software interface in real time, wherein the upper software interface displays the passing condition and the execution progress of the test in real time.
Further, in step S13, the method for comparing the test data with the rating standard includes the following steps:
s21: judging whether the Repeat/Active/Source Address status bits sent by the ECU are consistent with the status definitions defined in the test specification or not in the conventional state switching and fault states, if not, judging the fail result, and meanwhile, outputting the timestamp of the judgment message and the actual measurement value of the monitored status bits to a test report;
s22: and judging the time interval between the transmission of the network management message and the simulation partner node message by the ECU, the transmission of the network management message and the self network management message by the ECU and the transmission of the network management message and the self application message by the ECU under the conventional state switching and each fault state. If the measured value is inconsistent with the defined test specification, the test result is fail, and meanwhile, the timestamp and the monitored state bit actual measurement value of the judgment message are output to a test report;
s23: and judging whether the CAN bus level state of the ECU is measured by an oscilloscope in two states of dormancy and awakening, wherein the bus level is in a 0V state in the dormancy state, the bus recessive level is in a 2.5V state in the awakening state, and if the bus recessive level is not consistent, the test result is fail.
Compared with the prior art, the AUTOSAR-based network management automatic test system and the test method have the following advantages that:
1. the testing method for the general design and supporting the conventional AUTOSAR network management and the fault comprehensive testing coverage is provided;
2. an AUTOSAR network management automated test system based on modules is provided. The method has the characteristics of simple and convenient operation, strong expansibility, convenient maintenance and the like, and meets the automatic test use scene of other vehicle-mounted CAN bus network management strategies;
3. the test report is automatically generated, and information such as key data is displayed in the report, so that the test execution efficiency is greatly improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic diagram of an architecture of an automotive based network management automation test system according to an embodiment of the present invention;
fig. 2 is a hardware connection diagram of an automotive network management automation test system according to an embodiment of the present invention;
fig. 3 is a lower software system block diagram of an automotive network management automation test system according to an embodiment of the present invention;
fig. 4 is a flowchart of an automation testing method based on automotive system architecture network management according to an embodiment of the present invention.
Detailed Description
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
As shown in fig. 1-4, an automation test system based on automotive sar network management comprises a PC host, an oscilloscope, a program-controlled voltage-stabilized power supply, a bus simulation acquisition tool VN1640A, a relay board card, and a voltage-stabilized power supply;
three wire harnesses of KL31, KL30 and KL15 of the tested ECU are respectively connected with corresponding connecting terminals of the relay board card, and two wire harnesses of CANH and CANL of the tested ECU are respectively connected with the oscilloscope and DB9 of one CAN channel of the bus simulation acquisition tool VN 1640A;
the DB9 of the other path of CAN channel of the bus simulation acquisition tool VN1640A is connected to the relay board card;
the positive and negative electrode wire harnesses of the program-controlled stabilized voltage supply are connected into the relay board card, and the connection and disconnection of the positive and negative electrode wire harnesses of the program-controlled stabilized voltage supply and KL31, KL30 and KL15 of the tested ECU are controlled through the relay board card;
positive and negative electrode wire harnesses of the voltage-stabilized power supply are connected into the relay board card to supply power to the relay board card;
the bus acquisition simulation tool VN1640A, the program-controlled voltage-stabilized power supply and the USB program-controlled wire of the oscilloscope are respectively connected to the USB interface of the PC;
the PC runs with upper software and lower software, the upper software is an automatic test operation system and is used for managing the test process; the lower software comprises a test sequence project and a device program control driving instruction library, wherein the test sequence project comprises an AUTOSAR network management test execution script developed under a CANoe software CAPL programming environment, and the AUTOSAR network management test execution script is added under the CANoe software for loading and running, so that a BusSleep/Repeat/Normal/Ready Sleep/prepareBusSleep state switching test, a simulation partner node fault injection test, a NMPDU receiving test and a network dormancy awakening state test under a diagnosis state can be completed.
The upper software comprises a test sequence engineering interaction module, a test software deployment module, a user information management module, a task creation module, a test execution state monitoring module and a test report generation module, wherein:
a) a testing software deployment module: when the software is deployed for the first time, the software is logged in through the authority of a super administrator, the AUTOSAR test report template entry, the test sequence engineering path entry and the host factory information entry are completed in the software, and then the software is executed by taking the information as a reference;
b) the user information management module: inputting all user information and authority information into a user information database by embedding and calling a MySQL database, and matching the information input by a user with the information in the database before and after each software;
c) a task creation module: the method is used for creating test tasks, and comprises software and hardware version number information of the tested ECU, a test site, a CAN bus Database (DBC) path and ECU test attribute information. After the information is recorded in the upper interface, namely the task is established, the test execution can be implemented;
d) the test execution state monitoring module: the system is used for calling a test sequence project and monitoring a test execution state, and comprises test case checking, test progress bar display, real-time display of test results of each test case, test starting and test stopping;
e) a test report generation module: the method comprises a test report viewing button, and a test report of a certain test task is called and opened after clicking.
The test sequence engineering interaction module comprises a CAN bus data file analysis library, an ECU attribute information analysis library to be tested and a partner node attribute information analysis library, wherein:
f) CAN bus data file analysis library: the method comprises the steps that a CAN bus communication data file with a common format in the industry is analyzed by a dbc file, the analysis content at least comprises the name of each ECU, a message ID, a message Cycle and a message DLC, and the analyzed content is written into an ini file for being read and used by a lower software test sequence project;
g) the ECU attribute information analysis library to be tested: analyzing attribute information of an ECU in an upper software interface, wherein the analyzed content at least comprises communication protocol selection, a network management message base address, a CAN bus communication rate, a terminal resistor and a normal working voltage value, and writing the analyzed content into an ini file for a lower software test sequence project to read;
h) and the partner node attribute information analysis library analyzes the partner node attribute information of the ECU in the upper software interface, analyzes the content at least comprising a partner node ID and a non-partner interference node ID, and writes the analyzed content into an ini file for the lower software test sequence engineering to read.
The test sequence engineering includes:
module, namely a test sequence editing module, for modifying and editing the sequence of the test sequence;
module, namely a partner node behavior simulation module, which is used for automatically generating a partner node simulation model participating in the test and can be called by a test case script;
module, namely a fault injection module, which comprises diagnostic message interference injection and partner node abnormal behavior injection;
module, namely an evaluation module, for analyzing the key data acquired in the various fault processes according to the test evaluation standard, and performing correlation comparison with the test standard;
module, namely a report description module, which is used for filling necessary processes and results in the test process into a report and presenting the report to a tester for reading and use.
The equipment program control driving instruction library is a dll file compiled according to a syntax format supported by a CAPL (control and instrumentation) programming environment by editing each equipment program control driving instruction through a C # environment, and comprises a program control power supply driving instruction library, an oscilloscope driving instruction library and a relay board card driving instruction library, wherein:
I) dll (programmable power drive command library): supporting a program control output instruction, and realizing the adjustment of the voltage at least meeting the precision of +/-0.1V;
II) osc.dll (oscilloscope driver instruction library): the method supports oscilloscope control instructions such as program-controlled CAN bus analysis setting, oscilloscope trigger setting, oscilloscope time base amplitude setting, physical waveform form numerical values of any time period of acquisition and measurement and the like;
III) Relay.dll (Relay Board drive Command library): the accuracy control of +/-5 ms of three IO of KL30/KL31/KL15 is realized through CAN bus control.
The AUTO-TEST METHOD FOR MANAGEMENT BASED ON AUTOSAR comprises the following steps:
s1: software deployment, namely completing AUTOSAR test report template entry, test sequence engineering path entry and host factory information entry through the login of a super administrator authority;
s2: the user logs in, inputs the user name and the password, the software background user library checks the information, if the input is correct, the step S3 is executed, and if the input is incorrect, the step S2 is returned to;
s3: selecting an interface, selecting user management to enter step S4, selecting to create a test task to enter step S5, and executing a test sequence to enter step S6;
s4: the user management is the management of the operation and use permission of the software, and comprises adding users, deleting users and modifying information, wherein the modifying information comprises editing user information and modifying passwords, and the step S3 is returned after the completion;
s5: creating a test task comprising software and hardware version number information, a test time and place and ECU attribute information of the tested ECU, and returning to the step S3 after the test task is completed;
s6: executing the test, including selecting a test task and selecting a test case;
s7: starting the test, calling up the test sequence engineering file, executing the self-test of the test state, displaying the reason of failing to pass if the self-test fails, and re-entering the step S7; if the self-check is passed, go to step S8;
s8: executing the test case, displaying the test progress and the test result, and generating a test report after the test is finished;
s9: if the user needs to test again, the user performs step S6 again, and if the user does not need to test again, the user exits the system.
In step S5, the ECU test attribute information includes presence or absence of an ECU terminal resistance, a communication voltage value, CAN communication protocol selection (including 11898, J1939, CANFD), a communication database path, a network management packet base address, a participant test partner node selection, and a partner node network management packet ID selection.
In step S8, the test method for executing the test case includes the following steps:
s11: sending a serial port and CAN bus command through a test sequence code, and controlling a program control power supply and a relay board card to complete the test environment construction required by each test case;
s12: after the input attribute information of the tested ECU and the information of the corresponding partner node of the ECU are analyzed and can be called by the test sequence engineering, the bus acquisition simulation tool VN1640A is used for sending related simulation bus data to the ECU according to the analyzed information, wherein the simulation bus data comprises simulation partner node online and offline, replay/Active/Source address state bit abnormity and abnormal simulation contents with overlarge or undersize simulation node sending time intervals;
s13: test data are acquired through a bus acquisition simulation tool VN1640A and are mapped with an evaluation standard;
s14: and analyzing and storing the key data of the bus, and feeding back the result of each test case to an upper software interface in real time, wherein the upper software interface displays the passing condition and the execution progress of the test in real time.
In step S13, the method for comparing the test data with the rating standard includes the following steps:
s21: judging whether the Repeat/Active/Source Address status bits sent by the ECU are consistent with the status definitions defined in the test specification or not in the conventional state switching and fault states, if not, judging the fail result, and meanwhile, outputting the timestamp of the judgment message and the actual measurement value of the monitored status bits to a test report;
s22: and judging the time interval between the transmission of the network management message and the simulation partner node message by the ECU, the transmission of the network management message and the self network management message by the ECU and the transmission of the network management message and the self application message by the ECU under the conventional state switching and each fault state. If the measured value is inconsistent with the defined test specification, the test result is fail, and meanwhile, the timestamp and the monitored state bit actual measurement value of the judgment message are output to a test report;
s23: and judging whether the CAN bus level state of the ECU is measured by an oscilloscope in two states of dormancy and awakening, wherein the bus level is in a 0V state in the dormancy state, the bus recessive level is in a 2.5V state in the awakening state, and if the bus recessive level is not consistent, the test result is fail.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (7)
1. The utility model provides a network management automation test system based on AUTOSAR which characterized in that: the system comprises a PC (personal computer), an oscilloscope, a program-controlled voltage-stabilized power supply, a bus simulation acquisition tool VN1640A, a relay board card and a voltage-stabilized power supply;
three wire harnesses of KL31, KL30 and KL15 of the tested ECU are respectively connected with corresponding connecting terminals of the relay board card, and two wire harnesses of CANH and CANL of the tested ECU are respectively connected with the oscilloscope and DB9 of one CAN channel of the bus simulation acquisition tool VN 1640A;
the DB9 of the other path of CAN channel of the bus simulation acquisition tool VN1640A is connected to the relay board card;
the positive and negative electrode wire harnesses of the program-controlled stabilized voltage supply are connected into the relay board card, and the connection and disconnection of the positive and negative electrode wire harnesses of the program-controlled stabilized voltage supply and KL31, KL30 and KL15 of the tested ECU are controlled through the relay board card;
positive and negative electrode wire harnesses of the voltage-stabilized power supply are connected into the relay board card to supply power to the relay board card;
the bus acquisition simulation tool VN1640A, the program-controlled voltage-stabilized power supply and the USB program-controlled wire of the oscilloscope are respectively connected to the USB interface of the PC;
the PC runs with upper software and lower software, the upper software is an automatic test operation system and is used for managing the test process; the lower software comprises a test sequence project and a device program control driving instruction library, wherein the test sequence project comprises an AUTOSAR network management test execution script developed under a CANoe software CAPL programming environment, and the AUTOSAR network management test execution script is added under the CANoe software for loading and running to finish BusSleep/Repeat/Normal/Ready Sleep/prepareBusSleep state switching test, simulation partner node fault injection test, NMPDU receiving test and network dormancy awakening state test under a diagnosis state;
the test sequence engineering includes:
the test sequence editing module is used for changing and editing the test sequence;
the partner node behavior simulation module is used for automatically generating a partner node simulation model participating in the test and can be called by the test case script;
the fault injection module comprises diagnostic message interference injection and partner node abnormal behavior injection;
the evaluation module is used for analyzing the key data acquired in the various fault processes according to the test evaluation standard and carrying out correlation comparison with the test standard;
and the report description module is used for filling necessary processes and results in the test process into the report and presenting the report to a tester for reading and using.
2. The AUTOSAR-based network management automation test system of claim 1, characterized in that: the upper software comprises a test sequence engineering interaction module, a test software deployment module, a user information management module, a task creation module, a test execution state monitoring module and a test report generation module.
3. The AUTOSAR-based network management automation test system of claim 2, characterized in that: the test sequence engineering interaction module comprises a CAN bus data file analysis library, an ECU attribute information analysis library to be tested and a partner node attribute information analysis library.
4. The AUTOSAR-based network management automation test system of claim 1, characterized in that: the equipment program control driving instruction library is a dll file which is compiled by editing each equipment program control driving instruction through a C # environment according to a syntax format supported by a CAPL programming environment and comprises a program control power supply driving instruction library, an oscilloscope driving instruction library and a relay board card driving instruction library.
5. An AUTO-TEST METHOD BASED ON AUTOSAR NETWORK MANAGEMENT is characterized in that: an automotive-based network management automation test system applied to any one of claims 1-4, the method comprises the following steps:
s1: software deployment, namely completing AUTOSAR test report template entry, test sequence engineering path entry and host factory information entry through the login of a super administrator authority;
s2: the user logs in, inputs the user name and the password, the software background user library checks the information, if the input is correct, the step S3 is executed, and if the input is incorrect, the step S2 is returned to;
s3: selecting an interface, selecting user management to enter step S4, selecting to create a test task to enter step S5, and executing a test sequence to enter step S6;
s4: the user management is the management of the operation and use permission of the software, and comprises adding users, deleting users and modifying information, wherein the modifying information comprises editing user information and modifying passwords, and the step S3 is returned after the completion;
s5: creating a test task comprising software and hardware version number information, a test time and place and ECU attribute information of the tested ECU, and returning to the step S3 after the test task is completed;
s6: executing the test, including selecting a test task and selecting a test case;
s7: starting the test, calling up the test sequence engineering file, executing the self-test of the test state, displaying the reason of failing to pass if the self-test fails, and re-entering the step S7; if the self-check is passed, go to step S8;
s8: executing the test case, displaying the test progress and the test result, and generating a test report after the test is finished;
s9: if the user needs to test again, the user performs step S6 again, and if the user does not need to test again, the user exits the system;
in step S8, the test method for executing the test case includes the following steps: s11: sending a serial port and CAN bus command through a test sequence code, and controlling a program control power supply and a relay board card to complete the test environment construction required by each test case;
s12: after the input attribute information of the tested ECU and the information of the corresponding partner node of the ECU are analyzed and can be called by the test sequence engineering, the bus acquisition simulation tool VN1640A is used for sending related simulation bus data to the ECU according to the analyzed information, wherein the simulation bus data comprises simulation partner node online and offline, replay/Active/Source address state bit abnormity and abnormal simulation contents with overlarge or undersize simulation node sending time intervals;
s13: test data are acquired through a bus acquisition simulation tool VN1640A and are mapped with an evaluation standard;
s14: and analyzing and storing the key data of the bus, and feeding back the result of each test case to an upper software interface in real time, wherein the upper software interface displays the passing condition and the execution progress of the test in real time.
6. The AUTOSAR-based network management automation test method of claim 5, characterized in that: in step S5, the ECU test attribute information includes presence or absence of an ECU terminal resistance, a communication voltage value, and CAN communication protocol selection, including 11898, J1939, CANFD, a communication database path, a network management message base address, a participant test partner node selection, and a partner node network management message ID selection.
7. The AUTOSAR-based network management automation test method of claim 5, characterized in that: the step of obtaining the test data and mapping the test data with the evaluation standard comprises the following steps:
s21: judging whether the Repeat/Active/Source Address status bits sent by the ECU are consistent with the status definitions defined in the test specification or not in the conventional state switching and fault states, if not, judging the fail result, and meanwhile, outputting the timestamp of the judgment message and the actual measurement value of the monitored status bits to a test report;
s22: judging the time interval between the network management message sent by the ECU and the simulation partner node message, the time interval between the network management message sent by the ECU and the self application message sent by the ECU under the conventional state switching and fault states, if the time interval is inconsistent with the definition of the test specification, the test result is fail, and meanwhile, outputting the timestamp of the judgment message and the actual measured value of the monitored state bit into a test report;
s23: and judging whether the CAN bus level state of the ECU is measured by an oscilloscope in two states of dormancy and awakening, wherein the bus level is in a 0V state in the dormancy state, the bus recessive level is in a 2.5V state in the awakening state, and if the bus recessive level is not consistent, the test result is fail.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811602879.1A CN109840207B (en) | 2018-12-26 | 2018-12-26 | AutoSAR-based network management automation test system and test method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811602879.1A CN109840207B (en) | 2018-12-26 | 2018-12-26 | AutoSAR-based network management automation test system and test method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109840207A CN109840207A (en) | 2019-06-04 |
CN109840207B true CN109840207B (en) | 2022-03-25 |
Family
ID=66883405
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811602879.1A Active CN109840207B (en) | 2018-12-26 | 2018-12-26 | AutoSAR-based network management automation test system and test method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109840207B (en) |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112306032A (en) * | 2019-07-26 | 2021-02-02 | 浙江吉利汽车研究院有限公司 | Consistency testing method, device and system for automobile open system |
CN110912764A (en) * | 2019-08-01 | 2020-03-24 | 中国第一汽车股份有限公司 | Test method, system, equipment and storage medium |
CN113495819B (en) * | 2020-03-20 | 2024-10-25 | 北京新能源汽车股份有限公司 | Whole vehicle test report processing method and device and electric vehicle |
CN113517992B (en) * | 2020-04-10 | 2024-04-09 | 北京新能源汽车股份有限公司 | Detection method and device for controller local area network configuration and electric automobile |
CN111740874B (en) * | 2020-05-21 | 2021-12-07 | 中国汽车技术研究中心有限公司 | Function safety monitoring device and method for intelligent driving automobile software architecture communication chain |
CN112230561A (en) * | 2020-08-19 | 2021-01-15 | 东风康明斯发动机有限公司 | Simulation test method and system for CAN bus controller software |
CN112765721B (en) * | 2020-11-25 | 2022-07-12 | 上汽通用五菱汽车股份有限公司 | Model control-based entertainment information interaction test method |
CN113589171B (en) * | 2021-06-30 | 2023-12-01 | 中汽研汽车检验中心(天津)有限公司 | Hard wire fault injection test method for battery management system |
CN113671932A (en) * | 2021-08-10 | 2021-11-19 | 上海工程技术大学 | ECU offline testing device and method |
CN113688397A (en) * | 2021-08-20 | 2021-11-23 | 泰安北航科技园信息科技有限公司 | System for automatically detecting bus defect loophole |
CN115883430A (en) * | 2021-09-28 | 2023-03-31 | 北汽福田汽车股份有限公司 | Network management test system and method |
CN114460861B (en) * | 2021-12-31 | 2024-06-14 | 中车永济电机有限公司 | Semi-physical simulation platform of train electric transmission system |
CN114531367B (en) * | 2022-02-18 | 2024-06-04 | 奇瑞汽车股份有限公司 | Automatic test system and method for automobile CAN network |
CN117461024A (en) * | 2022-05-23 | 2024-01-26 | 华为技术有限公司 | Construction method and device for automobile open system architecture model |
CN115576302B (en) * | 2022-09-30 | 2024-09-24 | 重庆长安汽车股份有限公司 | Test method and system for safety communication of vehicle-mounted network, electronic equipment and storage medium |
CN115755844A (en) * | 2022-11-15 | 2023-03-07 | 北斗星通智联科技有限责任公司 | ECU (electronic control Unit) automatic test method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104298224A (en) * | 2014-09-12 | 2015-01-21 | 中国第一汽车股份有限公司 | Automatic vehicle-mounted electronic control unit CAN bus communication testing device and system |
CN106444712A (en) * | 2016-10-19 | 2017-02-22 | 中国第汽车股份有限公司 | CAN/LIN network interference automation test system |
CN107807631A (en) * | 2017-12-04 | 2018-03-16 | 惠州市德赛西威汽车电子股份有限公司 | A kind of Auto-Test System based on AUTOSAR network management mechanisms |
CN107819643A (en) * | 2017-09-30 | 2018-03-20 | 吉利汽车研究院(宁波)有限公司 | A kind of automatic test device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014164893A2 (en) * | 2013-03-13 | 2014-10-09 | Arynga Inc. | Remote transfer of electronic images to a vehicle |
CN108664013B (en) * | 2018-06-27 | 2022-01-04 | 中汽研(天津)汽车工程研究院有限公司 | Vehicle lane keeping strategy verification platform and method |
CN108900377A (en) * | 2018-07-03 | 2018-11-27 | 南京越博动力系统股份有限公司 | A kind of CAN network test macro and test method |
-
2018
- 2018-12-26 CN CN201811602879.1A patent/CN109840207B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104298224A (en) * | 2014-09-12 | 2015-01-21 | 中国第一汽车股份有限公司 | Automatic vehicle-mounted electronic control unit CAN bus communication testing device and system |
CN106444712A (en) * | 2016-10-19 | 2017-02-22 | 中国第汽车股份有限公司 | CAN/LIN network interference automation test system |
CN107819643A (en) * | 2017-09-30 | 2018-03-20 | 吉利汽车研究院(宁波)有限公司 | A kind of automatic test device |
CN107807631A (en) * | 2017-12-04 | 2018-03-16 | 惠州市德赛西威汽车电子股份有限公司 | A kind of Auto-Test System based on AUTOSAR network management mechanisms |
Non-Patent Citations (2)
Title |
---|
AUTOSAR-based communication coprocessor for automotive ECUs;A. Hamed 等;《2016 Design, Automation & Test in Europe Conference & Exhibition (DATE)》;20160428;1026-1027 * |
基于AUTOSAR规范的汽车ECU软件开发方法;刘玺斌 等;《电子设计工程》;20130712;第21卷(第11期);151-154,157 * |
Also Published As
Publication number | Publication date |
---|---|
CN109840207A (en) | 2019-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109840207B (en) | AutoSAR-based network management automation test system and test method | |
CN109039824B (en) | Automatic test system and method for wireless remote communication protocol of vehicle-mounted terminal | |
CN112817872B (en) | Development test system and method | |
CN106330618A (en) | Gateway routing automatic test system and test method based on CAN/LIN/MOST hybrid buses | |
CN106133537A (en) | A kind of FPGA function module emulation verification method and system thereof | |
US20040230327A1 (en) | Field maintenance tool with enhanced scripts | |
WO2017000424A1 (en) | Protocol detection method and apparatus | |
CN102495802B (en) | Method and device for testing software system, and computer system | |
CN104407971A (en) | Method for automatically testing embedded software | |
CN104298224A (en) | Automatic vehicle-mounted electronic control unit CAN bus communication testing device and system | |
CN107943008B (en) | Automated diagnosis test method based on VT system | |
CN103077114B (en) | Based on the automated testing method of temperature measuring equipment communication protocol | |
CN111176984A (en) | Signal-oriented automatic test implementation method | |
CN109298317A (en) | A kind of Intelligent test device and its test method of middle low-frequency channel | |
CN110688313B (en) | Fault injection method for software testing under VxWorks operating system | |
CN110704314B (en) | Fault injection method for embedded software test | |
CN106291329A (en) | A kind of have the automatic test system detecting and joining the distant function of a terminal three | |
CN109117371A (en) | A kind of fault filling method improving period BIT verifying ability | |
CN114138670B (en) | Method based on integration of interface automation test and function, performance and safety test | |
CN114281624A (en) | Method, system, device and equipment for testing I2C signal integrity | |
CN114019357A (en) | Management method of test pin of logic processing module and related assembly | |
CN103165405A (en) | Mutli-dimensional variable code real-time generation method through general purpose interface bus (GPIB) interface | |
Xu et al. | Design of vehicle gateway automatic test system based on CANoe | |
CN112181726B (en) | Redundant backup measurement and control and four-unified measurement and control consistency verification test system and method | |
TWI266070B (en) | Chip-level design under test verification environment and method thereof |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
EE01 | Entry into force of recordation of patent licensing contract | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20190604 Assignee: China Automotive Research Center (Changzhou) Co.,Ltd. Assignor: CATARC (TIANJIN) AUTOMOTIVE ENGINEERING RESEARCH INSTITUTE Co.,Ltd. Contract record no.: X2023990000765 Denomination of invention: A Network Management Automation Testing System and Testing Method Based on AUTOSAR Granted publication date: 20220325 License type: Common License Record date: 20230822 |