CN103428058A - Double-circuit FlexRay simulation system based on FlexRay bus - Google Patents

Double-circuit FlexRay simulation system based on FlexRay bus Download PDF

Info

Publication number
CN103428058A
CN103428058A CN2013103547218A CN201310354721A CN103428058A CN 103428058 A CN103428058 A CN 103428058A CN 2013103547218 A CN2013103547218 A CN 2013103547218A CN 201310354721 A CN201310354721 A CN 201310354721A CN 103428058 A CN103428058 A CN 103428058A
Authority
CN
China
Prior art keywords
flexray
bus
node
microcontroller
usb
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
CN2013103547218A
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.)
SHANGHAI GUTAI TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI GUTAI TECHNOLOGY 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 SHANGHAI GUTAI TECHNOLOGY Co Ltd filed Critical SHANGHAI GUTAI TECHNOLOGY Co Ltd
Priority to CN2013103547218A priority Critical patent/CN103428058A/en
Publication of CN103428058A publication Critical patent/CN103428058A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The invention relates to a double-circuit FlexRay simulation system based on a FlexRay bus. The simulation system comprises a microcontroller, two FlexRay controllers and a USB (universal serial bus) module, the microcontroller is connected with the two FlexRay controllers, each FlexRay controller is connected to the FlexRay bus through a FlexRay transceiver, each FlexRay transceiver can be replaced in a plug manner, data are transmitted by the microcontroller through a USB and a PC (personal computer), so that FlexRay messages based on the PC are received and transmitted, a simulation kernel is operated on the PC and can simultaneously virtualize a plurality of FlexRay buses, and a user can write codes for simulation FlexRay nodes on each virtual FlexRay bus, so that each virtual FlexRay node can be communicated with a node on the real FlexRay bus connected with the virtual FlexRay node.

Description

