CN112000079B - CAN bus node simulation equipment, system and fault simulation method - Google Patents

CAN bus node simulation equipment, system and fault simulation method Download PDF

Info

Publication number
CN112000079B
CN112000079B CN202010836048.1A CN202010836048A CN112000079B CN 112000079 B CN112000079 B CN 112000079B CN 202010836048 A CN202010836048 A CN 202010836048A CN 112000079 B CN112000079 B CN 112000079B
Authority
CN
China
Prior art keywords
bus
module
embedded module
embedded
path
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010836048.1A
Other languages
Chinese (zh)
Other versions
CN112000079A (en
Inventor
施剑峰
霍晨晓
李月朋
郝金凤
程鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Institute of Electronic System Engineering
Original Assignee
Beijing Institute of Electronic System Engineering
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 Beijing Institute of Electronic System Engineering filed Critical Beijing Institute of Electronic System Engineering
Priority to CN202010836048.1A priority Critical patent/CN112000079B/en
Publication of CN112000079A publication Critical patent/CN112000079A/en
Application granted granted Critical
Publication of CN112000079B publication Critical patent/CN112000079B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/0259Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the response to fault detection
    • G05B23/0262Confirmation of fault detection, e.g. extra checks to confirm that a failure has indeed occurred
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

One embodiment of the invention discloses CAN bus node simulation equipment, a system and a fault simulation method. The apparatus comprises: the system comprises an embedded module, a switch module and a power supply adaptation module; each embedded module provides one path of network interface and two paths of CAN bus interfaces, and the one path of network interface is connected with the switch module; the two paths of CAN bus interfaces are divided into a first path of bus interface and a second path of bus interface, the first path of bus interface of each embedded module is connected and externally leads out a first group of CAN bus channels, and the second path of bus interface of each embedded module is connected and externally leads out a second group of CAN bus channels; the switch module is connected with the embedded module and the power supply adaptation module through the power supply interface and is led out through the main network interface; the power supply adaptation module converts the first voltage into a second voltage for all the embedded modules and the switch modules in the equipment to use, wherein the first voltage is greater than the second voltage.

Description

CAN bus node simulation equipment, system and fault simulation method
Technical Field
The invention relates to the field of CAN communication, in particular to CAN bus node simulation equipment, a CAN bus node simulation system and a CAN bus node fault simulation method.
Background
The CAN bus node simulation equipment is mainly used for carrying out transceiving simulation on each single-machine CAN bus of a cabin, and simulating various CAN bus faults by injecting or changing frame codes through upper computer remote software.
In the operation process of a certain cabin, emergency measures need to be made for various fault modes in the whole system, so that the fault modes need to be simulated and tested in the ground test process. The CAN bus node simulation equipment is used as a combination under a cabin body comprehensive test system, CAN simulate the fault mode of each single machine on a cabin body, and assists the comprehensive test system to complete the test of the fault mode of the cabin body.
Disclosure of Invention
The invention aims to provide CAN bus node simulation equipment capable of simulating any CAN equipment, which is mainly used for carrying out transceiving simulation on each single-machine CAN bus of a cabin and simulating various CAN bus faults by injecting or changing frame codes through upper computer remote software.
It is a further object of this invention to provide a CAN bus fault simulation system.
It is another object of the invention to provide a method for fault simulation using the system.
In order to achieve the purpose, the invention adopts the following technical scheme:
a CAN bus node emulation device, comprising: the system comprises an embedded module, a switch module and a power supply adaptation module;
each embedded module provides one path of network interface and two paths of CAN bus interfaces, and the one path of network interface is connected with the switch module; the two paths of CAN bus interfaces are divided into a first path of bus interface and a second path of bus interface, the first path of bus interface of each embedded module is connected and externally leads out a first group of CAN bus channels, and the second path of bus interface of each embedded module is connected and externally leads out a second group of CAN bus channels;
the switch module is connected with the embedded module and the power supply adaptation module through the power supply interface and is led out through the main network interface;
the power supply adaptation module converts the first voltage into a second voltage for all the embedded modules and the switch modules in the equipment to use, wherein the first voltage is greater than the second voltage.
In a specific embodiment, the equipment adopts four embedded modules which are inserted, and each embedded module simulates 1-2 pieces of equipment.
A CAN bus fault simulation system, the system comprising:
the CAN bus node simulation equipment is used for simulating the CAN bus node;
the upper computer is used for injecting or changing frame codes into the upper computer remote control software to simulate various CAN bus faults;
and the simulated equipment is used for receiving the instruction injected in the embedded module.
In a specific embodiment, the upper computer remote control software is developed based on CVI software and is used for remotely controlling, configuring, displaying and storing the equipment.
A method for simulating faults by using a CAN bus fault simulation system comprises the following steps:
software in an embedded module in the equipment is divided into four parts, wherein the software in each embedded module corresponds to one part of the embedded module, and the software is developed by adopting KeilMDK-ARM uVison 5;
after the software development is finished, the software is directly downloaded to an STM32 processor of the embedded module, and the software is automatically powered on;
the upper computer is connected with a network led out from the switch module through a main network interface, and frame codes are injected or changed in upper computer remote control software to simulate various CAN bus faults;
and the CAN bus network of the simulated equipment is connected with the embedded module, a first group of CAN bus channels and a second group of CAN bus channels are led out externally, and CAN instructions injected into the embedded module are received and fed back.
In one embodiment, each embedded module simulates 1-2 devices.
In a specific embodiment, each of the embedded modules is configured with an independent IP address.
In one embodiment, only one of the simulated devices is capable of responding to CAN commands from the embedded module's processor at a time.
The invention has the following beneficial effects:
the design method of the CAN bus node simulation equipment starts, and comprehensively considers the universal design requirements of multiple models. The equipment adopts an embedded module, a network switch and a power adapter integrated structure, software in the embedded module is developed by adopting Keil MDK-ARM uVison5, the software is directly downloaded into an STM32 processor of the embedded module after being developed, the power-on automatic operation is realized, the starting time is shorter, the system reliability is higher, and the CAN bus communication delay caused by the system software processing time is greatly reduced.
Drawings
The following describes embodiments of the present invention in further detail with reference to the accompanying drawings.
Fig. 1 shows a CAN bus fault simulation system schematic according to an embodiment of the present application.
Fig. 2 shows a schematic diagram of a CAN bus node simulation device according to an embodiment of the present application.
Fig. 3 shows a flow diagram of a method for fault simulation using a CAN bus fault simulation system according to an embodiment of the present application.
Fig. 4 shows a schematic diagram of an upper computer remote control software interface according to an embodiment of the present application.
Detailed Description
In order to more clearly illustrate the invention, the invention is further described below with reference to preferred embodiments and the accompanying drawings. Similar parts in the figures are denoted by the same reference numerals. It is to be understood by persons skilled in the art that the following detailed description is illustrative and not restrictive, and is not to be taken as limiting the scope of the invention.
Fig. 1 shows a CAN bus fault simulation system 1 according to an embodiment of the present application, including a host computer 10, a CAN bus node simulation device 20, and a simulated device 30.
The upper computer 10 is used for injecting or changing frame codes into the upper computer remote control software to simulate various CAN bus faults. Such as short circuits, open faults of the communication lines of the CAN bus system and node faults of the CAN bus system. Those skilled in the art will appreciate that other types of fault simulation may also be included.
In a specific embodiment, the upper computer remote control software is developed based on CVI software and is mainly used for remotely controlling, configuring, displaying and storing the CAN bus node simulation device 20.
CAN bus node simulation device 20 may be used to simulate any device of the CAN. Such as CAN device a and CAN device B. Those skilled in the art will appreciate that the CAN devices may also include any other CAN devices.
The simulated device 30 is configured to receive the instructions injected in the embedded module 205.
In one particular embodiment, as shown in fig. 2, the CAN bus node emulation device 20 includes an embedded module 205, a power adaptation module 210, and a switch module 215.
Each embedded module 205 provides one network interface and two CAN bus interfaces, one network interface is connected to the switch module, the two CAN bus interfaces are divided into a first bus interface and a second bus interface, the first bus interface of each embedded module is connected and externally leads out a first set of CAN bus channels, the second bus interface of each embedded module is connected and externally leads out a second set of CAN bus channels, for example, the two CAN bus interfaces of each embedded module are divided into two bus interfaces a and B, and externally leads out two sets of CAN bus channels a and B which are connected to the CAN bus network of the simulated device 30.
In a specific embodiment, the CAN bus node simulation device 20 is inserted with four embedded modules 205, and each embedded module 205 CAN simulate 1-2 devices.
In a specific embodiment, the power adapter module converts the first voltage into a second voltage for all the embedded modules and the switch modules inside the device to use, wherein the first voltage is greater than the second voltage. For example, the power adaptation module 210 converts the external 220V mains into 12V for all the embedded modules 205 and the switch module 215 inside the device.
In a specific embodiment, the switch module 215 is connected to the embedded module 205 and the power adapter module 210 through a power supply interface, and is externally led out through a main network interface, and the network interface is connected to the upper computer 1.
As shown in fig. 3, a method for simulating a fault by using a CAN bus fault simulation system 1 according to an embodiment of the present invention includes the following steps:
software in four embedded modules 205 in the CAN bus node simulation equipment 20 is divided into four parts, one piece of software is designed in each embedded module 205, and the software in the embedded modules 205 is developed by adopting KeilMDK-ARM uVison 5.
In a specific embodiment, each embedded module 205 simulates 1-2 devices, and each embedded module 205 is configured with an independent IP address.
In a specific embodiment, the software is directly downloaded to the STM32 processor of the embedded module 205 after being developed, and is automatically powered on.
In a specific embodiment, as shown in fig. 4, which is a schematic diagram of an interface of upper computer remote control software, the upper computer 1 injects or changes frame codes into the upper computer remote control software to simulate various CAN bus faults.
In a specific embodiment, the CAN bus network of the simulated device is connected with the embedded module, and a first group of CAN bus channels and a second group of CAN bus channels are led out externally, and the CAN bus network receives and feeds back a CAN instruction injected in the embedded module. For example, the CAN bus network of the simulated device 30 is connected to the embedded module 205 to externally extract two sets of CAN bus channels a and B, and receives and feeds back the CAN instruction injected in the embedded module 205.
In one embodiment, only one type of device being simulated at a time CAN respond to CAN commands from the processor of the embedded module 205.
The design method of the CAN bus node simulation equipment starts, and comprehensively considers the universal design requirements of multiple models. The equipment adopts an embedded module, a network switch and a power adapter integrated structure, software in the embedded module is developed by adopting Keil MDK-ARM uVison5, the software is directly downloaded into an STM32 processor of the embedded module after being developed, the power-on automatic operation is realized, the starting time is shorter, the system reliability is higher, and the CAN bus communication delay caused by the system software processing time is greatly reduced.
It should be understood that the above-mentioned embodiments of the present invention are only examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention, and it will be obvious to those skilled in the art that other variations or modifications may be made on the basis of the above description, and all embodiments may not be exhaustive, and all obvious variations or modifications may be included within the scope of the present invention.

Claims (4)

1. A method for simulating fault by CAN bus fault simulation system is characterized in that,
the CAN bus fault simulation system comprises CAN bus node simulation equipment, an upper computer and simulation equipment; wherein the content of the first and second substances,
the CAN bus node simulation equipment comprises: the system comprises an embedded module, a switch module and a power supply adaptation module;
each embedded module provides one path of network interface and two paths of CAN bus interfaces, and the one path of network interface is connected with the switch module; the two paths of CAN bus interfaces are divided into a first path of bus interface and a second path of bus interface, the first path of bus interface of each embedded module is connected and externally leads out a first group of CAN bus channels, and the second path of bus interface of each embedded module is connected and externally leads out a second group of CAN bus channels;
the switch module is connected with the embedded module and the power supply adaptation module through the power supply interface and is led out through the main network interface;
the power supply adaptation module converts the first voltage into a second voltage for all the embedded modules and the switch modules in the equipment to use, wherein the first voltage is greater than the second voltage;
the upper computer is used for injecting or changing frame codes into the upper computer remote control software to simulate various CAN bus faults;
the simulated equipment is used for receiving the instruction injected in the embedded module;
the fault simulation method comprises the following steps:
software in an embedded module in the CAN bus node simulation equipment is divided into four parts, wherein the software in each embedded module corresponds to one part of the embedded module, and the software is developed by adopting KeilMDK-ARM uVison 5;
after the software development is finished, the software is directly downloaded to an STM32 processor of the embedded module, and the software is automatically powered on;
the upper computer is connected with a network led out from the switch module through a main network interface, and frame codes are injected or changed in upper computer remote control software to simulate various CAN bus faults;
and the CAN bus network of the simulated equipment is connected with the embedded module, a first group of CAN bus channels and a second group of CAN bus channels are led out externally, and CAN instructions injected into the embedded module are received and fed back.
2. The method of claim 1, wherein each embedded module simulates 1-2 simulated devices.
3. The method of claim 1, wherein each embedded module is configured with a separate IP address.
4. The method of claim 1 wherein only one of the simulated devices is capable of responding to CAN commands from a processor of the embedded module at a time.
CN202010836048.1A 2020-08-19 2020-08-19 CAN bus node simulation equipment, system and fault simulation method Active CN112000079B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010836048.1A CN112000079B (en) 2020-08-19 2020-08-19 CAN bus node simulation equipment, system and fault simulation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010836048.1A CN112000079B (en) 2020-08-19 2020-08-19 CAN bus node simulation equipment, system and fault simulation method

Publications (2)

Publication Number Publication Date
CN112000079A CN112000079A (en) 2020-11-27
CN112000079B true CN112000079B (en) 2021-12-07

Family

ID=73472979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010836048.1A Active CN112000079B (en) 2020-08-19 2020-08-19 CAN bus node simulation equipment, system and fault simulation method

Country Status (1)

Country Link
CN (1) CN112000079B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000020123A (en) * 1998-06-30 2000-01-21 Nissin Electric Co Ltd Monitor picture display device
CN101930233A (en) * 2010-08-19 2010-12-29 宁波市鄞州雪利曼电子仪表有限公司 Debugging system and method for CAN (Controller Area Network) bus controller
CN101937232A (en) * 2010-09-07 2011-01-05 北京航空航天大学 Embedded real-time emulation and fault simulation system based on multiple data buses
CN202153255U (en) * 2011-06-23 2012-02-29 同济大学 Cell management system hardware-in-the-loop test device
CN102497375A (en) * 2011-12-13 2012-06-13 哈尔滨工业大学 Nios II soft-core based high-speed 1553B communication equipment simulator on missile
CN203643829U (en) * 2013-11-28 2014-06-11 北车大连电力牵引研发中心有限公司 Controller area network (CAN) bus testing device
CN106886214A (en) * 2017-03-28 2017-06-23 天津大学 CAN controller chip functions test system and method for testing
CN107450345A (en) * 2017-04-20 2017-12-08 广西师范大学 The on-line simulation system of CAN mode of operation
CN109298740A (en) * 2018-10-25 2019-02-01 中冶京诚工程技术有限公司 Piping lane control cabinet and piping lane control system
CN109388125A (en) * 2018-09-28 2019-02-26 惠州市德赛西威汽车电子股份有限公司 A kind of automobile instrument automatic fault detection system and method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000020123A (en) * 1998-06-30 2000-01-21 Nissin Electric Co Ltd Monitor picture display device
CN101930233A (en) * 2010-08-19 2010-12-29 宁波市鄞州雪利曼电子仪表有限公司 Debugging system and method for CAN (Controller Area Network) bus controller
CN101937232A (en) * 2010-09-07 2011-01-05 北京航空航天大学 Embedded real-time emulation and fault simulation system based on multiple data buses
CN202153255U (en) * 2011-06-23 2012-02-29 同济大学 Cell management system hardware-in-the-loop test device
CN102497375A (en) * 2011-12-13 2012-06-13 哈尔滨工业大学 Nios II soft-core based high-speed 1553B communication equipment simulator on missile
CN203643829U (en) * 2013-11-28 2014-06-11 北车大连电力牵引研发中心有限公司 Controller area network (CAN) bus testing device
CN106886214A (en) * 2017-03-28 2017-06-23 天津大学 CAN controller chip functions test system and method for testing
CN107450345A (en) * 2017-04-20 2017-12-08 广西师范大学 The on-line simulation system of CAN mode of operation
CN109388125A (en) * 2018-09-28 2019-02-26 惠州市德赛西威汽车电子股份有限公司 A kind of automobile instrument automatic fault detection system and method
CN109298740A (en) * 2018-10-25 2019-02-01 中冶京诚工程技术有限公司 Piping lane control cabinet and piping lane control system

Also Published As

Publication number Publication date
CN112000079A (en) 2020-11-27

Similar Documents

Publication Publication Date Title
CN106444420B (en) A kind of locomotive semi-hardware type simulation test system and method
CN102508755B (en) Device and method for simulating interface card hot-plugging
CN103925853B (en) A kind of carrier rocket ground testing system device
TW200610082A (en) Method and system for simulating a modular test system
CN206400286U (en) A kind of test system based on hardware in loop equipment
CN107678356A (en) Flexible direct current power transmission system nature imitation experiment device and method based on fpga chip platform
CN103699112A (en) Aviation electronic self-detection verification equipment based on IO (Input/Output) signal failure simulation, and verification method of equipment
CN205301911U (en) Embedded fault injection control system
CN105095037A (en) Wire card, backboard of wire card and wire card test method
CN208547675U (en) A kind of plug test module for USB Type-C interface
CN102508752A (en) Single chip microcomputer hardware simulator and simulation method for same
CN105511444B (en) Space camera outfield simulation test equipment
CN108595299A (en) The test system of terminal device
CN102591320A (en) Portable integrated tester for flight control system of helicopter
CN112000079B (en) CAN bus node simulation equipment, system and fault simulation method
CN114415572A (en) Integrated test, launch and control method and equipment for liquid carrier rocket
CN104268044A (en) Method and device for performing loop test on normal startup and shutdown of server system
CN108255145B (en) Test system and method for vehicle transmission control unit
CN104503259A (en) Universal programmable aircraft simulator system for launch control system
CN112114899A (en) Chip debugging system and debugger
CN100465904C (en) Emulator of contact type intelligent card with USB interface
CN204347152U (en) A kind of Multi-bus circuit board test diagnosis system
CN214729788U (en) Large and medium-sized fixed wing unmanned aerial vehicle ground simulation fault injection equipment
CN104575157A (en) Touching-type simulator for store management system
CN110647431B (en) Test box for board card and complete machine diagnosis test

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant