[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107491055A - The test system and method for bus - Google Patents

The test system and method for bus Download PDF

Info

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
fault
controller
environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710320643.8A
Other languages
Chinese (zh)
Inventor
程琰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Borgward Automotive China Co Ltd
Original Assignee
Borgward Automotive China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Borgward Automotive China Co Ltd filed Critical Borgward Automotive China Co Ltd
Priority to CN201710320643.8A priority Critical patent/CN107491055A/en
Publication of CN107491055A publication Critical patent/CN107491055A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric 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/0213Modular 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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)

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

Bus test system and method
Technical Field
The invention relates to the field of buses, in particular to a system and a method for testing a bus.
Background
With the development of automotive electronic technology and the more diversified functional requirements of people on automobiles, in order to realize complex control functions, more and more electronic devices and control systems are arranged on the automobiles, and the number of wire harnesses is increased. In order to satisfy high-speed data communication and to reduce the number and weight of wire harnesses, automobile buses are beginning to be widely used. At present, the applied network buses mainly include a LIN bus, a CAN bus, a Flexray bus, a Most widely applied CAN bus and the like. All functions of the whole vehicle are distributed to all controllers of the CAN bus according to development requirements, a large amount of data exchange and data transmission of the whole vehicle are completed by the CAN bus, and the bus bears a large amount of data and control information, so that the requirement on the stability and reliability of a whole vehicle network is extremely high, and the whole vehicle CAN be launched on the market after a large amount of actual test verification.
The requirements on the stability and reliability of a bus network are improved, the development process of the CAN bus is more detailed, a whole vehicle factory CAN make corresponding CAN bus specifications to restrict the communication behavior of each controller, and more attention is paid to each stage test of the CAN bus. It is first necessary to verify the communication of the controller without errors before verifying the controller function.
Because the environment of the whole vehicle is relatively complex, the virtual connection of the wire harness, the fluctuation of the power supply voltage, the electromagnetic interference and other factors CAN cause the communication abnormality of each controller, and further the CAN bus communication is influenced. Therefore, in the process of carrying out unit test and bench test on the controller, how to simulate the abnormal condition of the whole vehicle and expose the communication problem which may occur to the controller in advance is very important.
The existing bus test technology generally focuses on how to implement manual, tedious and repetitive test work by using automatic test equipment, and mainly tests whether the communication of each controller is normal. There is no corresponding test method for the fault tolerance of the controller under the extreme fault environment of the network.
Aiming at the problem that the fault-tolerant performance of the bus is unclear in the prior art, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a system and a method for testing a bus, which are used for at least solving the technical problem that the fault tolerance of the bus cannot be known in the prior art.
According to an aspect of an embodiment of the present invention, there is provided a test system of a bus, including: the fault simulation equipment is used for simulating a preset fault environment; and the message detection equipment is connected with the fault simulation equipment and is used for detecting the message state of the message in the bus under the condition that the bus is in a preset fault environment, and determining the fault tolerance of the first controller according to the message state, wherein the first controller is the bus controller to be detected.
Further, the fault environment includes: high network load, in case the fault environment is high network load, the fault simulation device comprises: the message acquisition equipment is used for sending messages according to a preset period and quantity and adjusting the network load of the bus to be within a preset interval by adjusting the period and the quantity of the messages; the message detection device comprises: the message acquisition equipment is used for detecting a first message state of a message in a bus, wherein the first message state comprises: frame loss or periodic delay.
Further, the fault environment includes: the system further includes, in the case that the failure environment is a network error frame: a second controller, configured to send a message through a bus, where the fault simulation apparatus includes: the bus interference equipment is connected with the second controller and used for interfering the message to generate an error frame; the message detection device comprises: the device comprises a message acquisition device and a waveform display device, wherein the message acquisition device is connected with a first controller through a bus and is used for detecting the message state of a message, and the message state comprises any one of the following: frame loss, period delay, error frame, content verification error and communication stop; the waveform display device is connected with the first controller through a bus and used for detecting whether the waveform of the message is normal or not.
Further, the fault environment includes: the low voltage power supply fluctuates, and under the condition that the fault environment fluctuates for the low voltage power supply, the system further comprises: the second controller is used for sending messages through the bus; wherein, the fault simulation equipment includes: the power supply is connected with the first controller and used for outputting fluctuating voltage or supplying power to the first controller by using a preset voltage value; the message detection device comprises: the message acquisition equipment is connected with the first controller through a bus and used for detecting a third message state of the message, and the third message state comprises: and the waveform display equipment is connected with the first controller through a bus and is used for detecting whether the waveform of the message is normal or not.
Further, the fault environment includes: the bus short circuit and the bus open circuit, under the circumstances that the fault environment is bus short circuit and bus open circuit, the system still includes: the second controller is used for sending messages through the bus; wherein, the fault simulation equipment includes: the bus interference device is used for setting the bus to generate any one of the following faults: the bus is open or short-circuited, the bus and the power supply are open or short-circuited, and the bus and the ground are open or short-circuited; the message detection device comprises: the message acquisition equipment is connected with the first controller through a bus and used for detecting a fourth message state of the message, and the fourth message state comprises: and the waveform display equipment is connected with the first controller through a bus and is used for detecting whether the waveform of the message is normal or not.
Further, the system further comprises: and one or more resistors connected to one end of the bus for acting as the bus's harness impedance.
According to another aspect of the embodiments of the present invention, there is also provided a method for testing a bus, including: simulating a preset fault environment; detecting the message state of a message in a bus under the condition that the bus is in a preset fault environment; and determining the fault tolerance of the first controller according to the message state, wherein the first controller is a bus controller to be tested.
Further, in the case that the fault environment is a high network load, simulating the preset fault environment includes: sending messages according to a preset period and the number, and adjusting the network load of a bus to be within a preset interval by adjusting the period and the number of the messages; detecting the message state of the message in the bus comprises the following steps: detecting a first message state of a message in a bus, wherein the first message state comprises: frame loss or periodic delay.
Further, in the case that the failure environment is a network error frame, simulating a preset failure environment includes: interfering the message sent by the second controller through the bus interference equipment to generate an error frame; detecting the message state of the message in the bus comprises the following steps: detecting the message state of the message in the bus, and detecting whether the waveform of the message is normal, wherein the message state comprises any one of the following conditions: frame loss, cycle delay, frame error, content verification error, and communication stop.
Further, in the case where the fault environment is a low-voltage power supply fluctuation, simulating the preset fault environment includes: adjusting the output voltage of a power supply of the bus to generate voltage fluctuation, or adjusting the power supply voltage value of the first controller to preset a voltage value; detecting the message state of the message in the bus comprises the following steps: detecting a third message state of the message in the bus, and detecting whether the waveform of the message is normal, wherein the third message state comprises: whether the time for communication stopping, error frames and communication recovery after fault removal is less than a first preset time or not.
Further, in the case that the fault environment is a bus short circuit and a bus open circuit, simulating the preset fault environment includes: the bus interference equipment is used for setting bus open circuit or short circuit, bus and power supply open circuit or short circuit, and bus and ground open circuit or short circuit; detecting the message state of the message in the bus comprises the following steps: detecting a fourth message state of the message in the bus, and detecting whether the waveform of the message is normal, wherein the fourth message state comprises: whether the time for communication stopping, error frames and communication recovery after fault removal is less than second preset time.
The embodiment of the invention provides a storage medium, which comprises a stored program, wherein when the program runs, a device where the storage medium is located is controlled to execute the fault tolerance performance test method of the bus.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program executes the fault tolerance performance test method of the bus when running.
In the embodiment of the invention, a preset fault environment is simulated through a fault simulation device, the message state of a message in a bus is detected through a message detection device connected with the fault simulation device under the condition that the bus is in the preset fault environment, and the fault tolerance of a first controller is determined according to the message state, wherein the first controller is a bus controller to be detected. The bus fault tolerance testing method provided by the scheme CAN be applied to a CAN bus, CAN simulate various extreme fault conditions of a whole vehicle, performs unit testing and system rack testing on a single bus controller, knows performances of the single controller and the whole system under the various extreme fault conditions, and performs background testing on the fault tolerance of the single controller and the whole system, so that the problem that the bus CAN appear in actual vehicle application CAN be exposed in advance, and the technical problem that the fault tolerance of the bus cannot be known in the prior art is solved. Further, when similar faults occur in the equipment, the fault reason can be quickly located.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a block diagram of a test system for a bus according to an embodiment of the invention;
FIG. 2 is a schematic diagram of an alternative bus test system according to an embodiment of the present invention; and
fig. 3 is a flowchart of a method of testing a bus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to an embodiment of the present invention, an embodiment of a test system for a bus is provided, and fig. 1 is a structural diagram of a test system for a bus according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
and the fault simulation device 10 is used for simulating a preset fault environment.
Specifically, the simulated fault environment may include: high network load, network error frames, low voltage supply fluctuations, and bus shorts and bus opens.
Here, the fault simulation device is not limited to any one type of device, and a device capable of simulating a fault environment for the bus is the above-described fault simulation device. And different fault environments can be simulated by different fault simulation equipment.
The message detection device 20 is connected to the fault simulation device 10, and configured to detect a message state of a message in the bus when the bus is in a preset fault environment, and determine the fault tolerance of the first controller 30 according to the message state, where the first controller 30 is a bus controller to be tested.
In particular, the first controller is one or more bus controllers of the bus, and the fault tolerance of the bus is used for characterizing that the bus can still normally operate under the condition of a fault. The message state of the message can be detected through the message detection equipment and/or the waveform display equipment, the message state can be divided into normal and abnormal, the abnormal message state can be divided into various conditions, the abnormal message state is determined when any abnormal condition is detected, and the bus can be determined to be in the abnormal state, so that the bus can not normally operate under the fault environment.
Regarding the bus, which is a public communication trunk line for transmitting information in each functional component, a large amount of data exchange and data transmission are completed by the bus, taking the entire vehicle system as an example, when the entire vehicle system fails, if the bus can still normally operate, the message transmitted through the bus is not abnormal, and the state of the message is normal, and if the bus cannot normally operate due to the influence of the failure in the entire vehicle system, the message transmitted through the bus is abnormal. The above scheme determines whether the bus can normally operate under the condition that the system has a fault by detecting the state of the message, namely the fault tolerance of the bus.
In an alternative embodiment, simulating a fault environment may include: high network load, network error frames, low voltage power supply fluctuations, and bus shorts and bus opens are examples, and the fault tolerance of the bus may be represented by table one based on the test results obtained.
Watch 1
Type of failure Message status Detection ofResults
High network load Is normal Is normal
Network error frame Error frame Abnormality (S)
Low voltage supply ripple Missing frames Abnormality (S)
Bus short circuit Without stopping communication Abnormality (S)
Bus break Is normal Is normal
As can be seen from the above, in the above embodiments of the present application, the fault simulation device simulates a preset fault environment, the message detection device connected to the fault simulation device detects the message state of the message in the bus when the bus is in the preset fault environment, and determines the fault tolerance of the first controller according to the message state, where the first controller is a bus controller to be tested. The test environment that the test system of bus fault tolerance performance among the above-mentioned scheme provided simple structure does benefit to used repeatedly, CAN be applied to the CAN bus, and CAN simulate the multiple extreme fault situation of whole car, carry out the unit test and the system rack test of single bus controller, know the performance of single controller and entire system under these multiple extreme fault situations, carry out the end test to its fault tolerance performance, thereby CAN expose the problem that the bus probably appears in the real vehicle application in advance, and then solved prior art and CAN not know the technical problem of the fault tolerance performance of bus. Further, when similar faults occur in the equipment, the fault reason can be quickly located.
It should be noted here that the testing of the bus mainly includes unit testing, system testing, and real vehicle testing, wherein the first two tests can be performed in a laboratory environment. The unit test is to verify whether a single controller meets the bus specification requirement, and only one controller to be tested is tested during the test, so as to conveniently position the controller. The system test focuses on whether a plurality of controllers in the whole bus network CAN communicate without errors, and the controller to be tested during the test CAN be a controller on an actual vehicle (namely a plurality of first controllers in the system in the figure) which is put together, so that the CAN bus communication condition on the actual vehicle CAN be simulated more truly.
The built test environment can simulate various extreme fault conditions of the whole vehicle, and mainly comprises the following steps: the network load rate is high, error frames exist on the network, low-voltage power supply fluctuation of the controller to be tested, and short circuit and open circuit of the bus are realized. In addition, the first controller having the diagnostic function (i.e., the controller under test) can also test whether a failure occurs in the controller under test in various extreme failure network environments by reading DTCs (fault codes).
Optionally, according to the above embodiment of the present application, the fault environment includes: high network load, as shown in connection with fig. 2, in case of a fault environment with high network load,
the fault simulation apparatus 10 includes: the message collection device 101 is configured to send messages according to a preset period and number, and adjust the network load of the bus to a preset interval by adjusting the period and number of the messages.
In an optional embodiment, taking a CAN bus as an example, the message transmission CAN be simulated through a CAN message collection device, and the network load CAN be adjusted to be between 0% and 100% of the actual load by adjusting the number and the transmission cycle of the simulated transmission messages, so as to simulate the fault environment of a high network load.
The message detection apparatus 20 includes: the message collection device 101 is configured to detect a first message state of a message in a bus, where the first message state includes: frame loss or periodic delay.
In an optional embodiment, still taking the CAN bus as an example, the CAN message collection device has an analysis ripple window, and CAN detect whether the message has frame loss, message period delay, and the like through the CAN message collection device.
Optionally, according to the above embodiment of the present application, the fault environment includes: in the case that the failure environment is a network error frame, as shown in fig. 2, the system further includes: a second controller 40 for sending messages over the bus, wherein,
the fault simulation apparatus 10 includes: and the bus interference device 201 is connected with the second controller 40 and is used for interfering the message to generate an error frame.
Specifically, the second controller may be an ECU (electronic control unit). In an optional embodiment, still taking the CAN bus as an example, the message sent by the ECU is continuously interfered by the CAN bus interfering device, so that the message sent by the ECU generates an error, and further, when the ECU continuously generates a transmission error for a long time, the ECU is controlled not to close its output to the CAN transceiver, that is, the error frame CAN be continuously sent on the bus with a high frequency, so as to simulate the fault environment of the network error frame.
The message detection apparatus 20 includes: the message acquisition device 101 is connected with the first controller 30 through a bus, and is configured to detect a message state of a message, where the message state includes any one of the following: frame loss, period delay, error frame, content verification error and communication stop; the waveform display device 102 is connected to the first controller 30 via a bus, and is configured to detect whether a waveform of a message is normal.
In the embodiment, the message collection device can be used for testing the fault tolerance of the bus controller to be tested under the condition that a large number of error frames with fast frequency continuously exist on the network. In an optional embodiment, still taking the CAN bus as an example, the CAN message acquisition device is used to observe whether problems such as frame loss, message period delay, error frame, message content verification error, communication stop and the like occur, and the CAN waveform display device (for example, an oscilloscope) is used to detect whether the message waveform of the controller to be tested is interfered, so that the CAN message acquisition device CAN be used for unit testing and system testing.
Optionally, according to the above embodiment of the present application, the fault environment includes: the system further includes, in the case that the fault environment is low-voltage power supply fluctuation, as shown in fig. 2: a second controller 40 for transmitting a message through a bus; wherein,
the fault simulation apparatus 10 includes: and the power supply is connected with the first controller 30 and used for outputting fluctuating voltage or supplying power to the first controller 30 by using a preset voltage value.
In an optional embodiment, still taking the CAN bus as an example, by adjusting the output voltage of the power supply, the situation of voltage fluctuation on the whole vehicle CAN be simulated, and the power supply voltage of the controller to be tested (i.e., the first controller) CAN be adjusted to be extremely low voltage (e.g., 5V) or extremely high voltage (e.g., 18V or more than 18V), so as to simulate the fault of low-voltage power supply fluctuation.
It should be noted here that the voltage regulation range of the controller to be tested depends on the specification requirements of the system where the device is located and the withstand voltage range of the controller to be tested.
The message detection apparatus 20 includes: the message acquisition device 101 is connected to the first controller 30 through a bus, and is configured to detect a third message state of the message, where the third message state includes: whether the time for communication stop, error frames and communication recovery after failure removal is less than a first preset time or not is determined, and the waveform display device 102 is connected with the first controller 30 through a bus and used for detecting whether the waveform of the message is normal or not.
In an optional embodiment, still taking the CAN bus as an example, the CAN message collection device detects the communication condition of the controller to be tested (i.e., the first controller) in the fault environment of low-voltage power supply fluctuation, whether the communication is stopped when the voltage is abnormal, and whether an error frame is generated. Furthermore, whether the communication CAN be immediately recovered after the voltage is recovered to be normal or not CAN be detected (namely the time for recovering the communication after the fault is removed is less than the first preset time), whether the message waveform of the controller to be tested is interfered or not is observed through the CAN waveform display equipment, and the method CAN be used for unit testing and system testing.
Optionally, according to the above embodiment of the present application, the fault environment includes: in the case of a bus short circuit and a bus open circuit in the fault environment, as shown in fig. 2, the system further includes: the second controller is used for sending messages through the bus; wherein,
the fault simulation apparatus 10 includes: the bus interference device 201 is used for setting the bus to generate any one of the following faults: bus open or short circuit, bus to power open or short circuit and bus to ground open or short circuit.
In an alternative embodiment, still taking the CAN bus as an example, and referring to fig. 2, the bus short circuit and the bus open circuit include any one of the following: including CAN _ H and power short circuit, CAN _ H and ground short circuit, CAN _ L and power short circuit, CAN _ L and ground short circuit, CAN _ H open circuit, CAN _ L open circuit and CAN _ H and CAN _ L short circuit.
The message detection apparatus 20 includes: the message acquisition device 101 is connected to the first controller 30 through a bus, and is configured to detect a fourth message state of the message, where the fourth message state includes: whether the time for communication stop, error frames and communication recovery after failure removal is less than a second preset time or not, and the waveform display device 102 is connected with the first controller 30 through a bus and used for detecting whether the waveform of the message is normal or not.
In the above embodiment, still taking the CAN bus as an example, the CAN message collecting device may observe whether the controller to be tested has an error frame, stops communication, and immediately recovers communication after the fault phenomenon is eliminated (i.e., whether the time for recovering communication after the fault is eliminated is less than the second preset time) in the environment of the bus short circuit and the bus open circuit, and may be used for unit testing and system testing.
Optionally, according to the above embodiment of the present application, as shown in fig. 2, the system further includes:
one or more resistors 50 are connected to one end of the bus for acting as a harness impedance for the bus.
Specifically, the termination resistor is used to adjust the impedance of the bus. ISO 11898 and SAE J1939 both stipulate that the rated value of the impedance of the wire harness used by the CAN bus is 120 Ω, and it is necessary to add a termination resistor with a resistance value of about 120 Ω at the farthest position of the two ends of the whole bus to avoid signal reflection and influence on signal quality. Referring to fig. 2, in this embodiment, the system resistors 1 and 2 do not represent installation positions, and the system resistors 1 and 2 are optional, may not be installed, may be installed at any one, or may be installed at both, and the installation number and the resistance value of the resistors may be determined according to the number of the terminal resistors in the controller to be tested.
Example 2
In accordance with an embodiment of the present invention, there is provided a method of testing a bus, where the steps illustrated in the flowchart of the figure may be performed in a computer system, such as a set of computer-executable instructions, and where a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that presented herein.
Fig. 3 is a flowchart of a method for testing a bus according to an embodiment of the present invention, as shown in fig. 3, the method including the steps of:
step S302, a preset fault environment is simulated.
Step S304, under the condition that the bus is in the preset fault environment, the message state of the message in the bus is detected.
Step S306, determining the fault tolerance of the first controller according to the message state, wherein the first controller is a bus controller to be tested.
As can be seen from the above, in the above embodiments of the present application, a preset fault environment is simulated, and under the condition that the bus is in the preset fault environment, the message state of the message in the bus is detected, and the fault tolerance of the first controller is determined according to the message state, where the first controller is a bus controller to be detected. The test environment that the test system of bus fault tolerance performance among the above-mentioned scheme provided simple structure does benefit to used repeatedly, CAN be applied to the CAN bus, and CAN simulate the multiple extreme fault situation of whole car, carry out the unit test and the system rack test of single bus controller, know the performance of single controller and entire system under these multiple extreme fault situations, carry out the end test to its fault tolerance performance, thereby CAN expose the problem that the bus probably appears in the real vehicle application in advance, and then solved prior art and CAN not know the technical problem of the fault tolerance performance of bus. Further, when similar faults occur in the equipment, the fault reason can be quickly located.
Optionally, according to the above embodiment of the present application, the fault environment includes: the high network load, under the condition that the fault environment is the high network load, the simulation of the preset fault environment comprises: sending messages according to a preset period and the number, and adjusting the network load of a bus to be within a preset interval by adjusting the period and the number of the messages; detecting the message state of the message in the bus comprises the following steps: detecting a first message state of a message in a bus, wherein the first message state comprises: frame loss or periodic delay.
Optionally, according to the above embodiment of the present application, the fault environment includes: the network error frame, under the condition that the fault environment is the network error frame, simulating the preset fault environment includes: interfering the message sent by the second controller through the bus interference equipment to generate an error frame; detecting the message state of the message in the bus comprises the following steps: detecting the message state of the message in the bus, and detecting whether the waveform of the message is normal, wherein the message state comprises any one of the following conditions: frame loss, cycle delay, frame error, content verification error, and communication stop.
Optionally, according to the above embodiment of the present application, the fault environment includes: the low voltage power supply is undulant, and under the undulant condition of fault environment for the low voltage power supply, the simulation is preset fault environment and is included: adjusting the output voltage of a power supply of the bus to generate voltage fluctuation, or adjusting the power supply voltage value of the first controller to preset a voltage value; detecting the message state of the message in the bus comprises the following steps: detecting a third message state of the message in the bus, and detecting whether the waveform of the message is normal, wherein the third message state comprises: whether the time for communication stopping, error frames and communication recovery after fault removal is less than a first preset time or not.
Optionally, according to the above embodiment of the present application, the fault environment includes: under the condition that the fault environment is the bus short circuit and the bus open circuit, simulating the preset fault environment comprises the following steps: the bus interference equipment is used for setting bus open circuit or short circuit, bus and power supply open circuit or short circuit, and bus and ground open circuit or short circuit; detecting the message state of the message in the bus comprises the following steps: detecting a fourth message state of the message in the bus, and detecting whether the waveform of the message is normal, wherein the fourth message state comprises: whether the time for communication stopping, error frames and communication recovery after fault removal is less than second preset time.
Example 3
According to an embodiment of the present invention, a storage medium is provided, where the storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute the method for testing the bus in embodiment 2.
Example 4
According to an embodiment of the present invention, there is provided a processor, where the processor is configured to execute a program, where the program executes a method for testing a bus according to any one of embodiments 2 when the program is executed.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be substantially or partially contributed by the prior art, or all or part of the technical solution may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device to be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a Read-Only Memory ROM, a Read-Only Memory), a Random Access Memory RAM, a Random Access Memory), a removable hard disk, a magnetic disk, or an optical disk.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (13)

