CN109840207A - One kind being based on AUTOSAR network management automatization test system and test method - Google Patents

One kind being based on AUTOSAR network management automatization test system and test method Download PDF

Info

Publication number
CN109840207A
CN109840207A CN201811602879.1A CN201811602879A CN109840207A CN 109840207 A CN109840207 A CN 109840207A CN 201811602879 A CN201811602879 A CN 201811602879A CN 109840207 A CN109840207 A CN 109840207A
Authority
CN
China
Prior art keywords
test
ecu
network management
bus
software
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.)
Granted
Application number
CN201811602879.1A
Other languages
Chinese (zh)
Other versions
CN109840207B (en
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.)
China Automotive Technology and Research Center Co Ltd
CATARC Tianjin Automotive Engineering Research Institute Co Ltd
Original Assignee
China Automotive Technology and Research Center Co Ltd
CATARC Tianjin Automotive Engineering Research Institute Co Ltd
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 China Automotive Technology and Research Center Co Ltd, CATARC Tianjin Automotive Engineering Research Institute Co Ltd filed Critical China Automotive Technology and Research Center Co Ltd
Priority to CN201811602879.1A priority Critical patent/CN109840207B/en
Publication of CN109840207A publication Critical patent/CN109840207A/en
Application granted granted Critical
Publication of CN109840207B publication Critical patent/CN109840207B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The present invention provides one kind to be based on AUTOSAR network management automatization test system and test method, including PC host, oscillograph, program-controlled regulated power supply, Bus simulator sampling instrument VN1640A, relay board, regulated power supply;KL31, KL30, KL15 of tested ECU is separately connected relay board, and CANH, CANL of tested ECU is separately connected the DB9 of oscillograph and the channel CAN all the way of Bus simulator sampling instrument VN1640A;The DB9 cut-in relay board in the channel another way CAN of Bus simulator sampling instrument VN1640A;The positive and negative anodes harness of program-controlled regulated power supply accesses the relay board;The positive and negative anodes harness cut-in relay board of regulated power supply;Bus gathering simulation tool VN1640A, program-controlled regulated power supply and oscillograph are respectively connected to PC machine;Operation has upper software and the next software in PC machine, and the upper software is automatic test operating system, for managing test process;It include cycle tests engineering and equipment program control driving instruction database in the next software.The efficient test of high real-time, quick execution can be achieved in the present invention.

Description