A kind of two-way FlexRay analogue system based on the FlexRay bus
Technical field
The present invention relates to a kind of electronic equipment, particularly a kind of analogue system based on the FlexRay bus.
Background technology
FlexRay is a kind of confirmability of the high speed for automobile, the bus system that possesses failure tolerant, FlexRay is by transmission of information in definite time slot, and the failure tolerant on two passages and the transmission of redundant information, met the ever-increasing demand to the rate of information throughput especially failure tolerant and time determinability of new x-by-wire system thought.In the development process of FlexRay bus, in order to verify the function of certain node, usually need to be by bus, mutual other nodes that do not have of node are by computer virtual out therewith, and communicate by letter together with real network, thereby to the properties of the tested node of abundant checking, and the performance of whole network.
Common way is to use USB to turn the interface card of FlexRay, and FlexRay bus and computer are coupled together, and on host computer, by USB interface, controls slave computer sending and receiving message, with the node on bus, carries out emulation.The problem that such analogue system exists is: 1, a general system is only supported a FlexRay bus, to gateway and multichannel FlexRay bus, supports bad; 2,, because transceiver is fixed, can not support high speed FlexRay, low speed FlexRay and single line FlexRay simultaneously.
Summary of the invention
Purpose of the present invention, exactly in order to overcome multichannel FlexRay bus support issue and the scaling concern in FlexRay Bus simulator process, used the hardware of supporting two-way FlexRay, and the transceiver of each FlexRay interface can be replaced by plug simultaneously.
Concrete technical scheme provided by the invention is as follows:
A kind of two-way FlexRay analogue system based on the FlexRay bus, use microcontroller to be connected with two FlexRay controllers, each FlexRay controller is connected to respectively on the FlexRay bus, each FlexRay transceiver can be replaced by pluggable mode, thereby microcontroller carries out by usb bus and PC the transmitting-receiving that transfer of data realizes the FlexRay message, carry out emulation on PC, make each virtual emulation FlexRay node of PC that factum be arranged.
A kind of two-way FlexRay analogue system based on the FlexRay bus, comprise hardware circuit, program of lower computer and host computer procedure.
A kind of two-way FlexRay analogue system based on the FlexRay bus, described hardware circuit is comprised of microcontroller, two FlexRay controllers, USB modules; Microcontroller is connected with two FlexRay controllers, and each FlexRay controller connects a FlexRay transceiver, and each FlexRay transceiver all is connected to one independently on the FlexRay bus.
A kind of two-way FlexRay analogue system based on the FlexRay bus, after described FlexRay controller listens to FlexRay message or erroneous frame on bus, by the data feedback monitored to microcontroller, microcontroller reads in local message reception buffer zone by it, and the data in reception buffer zone are uploaded to PC by the USB module.
A kind of two-way FlexRay analogue system based on the FlexRay bus, after described USB module receives the order of host computer, be configured microcontroller, comprises configuration of FlexRay bus parameter etc.
A kind of two-way FlexRay analogue system based on the FlexRay bus, the dummy node in described host computer procedure artificial network, and pass to slave computer by the message that the USB driver will need to send and sent; The message simultaneously by the USB driver, slave computer received reads and passes to dummy node.
A kind of two-way FlexRay analogue system based on the FlexRay bus, its advantage is, 1, reasonable in design, clear in structure, can virtual any node, and node and node are complete independence, are independent of each other; 2, can support two FlexRay buses to carry out while emulation, the gateway support function simultaneously.
The accompanying drawing explanation
Fig. 1 is total Organization Chart that in the invention process method, upper and lower computer connects
The actuating logic that Fig. 2 is hardware circuit in the invention process method
Fig. 3 is analogue system actuating logic in the invention process method
In Fig. 1, microcontroller (101), FlexRay controller (102), FlexRay transceiver block (103), FlexRay bus FlexRayH(104), FlexRay bus FlexRayL(105), USB module (106), PC (109), lower computer hardware circuit (110), USB line (111), power module (112), passage 1 sends indicator light (113), passage 1 codan lamp (114), the wrong indicator light of passage 1 (115), passage 2 sends indicator light (116), passage 2 codan lamps (117), the wrong indicator light of passage 2 (118), FlexRay transceiver daughter board (119), FlexRay transceiver daughter board (120), FlexRay transceiver daughter board (121)
In Fig. 2, FlexRay controller reception buffer zone (201), the FlexRay controller sends buffering area (202), local FlexRay sends buffering area (203), local FlexRay reception buffer zone (204), testing engine (205), message USB sends buffering area (208), message USB reception buffer zone (209), computer CPU (211), FlexRay Bus simulator application program (212)
In Fig. 3, USB driver (301), USB reception buffer zone (302), USB sends buffering area (303), FlexRay Bus simulator program (304)
Embodiment
In Fig. 1, lower computer hardware circuit (110) comprises microcontroller (101), USB module (106) and FlexRay transceiver block (103), lower computer hardware circuit (110) is connected to PC (109) by USB cable (111), simultaneously by FlexRay bus FlexRayH(104) and FlexRayL(105) be connected to other nodes (112) on bus.
Microcontroller (101) connects at least one FlexRay controller (102), the TX pin of each FlexRay controller and RX pin are connected respectively TX pin and the RX pin of FlexRay transceiver block (103), the FlexRayH of FlexRay transceiver is connected to FlexRay bus FlexRayH(104), the FlexRayL of FlexRay transceiver is connected to the FlexRayL(105 of FlexRay bus).
Microcontroller (101), inner integrated CPU and internal memory, be connected with one or more independently FlexRay controllers; Or inner integrated one or more FlexRay controllers; What Fig. 1 showed is the situation of the inner integrated FlexRay controller of microcontroller (102).
FlexRay controller (102), protocol conversion chip as the FlexRay bus, be responsible for the information such as the message on the FlexRay bus and erroneous frame are fed back to microcontroller, each FlexRay controller has TX and the RX pin be connected with the FlexRay transceiver.
In Fig. 2, lower computer hardware circuit (110) is connected to PC (109) by USB cable (111), PC (109) comprises at least one central processing unit (211), PC (109) internal operation automated server application program (212) and at least one Automation Client application program (213).
Lower computer hardware circuit (110) is by connecting FlexRay bus FlexRayH(104) and FlexRay bus FlexRayL(105) with other nodes, communicate.
The flow process that lower computer hardware circuit (110) receives from the message of FlexRay bus is, after the transceiver that its FlexRay controller (102) connects by FlexRay transceiver block (103) listens to the FlexRay message, by its buffer memory to inner FlexRay reception buffer zone (201), and notice microcontroller (101), microcontroller (101) is saved in message USB reception buffer zone (209) by calling receiver function (204) by the message of receiving, by USB module (106) by these data upload to PC (109).
The transmission flow of lower computer hardware circuit (110) is, slave computer microcontroller (101) sends buffering area (208) and reads the message data that will send from USB module (106) from message USB, needs are sent to message on bus put into the FlexRay of FlexRay controller (102) and send buffering area by sending function (203) again, send to the FlexRayH(104 of FlexRay bus via FlexRay controller (102) by the transceiver of FlexRay transceiver block (103) connection) and FlexRayL(105) on.
In Fig. 3, the FlexRay Bus simulator program (304) of host computer internal operation is connected to USB cable (111) by USB driver (301), thereby and sets up usb communication between lower computer hardware circuit (110).
Simulation flow in Fig. 3 is, the virtual two FlexRay buses of FlexRay Bus simulator program (304), and fictionalize the node that needs emulation at each on virtual bus, USB transmission buffering area (303) is all put in sending request of the node of emulation, and be issued in lower computer hardware circuit (110) by USB driver (301), which by the virtual FlexRay network at simulation node place and the objective network of simulation node transmission, determine to send on the true FlexRay bus of root of slave computer; After USB driver (301) has been received the FlexRay message data of monitoring from slave computer, these data are deposited in USB reception buffer zone (302), and FlexRay Bus simulator program (304) reads these data and sends it to each simulation node.