1. A system for testing a bus, comprising:
a fault simulation device (10) for simulating a preset fault environment;
and the message detection equipment (20) is connected with the fault simulation equipment (10) and is used for detecting the message state of the message in the bus under the condition that the bus is in the preset fault environment, and determining the fault tolerance of the first controller (30) according to the message state, wherein the first controller (30) is a bus controller to be detected.
2. The system of claim 1, wherein the fault environment comprises: a high network load, in case the failure environment is the high network load,
the fault simulation device (10) comprises: the message acquisition equipment (101) is used for sending messages according to a preset period and number and adjusting the network load of the bus to a preset interval by adjusting the period and the number of the messages;
the message detection device (20) comprises: the message collection device (101) is configured to detect a first message state of a message in the bus, where the first message state includes: frame loss or periodic delay.
3. The system of claim 1, wherein the fault environment comprises: a network error frame, wherein when the failure environment is the network error frame, the system further comprises: a second controller (40) for sending messages over the bus, wherein,
the fault simulation device (10) comprises: the bus interference equipment (201) is connected with the second controller (40) and is used for interfering the message to generate an error frame;
the message detection device (20) comprises: the message acquisition device (101) is connected with the first controller (30) through the bus, and is used for detecting the message state of the message, wherein the message state comprises any one of the following: frame loss, period delay, error frame, content verification error and communication stop; the waveform display device (102) is connected with the first controller (30) through the bus and used for detecting whether the waveform of the message is normal or not.
4. The system of claim 1, wherein the fault environment comprises: a low voltage supply ripple, the system further comprising, in the event that the fault environment is the low voltage supply ripple: a second controller (40) for sending messages over the bus; wherein,
the fault simulation device (10) comprises: the power supply is connected with the first controller (30) and used for outputting fluctuating voltage or supplying power to the first controller (30) by using a preset voltage value;
the message detection device (20) comprises: the message acquisition device (101) is connected with the first controller (30) through the bus, and is used for detecting a third message state of the message, wherein the third message state comprises: whether the time for communication stopping, error frames and communication recovery after failure removal is less than a first preset time or not is judged, and the waveform display device (102) is connected with the first controller (30) through the bus and used for detecting whether the waveform of the message is normal or not.
5. The system of claim 1, wherein the fault environment comprises: a bus short and a bus open, in which case the fault environment is the bus short and the bus open, the system further comprising: a second controller (40) for sending messages over the bus; wherein,
the fault simulation device (10) comprises: a bus interference device (201) for setting the bus to generate any one of the following faults: the bus is open or short-circuited, the bus is open or short-circuited with a power supply, and the bus is open or short-circuited with ground;
the message detection device (20) comprises: the message acquisition device (101) is connected with the first controller (30) through the bus, and is used for detecting a fourth message state of the message, wherein the fourth message state comprises: whether the time for communication stopping, error frames and communication recovery after failure removal is less than second preset time or not is judged, and the waveform display device (102) is connected with the first controller (30) through the bus and used for detecting whether the waveform of the message is normal or not.
6. The system of claim 1, further comprising:
one or more resistors (50) connected to one end of the bus for acting as a harness impedance of the bus.
7. A method for testing a bus, comprising:
simulating a preset fault environment;
detecting the message state of the message in the bus under the condition that the bus is in the preset fault environment;
and determining the fault tolerance of a first controller according to the message state, wherein the first controller is a bus controller to be tested.
8. The method of claim 7, wherein the fault environment comprises: a high network load, in case the failure environment is the high network load,
simulating a predetermined fault environment includes: sending messages according to a preset period and the number, and adjusting the network load of the bus to a preset interval by adjusting the period and the number of the messages;
detecting the message state of the message in the bus comprises: detecting a first message state of a message in the bus, wherein the first message state comprises: frame loss or periodic delay.
9. The method of claim 7, wherein the fault environment comprises: a network error frame, in case the failure environment is the network error frame,
simulating a predetermined fault environment includes: interfering the message sent by the second controller through the bus interference equipment to generate an error frame;
detecting the message state of the message in the bus comprises: detecting the message state of the message in the bus, and detecting whether the waveform of the message is normal, wherein the message state comprises any one of the following conditions: frame loss, cycle delay, error frame, content validation error, and communication stop.
10. The method of claim 7, wherein the fault environment comprises: a low voltage supply ripple, in the event that the fault environment is the low voltage supply ripple,
simulating a predetermined fault environment includes: adjusting output voltage of a power supply of the bus to generate voltage fluctuation, or adjusting a power supply voltage value of the first controller to preset a voltage value;
detecting the message state of the message in the bus comprises: detecting a third message state of the messages in the bus, and detecting whether the waveform of the messages is normal, wherein the third message state comprises: whether the time for communication stopping, error frames and communication recovery after fault removal is less than a first preset time or not.
11. The method of claim 7, wherein the fault environment comprises: a bus short and a bus open, in which case the fault environment is the bus short and the bus open,
simulating a predetermined fault environment includes: setting the bus open circuit or short circuit, the bus and power supply open circuit or short circuit, and the bus and ground open circuit or short circuit through bus interference equipment;
detecting the message state of the message in the bus comprises: detecting a fourth message state of the messages in the bus, and detecting whether the waveform of the messages is normal, wherein the fourth message state comprises: whether the time for communication stopping, error frames and communication recovery after fault removal is less than second preset time.
12. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, the apparatus on which the storage medium is located is controlled to execute the fault tolerance performance test method of the bus according to any one of claims 7 to 11.
13. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the method for testing the fault tolerance of a bus according to any one of claims 7 to 11 when running.
CN201710320643.8A 2017-05-08 2017-05-08 The test system and method for bus Pending CN107491055A (en)

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 (7)