One kind being based on AUTOSAR network management automatization test system and test method
Technical field
The invention belongs to vehicle bus testing fields, are surveyed more particularly, to one kind based on AUTOSAR network management automation Test system and test method.
Background technique
Currently, an urgent demand of development and vehicle energy-saving and emission-reduction with automobile electrically-controlled module (ECU), in finished vehicle electronic During electric appliance framework is designed and developed, the dormancy awakening strategy of vehicle-mounted ECU, i.e. network management strategy, directly affect quiescent dissipation size, ECU each partner node work on power the time it is unknown under how assurance function such as normally executes at a series of problem.It is each to guarantee ECU can correctly execute dormancy awakening strategy in time and send correlated condition message and signal, be needed before volume production to participation net The ECU of network management completes test verifying.And the network management logical type of current main-stream is AUTOSAR, this patent is directed to How AUTOSAR network management logic strategy carries out automated testing method definition is stated with automatization test system.When Before, AUTOSAR network management test is primarily present following problems.
AUTOSAR network management test verifying it is main still in a manner of manual testing based on.Manually according to each ECU and other The remaining Bus simulator model of other partner nodes is write in the interaction bus information of partner node, exploitation, and by manually controlling The low and high level state of KL31/KL30/KL15 rigid line completes the foundation of tested ECU test environment, due to each ECU it is received its His partner node information is inconsistent, and the corresponding time parameter of logic strategy is inconsistent, leads to test job time length, behaviour Make that cumbersome, execution efficiency is low.
Existing Bus simulator monitoring testing tool is mainly the CANoe software of Vector tools chain.For AUTOSAR net Network management test can only realize the general networks pipe of each emulation partner node using the automatic simulation model Core Generator of the software Manage logic to execute, cannot achieve any modification of each failure/abnormality test bus environment changing and time parameter, and can not with it is hard Line traffic control realizes the synchronization of timestamp, and existing testing tool chain versatility, scalability solve indifferent with specificity.
In test process, it is also necessary to complete the following work, one, each test item needs be required to analysis magnanimity number of buses According to the interior of analysis has the contents such as bus behavior interval time, message ID, signal condition byte, and artificial analysis time is test Execute 1-2 times of time;Two, various valid data are recorded, and keep records of data according to naming rule;Three, test execution knot Shu Hou needs to arrange and writes test report, mainly by test result analysis description, test result judge, test result statistics etc.. The disadvantages of that there are test intensities is big for the prior art, and artifact is more, the degree of consistency is small.
Summary of the invention
The purpose of the present invention is to provide one kind to be based on AUTOSAR network management automatization test system and test method, Remaining Bus simulator test logical model is realized to automatically generate, also achieve remaining Bus simulator model and hard signal when Between stab synchronize.It is developed simultaneously by upper software and the cooperation based on CANoe software, realizes test data and automatically analyze, survey The execution efficiency for the high-efficient automatic that test result calculates automatically, test report automatically generates.
In order to achieve the above objectives, the technical scheme of the present invention is realized as follows:
One kind be based on AUTOSAR network management automatization test system, including PC host, oscillograph, program-controlled regulated power supply, Bus simulator sampling instrument VN1640A, relay board, regulated power supply;
Tri- harness of KL31, KL30, KL15 of tested ECU are separately connected respective terminal of the relay board, CANH, CANL both threads beam of tested ECU is separately connected the one of the oscillograph and the Bus simulator sampling instrument VN1640A The DB9 in the road channel CAN;
The DB9 in the channel another way CAN of the Bus simulator sampling instrument VN1640A accesses the relay board;
The positive and negative anodes harness of the program-controlled regulated power supply accesses the relay board, passes through the relay board card control The access and disconnection of KL31, KL30, KL15 of the positive and negative anodes harness and tested ECU of the program-controlled regulated power supply;
The positive and negative anodes harness of the regulated power supply accesses the relay board, powers for the relay board;
The program-controlled line of USB of the bus gathering simulation tool VN1640A, the program-controlled regulated power supply and the oscillograph point It does not access on the USB interface of the PC machine;
Operation has upper software and the next software in the PC machine, and the upper software is automatic test operating system, For managing test process;It include cycle tests engineering and equipment program control driving instruction database, the survey in the bottom software Examination sequence engineering include based on the AUTOSAR network management test execution script developed under CANoe software CAPL programmed environment, Load operating, achievable BusSleep/Repeat/Normal/ReadySleep/ are added under CANoe software PrepareBusSleep state switch test, the test of emulation partner node direct fault location, NMPDU are received under test, diagnostic state The test of net dormancy wake-up states.
Further, the upper software includes cycle tests engineering interactive module, test software deployment module, Yong Huxin Cease management module, task creation module, test execution monitoring module and test report generation module.
Further, the cycle tests engineering interactive module includes CAN bus data file parsing library, ECU to be measured category Property information parsing library and partner node attribute information parse library.
Further, the cycle tests engineering includes:
Cycle tests editor module, for cycle tests sequence change editor;
Partner node behavior simulation module, the partner node simulation model for participating in test automatically generates, and can be tested Case script on probation calls;
Direct fault location module, including diagnosis message interference injection, the injection of partner node abnormal behaviour;
Evaluation module, for according to test evaluation standard, the critical data obtained in all kinds of failure process to be analyzed, And comparison is associated with testing standard;
It reporting describing module, for filling in process necessary in test process and result into report, being presented to tester Member, which reads, to be used.
Further, the equipment program control driving instruction database be by C# environment editor each equipment program control driving instruction, and According to the syntax format that CAPL programmed environment is supported, the dll file write, including programmable power supply driving instruction library, oscillograph Driving instruction library and relay board driving instruction library.
One kind being based on AUTOSAR network management automated testing method, is applied to of any of claims 1-4 One kind being based on AUTOSAR network management automatization test system, and described method includes following steps:
S1: software deployment is logined by super keepe permission, completes the typing of AUTOSAR test report template, test sequence The typing of column engineered paths, main engine plants' data input;
S2: user logins, and inputs user name and password, and software background user library carries out information verification, and input is correct, then holds Row step S3, input is incorrect, then returns to step S2;
S3: selection interface selects user management then to enter step S4, and selection creation test assignment then enters step S5, holds Row cycle tests then enters step S6;
S4: user management is the management of permission to be operated with to the software, including add user, delete user, modification letter Breath, wherein modification information includes Edit Profile, Modify password, then retracts step S3 after the completion;
S5: creation test assignment, software and hardware version number information, testing time place, ECU attribute letter including being tested ECU Breath, then retracts step S3 after the completion;
S6: test, including selection test assignment, selection test case are executed;
S7: starting to test, and has adjusted cycle tests project file, executes test mode self-test, shows if self-test does not pass through Not by reason, step S7 is reentered;If self-test passes through, S8 is entered step;
S8: implementation of test cases, and show testing progress and test result, test report is generated after the completion of test;
S9: user re-execute the steps S6 if you need to test again, if without logging off if testing again.
Further, in the step S5, ECU testing attribute information includes ECU terminal resistance whether there is or not, communication voltage numbers Value, CAN communication agreement selection (including 11898, J1939, CANFD), communications database path, network management message base address, Participate in the selection of test partner node, partner node network management message ID selection.
Further, in the step S8, the test method for executing the test case includes the following steps:
S11: sending serial ports and CAN bus order by cycle tests code, controls programmable power supply and relay board is complete Environmental structure is tested at needed for every test case;
S12: the tested ECU of typing attribute information and the information of the corresponding partner node of ECU are resolved and can be described After cycle tests engineering is called, the information according to parsing is total using the relevant emulation of bus gathering simulation tool VN1640A transmission For line number according to ECU, the emulation bus data include that emulation partner node is online, offline, Repeat/Active/ The abnormal emulation content that SourceAddress mode bit is abnormal, simulation node transmission time interval is excessive or too small;
S13: test data is obtained by bus gathering simulation tool VN1640A and is mapped with evaluation criterion;
S14: analyzing and saves bus critical data, feeds back to upper software interface when by every test case fructufy, The upper software interface real-time display test passes through situation and implementation progress.
Further, in the step S13, the test data and the rating scale comparison method include following step It is rapid:
S21: the conventional each state switching of judgement and the Repeat/Active/ that under each malfunction, ECU is sent Each state defined in SourceAddress mode bit and test specification defines whether unanimously, the result judgement if inconsistent Fail, meanwhile, the mode bit measured value of the timestamp for judging message, monitoring is exported into test report;
S22: for the conventional each state switching of judgement under each malfunction, ECU sends network management message and emulation partner's section Point message between, ECU send network management message and own net management message between, ECU send network management message with from Time interval between body application message.If inconsistent, test result fail is defined with test specification, meanwhile, it will comment The mode bit measured value of the timestamp, monitoring of sentencing message is exported into test report;
S23: judging in the case where being related to dormancy awakening two states, by the CAN bus level state of oscilloscope measurement ECU, Bus level should be 0V state in the dormant state, and in the awake state, bus recessiveness level should be 2.5V state, if inconsistent Then test result is fail.
Compared with the existing technology, of the present invention a kind of based on AUTOSAR network management automatization test system and survey Method for testing has the advantage that
1, it provides General design, support the conventional test with the comprehensive Test coverage degree of failure of AUTOSAR network management Method;
2, the AUTOSAR network management automatization test system based on mould group is provided.With easy to operate, extension Property strong, easy to maintain the features such as, and meet the automatic test usage scenario of other vehicle-mounted CAN bus network management strategies;
3, test report automatically generates, and the information such as critical data are presented in report, greatly improves test and holds Line efficiency.
Detailed description of the invention
The attached drawing for constituting a part of the invention is used to provide further understanding of the present invention, schematic reality of the invention It applies example and its explanation is used to explain the present invention, do not constitute improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is that one kind described in the embodiment of the present invention is illustrated based on AUTOSAR network management automatization test system framework Figure;
Fig. 2 is a kind of hardware company based on AUTOSAR network management automatization test system described in the embodiment of the present invention Map interlinking;
Fig. 3 is that a kind of bottom based on AUTOSAR network management automatization test system described in the embodiment of the present invention is soft Part system block diagram;
Fig. 4 is a kind of flow chart based on AUTOSAR network management automated testing method described in the embodiment of the present invention.
Specific embodiment
The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
As shown in Figs 1-4, a kind of to be based on AUTOSAR network management automatization test system, including PC host, oscillograph, Program-controlled regulated power supply, Bus simulator sampling instrument VN1640A, relay board, regulated power supply;
Tri- harness of KL31, KL30, KL15 of tested ECU are separately connected respective terminal of the relay board, CANH, CANL both threads beam of tested ECU is separately connected the one of the oscillograph and the Bus simulator sampling instrument VN1640A The DB9 in the road channel CAN;
The DB9 in the channel another way CAN of the Bus simulator sampling instrument VN1640A accesses the relay board;
The positive and negative anodes harness of the program-controlled regulated power supply accesses the relay board, passes through the relay board card control The access and disconnection of KL31, KL30, KL15 of the positive and negative anodes harness and tested ECU of the program-controlled regulated power supply;
The positive and negative anodes harness of the regulated power supply accesses the relay board, powers for the relay board;
The program-controlled line of USB of the bus gathering simulation tool VN1640A, the program-controlled regulated power supply and the oscillograph point It does not access on the USB interface of the PC machine;
Operation has upper software and the next software in the PC machine, and the upper software is automatic test operating system, For managing test process;It include cycle tests engineering and equipment program control driving instruction database, the survey in the bottom software Examination sequence engineering include based on the AUTOSAR network management test execution script developed under CANoe software CAPL programmed environment, Load operating, achievable BusSleep/Repeat/Normal/ReadySleep/ are added under CANoe software PrepareBusSleep state switch test, the test of emulation partner node direct fault location, NMPDU are received under test, diagnostic state The test of net dormancy wake-up states.
The upper software includes cycle tests engineering interactive module, test software deployment module, subscriber information management mould Block, task creation module, test execution monitoring module and test report generation module, in which:
A) it test software deployment module: when software is disposed for the first time, is logined by super keepe permission, is completed in software The typing of AUTOSAR test report template, the typing of cycle tests engineered paths, main engine plants' data input, later will be with above- mentioned information On the basis of execute the software;
B) subscriber information management module: MySQL database is called by insertion, all user informations and authority information are recorded Enter into User Information Database, the front and back of each software, the information in the information and date library of user's input is matched;
C) task creation module: for creating test assignment, software and hardware version number information, test ground including being tested ECU Point, the path CAN bus database (DBC), ECU testing attribute information.Information above after typing, that is, is appointed in upper interface Business creation finishes, implementable test execution;
D) test execution monitoring module: for call cycle tests engineering and monitoring test execution state, including Test case is chosen, testing progress item is shown, each testing case result real-time display, starts test, terminates test;
E) test report generation module: button is checked including test report, the test report of certain test assignment is called after click It accuses and opens.
The cycle tests engineering interactive module includes CAN bus data file parsing library, ECU attribute information to be measured parsing Library and partner node attribute information parse library, in which:
F) CAN bus data file parses library: by the CAN bus communication data file .dbc text of general format in industry Part is parsed, and parsing content includes at least each ECU title, message ID, message Cycle, message DLC, and the content of parsing is write Enter into ini file, reads and use for the next software test sequence engineering;
G) ECU attribute information to be measured parses library: passing through the parsing to the attribute information of ECU in upper software interface, parsing Content includes at least communication protocol selection, network management message base address, CAN bus traffic rate, terminal resistance, normal work The content of parsing is written into ini file voltage value, reads for the next software test sequence engineering;
H) partner node attribute information parses library, by the partner node attribute information of ECU in upper software interface Parsing, parsing content include at least partner node ID, non-buddy interfering nodes ID, the content of parsing are written into ini file, It is read for the next software test sequence engineering.
The cycle tests engineering includes:
Sequence.Module, i.e. cycle tests editor module, for cycle tests sequence change editor;
SimECU.Module, i.e. partner node behavior simulation module, for participating in the partner node simulation model of test certainly It is dynamic to generate, and can be tested and be called with case script;
FaultInject.Module, i.e. direct fault location module, including diagnosis message interference injection, partner node exception row For injection;
Evaluate.Module, i.e. evaluation module, for will be obtained in all kinds of failure process according to test evaluation standard Critical data analyzed, and be associated comparison with testing standard;
Report.Module, i.e. report describing module, for filling in process necessary in test process and result to report In, it is presented to tester and reads use.
The equipment program control driving instruction database is to be instructed by each equipment program control driving of C# environment editor, and compile according to CAPL The syntax format that journey environment is supported, the dll file write, including programmable power supply driving instruction library, oscillograph driving instruction library And relay board driving instruction library, in which:
I) (the programmable power supply driving instruction library) Delta.dll: support program controls output order, realizes that voltage at least meets The adjustment of ± 0.1V precision;
II) (the oscillograph driving instruction library) OSC.dll: program-controlled CAN bus parsing setting, oscillograph triggering is supported to be arranged, The setting of base amplitude, acquisition measure the oscillographs control instructions such as the physics waveform form numerical value of any time period when oscillograph;
III it) (the relay board driving instruction library) Relay.dll: supports to control by CAN bus, realizes KL30/ The precision controlling of ± the 5ms of tri- IO of KL31/KL15.
It is based on AUTOSAR network management automatization test system applied to above-mentioned one kind, one kind being based on AUTOSAR network pipe Reason automated testing method includes the following steps:
S1: software deployment is logined by super keepe permission, completes the typing of AUTOSAR test report template, test sequence The typing of column engineered paths, main engine plants' data input;
S2: user logins, and inputs user name and password, and software background user library carries out information verification, and input is correct, then holds Row step S3, input is incorrect, then returns to step S2;
S3: selection interface selects user management then to enter step S4, and selection creation test assignment then enters step S5, holds Row cycle tests then enters step S6;
S4: user management is the management of permission to be operated with to the software, including add user, delete user, modification letter Breath, wherein modification information includes Edit Profile, Modify password, then retracts step S3 after the completion;
S5: creation test assignment, software and hardware version number information, testing time place, ECU attribute letter including being tested ECU Breath, then retracts step S3 after the completion;
S6: test, including selection test assignment, selection test case are executed;
S7: starting to test, and has adjusted cycle tests project file, executes test mode self-test, shows if self-test does not pass through Not by reason, step S7 is reentered;If self-test passes through, S8 is entered step;
S8: implementation of test cases, and show testing progress and test result, test report is generated after the completion of test;
S9: user re-execute the steps S6 if you need to test again, if without logging off if testing again.
In step S5, the ECU testing attribute information include ECU terminal resistance whether there is or not, communication voltage numerical value, CAN communication Agreement selects (including 11898, J1939, CANFD), communications database path, network management message base address, participates in test partner With node selection, partner node network management message ID selection.
In the step S8, the test method for executing the test case includes the following steps:
S11: sending serial ports and CAN bus order by cycle tests code, controls programmable power supply and relay board is complete Environmental structure is tested at needed for every test case;
S12: the tested ECU of typing attribute information and the information of the corresponding partner node of ECU are resolved and can be described After cycle tests engineering is called, the information according to parsing is total using the relevant emulation of bus gathering simulation tool VN1640A transmission For line number according to ECU, the emulation bus data include that emulation partner node is online, offline, Repeat/Active/ The abnormal emulation content that SourceAddress mode bit is abnormal, simulation node transmission time interval is excessive or too small;
S13: test data is obtained by bus gathering simulation tool VN1640A and is mapped with evaluation criterion;
S14: analyzing and saves bus critical data, feeds back to upper software interface when by every test case fructufy, The upper software interface real-time display test passes through situation and implementation progress.
In the step S13, the test data includes the following steps: with the rating scale comparison method
S21: the conventional each state switching of judgement and the Repeat/Active/ that under each malfunction, ECU is sent Each state defined in SourceAddress mode bit and test specification defines whether unanimously, the result judgement if inconsistent Fail, meanwhile, the mode bit measured value of the timestamp for judging message, monitoring is exported into test report;
S22: for the conventional each state switching of judgement under each malfunction, ECU sends network management message and emulation partner's section Point message between, ECU send network management message and own net management message between, ECU send network management message with from Time interval between body application message.If inconsistent, test result fail is defined with test specification, meanwhile, it will comment The mode bit measured value of the timestamp, monitoring of sentencing message is exported into test report;
S23: judging in the case where being related to dormancy awakening two states, by the CAN bus level state of oscilloscope measurement ECU, Bus level should be 0V state in the dormant state, and in the awake state, bus recessiveness level should be 2.5V state, if inconsistent Then test result is fail.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (9)

