CN107491055A - The test system and method for bus - Google Patents
The test system and method for bus Download PDFInfo
- Publication number
- CN107491055A CN107491055A CN201710320643.8A CN201710320643A CN107491055A CN 107491055 A CN107491055 A CN 107491055A CN 201710320643 A CN201710320643 A CN 201710320643A CN 107491055 A CN107491055 A CN 107491055A
- Authority
- CN
- China
- Prior art keywords
- bus
- message
- controller
- failure environment
- status
- 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
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0208—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
- G05B23/0213—Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
Abstract
The invention discloses a kind of test system of bus and method.Wherein, the system includes:Fault simulation equipment, for simulating default failure environment;Packet detection apparatus, it is connected with fault simulation equipment, in the case of being in default failure environment in bus, the message status of message in bus is detected, and according to message status, determines the fault freedom of the first controller, wherein, the first controller is bus control unit to be measured.The present invention solves the technical problem for the fault freedom that can not know bus in the prior art.
Description
Technical field
The present invention relates to bus field, in particular to the test system and method for a kind of bus.
Background technology
With the development of automotive electronic technology, and people it is more and more diversified to the functional requirement of automobile, in order to realize
Complicated control function, the electronic equipment and control system on car are more and more, and the quantity of wire harness is consequently increased.In order to meet
Data high-speed communicates and reduces wire harness quantity and weight, and automobile bus starts extensive use.The network-bus master applied at present
To be LIN buses, CAN, Flexray buses, Most buses etc., most widely used is CAN.The institute of vehicle is active
Can be according to exploitation demand, by each controller of these function distributions to CAN, the substantial amounts of data exchange of vehicle and data pass
Defeated to depend on CAN to complete, bus carries substantial amounts of data and control information, this for vehicle network stability and
Reliability requirement is high, need to can just be pushed out market after the checking of substantial amounts of actual test.
Stability and reliability requirement to bus network improve, and also the development process of CAN are more refined, whole
Depot can formulate corresponding CAN specification to constrain the communication behavior of each controller, and each stage of CAN is tested
Increasingly pay attention to.Whether the communication firstly the need of access control device before access control device function is errorless.
Because vehicle environment is comparatively more complicated, the virtual connection of wire harness, the fluctuation of supply voltage, interference of electromagnetism etc. are more
Kind factor may all cause the communication abnormality of each controller, and then influence CAN communication.Therefore unit is being carried out to controller
During test and engine bench test, the unusual condition for how simulating vehicle exposes the Communication that controller is likely to occur in advance
Just it is particularly important.
How existing bus test technology uses manual, cumbersome, repeated test job certainly if generally being laid particular emphasis on
Dynamicization test equipment realizes, and mainly test each controller communication it is whether normal.For controller in the pole of network
Fault freedom under the failure environment of end does not have corresponding method of testing.
The problem of fault freedom for not knowing bus in the prior art, effective solution is not yet proposed at present.
The content of the invention
The embodiments of the invention provide a kind of test system of bus and method, at least to solve to know in the prior art
Know the technical problem of the fault freedom of bus.
One side according to embodiments of the present invention, there is provided a kind of test system of bus, including:Fault simulation is set
It is standby, for simulating default failure environment;Packet detection apparatus, it is connected with fault simulation equipment, for being in default in bus
Failure environment in the case of, detect the message status of message in bus, and according to message status, determine the appearance of the first controller
Wrong performance, wherein, the first controller is bus control unit to be measured.
Further, failure environment includes:High network load, in the case where failure environment is high network load, failure
Analog machine includes:Message collecting device, for sending message according to default cycle and quantity, and by adjusting the week of message
In network load to the pre-set interval of phase and quantity adjustment bus;Packet detection apparatus includes:Message collecting device, for detecting
First message status of message in bus, wherein, the first message status includes:Frame losing or cycle delay.
Further, failure environment includes:Network error frame, in the case where failure environment is network error frame, system
Also include:Second controller, for sending message by bus, wherein, fault simulation equipment includes:Bus jamming equipment, with
Second controller is connected, for disturbing message, with generation error frame;Packet detection apparatus includes:Message collecting device
And waveform display apparatus, message collecting device are connected with the first controller by bus, for the message status of detection messages, report
Literary state include it is following any one:Frame losing, cycle delay, erroneous frame, content verification mistake and communication stop;Waveform is shown
Equipment is connected with the first controller by bus, and whether the waveform for detection messages is normal.
Further, failure environment includes:Low-voltage power supply fluctuates, in the case where failure environment is low-voltage power supply fluctuation,
System also includes:Second controller, for sending message by bus;Wherein, fault simulation equipment includes:Power supply, with
First controller is connected, and is powered for output pulsation voltage or by the first controller of preset voltage value;Packet detection apparatus bag
Include:Message collecting device and waveform display apparatus, message collecting device are connected with the first controller by bus, are reported for detecting
3rd message status of text, the 3rd message status include:Recover the time of communication after communication stopping, erroneous frame and trouble shooting
Whether the first preset time is less than, waveform display apparatus is connected with the first controller by bus, the waveform for detection messages
It is whether normal.
Further, failure environment includes:Bus short circuit and bus broken circuit, it is that bus short circuit and bus are broken in failure environment
In the case of road, system also includes:Second controller, for sending message by bus;Wherein, fault simulation equipment includes:
Bus jamming equipment, for setting any one following failure of bus generation:Bus broken circuit or short circuit, bus and electric power disconnection or
Short circuit and bus and ground open circuit or short circuit;Packet detection apparatus includes:Message collecting device and waveform display apparatus, message collection
Equipment is connected with the first controller by bus, and for the 4th message status of detection messages, the 4th message status includes:Communication
Whether the time stop, recovering communication after erroneous frame and trouble shooting is less than the second preset time, waveform display apparatus and the
One controller is connected by bus, and whether the waveform for detection messages is normal.
Further, system also includes:One or more resistance, one end of bus is connected to, for the line as bus
Beam impedance.
Another aspect according to embodiments of the present invention, a kind of method of testing of bus is additionally provided, including:Simulate default
Failure environment;In the case where bus is in default failure environment, the message status of message in bus is detected;According to message shape
State, the fault freedom of the first controller is determined, wherein, the first controller is bus control unit to be measured.
Further, in the case where failure environment is high network load, simulating default failure environment includes:According to pre-
If cycle and quantity send message, and cycle and quantity by adjusting message adjust the network load of bus to pre-set interval
It is interior;The message status of message includes in detection bus:The first message status of message in bus is detected, wherein, the first message shape
State includes:Frame losing or cycle delay.
Further, in the case where failure environment is network error frame, simulating default failure environment includes:By total
The message that line jamming equipment is sent to second controller disturbs, with generation error frame;Detect the message shape of message in bus
State includes:The message status of message in bus is detected, and whether the waveform of detection messages is normal, wherein, message status is included such as
Descend any one:Frame losing, cycle delay, erroneous frame, content verification mistake and communication stop.
Further, in the case where failure environment is low-voltage power supply fluctuation, simulating default failure environment includes:Adjustment
The output voltage generation voltage pulsation of the power supply of bus, or the voltage value preset voltage value of the first controller of adjustment;
The message status of message includes in detection bus:The 3rd message status of message in bus is detected, and the waveform of detection messages is
It is no normal, wherein, the 3rd message status includes:Communication stops, recovering after erroneous frame and trouble shooting communication time whether
Less than the first preset time.
Further, in the case where failure environment is bus short circuit and bus broken circuit, default failure environment bag is simulated
Include:Set bus broken circuit or short circuit, bus and electric power disconnection or short circuit, bus and ground breaking or short by bus jamming equipment
Road;The message status of message includes in detection bus:Detect the 4th message status of message in bus, and the waveform of detection messages
Whether normal, the 4th message status includes:Whether the time for recovering communication after communication stopping, erroneous frame and trouble shooting is less than
Second preset time.
The embodiments of the invention provide a kind of storage medium, the storage medium includes the program of storage, wherein, described
Equipment performs the fault freedom test side of the bus described in above-mentioned any one program controls the storage medium when running where
Method.
The embodiments of the invention provide a kind of processor, the processor is used for operation program, wherein, described program operation
The fault freedom method of testing of bus described in the above-mentioned any one of Shi Zhihang.
In embodiments of the present invention, by the default failure environment of fault simulation equipment simulating, by being set with fault simulation
Standby connected packet detection apparatus detects the message shape of message in bus in the case where bus is in default failure environment
State, and according to message status, the fault freedom of the first controller is determined, wherein, the first controller is bus control unit to be measured.
The method of testing for the bus fault freedom that such scheme proposes can apply to CAN, and can simulate a variety of poles of vehicle
Fault state is held, the unit testing and system rack test of single bus controller is carried out, understands single controller and whole
Performance of the individual system under this variety of extreme fault state, carries out assessment test, so as to expose in advance to its fault freedom
The problem of bus is likely to occur in actual vehicle application, and then solve the fault freedom that can not know bus in the prior art
Technical problem.Further, additionally it is possible to when there is similar failure in equipment, fast positioning failure cause.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the structure chart of the test system of bus according to embodiments of the present invention;
Fig. 2 is a kind of schematic diagram of the test system of optional bus according to embodiments of the present invention;And
Fig. 3 is the flow chart of the method for testing of bus according to embodiments of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects
Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use
Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or
Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment
Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product
Or the intrinsic other steps of equipment or unit.
Embodiment 1
According to embodiments of the present invention, there is provided a kind of embodiment of the test system of bus, Fig. 1 are implemented according to the present invention
The structure chart of the test system of a kind of bus of example, as shown in figure 1, this method comprises the following steps:
Fault simulation equipment 10, for simulating default failure environment.
Specifically, the failure environment of above-mentioned simulation can include:High network load, network error frame, low-voltage power supply fluctuation
And bus short circuit and bus broken circuit.
Can be simulated-bus failure herein it should be noted that fault simulation equipment is not limited to any one equipment
The equipment of environment is above-mentioned fault simulation equipment., can be by different fault simulation equipment moulds for different failure environments
Plan obtains.
Packet detection apparatus 20, it is connected with fault simulation equipment 10, for being in the feelings of default failure environment in bus
Under condition, the message status of message in bus is detected, and according to message status, determines the fault freedom of the first controller 30, wherein,
First controller 30 is bus control unit to be measured.
Specifically, the first controller is one or more bus control units of bus, the fault freedom of bus is used to characterize
Depositing bus in the case of a fault and remaining able to the characteristic of normal operation.The message status of message can be set by packet check
Standby and/or waveform display apparatus is detected, and the state of message can be divided into normal and abnormal, and message status is abnormal
A variety of situations can be divided into again, it is any one abnormal situation to detect message, all determines that message is in abnormal shape
State, it is calm to determine that bus normal operation under this kind of failure environment.
For bus, its be each functional part in transmit information common communication main line, substantial amounts of data exchange
Bus is depended on data transfer to complete, by taking Full Vehicle System as an example, when Full Vehicle System breaks down, if bus still is able to
Normal operation, be then not in exception by the message of bus transfer, and the state of message is normal, if bus is due to whole
In car system the influence of failure cause can not normal operation, then the message by bus transfer exception is occurring.Above-mentioned side
Case by the states of detection messages, come determine bus in the event of a failure in the system whether can normal operation, Ye Jizong
The fault freedom of line.
In a kind of optional embodiment, it can be included with the failure environment of simulation:High network load, network error frame,
Exemplified by low-voltage power supply fluctuation and bus short circuit and bus broken circuit, according to obtained test result, it can be represented by table one
The fault freedom of bus.
Table one
Fault type | Message status | Testing result |
High network load | Normally | Normally |
Network error frame | Erroneous frame | It is abnormal |
Low-voltage power supply fluctuates | Leak frame | It is abnormal |
Bus short circuit | Do not stop communicating | It is abnormal |
Bus broken circuit | Normally | Normally |
From the foregoing, it will be observed that the above embodiments of the present application are by the default failure environment of fault simulation equipment simulating, by with therefore
Hinder the connected packet detection apparatus of analog machine in the case where bus is in default failure environment, detect message in bus
Message status, and according to message status, the fault freedom of the first controller is determined, wherein, the first controller is bus to be measured
Controller.The test environment that the test system of bus fault freedom in such scheme is provided is simple in construction, makes beneficial to repetition
With, CAN is can apply to, and a variety of extreme fault state of vehicle can be simulated, carry out the list of single bus controller
Member test and system rack test, understand the table of single controller and whole system under this variety of extreme fault state
It is existing, assessment test is carried out to its fault freedom, asked so as to what exposed bus in advance was likely to occur in actual vehicle application
Topic, and then solve the technical problem for the fault freedom that can not know bus in the prior art.Further, additionally it is possible in equipment
When there is similar failure, fast positioning failure cause.
Herein it should be noted that the test of bus mainly includes unit testing, system testing, real steering vectors, wherein before
Two tests can be carried out in laboratory environments.Unit testing is to verify whether single controller meets bus specification
It is required that the controller to be tested during test only has one, the problem of in order to register control.System testing is concerned with entirely
Whether multiple controllers in bus network can be with errorless communications, and the controller to be tested during test can be the institute on real vehicle
There is controller all to put together (both multiple first controllers in upper drawing system), can more really simulate the CAN on real vehicle
Bus communication situation.
The a variety of extreme fault state for the vehicle that the test environment built in the present invention can simulate, mainly include:Network
Load factor is high, wrong frame, the low-voltage power supply fluctuation of controller to be tested, the short interruption of bus on network.Examined in addition, having
The first controller (controller i.e. to be measured) of disconnected function can also be tested in a variety of extreme failures by reading DTC (DTC)
Network environment under the whether faulty generation of controller to be measured.
Optionally, included according to the above embodiments of the present application, above-mentioned failure environment:High network load, with reference to shown in Fig. 2,
In the case where failure environment is high network load,
Fault simulation equipment 10 includes:Message collecting device 101, for sending message according to default cycle and quantity,
And cycle and quantity by adjusting message are adjusted in network load to the pre-set interval of bus.
In a kind of optional embodiment, by taking CAN as an example, it can be sent out by CAN message collecting device analog message
Send, and can by adjust simulate send message quantity and send the cycle, come adjust network load actual loading 0~
Between 100%, so as to simulate the failure environment of high network load.
Packet detection apparatus 20 includes:Message collecting device 101, for detecting the first message status of message in bus,
Wherein, the first message status includes:Frame losing or cycle delay.
In a kind of optional embodiment, still by taking CAN as an example, CAN message collecting device has analysis ripple window,
Whether can occur situations such as frame losing, message cycle delay by CAN message collecting device detection messages.
Optionally, included according to the above embodiments of the present application, failure environment:Network error frame, it is network in failure environment
In the case of erroneous frame, with reference to shown in Fig. 2, said system also includes:Second controller 40, for sending message by bus,
Wherein,
Fault simulation equipment 10 includes:Bus jamming equipment 201, it is connected with second controller 40, for being carried out to message
Interference, with generation error frame.
Specifically, above-mentioned second controller can be ECU (electronic control unit, electronic control unit).
In a kind of optional embodiment, still by taking CAN as an example, the report that is sent by CAN jamming equipment stepwise derivation ECU
Text, the message that ECU is sent is set to produce mistake, further, it is also necessary to ECU is controlled when the continuous transmission of generation for a long time is wrong,
Do not close its output to CAN transceiver, i.e., can successively and frequency is higher that erroneous frame is sent in bus, so as to mould
Intend the failure environment of network error frame.
Packet detection apparatus 20 includes:Message collecting device 101 and waveform display apparatus 102, message collecting device 101 with
First controller 30 is connected by bus, for the message status of detection messages, message status include it is following any one:Lose
Frame, cycle delay, erroneous frame, content verification mistake and communication stop;Waveform display apparatus 102 is with the first controller 30 by total
Line is connected, and whether the waveform for detection messages is normal.
In the above-described embodiments, message collecting device can be used to test bus control unit to be tested on network to continue
There is the fault-tolerance in the case of rapid a large amount of erroneous frames.In a kind of optional embodiment, still by taking CAN as an example,
Whether there is frame losing, the delay of message cycle, erroneous frame, message content authentication error, communication by the observation of CAN message collecting device
The problems such as stopping, and by CAN waveform display apparatus (such as:Oscillograph) detection controller to be tested message waveform whether by
Interference, available for unit testing and system testing.
Optionally, included according to the above embodiments of the present application, failure environment:Low-voltage power supply fluctuates, and is low in failure environment
In the case of pressing supply variation, with reference to shown in Fig. 2, said system also includes:Second controller 40, reported for being sent by bus
Text;Wherein,
Fault simulation equipment 10 includes:Power supply, it is connected with the first controller 30, for output pulsation voltage or with pre-
Powered if magnitude of voltage is the first controller 30.
,, can be with by adjusting the output voltage of power supply still by taking CAN as an example in a kind of optional embodiment
The situation of voltage pulsation on vehicle is simulated, the supply voltage of controller to be tested (i.e. the first controller) can also be adjusted to extremely low
Pressure (such as:5V) or extra-high voltage (such as:18V or more than 18V), so as to simulate the failure of low-voltage power supply fluctuation.
Herein it should be noted that the specification that the voltage regulation limits of controller to be tested depend on system residing for equipment will
Ask and the pressure-resistant scope of controller to be tested.
Packet detection apparatus 20 includes:Message collecting device 101 and waveform display apparatus 102, message collecting device 101 with
First controller 30 is connected by bus, and for the 3rd message status of detection messages, the 3rd message status includes:Communication stops
Whether the time for only, recovering communication after erroneous frame and trouble shooting is less than the first preset time, waveform display apparatus 102 and the
One controller 30 is connected by bus, and whether the waveform for detection messages is normal.
In a kind of optional embodiment, still by taking CAN as an example, supplied by the detection of CAN message collecting device in low pressure
Under the failure environment of electro-mechanical wave, the communication condition of controller (i.e. the first controller) to be tested, whether communicate during electric voltage exception and stop
Only and whether wrong frame produces.Further, whether can also detect after voltage recovers normal can recover to communicate immediately
(time for recovering communication after trouble shooting is less than the first preset time), and it is to be tested by the observation of CAN waveform display apparatus
Whether the message waveform of controller is disturbed, available for unit testing and system testing.
Optionally, included according to the above embodiments of the present application, failure environment:Bus short circuit and bus broken circuit, in failure ring
In the case that border is bus short circuit and bus broken circuit, with reference to shown in Fig. 2, said system also includes:Second controller, for passing through
Bus sends message;Wherein,
Fault simulation equipment 10 includes:Bus jamming equipment 201, for setting any one following failure of bus generation:
Bus broken circuit or short circuit, bus and electric power disconnection or short circuit and bus and ground open circuit or short circuit.
In a kind of optional embodiment, still by taking CAN as an example, with reference to shown in Fig. 2, bus short circuit and bus broken circuit bag
Include it is following any one:It is short including CAN_H and power supply short circuit, CAN_H and ground short circuit, CAN_L and power supply short circuit, CAN_L and ground
Road, CAN_H open circuits, CAN_L open circuits and CAN_H and CAN_L short circuits.
Packet detection apparatus 20 includes:Message collecting device 101 and waveform display apparatus 102, message collecting device 101 with
First controller 30 is connected by bus, and for the 4th message status of detection messages, the 4th message status includes:Communication stops
Whether the time for only, recovering communication after erroneous frame and trouble shooting is less than the second preset time, waveform display apparatus 102 and the
One controller 30 is connected by bus, and whether the waveform for detection messages is normal.
In the above-described embodiments, still by taking CAN as an example, can be observed by CAN message collecting device in bus short circuit
In the environment of bus broken circuit, controller to be tested whether occur erroneous frame, communication stop, phenomenon of the failure eliminate after communicate whether
Situations such as recovering normal (whether the time for recovering communication after trouble shooting is less than the second preset time) immediately, available for unit
Test and system testing.
Optionally, according to the above embodiments of the present application, with reference to shown in Fig. 2, said system also includes:
One or more resistance 50, one end of bus is connected to, for the impedance of wiring harness as bus.
Specifically, above-mentioned terminal resistance is used for the impedance for adjusting bus.Defined in ISO 11898 and SAE J1939
Impedance of wiring harness rated value used in CAN is 120 Ω, and needs are in the both ends farthest of whole bus increase resistance
120 Ω or so terminal resistance, to avoid signal reflex, cause to influence signal quality.With reference to shown in Fig. 2, it is in the present embodiment
System resistance 1 and resistance 2 do not indicate that installation site, and resistance 1 and resistance 2 are apolegamy, can not install, can also install any one
It is individual, or all install, the installation number and resistance of resistance can determine according to the quantity of the terminal resistance in controller to be measured.
Embodiment 2
According to embodiments of the present invention, there is provided a kind of method of testing embodiment of bus is, it is necessary to illustrate, in accompanying drawing
The step of flow illustrates can perform in the computer system of such as one group computer executable instructions, although also,
Logical order is shown in flow chart, but in some cases, can be to perform shown different from order herein or retouch
The step of stating.
Fig. 3 is the flow chart of the method for testing of bus according to embodiments of the present invention, as shown in figure 3, this method is included such as
Lower step:
Step S302, simulate default failure environment.
Step S304, in the case where bus is in default failure environment, detect the message status of message in bus.
Step S306, according to message status, the fault freedom of the first controller is determined, wherein, the first controller is to be measured
Bus control unit.
From the foregoing, it will be observed that the above embodiments of the present application simulate default failure environment, default failure environment is in bus
In the case of, the message status of message in bus is detected, and according to message status, the fault freedom of the first controller is determined, its
In, the first controller is bus control unit to be measured.The survey that the test system of bus fault freedom in such scheme is provided
Test ring border is simple in construction, beneficial to reuse, can apply to CAN, and can simulate a variety of extreme failure shapes of vehicle
Condition, the unit testing and system rack test of single bus controller are carried out, single controller is understood and whole system exists
Performance under this variety of extreme fault state, assessment test is carried out to its fault freedom, so as to expose bus in advance in reality
The problem of being likely to occur in the vehicle application of border, and then the technology for solving the fault freedom that can not know bus in the prior art is asked
Topic.Further, additionally it is possible to when there is similar failure in equipment, fast positioning failure cause.
Optionally, included according to the above embodiments of the present application, failure environment:High network load, it is high net in failure environment
In the case that network loads, simulating default failure environment includes:Message is sent according to default cycle and quantity, and passes through adjustment
In network load to the pre-set interval of the cycle of message and quantity adjustment bus;The message status of message includes in detection bus:
The first message status of message in bus is detected, wherein, the first message status includes:Frame losing or cycle delay.
Optionally, included according to the above embodiments of the present application, failure environment:Network error frame, it is network in failure environment
In the case of erroneous frame, simulating default failure environment includes:The message sent by bus jamming equipment to second controller
Disturbed, with generation error frame;The message status of message includes in detection bus:The message status of message in bus is detected,
And whether the waveform of detection messages normal, wherein, message status include it is following any one:Frame losing, cycle delay, erroneous frame,
Content verification mistake and communication stop.
Optionally, included according to the above embodiments of the present application, failure environment:Low-voltage power supply fluctuates, and is low in failure environment
In the case of pressing supply variation, simulating default failure environment includes:Adjust the output voltage generation electricity of the power supply of bus
Pressure fluctuation, or the voltage value preset voltage value of the first controller of adjustment;The message status of message includes in detection bus:Inspection
The 3rd message status of message in bus is surveyed, and whether the waveform of detection messages is normal, wherein, the 3rd message status includes:It is logical
Whether the time for recovering communication after news stopping, erroneous frame and trouble shooting is less than the first preset time.
Optionally, included according to the above embodiments of the present application, failure environment:Bus short circuit and bus broken circuit, in failure ring
In the case that border is bus short circuit and bus broken circuit, simulating default failure environment includes:Set by bus jamming equipment total
Line open circuit or short circuit, bus and electric power disconnection or short circuit, bus and ground open circuit or short circuit;Detect the message status of message in bus
Including:The 4th message status of message in bus is detected, and whether the waveform of detection messages is normal, the 4th message status includes:
Whether the time for recovering communication after communication stopping, erroneous frame and trouble shooting is less than the second preset time.
Embodiment 3
According to embodiments of the present invention, there is provided a kind of storage medium, storage medium include the program of storage, wherein, in journey
Equipment performs the method for testing of any one bus in embodiment 2 where controlling storage medium during sort run.
Embodiment 4
According to embodiments of the present invention, there is provided a kind of processor, processor are used for operation program, wherein, when program is run
Perform the method for testing of any one bus in embodiment 2.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment
The part of detailed description, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, others can be passed through
Mode is realized.Wherein, device embodiment described above is only schematical, such as the division of the unit, Ke Yiwei
A kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module
Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On unit.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
Equipment can be personal computer, server or network equipment etc.) perform each embodiment methods described of the present invention whole or
Part steps.And foregoing storage medium includes:USB flash disk, read only memory ROM, Read-Only Memory), arbitrary access deposits
Reservoir RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with Jie of store program codes
Matter.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (13)
- A kind of 1. test system of bus, it is characterised in that including:Fault simulation equipment (10), for simulating default failure environment;Packet detection apparatus (20), it is connected with the fault simulation equipment (10), for being in described default in the bus In the case of failure environment, the message status of message in the bus is detected, and according to the message status, determine the first control The fault freedom of device (30), wherein, first controller (30) is bus control unit to be measured.
- 2. system according to claim 1, it is characterised in that the failure environment includes:High network load, in the event In the case of hindering environment for the high network load,The fault simulation equipment (10) includes:Message collecting device (101), for sending report according to default cycle and quantity Text, and by adjusting in the cycle of the message and network load to the pre-set interval of the quantity adjustment bus;The packet detection apparatus (20) includes:The message collecting device (101), for detecting of message in the bus One message status, wherein, first message status includes:Frame losing or cycle delay.
- 3. system according to claim 1, it is characterised in that the failure environment includes:Network error frame, in the event In the case of hindering environment for the network error frame, the system also includes:Second controller (40), for passing through the bus Message is sent, wherein,The fault simulation equipment (10) includes:Bus jamming equipment (201), it is connected with the second controller (40), is used for The message is disturbed, with generation error frame;The packet detection apparatus (20) includes:Message collecting device (101) and waveform display apparatus (102), the message are adopted Collection equipment (101) is connected with first controller (30) by the bus, for detecting the message status of the message, institute State message status include it is following any one:Frame losing, cycle delay, erroneous frame, content verification mistake and communication stop;The ripple Shape display device (102) is connected with first controller (30) by the bus, and the waveform for detecting the message is It is no normal.
- 4. system according to claim 1, it is characterised in that the failure environment includes:Low-voltage power supply fluctuates, described In the case that failure environment is low-voltage power supply fluctuation, the system also includes:Second controller (40), for by described Bus sends message;Wherein,The fault simulation equipment (10) includes:Power supply, it is connected with first controller (30), for output pulsation electricity Pressure is powered by first controller (30) of preset voltage value;The packet detection apparatus (20) includes:Message collecting device (101) and waveform display apparatus (102), the message are adopted Collection equipment (101) is connected with first controller (30) by the bus, for detecting the 3rd message shape of the message State, the 3rd message status include:Whether the time that communication stops, recovering communication after erroneous frame and trouble shooting is less than the One preset time, the waveform display apparatus (102) is connected with first controller (30) by the bus, for detecting Whether the waveform of the message is normal.
- 5. system according to claim 1, it is characterised in that the failure environment includes:Bus short circuit and bus broken circuit, In the case where the failure environment is the bus short circuit and bus broken circuit, the system also includes:Second controller (40), For sending message by the bus;Wherein,The fault simulation equipment (10) includes:Bus jamming equipment (201), for setting the bus generation following any one Kind failure:The bus broken circuit or short circuit, the bus and electric power disconnection or short circuit and the bus and ground open circuit or short circuit;The packet detection apparatus (20) includes:Message collecting device (101) and waveform display apparatus (102), the message are adopted Collection equipment (101) is connected with first controller (30) by the bus, for detecting the 4th message shape of the message State, the 4th message status include:Whether the time that communication stops, recovering communication after erroneous frame and trouble shooting is less than the Two preset times, the waveform display apparatus (102) is connected with first controller (30) by the bus, for detecting Whether the waveform of the message is normal.
- 6. system according to claim 1, it is characterised in that the system also includes:One or more resistance (50), one end of the bus is connected to, for the impedance of wiring harness as the bus.
- A kind of 7. method of testing of bus, it is characterised in that including:Simulate default failure environment;In the case where the bus is in the default failure environment, the message status of message in the bus is detected;According to the message status, the fault freedom of the first controller is determined, wherein, first controller is bus to be measured Controller.
- 8. according to the method for claim 7, it is characterised in that the failure environment includes:High network load, in the event In the case of hindering environment for the high network load,Simulating default failure environment includes:Message is sent according to default cycle and quantity, and by adjusting the message Cycle and quantity are adjusted in network load to the pre-set interval of the bus;Detecting the message status of message in the bus includes:The first message status of message in the bus is detected, wherein, institute Stating the first message status includes:Frame losing or cycle delay.
- 9. according to the method for claim 7, it is characterised in that the failure environment includes:Network error frame, in the event In the case of hindering environment for the network error frame,Simulating default failure environment includes:The message sent by bus jamming equipment to second controller disturbs, with Generation error frame;Detecting the message status of message in the bus includes:The message status of message in the bus is detected, and described in detection Whether the waveform of message normal, wherein, the message status include it is following any one:Frame losing, cycle delay, erroneous frame, interior Hold authentication error and communication stops.
- 10. according to the method for claim 7, it is characterised in that the failure environment includes:Low-voltage power supply fluctuates, in institute In the case of failure environment is stated as low-voltage power supply fluctuation,Simulating default failure environment includes:The output voltage generation voltage pulsation of the power supply of the bus is adjusted, or is adjusted The voltage value preset voltage value of whole first controller;Detecting the message status of message in the bus includes:The 3rd message status of message in the bus is detected, and is detected Whether the waveform of the message is normal, wherein, the 3rd message status includes:Communication stopping, erroneous frame and trouble shooting Whether the time for recovering communication afterwards is less than the first preset time.
- 11. according to the method for claim 7, it is characterised in that the failure environment includes:Bus short circuit and bus are broken Road, in the case where the failure environment is the bus short circuit and bus broken circuit,Simulating default failure environment includes:By bus jamming equipment set the bus broken circuit or short circuit, the bus with Electric power disconnection or short circuit, the bus and ground open circuit or short circuit;Detecting the message status of message in the bus includes:The 4th message status of message in the bus is detected, and is detected Whether the waveform of the message is normal, and the 4th message status includes:Recover after communication stopping, erroneous frame and trouble shooting Whether the time of communication is less than the second preset time.
- A kind of 12. storage medium, it is characterised in that the storage medium includes the program of storage, wherein, run in described program When control the storage medium where bus in equipment perform claim requirement 7 to 11 described in any one fault freedom test Method.
- A kind of 13. processor, it is characterised in that the processor is used for operation program, wherein, right of execution when described program is run Profit requires the fault freedom method of testing of the bus described in any one in 7 to 11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710320643.8A CN107491055A (en) | 2017-05-08 | 2017-05-08 | The test system and method for bus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710320643.8A CN107491055A (en) | 2017-05-08 | 2017-05-08 | The test system and method for bus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107491055A true CN107491055A (en) | 2017-12-19 |
Family
ID=60643369
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710320643.8A Pending CN107491055A (en) | 2017-05-08 | 2017-05-08 | The test system and method for bus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107491055A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108733523A (en) * | 2018-05-22 | 2018-11-02 | 安徽江淮汽车集团股份有限公司 | bus robustness test method and system |
CN109861884A (en) * | 2019-01-31 | 2019-06-07 | 深兰科技(上海)有限公司 | Communication performance test method, the device and system of automated driving system |
CN112835343A (en) * | 2021-01-04 | 2021-05-25 | 东风汽车股份有限公司 | Method for rapidly checking error frames of CAN (controller area network) bus of whole vehicle |
CN113467413A (en) * | 2021-06-16 | 2021-10-01 | 深圳市道通科技股份有限公司 | Method, detection equipment and detection system for detecting automobile fault |
CN115242609A (en) * | 2022-07-13 | 2022-10-25 | 东风越野车有限公司 | Whole vehicle CAN bus fault frame analysis method and device and vehicle |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202495957U (en) * | 2012-03-13 | 2012-10-17 | 中国汽车技术研究中心 | Alternating layer test system used for vehicle CAN network communication |
CN104460649A (en) * | 2014-10-21 | 2015-03-25 | 北京汽车股份有限公司 | Fault testing circuit and method |
CN105404568A (en) * | 2015-12-03 | 2016-03-16 | 广州汽车集团股份有限公司 | CAN bus test system and test method |
KR20160121039A (en) * | 2015-04-09 | 2016-10-19 | 한국전자통신연구원 | Apparatus and method for conformance testing of communication protocols |
CN106411641A (en) * | 2016-09-20 | 2017-02-15 | 宁波中车时代传感技术有限公司 | Method for automatically detecting Baud rate of CAN bus |
-
2017
- 2017-05-08 CN CN201710320643.8A patent/CN107491055A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202495957U (en) * | 2012-03-13 | 2012-10-17 | 中国汽车技术研究中心 | Alternating layer test system used for vehicle CAN network communication |
CN104460649A (en) * | 2014-10-21 | 2015-03-25 | 北京汽车股份有限公司 | Fault testing circuit and method |
KR20160121039A (en) * | 2015-04-09 | 2016-10-19 | 한국전자통신연구원 | Apparatus and method for conformance testing of communication protocols |
CN105404568A (en) * | 2015-12-03 | 2016-03-16 | 广州汽车集团股份有限公司 | CAN bus test system and test method |
CN106411641A (en) * | 2016-09-20 | 2017-02-15 | 宁波中车时代传感技术有限公司 | Method for automatically detecting Baud rate of CAN bus |
Non-Patent Citations (3)
Title |
---|
中国汽车工程学会编: "《2007中国汽车工程学会年会论文集》", 30 September 2007, 机械工业出版社 * |
屈敏: "《汽车车载网络技术原理与应用》", 31 March 2012 * |
徐传波: "《动车组网络技术》", 31 March 2014 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108733523A (en) * | 2018-05-22 | 2018-11-02 | 安徽江淮汽车集团股份有限公司 | bus robustness test method and system |
CN109861884A (en) * | 2019-01-31 | 2019-06-07 | 深兰科技(上海)有限公司 | Communication performance test method, the device and system of automated driving system |
CN112835343A (en) * | 2021-01-04 | 2021-05-25 | 东风汽车股份有限公司 | Method for rapidly checking error frames of CAN (controller area network) bus of whole vehicle |
CN113467413A (en) * | 2021-06-16 | 2021-10-01 | 深圳市道通科技股份有限公司 | Method, detection equipment and detection system for detecting automobile fault |
CN113467413B (en) * | 2021-06-16 | 2022-10-11 | 深圳市道通科技股份有限公司 | Method, detection equipment and detection system for detecting automobile fault |
CN115242609A (en) * | 2022-07-13 | 2022-10-25 | 东风越野车有限公司 | Whole vehicle CAN bus fault frame analysis method and device and vehicle |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107491055A (en) | The test system and method for bus | |
CN204595599U (en) | Based on the automobile electronic controller general-utility test platform of CANoe | |
CN110134115B (en) | Hardware-in-loop test platform and test method for new energy vehicle power battery management system | |
CN108900377A (en) | A kind of CAN network test macro and test method | |
CN108594792B (en) | Hardware-in-loop test system and test equipment for bidirectional vehicle-mounted charger | |
CN102565563B (en) | For robotization integrated test system and the method for automotive electronics electric system | |
CN106444712A (en) | CAN/LIN network interference automation test system | |
CN105095037A (en) | Wire card, backboard of wire card and wire card test method | |
CN111007840A (en) | Whole vehicle controller hardware-in-loop test platform and method | |
CN102929274A (en) | Test system, method and device for redundancy of in-vehicle network during ground offset | |
CN107592239A (en) | A kind of CAN network power supply changes automatic test device and its method | |
CN102981495A (en) | Multi-malfunction injection device for detecting aero-engine engine control unit (ECU) signal interface | |
CN104834591B (en) | Test the method for testing and system of AUTOSAR component softwares | |
CN107959599A (en) | A kind of Bus_Off fault test systems and test method | |
CN104914815A (en) | Processor monitoring method, device and system | |
CN103760895B (en) | Automobile-mounted charger of new energy control device hardware-in―the-loop test method | |
CN101174369A (en) | Fault diagnosis didactics and experimental device of vehicle CAN bus system | |
CN104865946A (en) | Electric vehicle hardware-in-loop testing method and system | |
CN106909134A (en) | A kind of satellite control system fault diagnosis method of testing | |
EP3700138A1 (en) | Monitoring lin nodes | |
CN109947078A (en) | Direct fault location unit and its board, real time fail method for implanting, device and equipment | |
CN105974909A (en) | Automatic configuration box for automobile electronic test circuit | |
CN207652457U (en) | A kind of Bus_Off fault test systems | |
CN106440553B (en) | The method and device of boss's machine is arranged in multi-gang air-conditioner automatically | |
CN101793934B (en) | Universal anti-drawing test equipment and test method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171219 |
|
RJ01 | Rejection of invention patent application after publication |