* Cited by examiner, † Cited by third party
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
CN114779748A (en) * 2022-05-27 2022-07-22 重庆长安新能源汽车科技有限公司 ECU communication voltage range test system and test method
CN115242609A (en) * 2022-07-13 2022-10-25 东风越野车有限公司 Whole vehicle CAN bus fault frame analysis method and device and vehicle
CN117519115A (en) * 2024-01-04 2024-02-06 质子汽车科技有限公司 CAN network test equipment and method of electric control equipment

Citations (5)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
中国汽车工程学会编: "《2007中国汽车工程学会年会论文集》", 30 September 2007, 机械工业出版社 *
屈敏: "《汽车车载网络技术原理与应用》", 31 March 2012 *
徐传波: "《动车组网络技术》", 31 March 2014 *

Cited By (9)

* Cited by examiner, † Cited by third party
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
CN114779748A (en) * 2022-05-27 2022-07-22 重庆长安新能源汽车科技有限公司 ECU communication voltage range test system and test method
CN115242609A (en) * 2022-07-13 2022-10-25 东风越野车有限公司 Whole vehicle CAN bus fault frame analysis method and device and vehicle
CN115242609B (en) * 2022-07-13 2023-10-20 东风越野车有限公司 Whole vehicle CAN bus fault frame analysis method and device and vehicle
CN117519115A (en) * 2024-01-04 2024-02-06 质子汽车科技有限公司 CAN network test equipment and method of electric control equipment