1. one kind is based on AUTOSAR network management automatization test system, it is characterised in that: including PC host, oscillograph, program-controlled Regulated power supply, Bus simulator sampling instrument VN1640A, relay board, regulated power supply;
Tri- harness of KL31, KL30, KL15 of tested ECU are separately connected respective terminal of the relay board, are tested CANH, CANL both threads beam of ECU is separately connected the oscillograph and the Bus simulator sampling instrument VN1640A all the way The DB9 in the channel CAN;
The DB9 in the channel another way CAN of the Bus simulator sampling instrument VN1640A accesses the relay board;
The positive and negative anodes harness of the program-controlled regulated power supply accesses the relay board, by described in the relay board card control The access and disconnection of KL31, KL30, KL15 of the positive and negative anodes harness and tested ECU of program-controlled regulated power supply;
The positive and negative anodes harness of the regulated power supply accesses the relay board, powers for the relay board;
The program-controlled line of USB of the bus gathering simulation tool VN1640A, the program-controlled regulated power supply and the oscillograph connect respectively On the USB interface for entering the PC machine;
Operation has upper software and the next software in the PC machine, and the upper software is automatic test operating system, is used for Manage test process;It include cycle tests engineering and equipment program control driving instruction database, the test sequence in the bottom software Column engineering include based on the AUTOSAR network management test execution script developed under CANoe software CAPL programmed environment, Load operating, achievable BusSleep/Repeat/Normal/ReadySleep/ are added under CANoe software PrepareBusSleep state switch test, the test of emulation partner node direct fault location, NMPDU are received under test, diagnostic state The test of net dormancy wake-up states.
2. according to claim 1 a kind of based on AUTOSAR network management automatization test system, it is characterised in that: institute Stating upper software includes cycle tests engineering interactive module, test software deployment module, subscriber information management module, task creation Module, test execution monitoring module and test report generation module.
3. according to claim 2 a kind of based on AUTOSAR network management automatization test system, it is characterised in that: institute Stating cycle tests engineering interactive module includes CAN bus data file parsing library, ECU attribute information to be measured parsing library and partner Node attribute information parses library.
4. according to claim 1 a kind of based on AUTOSAR network management automatization test system, it is characterised in that: institute Stating cycle tests engineering includes:
Cycle tests editor module, for cycle tests sequence change editor;
Partner node behavior simulation module, the partner node simulation model for participating in test automatically generates, and can be tested on probation Case script calls;
Direct fault location module, including diagnosis message interference injection, the injection of partner node abnormal behaviour;
Evaluation module, for according to test evaluation standard, the critical data obtained in all kinds of failure process to be analyzed, and with Testing standard is associated comparison;
It reporting describing module, for filling in process necessary in test process and result into report, being presented to tester's reading Take use.
5. according to claim 1 a kind of based on AUTOSAR network management automatization test system, it is characterised in that: institute Stating equipment program control driving instruction database is to be instructed by each equipment program control driving of C# environment editor, and propped up according to CAPL programmed environment The syntax format held, the dll file write, including programmable power supply driving instruction library, oscillograph driving instruction library and relay Labcard driver instruction database.
6. one kind is based on AUTOSAR network management automated testing method, it is characterised in that: be applied to appoint in claim 1-4 One kind described in one is based on AUTOSAR network management automatization test system, and described method includes following steps:
S1: software deployment is logined by super keepe permission, completes the typing of AUTOSAR test report template, cycle tests work The typing of journey path, main engine plants' data input;
S2: user logins, and inputs user name and password, and software background user library carries out information verification, and input is correct, then executes step Rapid S3, input is incorrect, then returns to step S2;
S3: selection interface selects user management then to enter step S4, and selection creation test assignment then enters step S5, executes survey Examination sequence then enters step S6;
S4: user management is the management of permission to be operated with to the software, including add user, delete user, modification information, Middle modification information includes Edit Profile, Modify password, then retracts step S3 after the completion;
S5: creation test assignment, software and hardware version number information, testing time place, ECU attribute information including being tested ECU are complete At rear, step S3 is retracted;
S6: test, including selection test assignment, selection test case are executed;
S7: starting to test, and has adjusted cycle tests project file, executes test mode self-test, shows if self-test does not pass through obstructed Reason is crossed, step S7 is reentered;If self-test passes through, S8 is entered step;
S8: implementation of test cases, and show testing progress and test result, test report is generated after the completion of test;
S9: user re-execute the steps S6 if you need to test again, if without logging off if testing again.
7. according to claim 6 a kind of based on AUTOSAR network management automated testing method, it is characterised in that: In the step S5, ECU testing attribute information includes ECU terminal resistance whether there is or not, communication voltage numerical value, CAN communication agreement selections (including 11898, J1939, CANFD), communications database path, network management message base address participate in test partner node choosing It selects, partner node network management message ID selection.
8. according to claim 6 a kind of based on AUTOSAR network management automated testing method, it is characterised in that: In the step S8, the test method for executing the test case includes the following steps:
S11: serial ports and CAN bus order are sent by cycle tests code, control programmable power supply and relay board are completed every Environmental structure is tested needed for test case;
S12: the tested ECU of typing attribute information and the information of the corresponding partner node of ECU are resolved and can be by the tests After sequence engineering is called, the information according to parsing sends relevant emulation bus number using bus gathering simulation tool VN1640A According to ECU, the emulation bus data include that emulation partner node is online, offline, Repeat/Active/SourceAddress The abnormal emulation content that mode bit is abnormal, simulation node transmission time interval is excessive or too small;
S13: test data is obtained by bus gathering simulation tool VN1640A and is mapped with evaluation criterion;
S14: analyzing and saves bus critical data, and upper software interface is fed back to when by every test case fructufy, described Upper software interface real-time display test passes through situation and implementation progress.
9. according to claim 8 a kind of based on AUTOSAR network management automated testing method, it is characterised in that: In the step S13, the test data includes the following steps: with the rating scale comparison method
S21: the conventional each state switching of judgement and the Repeat/Active/SourceAddress that under each malfunction, ECU is sent Each state defined in mode bit and test specification defines whether unanimously, the result judgement fail if inconsistent, meanwhile, it will judge The timestamp of message, the mode bit measured value of monitoring are exported into test report;
S22: for the conventional each state switching of judgement under each malfunction, ECU sends network management message and emulation partner node report Between text, ECU is sent between network management message and own net management message, and ECU sends network management message and answers with itself With the time interval between message.If inconsistent, test result fail is defined with test specification, meanwhile, it is reported judging The timestamp of text, the mode bit measured value of monitoring are exported into test report;
S23: judging in the case where being related to dormancy awakening two states, by the CAN bus level state of oscilloscope measurement ECU, stops Bus level should be 0V state under dormancy state, and in the awake state, bus recessiveness level should be 2.5V state, survey if inconsistent Test result is fail.
CN201811602879.1A 2018-12-26 2018-12-26 AutoSAR-based network management automation test system and test method Active CN109840207B (en)

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 true CN109840207A (en) 2019-06-04
CN109840207B 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)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110912764A (en) * 2019-08-01 2020-03-24 中国第一汽车股份有限公司 Test method, system, equipment and storage medium
CN111740874A (en) * 2020-05-21 2020-10-02 中国汽车技术研究中心有限公司 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
CN112306032A (en) * 2019-07-26 2021-02-02 浙江吉利汽车研究院有限公司 Consistency testing method, device and system for automobile open system
CN112765721A (en) * 2020-11-25 2021-05-07 上汽通用五菱汽车股份有限公司 Model control-based entertainment information interaction test method
CN113495819A (en) * 2020-03-20 2021-10-12 北京新能源汽车股份有限公司 Method and device for processing finished automobile test report and electric automobile
CN113517992A (en) * 2020-04-10 2021-10-19 北京新能源汽车股份有限公司 Controller local area network configuration detection method and device and electric vehicle
CN113589171A (en) * 2021-06-30 2021-11-02 中汽研汽车检验中心(天津)有限公司 Test method for hard line fault injection of 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
CN114460861A (en) * 2021-12-31 2022-05-10 中车永济电机有限公司 Semi-physical simulation platform of train electric transmission system
CN114531367A (en) * 2022-02-18 2022-05-24 奇瑞商用车(安徽)有限公司 Automatic testing system and method for automobile CAN network
CN115755844A (en) * 2022-11-15 2023-03-07 北斗星通智联科技有限责任公司 ECU (electronic control Unit) automatic test method and device, electronic equipment and storage medium
WO2023225785A1 (en) * 2022-05-23 2023-11-30 华为技术有限公司 Automobile open system architecture model construction method and apparatus

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140282470A1 (en) * 2013-03-13 2014-09-18 Arynga Inc. Remote transfer of electronic images to a vehicle
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
CN108664013A (en) * 2018-06-27 2018-10-16 中汽研(天津)汽车工程研究院有限公司 A kind of automobile track keeps policy validation platform and method
CN108900377A (en) * 2018-07-03 2018-11-27 南京越博动力***股份有限公司 A kind of CAN network test macro and test method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140282470A1 (en) * 2013-03-13 2014-09-18 Arynga Inc. Remote transfer of electronic images to a vehicle
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
CN108664013A (en) * 2018-06-27 2018-10-16 中汽研(天津)汽车工程研究院有限公司 A kind of automobile track keeps policy validation platform and method
CN108900377A (en) * 2018-07-03 2018-11-27 南京越博动力***股份有限公司 A kind of CAN network test macro and test method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A. HAMED 等: "AUTOSAR-based communication coprocessor for automotive ECUs", 《2016 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION (DATE)》 *
刘玺斌 等: "基于AUTOSAR规范的汽车ECU软件开发方法", 《电子设计工程》 *

