CN106330618A - Gateway routing automatic test system and test method based on CAN/LIN/MOST hybrid buses - Google Patents
Gateway routing automatic test system and test method based on CAN/LIN/MOST hybrid buses Download PDFInfo
- Publication number
- CN106330618A CN106330618A CN201610830886.1A CN201610830886A CN106330618A CN 106330618 A CN106330618 A CN 106330618A CN 201610830886 A CN201610830886 A CN 201610830886A CN 106330618 A CN106330618 A CN 106330618A
- Authority
- CN
- China
- Prior art keywords
- test
- route
- message
- gateway
- routing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/12—Network monitoring probes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40234—Local Interconnect Network LIN
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40267—Bus for use in transportation systems
- H04L2012/40273—Bus for use in transportation systems the transportation system being a vehicle
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention relates to a gateway routing automatic test system and a test method based on CAN/LIN/MOST hybrid buses. The system and the method are characterized in that principal computer software loads a user defined gateway routing information table and automatically parses routing information, and a CAN/LIN/MOST bus acquisition tool simulates and acquires message signals of different buses for CAN-CAN, CAN-LIN and MOST-CAN gateway routing automatic test. Both gateway routing test between buses of the same type and gateway routing test between buses of different types are realized. The system and the method are of high versatility and are scalable. Through automatic test by the principal computer software and other software, the shortcomings of manual test are overcome, and the accuracy, reliability and working efficiency of gateway routing test are improved greatly.
Description
Technical field
The present invention relates to one and be routed from dynamicization test system and test based on CAN/LIN/MOST mixed type bus gateway
Method, belongs to Vehicle Controller bus test field.
Background technology
Along with the fast development of Automobile Electronic Industry, vehicle bus network becomes increasingly complex, and often uses mixed type multichannel
Bus network carries out the exploitation of electric framework.Need gateway to carry out message between different segment and signal forwards, Jin Ershi
Information between existing different segment is mutual.For ensureing that gateway can the most correctly forward association message and signal, need before entrucking
Gateway is carried out test checking.
Existing gateway route test is substantially manually have been tested, by by total the Line tool simulation gateway routing table
The message that gateway receives, checks that can gateway the most correctly forward corresponding message and signal, due to gateway in gateway routing table
The message received is hundreds and thousands of, and therefore test job efficiency is low, and test period is long.
Gateway route test can be carried out test by the message signals between total the Line tool monitoring different segment on real vehicle
Card.Mainly checking whether message signals can correctly forward, method of testing is relatively simple, but Test coverage degree is relatively low, it is impossible to enough
Analog message signal intensity, can only realize message signals change by controlling vehicle associative operation, and test scene is restricted.
The route test of existing gateway is merely able to carry out the route test of simple CAN-CAN gateway and CAN-LIN gateway road
By testing, for Novel multimedia bus MOST bus relevant route test experience, existing gateway route test platform without
Method is general, and autgmentability is not strong, and do not has interlinking.
It not that simple superposition is it is achieved that because this invention can be entered when testing MOST-CAN route test simultaneously
The test of row CAN-CAN and CAN-LIN, and realize in same system, data can be observed with same time shaft, so can protect
The synchronicity of card test and real-time, and simple CAN-CAN and CAN-LIN is overlapped mutually and cannot realize above-mentioned functions.
Summary of the invention
In order to overcome above-mentioned the deficiencies in the prior art, object of the present invention is to provide a kind of based on CAN/LIN/MOST
Mixed type bus gateway is routed from dynamicization test system and method for testing, not only achieves the gateway route between same bus type
Test, and realize the gateway route test between different bus type, and achieve multistage route test (MOST-CAN-
LIN), versatility is preferable, and possesses extensibility;Simultaneously by upper computer software and other software automated testing, overcome
Manual test various shortcoming, substantially increases accuracy, reliability and the work efficiency of gateway route test.
The technical scheme is that and be achieved in that: a kind of be routed from based on CAN/LIN/MOST mixed type bus gateway
Dynamicization test system and method for testing, its hardware includes: programmable power supply, multi-channel-CAN bus resolve emulation tool
CANcaseXL, LIN bus resolves emulation tool, multichannel MOST bus resolves emulation tool MOCCA, controller connects relay
Device board and the real-time industrial computer of installation automatic test program;It is characterized in that: completed by hardware above: CAN-CAN net
Close route test, the route test CAN-MOST gateway route test of CAN-LIN gateway;The route test of CAN-CAN gateway is supported to appoint
The route test of meaning road different bus speed CAN, emulates by the way of routing iinformation list imports to upper computer software
The message information of the route source network segment, the bus behavior of the detection target network segment completes the single-piece test of gateway node routing function.Survey
Examination content item includes: direct routing message cycle uniformity test, cycle route message cycle uniformity test, direct routing report
Literary composition identifier uniformity test, cycle route message identifier concordance, the test of direct routing message data extension consistency, week
The phase route test of message data extension consistency, message routing signal location (lowest order) uniformity test, message routing signal
Position (highest order) uniformity test, signal route signal position (lowest order) uniformity test, signal route signal position are (
High-order) uniformity test, the test of message routing signal conformance, signal route signal uniformity test, direct message routing believe
The test of number delay time, the test of direct signal route signal delay time, the test of cycle message routing initial value, periodic signal road
By sub-value on initial value test, the test of cycle message routing timeout value, periodic signal route timeout value test, cycle message routing
Test, the upper sub-value test of periodic signal route, gateway route wakeup time test, the gateway route test length of one's sleep etc..
The route test of CAN-LIN gateway supports the LIN network segment as the route source network segment, the CAN network segment as the route target network segment
Route test and support the CAN network segment as the route source network segment, the LIN network segment as the route target network segment route test two kinds of shapes
Formula.Test content item includes: message routing cycle uniformity test, signal route uniformity test, message routing concordance are surveyed
Examination, signal routing delay test etc..
The route test of CAN-MOST gateway supports the MOST network segment as the route source network segment, the CAN network segment as route target net
Route test and the support CAN network segment of section test two as the route source network segment, the MOST network segment as the route of the route target network segment
The form of kind.First passing through CANdb++ instrument and CAN data base is transformed into xml form, such K2L Viewer can load * .xml literary composition
Part, carries out packet parsing and emulation sends.The route test of CAN-MOST gateway can be realized by MOCCA instrument customized development.
Both can have been emulated MOST message, monitoring CAN message by K2L Viewer, CAN message, monitoring MOST message can have been emulated again,
Then carry out script exploitation and realize dependence test use-case, then carry out routing resolution, finally by host computer procedure loading routing table
Performing dependence test use-case and can realize MOST-CAN gateway routing function automatic test, test content item includes: message road
, signal route signal uniformity test the most correct by the cycle after cycle uniformity test i.e. MOST message to CAN is
CAN-MOST signal route location and signal value are the most correct, the signal routing delay test i.e. CAN-MOST routing delay time has
It is not above design and wants seeking time.
The method flow of gateway route automatic test and management comprises the steps:
Step S1, after software starts, automatic Query Information data base [F6] obtain data base preserves all vehicle information,
Test-types information, test specification information and test case information etc., and show relevant information in software.According to current system
Demand, if next step carries out testing user's management, then enters step S4;If carrying out gateway to route automatization's test execution, then enter
Enter step S2.
Step S2, carries out needing during gateway route automatic test to judge that this gateway route automatization and tests whether to carry out
Crossing test and management, if not carrying out test and management, then entering step S3;If directly performing gateway route automatic test, then enter
Enter step S5.
Step S3, test and management needs to judge that next step carries out user's management or other management, if carrying out user's management,
Then enter step S4;If carrying out other management, then enter step S10.
Step S4, user manages needs and is managed test user, including newly-built user, editor user, deletes user
Deng, and newly-built user also includes arranging user right.Then perform after completing user's management to terminate.
Step S5, tests Data Enter.The vehicle that institute's survey grid closes is selected from information database [F6], soft by host computer
Part [F4] imports and defines network routing table that specific format writes carrying out according to user and resolve generation and be available for testing software and use
Ini file.This specific format routing table can resolve database file [F3] by software and obtain, such as the DBC literary composition of CAN
Part, the LDF file of LIN bus and the XML file etc. of MOST bus.Network segment number, each network segment it is route defined in route information table
Numbering, route message and route message relevant information, route signal and route signal relevant information etc..
Step S6, chooses the test case needing to carry out testing.All test case information are saved in test case data
In the test case data storehouse in storehouse [F2], the test case that will be able to perform according to the vehicle information selected and test-types information
Title shows on interface, for you to choose.
Step S7, starts test.Test equipment will be connected to by tested gateway node according to host computer parsing network segment numbering
On, and if compiling by; enter into step S8, otherwise check and revise mistake input information, reenter step S7.
Step S8, performs the test item chosen successively.Concrete methods of realizing is as follows:
The test item use-case chosen is performed by test case library [2] successively.In each test item, by the opening and closing of relay
And the order to programmable power supply sends, build the test environment needed for test case.Perform the most one by one in this test case
Test statement, it is thus achieved that final test result, and result is contrasted with evaluation criteria information, determine whether test item leads to
Cross.Each test case all generates independent test log file to preserve test data.
Step S9, after test terminates, generates test report.Clicking " generating report " button, automatic testing software is according to this
Type belonging to secondary test, calls the report template of correspondence, by test result data write report.Complete to generate after test report then
Execution terminates.
Step S10, if carrying out vehicle management, then performs vehicle management, otherwise enters step S11.
Step S11, if carrying out test specification management, then performs test specification management, otherwise enters step S12.
Step S12, if carrying out test database management, then performs test database management, otherwise enters step S13.
Step S13, if carrying out parameter management, then performs parameter management, otherwise enters step S14.
Step S14, if carrying out gateway routing management, then performing gateway routing management, otherwise performing to terminate.
The gateway direct message routing conformance test method of described test system is as follows:
1, upper computer software is sent to gateway controller by Bus simulator sampling instrument emulation source network segment route message;
2, by this message of bus sampling instrument monitoring objective network segment routing forwarding;
3, judging that target route message ID is the most consistent with the route message ID that data base defines, if inconsistent, test result is
Fail;
4, judge that target route message DLC is the most consistent with the route message DLC that data base defines, if inconsistent, test result
For Fail;
5, judge that target route message is the most consistent for cycle time with the route message that data base defines for cycle time, if inconsistent
Then test result is Fail, if consistent, directly message routing uniformity test result is PASS.
Other gateway route test method flow process is similar to above, is all message or the signal starting to emulate the source network segment,
Monitoring objective network segment message and signal are the most consistent with gateway routing specification, are not detailed herein.
The positive effect of the present invention is can to carry out the routing function of MOST to CAN, CAN to CAN and CAN to LIN simultaneously
Checking, it is ensured that the synchronicity of test, real-time and accuracy, shortens the test period of routing function checking, greatly carries
The high testing efficiency of routing function checking so that the test of gateway routing function becomes easier, saves substantial amounts of manpower,
Reduce testing cost.
Accompanying drawing explanation
Fig. 1 is the Organization Chart of gateway route automatization test system.
Fig. 2 is the structured flowchart that gateway route automatization's test system hardware platform.
Fig. 3 is gateway automatization test system software system structure block diagram.
Fig. 4 is the test of gateway automatization test system and management method flow chart.
Fig. 5 is gateway direct message routing conformance test method flow chart.
Detailed description of the invention
The present invention will be further described below in conjunction with the accompanying drawings: a kind of based on CAN/LIN/MOST mixing as shown in Figure 1
Type bus gateway is routed from dynamicization test system and method for testing, including software system architecture and hardware system structure.
Software system framework includes:
1, pc control procedure: include testing relevant parameter input, test case management, test report generation and test user
Management etc.
2, CAN, LIN bus and the communications database of MOST bus, for data parsing;
3, test case library: corresponding test case can be selected to carry out route test;
4, gateway routing iinformation imports program: routing iinformation is imported to system, is used for routeing test information and calls;
5, network signal test program: for collection and the time of different bus signals collecting instrument of bus message data signal
Synchronize;
6, information database: include testing vehicle data base, test specification data base, test result data storehouse etc..
7, test and management: include test user's management, vehicle management, test specification management, data base administration etc..
Hardware system includes that programmable power supply, CAN/LIN/MOST Bus simulator sampling instrument, CAN/LIN/MOST bus are dry
Disturb instrument, peripheral interface circuit, direct fault location circuit, offered load match circuit and broken string testing cassete.
According to system architecture, first carry out gateway route automatic test hardware platform and build, as shown in Figure 2.Wherein,
1, test main frame host computer procedure controls programmable power supply by Ethernet, it is achieved the power supply control to gateway;
2, regulated power supply is used for powering to bus test board;
3, power control unit controls programmable power supply and regulated power supply is powered;
4, test main frame by Bus simulator sampling instrument (CANcaseXL, MOST MOCCA) etc. realize bus message emulate and
Gather.One of them CANcaseXL has two-way CAN interface, and a road CAN is used for emulating CAN message signal and is sent to gateway control
Device processed, another road CAN be used for monitoring information that gateway a certain road CAN sends (due to gateway at least two-way CAN, if it is desired to
Time monitoring multichannel CAN need increase CANcaseXL instrument).Another CANcaseXL has a road LIN interface, a road
CAN interface, when testing CAN message by gateway forwards LIN information, CAN interface is used for emulating CAN message and is sent to gateway control
Device processed, LIN interface is for monitoring the LIN information that gateway sends;When testing LIN information by gateway forwards CAN message, LIN
Interface is used for emulating LIN message and is sent to gateway controller, and CAN interface is for monitoring the CAN message that gateway sends.MOCCA work
Possessing 4 road CAN interface, a road MOST interface, when testing CAN message by gateway forwards MOST information, CAN interface is used for
Emulation CAN message is sent to gateway controller, and MOST interface is for monitoring the MOST information that gateway sends;When test MOST information
During by gateway forwards CAN message, MOST interface is used for emulating MOST message and is sent to gateway controller, and CAN interface is used for supervising
Survey grid closes the CAN message sent.
5, test main frame controls the output of bus test board by NI board;
6, bus test board completes function of power protection, realizes terminator coupling and the control of relay;
7, gateway is connected with test system by bus test board, and bus test board can realize the control to its on and off switch
System, the control etc. of bus short circuit open circuit.
The software system structure block diagram of the present invention as it is shown on figure 3, wherein,
1, MOCCA instrument and gateway controller build a MOST bus ring.CAN message can be converted to MOST information by gateway
It is dealt in MOST bus, it is also possible to MOST bus message is converted to CAN message and is dealt in CAN.Gateway can connect many
It is mutual that road CAN carries out information, it is also possible to CAN message is converted to LIN information and is dealt in LIN bus, it is also possible to is believed by LIN
Breath is converted to CAN message and is dealt in CAN;
2, MOST message is fabricated to the MOST data base of * .xml form by MOST Editor, is available for K2L Viewer and K2L
MAG uses.The compiling of * .xml file is generated * .dll file by K2L MAG, can directly use, it is achieved right in upper computer software
FBlock, Function and OPType defined in MOST data base calls.K2L Viewer can load * .xml file, right
Message in MOST network is monitored, resolves, and can send the message defined in * .xml alternately.
3, upper computer software is by loading .xls routing table, resolves and generates the ini file being available for testing software use, for surveying
Examination software emulation MOST/CAN route message and monitoring E-Packet, and by CANoe software emulation CAN/CAN route message,
CAN/LIN route message and monitoring E-Packet and realize gateway route automatic test.
The method flow tested and manage in the gateway automatization test system of the present invention as shown in Figure 4, with reference to gateway road
By Organization Chart Fig. 1 of automatization test system, the method flow of gateway route automatic test and management comprises the steps:
Step S1, after software starts, automatic Query Information data base [F6] obtain data base preserves all vehicle information,
Test-types information, test specification information and test case information etc., and show relevant information in software.According to current system
Demand, if next step carries out testing user's management, then enters step S4;If carrying out gateway to route automatization's test execution, then enter
Enter step S2.
Step S2, carries out needing during gateway route automatic test to judge that this gateway route automatization and tests whether to carry out
Crossing test and management, if not carrying out test and management, then entering step S3;If directly performing gateway route automatic test, then enter
Enter step S5.
Step S3, test and management needs to judge that next step carries out user's management or other management, if carrying out user's management,
Then enter step S4;If carrying out other management, then enter step S10.
Step S4, user manages needs and is managed test user, including newly-built user, editor user, deletes user
Deng, and newly-built user also includes arranging user right.Then perform after completing user's management to terminate.
Step S5, tests Data Enter.The vehicle that institute's survey grid closes is selected from information database [F6], soft by host computer
Part [F4] imports and defines network routing table that specific format writes carrying out according to user and resolve generation and be available for testing software and use
Ini file.This specific format routing table can resolve database file [F3] by software and obtain, such as the DBC literary composition of CAN
Part, the LDF file of LIN bus and the XML file etc. of MOST bus.Network segment number, each network segment it is route defined in route information table
Numbering, route message and route message relevant information, route signal and route signal relevant information etc..
Step S6, chooses the test case needing to carry out testing.All test case information are saved in test case data
In the test case data storehouse in storehouse [F2], the test case that will be able to perform according to the vehicle information selected and test-types information
Title shows on interface, for you to choose.
Step S7, starts test.Test equipment will be connected to by tested gateway node according to host computer parsing network segment numbering
On, and if compiling by; enter into step S8, otherwise check and revise mistake input information, reenter step S7.
Step S8, performs the test item chosen successively.Concrete methods of realizing is as follows:
The test item use-case chosen is performed by test case library [2] successively.In each test item, by the opening and closing of relay
And the order to programmable power supply sends, build the test environment needed for test case.Perform the most one by one in this test case
Test statement, it is thus achieved that final test result, and result is contrasted with evaluation criteria information, determine whether test item leads to
Cross.Each test case all generates independent test log file to preserve test data.
Step S9, after test terminates, generates test report.Clicking " generating report " button, automatic testing software is according to this
Type belonging to secondary test, calls the report template of correspondence, by test result data write report.Complete to generate after test report then
Execution terminates.
Step S10, if carrying out vehicle management, then performs vehicle management, otherwise enters step S11.
Step S11, if carrying out test specification management, then performs test specification management, otherwise enters step S12.
Step S12, if carrying out test database management, then performs test database management, otherwise enters step S13.
Step S13, if carrying out parameter management, then performs parameter management, otherwise enters step S14.
Step S14, if carrying out gateway routing management, then performing gateway routing management, otherwise performing to terminate.
The gateway direct message routing conformance test method flow process of this test system of being illustrated by Fig. 5,
6, upper computer software is sent to gateway controller by Bus simulator sampling instrument emulation source network segment route message;
7, by this message of bus sampling instrument monitoring objective network segment routing forwarding;
8, judging that target route message ID is the most consistent with the route message ID that data base defines, if inconsistent, test result is
Fail;
9, judge that target route message DLC is the most consistent with the route message DLC that data base defines, if inconsistent, test result
For Fail;
10, judge that target route message is the most consistent for cycle time, if differing with the route message that data base defines for cycle time
Causing, test result is Fail, if consistent, directly message routing uniformity test result is PASS.
Other gateway route test method flow process is similar to above, is all message or the signal starting to emulate the source network segment,
Monitoring objective network segment message and signal are the most consistent with gateway routing specification, are not detailed herein.
Claims (3)
1. being routed from a dynamicization test system based on CAN/LIN/MOST mixed type bus gateway, its hardware includes: program-controlled electric
Source, multi-channel-CAN bus resolve emulation tool CANcaseXL, LIN bus and resolve emulation tool, the parsing of multichannel MOST bus
Emulation tool MOCCA, controller connect relay board and install the real-time industrial computer of automatic test program;Its feature exists
In: completed by hardware above: the route test of CAN-CAN gateway, CAN-LIN gateway route test CAN-MOST gateway route are surveyed
Examination;Wherein the route test of any road different bus speed CAN is supported in the test of CAN-CAN gateway route, is believed by route
Breath list imports to the mode of upper computer software and emulates the message information of the route source network segment, and the bus behavior of the detection target network segment is complete
Become the single-piece test of gateway node routing function;Test content item includes: direct routing message cycle uniformity test, cycle road
By message cycle uniformity test, direct routing message identifier uniformity test, cycle route message identifier concordance, straight
Connect route message data extension consistency test, cycle route message data extension consistency test, message routing signal location
I.e. lowest order uniformity test, message routing signal location i.e. highest order uniformity test, signal route signal position is minimum
Bit integrity test, the test of signal route signal position i.e. highest order uniformity test, message routing signal conformance, signal road
By signal conformance test, the test of direct message routing signal lag time test, direct signal route signal delay time, week
The test of phase message routing initial value, periodic signal route initial value test, the test of cycle message routing timeout value, periodic signal road
Surveyed by sub-value test on timeout value test, cycle message routing, the upper sub-value test of periodic signal route, gateway route wakeup time
Examination, the gateway route test length of one's sleep;
The route test of CAN-LIN gateway supports the LIN network segment as the route source network segment, the CAN network segment as the road of the route target network segment
By testing and supporting that the CAN network segment tests two kinds of forms as the route source network segment, the LIN network segment as the route of the route target network segment;
Test content item include: message routing cycle uniformity test, signal route uniformity test, message routing uniformity test,
Signal routing delay is tested;
The route test of CAN-MOST gateway supports the MOST network segment as the route source network segment, the CAN network segment as the route target network segment
Route test and the support CAN network segment test two kinds of shapes as the route source network segment, the MOST network segment as the route of the route target network segment
Formula;First passing through CANdb++ instrument and CAN data base is transformed into xml form, such K2L Viewer can load * .xml file, enter
Row packet parsing and emulation send;The route test of CAN-MOST gateway can be realized by MOCCA instrument customized development;Pass through
K2L Viewer both can emulate MOST message, monitoring CAN message, can emulate again CAN message, monitoring MOST message, then
Carry out script exploitation and realize dependence test use-case, then carry out routing resolution by host computer procedure loading routing table, finally perform
Dependence test use-case can realize MOST-CAN gateway routing function automatic test, and test content item includes: message routing week
Phase uniformity test i.e. MOST message is the most correct to the cycle after CAN, the signal i.e. CAN-of route signal uniformity test
MOST signal route location and signal value are the most correct, the signal routing delay test i.e. CAN-MOST routing delay time either with or without
Exceed design and want seeking time.
One the most according to claim 1 is routed from dynamicization test based on CAN/LIN/MOST mixed type bus gateway
System, it is characterised in that described gateway route automatic test and the method step of management are as follows:
Step S1, after software starts, automatic Query Information data base [F6] obtain data base preserves all vehicle information,
Test-types information, test specification information and test case information etc., and show relevant information in software;According to current system
Demand, if next step carries out testing user's management, then enters step S4;If carrying out gateway to route automatization's test execution, then enter
Enter step S2;
Step S2, carries out needing during gateway route automatic test to judge that this gateway route automatization and tests whether to carry out survey
Test tube is managed, if not carrying out test and management, then enters step S3;If directly performing gateway route automatic test, then enter step
Rapid S5;
Step S3, test and management needing to judge that next step carries out user's management or other management, if carrying out user's management, then entering
Enter step S4;If carrying out other management, then enter step S10;
Step S4, user manages needs and is managed test user, including newly-built user, editor user, deletes user etc., and
Newly-built user also includes arranging user right;Then perform after completing user's management to terminate;
Step S5, tests Data Enter;The vehicle selecting institute's survey grid to close from information database [F6], passes through upper computer software
[F4] imports and defines, according to user, network routing table that specific format writes and carry out resolving generating and be available for testing what software used
Ini file;This specific format routing table can resolve database file [F3] by software and obtain, such as the DBC literary composition of CAN
Part, the LDF file of LIN bus and the XML file etc. of MOST bus;Network segment number, each network segment it is route defined in route information table
Numbering, route message and route message relevant information, route signal and route signal relevant information etc.;
Step S6, chooses the test case needing to carry out testing;All test case information are saved in test case data storehouse
In the test case data storehouse of [F2], the test case name that will be able to perform according to the vehicle information selected and test-types information
Claim to show on interface, for you to choose;
Step S7, starts test;Will be connected on test equipment according to host computer parsing network segment numbering by tested gateway node,
If compile by; enter into step S8, otherwise check and revise mistake input information, reenter step S7;
Step S8, performs the test item chosen successively;Concrete methods of realizing is as follows:
The test item use-case chosen is performed by test case library [2] successively;In each test item, by the opening and closing of relay
And the order to programmable power supply sends, build the test environment needed for test case;Perform the most one by one in this test case
Test statement, it is thus achieved that final test result, and result is contrasted with evaluation criteria information, determine whether test item leads to
Cross;Each test case all generates independent test log file to preserve test data;
Step S9, after test terminates, generates test report;Clicking " generating report " button, automatic testing software is surveyed according to this
Type belonging to examination, calls the report template of correspondence, by test result data write report;Then perform after completing to generate test report
Terminate;
Step S10, if carrying out vehicle management, then performs vehicle management, otherwise enters step S11;
Step S11, if carrying out test specification management, then performs test specification management, otherwise enters step S12;
Step S12, if carrying out test database management, then performs test database management, otherwise enters step S13;
Step S13, if carrying out parameter management, then performs parameter management, otherwise enters step S14;
Step S14, if carrying out gateway routing management, then performing gateway routing management, otherwise performing to terminate.
One the most according to claim 1 is routed from dynamicization test based on CAN/LIN/MOST mixed type bus gateway
System, it is characterised in that described gateway message routing conformance test method is as follows:
1, upper computer software is sent to gateway controller by Bus simulator sampling instrument emulation source network segment route message;
2, by this message of bus sampling instrument monitoring objective network segment routing forwarding;
3, judging that target route message ID is the most consistent with the route message ID that data base defines, if inconsistent, test result is
Fail;
4, judge that target route message DLC is the most consistent with the route message DLC that data base defines, if inconsistent, test result
For Fail;
5, judge that target route message is the most consistent for cycle time with the route message that data base defines for cycle time, if inconsistent
Then test result is Fail, if consistent, directly message routing uniformity test result is PASS.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610830886.1A CN106330618A (en) | 2016-09-19 | 2016-09-19 | Gateway routing automatic test system and test method based on CAN/LIN/MOST hybrid buses |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610830886.1A CN106330618A (en) | 2016-09-19 | 2016-09-19 | Gateway routing automatic test system and test method based on CAN/LIN/MOST hybrid buses |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106330618A true CN106330618A (en) | 2017-01-11 |
Family
ID=57788032
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610830886.1A Pending CN106330618A (en) | 2016-09-19 | 2016-09-19 | Gateway routing automatic test system and test method based on CAN/LIN/MOST hybrid buses |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106330618A (en) |
Cited By (34)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107231278A (en) * | 2016-03-24 | 2017-10-03 | 宝沃汽车(中国)有限公司 | The method of testing of CAN nodes, apparatus and system |
CN108809741A (en) * | 2017-04-27 | 2018-11-13 | 长城汽车股份有限公司 | The test method and device of CAN bus |
CN109309601A (en) * | 2018-10-18 | 2019-02-05 | 北京新能源汽车股份有限公司 | Gateway testing system and method |
CN109327354A (en) * | 2018-09-30 | 2019-02-12 | 北京新能源汽车股份有限公司 | Method, device and test system for generating signal forwarding test case |
CN109634847A (en) * | 2018-11-21 | 2019-04-16 | 广州小鹏汽车科技有限公司 | Embedded product automated testing method and system |
CN110048910A (en) * | 2019-04-24 | 2019-07-23 | 重庆长安汽车股份有限公司 | A kind of vehicle-mounted ethernet gateway test macro and method |
CN110557303A (en) * | 2019-09-09 | 2019-12-10 | 网易(杭州)网络有限公司 | Network multi-outlet test platform system and test method |
CN111309664A (en) * | 2020-01-21 | 2020-06-19 | 明见(厦门)技术有限公司 | Method for simulating LIN bus host to send LIN data packet |
CN111694990A (en) * | 2020-06-08 | 2020-09-22 | 深圳市富中奇科技有限公司 | Vehicle data processing method and device and storage medium |
CN111708661A (en) * | 2020-05-14 | 2020-09-25 | 东风汽车集团有限公司 | Pressure testing system and method suitable for central gateway |
CN112000332A (en) * | 2020-07-09 | 2020-11-27 | 惠州市德赛西威汽车电子股份有限公司 | Automatic generating method and system of bus panel |
CN112052130A (en) * | 2020-08-28 | 2020-12-08 | 一汽奔腾轿车有限公司 | CAN network automatic test system and test method thereof |
CN112054940A (en) * | 2020-09-02 | 2020-12-08 | 黑龙江省电工仪器仪表工程技术研究中心有限公司 | Portable detection device and detection method for heterogeneous network convergence gateway |
CN112134800A (en) * | 2019-06-25 | 2020-12-25 | 北京新能源汽车股份有限公司 | Data routing method, gateway, network routing system and vehicle |
CN112187599A (en) * | 2020-09-15 | 2021-01-05 | 郑州信大捷安信息技术股份有限公司 | System and method for supporting data communication between network buses in vehicle |
CN112203251A (en) * | 2020-09-11 | 2021-01-08 | 福建瑶光智能科技有限公司 | TBOX automatic testing method and device realized by using cascade mode |
CN112291256A (en) * | 2020-11-06 | 2021-01-29 | 北京中航通用科技有限公司 | UART gateway data transmission method |
CN112422358A (en) * | 2019-08-23 | 2021-02-26 | 上海汽车集团股份有限公司 | Bus signal analyzer and bus signal analyzing method |
CN112711242A (en) * | 2020-12-17 | 2021-04-27 | 东风越野车有限公司 | Automatic network diagnosis test system and test method for automobile electric control unit |
CN113094029A (en) * | 2020-01-08 | 2021-07-09 | 广州汽车集团股份有限公司 | Automatic CAPL code generation method and system and automobile |
CN113347058A (en) * | 2021-05-20 | 2021-09-03 | 江铃汽车股份有限公司 | Method and system for testing vehicle CAN network period consistency |
CN113517992A (en) * | 2020-04-10 | 2021-10-19 | 北京新能源汽车股份有限公司 | Controller local area network configuration detection method and device and electric vehicle |
CN113612654A (en) * | 2021-07-12 | 2021-11-05 | 东风汽车集团股份有限公司 | Vehicle-mounted gateway function testing method based on database |
CN113867318A (en) * | 2021-09-30 | 2021-12-31 | 东风汽车集团股份有限公司 | Automatic integration method for hardware-in-loop test engineering of CAN communication controller |
CN113965503A (en) * | 2021-10-21 | 2022-01-21 | 奇瑞商用车(安徽)有限公司 | Automobile CAN gateway routing bench test method and system |
CN114448851A (en) * | 2021-12-30 | 2022-05-06 | 武汉光庭信息技术股份有限公司 | Data automation test method and system |
CN114629742A (en) * | 2022-05-17 | 2022-06-14 | 北京理工大学深圳汽车研究院(电动车辆国家工程实验室深圳研究院) | Vehicle data communication simulation test platform and method for new energy electric vehicle |
CN114679396A (en) * | 2021-07-02 | 2022-06-28 | 北京新能源汽车股份有限公司 | Method, device and system for testing routing performance of gateway |
CN114756008A (en) * | 2022-04-25 | 2022-07-15 | 中国第一汽车股份有限公司 | Fault injection system, automatic test system and method for automobile hybrid bus integrated rack |
CN115022221A (en) * | 2022-05-31 | 2022-09-06 | 东风电驱动***有限公司 | Automatic test system and method for multi-channel CAN gateway |
CN115378834A (en) * | 2022-08-10 | 2022-11-22 | 东风柳州汽车有限公司 | Multi-network-segment gateway routing test method and device based on hardware-in-the-loop equipment |
CN115664980A (en) * | 2022-12-09 | 2023-01-31 | 长沙科梁科技有限公司 | Simulation model generation method, simulation method, storage medium, and terminal device |
CN115941523A (en) * | 2022-10-21 | 2023-04-07 | 重庆长安新能源汽车科技有限公司 | CAN message period consistency analysis method and device based on python |
CN116800656A (en) * | 2023-08-28 | 2023-09-22 | 上海鉴智其迹科技有限公司 | CAN communication test method, system, device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102608993A (en) * | 2012-03-09 | 2012-07-25 | 北京经纬恒润科技有限公司 | Network automation test method, cabinet and test host |
CN103795587A (en) * | 2012-11-02 | 2014-05-14 | 北汽福田汽车股份有限公司 | Gateway routing test method and device |
CN104298224A (en) * | 2014-09-12 | 2015-01-21 | 中国第一汽车股份有限公司 | Automatic vehicle-mounted electronic control unit CAN bus communication testing device and system |
-
2016
- 2016-09-19 CN CN201610830886.1A patent/CN106330618A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102608993A (en) * | 2012-03-09 | 2012-07-25 | 北京经纬恒润科技有限公司 | Network automation test method, cabinet and test host |
CN103795587A (en) * | 2012-11-02 | 2014-05-14 | 北汽福田汽车股份有限公司 | Gateway routing test method and device |
CN104298224A (en) * | 2014-09-12 | 2015-01-21 | 中国第一汽车股份有限公司 | Automatic vehicle-mounted electronic control unit CAN bus communication testing device and system |
Non-Patent Citations (1)
Title |
---|
刘丽敏等: ""CAN/LIN/MOST混合型总线网络通信测试技术研究与应用"", 《中国汽车工程学会年会论文集》 * |
Cited By (48)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107231278A (en) * | 2016-03-24 | 2017-10-03 | 宝沃汽车(中国)有限公司 | The method of testing of CAN nodes, apparatus and system |
CN108809741A (en) * | 2017-04-27 | 2018-11-13 | 长城汽车股份有限公司 | The test method and device of CAN bus |
CN109327354A (en) * | 2018-09-30 | 2019-02-12 | 北京新能源汽车股份有限公司 | Method, device and test system for generating signal forwarding test case |
CN109309601A (en) * | 2018-10-18 | 2019-02-05 | 北京新能源汽车股份有限公司 | Gateway testing system and method |
CN109634847A (en) * | 2018-11-21 | 2019-04-16 | 广州小鹏汽车科技有限公司 | Embedded product automated testing method and system |
CN110048910A (en) * | 2019-04-24 | 2019-07-23 | 重庆长安汽车股份有限公司 | A kind of vehicle-mounted ethernet gateway test macro and method |
CN112134800A (en) * | 2019-06-25 | 2020-12-25 | 北京新能源汽车股份有限公司 | Data routing method, gateway, network routing system and vehicle |
CN112422358B (en) * | 2019-08-23 | 2022-06-03 | 上海汽车集团股份有限公司 | Bus signal analyzer and bus signal analyzing method |
CN112422358A (en) * | 2019-08-23 | 2021-02-26 | 上海汽车集团股份有限公司 | Bus signal analyzer and bus signal analyzing method |
CN110557303A (en) * | 2019-09-09 | 2019-12-10 | 网易(杭州)网络有限公司 | Network multi-outlet test platform system and test method |
CN110557303B (en) * | 2019-09-09 | 2021-04-20 | 网易(杭州)网络有限公司 | Network multi-outlet test platform system and test method |
CN113094029B (en) * | 2020-01-08 | 2023-08-22 | 广汽埃安新能源汽车有限公司 | CAPL code automatic generation method, system and automobile |
CN113094029A (en) * | 2020-01-08 | 2021-07-09 | 广州汽车集团股份有限公司 | Automatic CAPL code generation method and system and automobile |
CN111309664A (en) * | 2020-01-21 | 2020-06-19 | 明见(厦门)技术有限公司 | Method for simulating LIN bus host to send LIN data packet |
CN113517992B (en) * | 2020-04-10 | 2024-04-09 | 北京新能源汽车股份有限公司 | Detection method and device for controller local area network configuration and electric automobile |
CN113517992A (en) * | 2020-04-10 | 2021-10-19 | 北京新能源汽车股份有限公司 | Controller local area network configuration detection method and device and electric vehicle |
CN111708661A (en) * | 2020-05-14 | 2020-09-25 | 东风汽车集团有限公司 | Pressure testing system and method suitable for central gateway |
CN111694990A (en) * | 2020-06-08 | 2020-09-22 | 深圳市富中奇科技有限公司 | Vehicle data processing method and device and storage medium |
CN112000332B (en) * | 2020-07-09 | 2024-05-31 | 惠州市德赛西威汽车电子股份有限公司 | Automatic generation method and system of bus panel |
CN112000332A (en) * | 2020-07-09 | 2020-11-27 | 惠州市德赛西威汽车电子股份有限公司 | Automatic generating method and system of bus panel |
CN112052130A (en) * | 2020-08-28 | 2020-12-08 | 一汽奔腾轿车有限公司 | CAN network automatic test system and test method thereof |
CN112054940A (en) * | 2020-09-02 | 2020-12-08 | 黑龙江省电工仪器仪表工程技术研究中心有限公司 | Portable detection device and detection method for heterogeneous network convergence gateway |
CN112203251A (en) * | 2020-09-11 | 2021-01-08 | 福建瑶光智能科技有限公司 | TBOX automatic testing method and device realized by using cascade mode |
CN112187599A (en) * | 2020-09-15 | 2021-01-05 | 郑州信大捷安信息技术股份有限公司 | System and method for supporting data communication between network buses in vehicle |
CN112187599B (en) * | 2020-09-15 | 2022-04-08 | 郑州信大捷安信息技术股份有限公司 | System and method for supporting data communication between network buses in vehicle |
CN112291256A (en) * | 2020-11-06 | 2021-01-29 | 北京中航通用科技有限公司 | UART gateway data transmission method |
CN112291256B (en) * | 2020-11-06 | 2023-12-01 | 北京中航通用科技有限公司 | UART gateway data transmission method |
CN112711242A (en) * | 2020-12-17 | 2021-04-27 | 东风越野车有限公司 | Automatic network diagnosis test system and test method for automobile electric control unit |
CN112711242B (en) * | 2020-12-17 | 2022-05-10 | 东风越野车有限公司 | Automatic network diagnosis test method for automobile electric control unit |
CN113347058A (en) * | 2021-05-20 | 2021-09-03 | 江铃汽车股份有限公司 | Method and system for testing vehicle CAN network period consistency |
CN114679396B (en) * | 2021-07-02 | 2024-05-17 | 北京新能源汽车股份有限公司 | Method, device and system for testing routing performance of gateway |
CN114679396A (en) * | 2021-07-02 | 2022-06-28 | 北京新能源汽车股份有限公司 | Method, device and system for testing routing performance of gateway |
CN113612654A (en) * | 2021-07-12 | 2021-11-05 | 东风汽车集团股份有限公司 | Vehicle-mounted gateway function testing method based on database |
CN113867318A (en) * | 2021-09-30 | 2021-12-31 | 东风汽车集团股份有限公司 | Automatic integration method for hardware-in-loop test engineering of CAN communication controller |
CN113965503A (en) * | 2021-10-21 | 2022-01-21 | 奇瑞商用车(安徽)有限公司 | Automobile CAN gateway routing bench test method and system |
CN114448851A (en) * | 2021-12-30 | 2022-05-06 | 武汉光庭信息技术股份有限公司 | Data automation test method and system |
CN114448851B (en) * | 2021-12-30 | 2023-06-27 | 武汉光庭信息技术股份有限公司 | Automatic data testing method and system |
CN114756008A (en) * | 2022-04-25 | 2022-07-15 | 中国第一汽车股份有限公司 | Fault injection system, automatic test system and method for automobile hybrid bus integrated rack |
CN114629742A (en) * | 2022-05-17 | 2022-06-14 | 北京理工大学深圳汽车研究院(电动车辆国家工程实验室深圳研究院) | Vehicle data communication simulation test platform and method for new energy electric vehicle |
CN115022221B (en) * | 2022-05-31 | 2024-01-09 | 东风电驱动***有限公司 | Automatic test system and method for multi-path CAN gateway |
CN115022221A (en) * | 2022-05-31 | 2022-09-06 | 东风电驱动***有限公司 | Automatic test system and method for multi-channel CAN gateway |
CN115378834A (en) * | 2022-08-10 | 2022-11-22 | 东风柳州汽车有限公司 | Multi-network-segment gateway routing test method and device based on hardware-in-the-loop equipment |
CN115378834B (en) * | 2022-08-10 | 2024-01-09 | 东风柳州汽车有限公司 | Multi-network-segment gateway route testing method and device based on hardware-in-loop equipment |
CN115941523A (en) * | 2022-10-21 | 2023-04-07 | 重庆长安新能源汽车科技有限公司 | CAN message period consistency analysis method and device based on python |
CN115664980B (en) * | 2022-12-09 | 2023-03-31 | 长沙科梁科技有限公司 | Simulation model generation method, simulation method, storage medium, and terminal device |
CN115664980A (en) * | 2022-12-09 | 2023-01-31 | 长沙科梁科技有限公司 | Simulation model generation method, simulation method, storage medium, and terminal device |
CN116800656B (en) * | 2023-08-28 | 2023-10-27 | 上海鉴智其迹科技有限公司 | CAN communication test method, system, device, electronic equipment and storage medium |
CN116800656A (en) * | 2023-08-28 | 2023-09-22 | 上海鉴智其迹科技有限公司 | CAN communication test method, system, device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106330618A (en) | Gateway routing automatic test system and test method based on CAN/LIN/MOST hybrid buses | |
CN100544292C (en) | A kind of method of BAS Broadband Access Server automatic test | |
CN104407971A (en) | Method for automatically testing embedded software | |
CN104850111B (en) | A kind of hardware-in―the-loop test method and system | |
CN105515189B (en) | Comprehensive intelligent gateway machine configuration method based on transformer station's unified Modeling | |
CN108460199B (en) | CNI modeling system | |
CN106100935A (en) | Charging equipment of electric automobile communication protocol consistency test device and method | |
CN110493079B (en) | Production automation test method of industrial Ethernet switch | |
CN108322348B (en) | Transformer substation monitoring information automatic acceptance signal triggering operation subsystem and method | |
CN100585369C (en) | Railway simulating laboratory | |
CN103634154A (en) | Simulation system and simulation method for network state | |
CN104850112A (en) | Electric automobile vehicle controller test method and system | |
CN102750301A (en) | Blueprint generating method for integrated avionic system model aiming at architecture analysis and design language (AADL) description | |
CN110865277A (en) | Feeder automation function testing device | |
CN108646111A (en) | A kind of relay protection automatic test approach and system based on 61850 communications | |
CN112306861A (en) | Unittest and Jenkins tool-based interface automatic testing system and method | |
CN113612654A (en) | Vehicle-mounted gateway function testing method based on database | |
CN102707712B (en) | Electronic equipment fault diagnosis method and system | |
CN104698374A (en) | Method for improving testing efficiency and accuracy of automatic relay protecting tester | |
CN103049601A (en) | Information system simulation modeling method | |
CN107247827B (en) | Virtual terminal model modeling and automatic wiring method based on machine learning | |
CN105680441A (en) | Simulated replacement technique-based simulated point-alignment device | |
CN105785170A (en) | Intelligent transformer substation oriented data flow panoramic displaying device and intelligent transformer substation oriented data flow panoramic displaying method | |
CN106053964B (en) | A kind of distribution Battle Field Electromagnetic dynamic analog construction method | |
CN101765129A (en) | Network access test system and method for data value-added service |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170111 |
|
WD01 | Invention patent application deemed withdrawn after publication |