Similar Documents

Publication Publication Date Title
CN107491055A (en) The test system and method for bus
CN107222362B (en) Automatic test platform for finished vehicle CAN network and optimization method thereof
CN104579816B (en) Diagnose the method and system of vehicle network
CN107959599A (en) A kind of Bus_Off fault test systems and test method
CN109733238B (en) Fault detection method, device, storage medium and processor
CN103439961A (en) Automobile electronic control unit diagnostic function test method and system
EP3550769B1 (en) Communication circuitry integrity assessment
CN101308192B (en) Function test device and method for central distribution box for car
US11283646B2 (en) Monitoring local interconnect network (LIN) nodes
CN109747569B (en) ECU wire harness control method, system, equipment and computer readable storage medium
CN109522296B (en) Engine ECU data matching calibration method and device
CN114062806B (en) Vehicle testing method and device
CN109147861A (en) A kind of hard disk is in level detecting apparatus and method
CN112307647A (en) Charging pile communication interruption testing method and device, storage medium and processor
CN219392518U (en) CAN bus fault injection test system
CN207652457U (en) A kind of Bus_Off fault test systems
CN116448158A (en) Method and device for testing combination instrument in vehicle and electronic device
JP2024507487A (en) Communication link operating characteristics test system and test method
KR101552713B1 (en) lin conditioning unit and lin network test apparatus using the same
CN210534240U (en) Vehicle-mounted antenna self-diagnosis circuit and vehicle-mounted electronic equipment
Novak et al. Automated testing of electronic control units compatibility in vehicle CAN networks
Varshney et al. Automated Testing of Faults of an Automotive System
CN117170350B (en) Service testing method and device, electronic equipment and storage medium
CN117896297A (en) Test system and test method for vehicle-mounted communication protocol
CN116679683A (en) Test method and device for vehicle fault diagnosis, electronic equipment and storage medium

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