Cited By (19)

* Cited by examiner, † Cited by third party
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
CN113495819A (en) * 2020-03-20 2021-10-12 北京新能源汽车股份有限公司 Method and device for processing finished automobile test report and electric automobile
CN113517992A (en) * 2020-04-10 2021-10-19 北京新能源汽车股份有限公司 Controller local area network configuration detection 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
CN111740874A (en) * 2020-05-21 2020-10-02 中国汽车技术研究中心有限公司 Function safety monitoring device and method for intelligent driving automobile software architecture communication chain
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
CN112765721A (en) * 2020-11-25 2021-05-07 上汽通用五菱汽车股份有限公司 Model control-based entertainment information interaction test method
CN113589171A (en) * 2021-06-30 2021-11-02 中汽研汽车检验中心(天津)有限公司 Test method for hard line fault injection of battery management system
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
CN114460861A (en) * 2021-12-31 2022-05-10 中车永济电机有限公司 Semi-physical simulation platform of train electric transmission system
CN114531367A (en) * 2022-02-18 2022-05-24 奇瑞商用车(安徽)有限公司 Automatic testing system and method for automobile CAN network
CN114531367B (en) * 2022-02-18 2024-06-04 奇瑞汽车股份有限公司 Automatic test system and method for automobile CAN network
WO2023225785A1 (en) * 2022-05-23 2023-11-30 华为技术有限公司 Automobile open system architecture model construction method and apparatus
CN115755844A (en) * 2022-11-15 2023-03-07 北斗星通智联科技有限责任公司 ECU (electronic control Unit) automatic test method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109840207B (en) 2022-03-25