Claims (8)

1. the two-way FlexRay analogue system based on the FlexRay bus, it is by microcontroller, two FlexRay controllers and USB module form, it is characterized in that, microcontroller is connected with two FlexRay controllers, each FlexRay controller is connected to the FlexRay bus by the FlexRay transceiver respectively, each FlexRay transceiver can be replaced by pluggable mode, thereby microcontroller carries out transfer of data by usb bus and PC realizes the FlexRay packet sending and receiving based on PC, move simulation kernel on PC, simulation kernel is virtual many FlexRay buses simultaneously, the user can write code for the emulation FlexRay node on every virtual FlexRay bus, thereby make each virtual FlexRay node can with coupled real FlexRay bus on node communicate.
2. a kind of two-way FlexRay analogue system based on the FlexRay bus according to claim 1, is characterized in that, system comprises hardware circuit, program of lower computer and host computer procedure.
3. a kind of two-way FlexRay analogue system based on the FlexRay bus according to claim 2, is characterized in that, described hardware circuit is comprised of microcontroller, two FlexRay controllers, USB modules; Microcontroller is connected with two FlexRay controllers, and each FlexRay controller connects a FlexRay transceiver, and each FlexRay transceiver all is connected to one independently on the FlexRay bus.
4. a kind of two-way FlexRay analogue system based on the FlexRay bus according to claim 3, it is characterized in that, after described FlexRay controller listens to FlexRay message or erroneous frame on bus, by the data feedback monitored to microcontroller, microcontroller reads in local message reception buffer zone by it, and the data in reception buffer zone are uploaded to PC by the USB module.
5. a kind of two-way FlexRay analogue system based on the FlexRay bus according to claim 4, is characterized in that, after described USB module receives the order of host computer, microcontroller is configured, and comprises configuration of FlexRay bus parameter etc.
6. a kind of two-way FlexRay analogue system based on the FlexRay bus according to claim 2, the dummy node in described host computer procedure artificial network, and pass to slave computer by the message that the USB driver will need to send and sent; The message simultaneously by the USB driver, slave computer received reads and passes to dummy node.
7. a kind of two-way FlexRay analogue system based on the FlexRay bus according to claim 6, it is characterized in that, described each emulation FlexRay node has relevant code to write interface, obtains executable code by compiling, and calls execution via simulation engine.
8. a kind of two-way FlexRay analogue system based on the FlexRay bus according to claim 7, it is characterized in that, described each emulation FlexRay node can receive the bus message of uploading by USB interface, logic reaction for the FlexRay event on bus with decision emulation FlexRay node by the corresponding executable code of each node, the message that needs simulation node to send will be transferred to USB interface and be issued to the lower computer hardware circuit by simulation kernel, and be dealt on bus via the FlexRay module of slave computer.
CN2013103547218A 2013-08-14 2013-08-14 Double-circuit FlexRay simulation system based on FlexRay bus Pending CN103428058A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013103547218A CN103428058A (en) 2013-08-14 2013-08-14 Double-circuit FlexRay simulation system based on FlexRay bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013103547218A CN103428058A (en) 2013-08-14 2013-08-14 Double-circuit FlexRay simulation system based on FlexRay bus

