CN103414618A - Multichannel FlexRay simulation system based on FlexRay buses - Google Patents

Multichannel FlexRay simulation system based on FlexRay buses Download PDF

Info

Publication number
CN103414618A
CN103414618A CN2013103547260A CN201310354726A CN103414618A CN 103414618 A CN103414618 A CN 103414618A CN 2013103547260 A CN2013103547260 A CN 2013103547260A CN 201310354726 A CN201310354726 A CN 201310354726A CN 103414618 A CN103414618 A CN 103414618A
Authority
CN
China
Prior art keywords
flexray
bus
node
multichannel
microcontroller
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
CN2013103547260A
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 CN2013103547260A priority Critical patent/CN103414618A/en
Publication of CN103414618A publication Critical patent/CN103414618A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Bus Control (AREA)

Abstract

The invention relates to a multichannel FlexRay simulation system based on FlexRay buses. The multichannel FlexRay simulation system based on the FlexRay buses comprises a microcontroller, five FlexRay controllers and a USB module. The microcontroller is connected with the five FlexRay controllers, each FlexRay controller is connected to each FlexRay bus through a FlexRay transceiver, each FlexRay transceiver can be replaced through a pluggable mode, and data transmission is carried out between the microcontroller and a PC through a USB bus to achieve FlexRay message transceiving based on the PC. A simulation kernel operates on the PC and can simulate multiple FlexRay buses at the same time, a user can edit a code for a virtual FlexRay node on each virtual FlexRay bus, and thus each virtual FlexRay node can be communicated with a node of each real FlexRay bus connected with the virtual FlexRay node.

Description