Similar Documents

Publication Publication Date Title
CN109840207A (en) One kind being based on AUTOSAR network management automatization test system and test method
CN109039824B (en) Automatic test system and method for wireless remote communication protocol of vehicle-mounted terminal
CN108737187B (en) CAN bus fault simulation system and fault simulation method
CN110048910A (en) A kind of vehicle-mounted ethernet gateway test macro and method
CN103529377B (en) The Auto-Test System of intelligent transformer substation digital protection device and method
CN107368408A (en) A kind of software fault towards interface injects automated testing method
CN204116943U (en) Vehicle-mounted electronic control unit CAN communication automation system proving installation
CN104298224A (en) Automatic vehicle-mounted electronic control unit CAN bus communication testing device and system
CN109361569A (en) CAN bus based communication diagnostic trouble code automatization test system and test method
zu Hörste et al. Modelling and simulation of train control systems using Petri nets
CN105824001B (en) Method and system for testing IEC61850 conformance of digital electric energy meter
US20020147561A1 (en) System and method for intelligent wire testing
CN111782539A (en) Test and diagnosis integrated development platform based on domestic operating system
CN111176984A (en) Signal-oriented automatic test implementation method
CN111983990A (en) Automatic testing platform for basic software
CN110209584A (en) A kind of automatic generation of test data and relevant apparatus
CN110244688A (en) Meter bus panel automatic generation method and its system based on LabVIEW
CN106526460B (en) A kind of fault localization method and device
CN116680885A (en) Complex device control software modeling and verification method based on SysML and Tango
US20120259611A1 (en) System and method for generation of cim-based power system circuit models
CN109932588A (en) A kind of Aerial Electronic Equipment validation test engine
CN110989554B (en) Method for establishing hardware-in-loop test case library of new energy vehicle integrated controller
CN116760191A (en) Power load debugging method and device
CN215897748U (en) CAN/LIN bus automatic test system
Magnus et al. Test generation for model based fieldbus profiles

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

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

EE01 Entry into force of recordation of patent licensing contract