Publications (1)

Publication Number Publication Date
CN103428058A true CN103428058A (en) 2013-12-04

Family

ID=49652258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013103547218A Pending CN103428058A (en) 2013-08-14 2013-08-14 Double-circuit FlexRay simulation system based on FlexRay bus

Country Status (1)

Country Link
CN (1) CN103428058A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683201A (en) * 2015-02-05 2015-06-03 南京航空航天大学 Quad-redundant method for FlexRay bus communication

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309193A (en) * 2008-06-13 2008-11-19 中国科学院电工研究所 USB-Flexray bus adapter based on micro-processor
CN103034609A (en) * 2012-12-15 2013-04-10 南京航空航天大学 Four-channel FlexRay bus communication module

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309193A (en) * 2008-06-13 2008-11-19 中国科学院电工研究所 USB-Flexray bus adapter based on micro-processor
CN103034609A (en) * 2012-12-15 2013-04-10 南京航空航天大学 Four-channel FlexRay bus communication module

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
罗峰等: "基于FlexRay的车载网络***开发", 《电子测量与仪器学报》, no. 1, 31 December 2009 (2009-12-31), pages 289 - 295 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683201A (en) * 2015-02-05 2015-06-03 南京航空航天大学 Quad-redundant method for FlexRay bus communication
CN104683201B (en) * 2015-02-05 2017-11-24 南京航空航天大学 A kind of remaining method of FlexRay bus communications four

Similar Documents

Publication Publication Date Title
CN105260337B (en) A kind of automatic addressing method and system of single-chip microcomputer
CN106603265B (en) Management method, network device, and non-transitory computer-readable medium
CN103428050A (en) Multipath CAN (controller area network) simulation system based on CAN bus
CN105159860A (en) Inter-integrated circuit (IIC) extended system and method
CN105095037A (en) Wire card, backboard of wire card and wire card test method
CN105243044A (en) Serial port based management system and management method
CN103440187A (en) Hardware script-based automated CAN (Controller Area Network) bus test method
CN103067201B (en) A kind of multi-protocol communication manager
CN105306352A (en) Industrial field bus protocol gateway device
CN102222056A (en) Electronic equipment with embedded system
CN203706058U (en) CAN bus based multi-I/O board card expansion structure
JP2013084266A (en) Server and serial interface switching circuit thereof
CN103414620A (en) Double-channel CAN simulation system based on CAN buses
CN202975800U (en) CAN (controller area network) bus diagnosis system based on WIFI (wireless fidelity) and mobile intelligent terminal
CN103414622A (en) Simulation method based on CAN buses
CN103428058A (en) Double-circuit FlexRay simulation system based on FlexRay bus
CN103414618A (en) Multichannel FlexRay simulation system based on FlexRay buses
CN107563075B (en) Method for realizing CosiMate network and DDS network interconnection
CN110098989A (en) A kind of multichannel CAN analogue system and test method based on CANFD bus
CN107769960B (en) BMC management architecture based on CAN bus
CN102609388B (en) Slave node circuit, communication method and communication device
CN112087359B (en) Serial communication system
CN104135411A (en) Device and method of implementing multi-node communication based on RS232 interface
CN110096002A (en) A kind of automatization test system and test method based on CANFD bus
CN114138354A (en) Onboard OCP network card system supporting multi host and server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20131204