A kind of analogue system of multichannel FlexRay 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 high speed for automobile, the bus system that possesses failure tolerant, FlexRay is by transmission of information in the time slot determining, 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, carries out emulation with the node on bus.The problem that such analogue system exists is: a general system is only supported a FlexRay bus, supports bad to gateway and multichannel FlexRay bus.
Summary of the invention
Purpose of the present invention, in order to overcome multichannel FlexRay bus support issue and the scaling concern in FlexRay Bus simulator process, used the hardware of supporting five road FlexRay exactly, 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 analogue system of multichannel FlexRay based on the FlexRay bus, use microcontroller to be connected with five 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, on PC, carry out emulation, make each virtual emulation FlexRay node of PC that factum be arranged.
A kind of analogue system of multichannel FlexRay based on the FlexRay bus, comprise hardware circuit, program of lower computer and host computer procedure.
A kind of analogue system of multichannel FlexRay based on the FlexRay bus, described hardware circuit is comprised of microcontroller, five FlexRay controllers, USB modules; Microcontroller is connected with five 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 analogue system of multichannel FlexRay based on the FlexRay bus, described FlexRay controller is after listening 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 analogue system of multichannel FlexRay 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 analogue system of multichannel FlexRay based on the FlexRay bus, the dummy node in described host computer procedure artificial network, and by the USB driver, will need the message sent to pass to slave computer to send; By the USB driver, the message that slave computer receives is read and passes to dummy node simultaneously.
A kind of analogue system of multichannel FlexRay based on the FlexRay bus, its advantage be, 1, reasonable in design, and clear in structure, can virtual any node, and node and node are complete independence, are independent of each other; 2, can support simultaneously five FlexRay buses to carry out while emulation, the gateway support function.
The accompanying drawing explanation
Fig. 1 is total Organization Chart that in the invention process method, upper and lower computer connects
Fig. 2 is the actuating logic of 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) communicate with other nodes.
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 the message that calls receiver function (204) and will receive, 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, by sending function (203), needs are sent to message on bus put into the FlexRay of FlexRay controller (102) and send buffering area again, via FlexRay controller (102), send to the FlexRayH(104 of FlexRay bus 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 five FlexRay buses of FlexRay Bus simulator program (304), and fictionalize the node that needs emulation on each 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 when USB driver (301), having 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. analogue system of the multichannel FlexRay based on the FlexRay bus, it is by microcontroller, a plurality of FlexRay controllers and USB module form, it is characterized in that, microcontroller is connected with a plurality of 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, on PC, move simulation kernel, 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 analogue system of multichannel FlexRay 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 analogue system of multichannel FlexRay based on the FlexRay bus according to claim 2, is characterized in that, described hardware circuit is comprised of microcontroller, a plurality of FlexRay controller, USB module; Microcontroller is connected with a plurality of 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 analogue system of multichannel FlexRay based on the FlexRay bus according to claim 3, it is characterized in that, described FlexRay controller is after listening 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 analogue system of multichannel FlexRay 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 analogue system of multichannel FlexRay based on the FlexRay bus according to claim 2, the dummy node in described host computer procedure artificial network, and by the USB driver, will need the message sent to pass to slave computer to send; By the USB driver, the message that slave computer receives is read and passes to dummy node simultaneously.
7. a kind of analogue system of multichannel FlexRay 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, by compiling, obtains executable code, and calls execution via simulation engine.
8. a kind of analogue system of multichannel FlexRay 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 by the corresponding executable code of each node is to determine the reaction of emulation FlexRay node for the FlexRay event on bus, 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.
CN2013103547260A 2013-08-14 2013-08-14 Multichannel FlexRay simulation system based on FlexRay buses Pending CN103414618A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013103547260A CN103414618A (en) 2013-08-14 2013-08-14 Multichannel FlexRay simulation system based on FlexRay buses

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013103547260A CN103414618A (en) 2013-08-14 2013-08-14 Multichannel FlexRay simulation system based on FlexRay buses

Publications (1)

Publication Number Publication Date
CN103414618A true CN103414618A (en) 2013-11-27

Family

ID=49607604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013103547260A Pending CN103414618A (en) 2013-08-14 2013-08-14 Multichannel FlexRay simulation system based on FlexRay buses

Country Status (1)

Country Link
CN (1) CN103414618A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107065516A (en) * 2016-11-04 2017-08-18 北京交通大学 Single adaptive fuzzy dynamic surface control system containing failure and heterogeneous actuator

Citations (5)

* 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
US20090300254A1 (en) * 2005-10-06 2009-12-03 Josef Newald Method for Connecting a Flexray user having a Microcontroller to a Flexray Communications line Via a Flexray Communications Control Device, and Flexray Communications Control Device, Flexray User, and Flexray Communications System for Realizing this Method
CN102801571A (en) * 2011-05-26 2012-11-28 上海固泰科技有限公司 FlexRay bus physical layer test method
CN103034609A (en) * 2012-12-15 2013-04-10 南京航空航天大学 Four-channel FlexRay bus communication module
CN203086500U (en) * 2013-01-28 2013-07-24 南京交通职业技术学院 Flexray-USB communication gateway device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090300254A1 (en) * 2005-10-06 2009-12-03 Josef Newald Method for Connecting a Flexray user having a Microcontroller to a Flexray Communications line Via a Flexray Communications Control Device, and Flexray Communications Control Device, Flexray User, and Flexray Communications System for Realizing this Method
CN101309193A (en) * 2008-06-13 2008-11-19 中国科学院电工研究所 USB-Flexray bus adapter based on micro-processor
CN102801571A (en) * 2011-05-26 2012-11-28 上海固泰科技有限公司 FlexRay bus physical layer test method
CN103034609A (en) * 2012-12-15 2013-04-10 南京航空航天大学 Four-channel FlexRay bus communication module
CN203086500U (en) * 2013-01-28 2013-07-24 南京交通职业技术学院 Flexray-USB communication gateway device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
罗峰等: "基于FlexRay的车载网络系统开发", 《电子测量与仪器学报》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107065516A (en) * 2016-11-04 2017-08-18 北京交通大学 Single adaptive fuzzy dynamic surface control system containing failure and heterogeneous actuator
CN107065516B (en) * 2016-11-04 2020-02-14 北京交通大学 Single self-adaptive fuzzy dynamic surface control system containing fault and heterogeneous actuators

Similar Documents

Publication Publication Date Title
CN105260337B (en) A kind of automatic addressing method and system of single-chip microcomputer
CN103428050A (en) Multipath CAN (controller area network) simulation system based on CAN bus
JP2013168164A5 (en)
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
CN103067201B (en) A kind of multi-protocol communication manager
CN103440187A (en) Hardware script-based automated CAN (Controller Area Network) bus test method
CN203706058U (en) CAN bus based multi-I/O board card expansion structure
CN105306352A (en) Industrial field bus protocol gateway device
CN102222056A (en) Electronic equipment with embedded system
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
CN104484257B (en) A kind of general 1553B bus communication emulation test system and method
CN103414622A (en) Simulation method based on CAN buses
CN103414618A (en) Multichannel FlexRay simulation system based on FlexRay buses
CN107563075B (en) Method for realizing CosiMate network and DDS network interconnection
CN103428058A (en) Double-circuit FlexRay simulation system based on FlexRay bus
CN110098989A (en) A kind of multichannel CAN analogue system and test method based on CANFD bus
CN109885420A (en) A kind of analysis method, BMC and the storage medium of PCIe link failure
CN104065664A (en) Cloud server authentication system
CN104660476A (en) Real-time bus and realizing method thereof
CN112087359B (en) Serial communication system
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

Application publication date: 20131127

WD01 Invention patent application deemed withdrawn after publication