CN205195742U - FlexRay bus and CAN bus protocol conversion device - Google Patents

FlexRay bus and CAN bus protocol conversion device Download PDF

Info

Publication number
CN205195742U
CN205195742U CN201521057886.XU CN201521057886U CN205195742U CN 205195742 U CN205195742 U CN 205195742U CN 201521057886 U CN201521057886 U CN 201521057886U CN 205195742 U CN205195742 U CN 205195742U
Authority
CN
China
Prior art keywords
flexray bus
transceiver
bus
flexray
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.)
Expired - Fee Related
Application number
CN201521057886.XU
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.)
Guizhou Education University
Original Assignee
Guizhou Education University
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 Guizhou Education University filed Critical Guizhou Education University
Priority to CN201521057886.XU priority Critical patent/CN205195742U/en
Application granted granted Critical
Publication of CN205195742U publication Critical patent/CN205195742U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Bus Control (AREA)

Abstract

The utility model discloses a flexRay bus and CAN bus protocol conversion device, it includes CAN bus transceiver and flexRay bus transceiver, its characterized in that: CAN bus transceiver and CAN bus buffer circuit are connected, and the CAN bus buffer circuit be connected with microcontroller, and flexRay bus transceiver and microcontroller are connected, and power supply circuit and CAN bus transceiver, flexRay bus transceiver, CAN bus buffer circuit and microcontroller are connected, the problem of between flexRay bus and CAN bus data not compatible is solved, direct communication transmission data can be realized, advantage such as use in the vehicle that has flexRay bus and CAN bus simultaneously is fit for.

Description

FlexRay bus and CAN protocol conversion apparatus
Technical field
The utility model belongs to In-vehicle networking technical field, particularly relates to a kind of FlexRay bus and CAN protocol conversion apparatus.
Background technology
Along with the development of automotive electronic technology, electronic control unit ECU(ElectronicControlUnits on automobile, ECU) more and more, adopt CAN(ControllerAreaNetwork, CAN) bus vehicle mounted network system, can be linked together a large amount of ECU local area network (LAN) in composition car, can improve In-vehicle networking operating efficiency and fail safe, simplification wiring on automobile, reduce production cost.Therefore, CAN vehicle netbios is widely used in automobile dynamic system and body control system.Meanwhile, in order to make up the deficiency of CAN and meet the requirement of some special applications in car, as hung control, gearshift controls, brake control, course changing control etc., a kind of have that transmission rate is high, the new automobile STD bus FlexRay of confirmability, fault fault tolerant also obtains application on automobile, therefore occur that an automobile has CAN and FlexRay bus simultaneously, and in FlexRay bus and CAN, data are incompatible.
In existing technology, for the problem that bus data in automobile is incompatible, be utilize VDM to write communication gate between different bus by cross-system to realize different bus system data compatibility.But the gateway on automobile is all that solidification is integrated, once go wrong, all data in In-vehicle networking will be caused to cause confusion, when bus communication protocol is complicated, write also can be very difficult for communication gate.
Utility model content
The technical problems to be solved in the utility model: a kind of FlexRay bus and CAN protocol conversion apparatus are provided, when prior art vehicle having simultaneously CAN and FlexRay bus to solve, FlexRay bus and CAN data incompatible, adopt VDM to write communication gate between different bus by cross-system and realize different bus system data compatibility, the all data in In-vehicle networking that easily cause existed cause confusion, and when bus communication protocol is complicated, communication gate writes the technical problems such as difficulty.
Technical solutions of the utility model:
A kind of FlexRay bus and CAN protocol conversion apparatus, it comprises CAN transceiver and FlexRay bus transceiver, CAN transceiver is connected with CAN buffer circuit, CAN buffer circuit is connected with microcontroller, FlexRay bus transceiver is connected with microcontroller, and power circuit is connected with CAN transceiver, FlexRay bus transceiver, CAN buffer circuit and microcontroller.
It also comprises peripheral circuit and clock division circuits, and described peripheral circuit comprises watchdog reset circuit, crystal oscillating circuit and BDM debug circuit.
Described CAN transceiver adopts TJA1040 chip to form.
CAN buffer circuit adopts twin-channel HCPL2630 high-speed photoelectric coupler to form.
The MC9S12XF512 chip that microcontroller adopts Freescale company to produce is formed.
FlexRay bus transceiver adopts two-way FlexRay bus transceiver TJA1080ATS/2 chip to form.
FlexRay bus transceiver is connected with FlexRay bus interface by filtering buffer circuit.
The beneficial effects of the utility model:
The utility model provides protocol conversion apparatus and the method for FlexRay bus and CAN, by setting up protocol mapping table at microcontroller, the data of FlexRay bus and CAN are mapped, the communication between FlexRay bus and CAN can be realized.FlexRay bus has the features such as high fault tolerance, high real-time and high bandwidth, the utility model solves data incompatibility problem between FlexRay bus and CAN, direct communication transmission data can be realized, be adapted at having in the vehicle of FlexRay bus and CAN simultaneously and use.
Accompanying drawing explanation
Fig. 1 the utility model protocol conversion apparatus structural representation;
The concrete connection diagram of Fig. 2 the utility model protocol conversion apparatus;
The method for converting protocol schematic flow sheet of a kind of FlexRay bus of Fig. 3 and CAN;
The method for converting protocol agreement of a kind of FlexRay bus of Fig. 4 and CAN maps flow chart.
Embodiment
A kind of FlexRay bus and CAN protocol conversion apparatus (see figure 1), it comprises CAN transceiver and FlexRay bus transceiver, CAN transceiver is connected with CAN buffer circuit, CAN buffer circuit is connected with microcontroller, FlexRay bus transceiver is connected with microcontroller, and power circuit is connected with CAN transceiver, FlexRay bus transceiver, CAN buffer circuit and microcontroller.
The concrete connection diagram (see figure 2) of the circuit of microcontroller and CAN transceiver and CAN buffer circuit and FlexRay bus transceiver in the utility model bus protocol conversion equipment, CAN transceiver and CAN buffer circuit are mainly connected with CAN buffer circuit by PM0 with the PM1 mouth of microcontroller, CAN buffer circuit is connected with CAN transceiver again, realizes the transmission of data message; FlexRay bus transceiver is then that microcontroller is connected with FlexRay bus transceiver by PH0, PH1, PH2, PH3, PJ3, PJ5, PH4, PH5, PH6, PH7, PJ4, PJ6 interface.
FlexRay bus transceiver delivery outlet BP, BM are connected with filtering buffer circuit, and filtering buffer circuit is connected with FlexRay bus interface.Due to the employing of FlexRay bus transceiver is two-way, and therefore each road exports and adopts a filtering buffer circuit respectively.Filtering buffer circuit is connected with FlexRay bus interface A and FlexRay bus interface B respectively.
Power circuit: the power circuit used in this conversion equipment, it is the voltage stabilizing circuit adopting LM2940 chip to build, output is directly connected with FlexRay bus transceiver with microcontroller, CAN transceiver, CAN buffer circuit, for it provides working power;
CAN transceiver, as the interface between CAN protocol controller and physical transmission lines, for receiving the data message of CAN node or data message being sent to CAN node; TJA1040 chip is adopted to form; TJA1040 meets ISO189 standard, and speed is up to 1M, and electromagnetic radiation EME is low, has the advantages such as electromagnetism interference.In utility model, adopt TJA1040 to form CAN transceiver, be directly connected with CAN buffer circuit, the circuit that microcontroller forms by CAN buffer circuit and CAN transceiver, realize the transmission of the data of CAN.
FlexRay bus transceiver, as the interface between the physical bus of FlexRay network and microcontroller, the data message receiving physics bus node is provided, or data message is sent to FlexRay physical bus node, and as the transceiving chip between microcontroller and bus node, provide a kind of buffer circuit, increase the antijamming capability of FlexRay bus data transfer; FlexRay bus transceiver: adopt two-way FlexRay bus transceiver TJA1080ATS/2 chip.In the utility model, adopt TJA1080ATS/2 chip to form FlexRay bus transceiver, be directly connected with the FlexRay bus module interface of microcontroller, the transfer of data of microcontroller in FlexRay bus can be realized.
CAN buffer circuit, for strengthening interference free performance on CAN node and isolation performance.Microcontroller is connected with CAN transceiver by CAN buffer circuit, can well realize the electrical isolation of each node in CAN, improves stability and the fail safe of bus node; CAN buffer circuit adopts twin-channel HCPL2630 high-speed photoelectric coupler to form, and its speed can reach 10Mbit/s, can be good at realizing the electrical isolation between bus node and raising antijamming capability.In the CAN buffer circuit adopting high-speed photoelectric coupler HCPL2630 to form, microcontroller CAN module interface is directly connected with CAN buffer circuit, and the output of CAN buffer circuit is then be connected with CAN transceiver;
Microcontroller, 16 embedded scm MC9S12XF512 are adopted to be the FlexRay bus of core formation and the conversion equipment of CAN, and be furnished with respective peripheral circuit, define a programmable conversion equipment not only having CAN module but also have FlexRay bus module.Microcontroller is by the data in the FlexRay communication controller control FlexRay bus transceiver transmission FlexRay bus of inside or control the data in CAN buffer circuit and CAN transceiver transmission CAN by inner CAN protocol controller; The MC9S12XF512 chip that microcontroller adopts Freescale company to produce, this chip internal storage size has 512KBFLASH and 32KBRAM, wherein the FLASH of 512KB can be used for save routine and initial data, the RAM of 32KB can be used as storehouse and preserves dynamic data, enough stores and maps the data in our the required bus sent and accept.This single-chip microcomputer inside is containing the FlexRay bus module interface of FlexRay controller and the CAN module interface of CAN protocol controller in addition, is suitable as the key control unit in the utility model device.
It also comprises peripheral circuit and clock division circuits, and described peripheral circuit comprises watchdog reset circuit, crystal oscillating circuit and BDM debug circuit.BDM debug circuit provides BDM debugging interface, connects, carry out programming speed governing for BDM speed regulator.
A method for converting protocol schematic flow sheet (see figure 3) for FlexRay bus and CAN,
Microcontroller is the core in the utility model in conversion equipment, and instruction is sent to microcontroller by BDM debugger by us.
Step 1, microcontroller are connected with the BDM debugging interface in BDM debug circuit by BDM debugger, programme, and generate the protocol mapping table between FlexRay bus and CAN;
Step 2, microcontroller read the data in FlexRay bus by the FlexRay communication controller control FlexRay bus transceiver of inside or control the data in CAN buffer circuit and CAN transceiver reading CAN by inner CAN protocol controller;
The data that bus reads first are stored in memory by step 3, microcontroller, then according to protocol mapping table, are mapped to mapping table;
Step 4, microcontroller will according to protocol mapping tables, cycle time slot or search the ID of Frame of the CAN corresponding to data of FlexRay highway memory address in the FlexRay bus corresponding to data of searching CAN memory address;
The data transaction of CAN memory address is become the data format of the FlexRay bus of correspondence or the data transaction of FlexRay highway memory address is become the data format of corresponding CAN by step 5, microcontroller according to protocol mapping table;
Step 6, microcontroller transmit on Frame ID corresponding in CAN for the data changed according to protocol mapping table, or the data after conversion are transmitted in corresponding FlexRay bus cycles time slot.
For step 2, in microcontroller, CAN and FlexRay bus working mechanism are different, FlexRay adopts time triggering mode to send and accept data and adopts the mode of time slot to carry out reception and the transmission of data, CAN is then adopt master-slave mode to transmit and receive data, during programming to microcontroller, then need, according to this Liang Zhong working mechanism, to send different instructions, device is normally worked.
For step 2, microcontroller MC9S12XF512 chip, its inside had both comprised FlexRay bus module interface and had also comprised CAN module interface, and single-chip microcomputer can directly store the data read in inside according to instruction and map.Data in the CAN read can be stored in corresponding CAN module memory address, or the data in the FlexRay bus read be stored in the memory address of corresponding FlexRay bus module.When carrying out concrete agreement Mapping and Converting, when microcontroller read CAN data and after being stored in the different memory addresss of corresponding CAN module, microcontroller just can map the data in CAN, its process is that microcontroller searches the FlexRay bus cycles time slot corresponding with CAN address data memory according to protocol mapping table, a time slot before the time slot that different memory address is corresponding arrives reads the data in this address, and pack the data to FlexRay data format, data after packing are sent in FlexRay bus by FlexRay bus transceiver by microcontroller.After microcontroller reads the data in FlexRay bus and is stored in the memory address of corresponding FlexRay module, microcontroller maps FlexRay bus data, the ID of the Frame of the CAN corresponding to the data of FlexRay highway memory address searched by microcontroller according to protocol mapping table, when CAN is idle, order reads the data of different memory address and packs the data to the data format of CAN, and the data after packing are sent in CAN by CAN transceiver and CAN buffer circuit by microcontroller.Concrete agreement dress changes mapping flow chart and sees Fig. 4.
For step 3, be divided into two kinds of situations, one is read data from CAN, the protocol mapping table that now microcontroller can generate according to inside searches the cycle time slot number of the FlexRay bus corresponding to CAN, another is that microcontroller reads data from FlexRay bus, then searches No. ID of Frame of the CAN corresponding to data Storage Mapping in FlexRay bus according to protocol mapping table.
For step 4 because CAN data will convert the data of FlexRay bus to, microcontroller is under FlexRay bus working mechanism, before the time slot that different memory address is corresponding arrives, there are the data in the memory address of time slot reading CAN data, and are packaged into the data format of FlexRay bus transfer.FlexRay bus data being converted to the data of CAN, then, under microcontroller is operated in CAN working mechanism, is that order reads FlexRay bus and stores the data of different address and be packaged into the data format of CAN in the CAN free time.
For step 5 and 6, be divided into two kinds of situations, one is under microcontroller is operated in FlexRay bus working mechanism, then above-mentioned packed data are then sent in FlexRay bus by inner FlexRay bus control unit control FlexRay bus transceiver by microcontroller.Another kind is under microcontroller is operated in CAN working mechanism, then packed data are sent in CAN by CAN buffer circuit and CAN transceiver by inner CAN protocol controller by microcontroller.

Claims (7)

1. a FlexRay bus and CAN protocol conversion apparatus, it comprises CAN transceiver and FlexRay bus transceiver, it is characterized in that: CAN transceiver is connected with CAN buffer circuit, CAN buffer circuit is connected with microcontroller, FlexRay bus transceiver is connected with microcontroller, and power circuit is connected with CAN transceiver, FlexRay bus transceiver, CAN buffer circuit and microcontroller.
2. a kind of FlexRay bus according to claim 1 and CAN protocol conversion apparatus, is characterized in that: it also comprises peripheral circuit and clock division circuits, and described peripheral circuit comprises watchdog reset circuit, crystal oscillating circuit and BDM debug circuit.
3. a kind of FlexRay bus according to claim 1 and CAN protocol conversion apparatus, is characterized in that: described CAN transceiver adopts TJA1040 chip to form.
4. a kind of FlexRay bus according to claim 1 and CAN protocol conversion apparatus, is characterized in that: CAN buffer circuit adopts twin-channel HCPL2630 high-speed photoelectric coupler to form.
5. a kind of FlexRay bus according to claim 1 and CAN protocol conversion apparatus, is characterized in that: the MC9S12XF512 chip that microcontroller adopts Freescale company to produce is formed.
6. a kind of FlexRay bus according to claim 1 and CAN protocol conversion apparatus, is characterized in that: FlexRay bus transceiver adopts two-way FlexRay bus transceiver TJA1080ATS/2 chip to form.
7. a kind of FlexRay bus according to claim 1 and CAN protocol conversion apparatus, is characterized in that: FlexRay bus transceiver is connected with FlexRay bus interface by filtering buffer circuit.
CN201521057886.XU 2015-12-18 2015-12-18 FlexRay bus and CAN bus protocol conversion device Expired - Fee Related CN205195742U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201521057886.XU CN205195742U (en) 2015-12-18 2015-12-18 FlexRay bus and CAN bus protocol conversion device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201521057886.XU CN205195742U (en) 2015-12-18 2015-12-18 FlexRay bus and CAN bus protocol conversion device

Publications (1)

Publication Number Publication Date
CN205195742U true CN205195742U (en) 2016-04-27

Family

ID=55788681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201521057886.XU Expired - Fee Related CN205195742U (en) 2015-12-18 2015-12-18 FlexRay bus and CAN bus protocol conversion device

Country Status (1)

Country Link
CN (1) CN205195742U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105429997A (en) * 2015-12-18 2016-03-23 贵州师范大学 FlexRay bus and CAN (Controller Area Network) bus protocol conversion device and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105429997A (en) * 2015-12-18 2016-03-23 贵州师范大学 FlexRay bus and CAN (Controller Area Network) bus protocol conversion device and method

Similar Documents

Publication Publication Date Title
CN105429997A (en) FlexRay bus and CAN (Controller Area Network) bus protocol conversion device and method
CN103714029B (en) Novel two-line synchronous communication protocol and application
CN105721295B (en) A kind of gateway that cloud server is communicated with PLC PPI
CN104318301B (en) TF card having communication function
CN104794088A (en) Multi-interface bus converting expanding chip design
CN203812236U (en) Data exchange system based on processor and field programmable gate array
CN103901814B (en) A kind of multiaxial motion digital control system
CN104468593A (en) Communication protocol converter generally used by multiple interfaces
CN102316113B (en) POWERLINK and HDLC protocol conversion equipment and realization method thereof
CN105281433A (en) Distribution terminal communication system
CN102752180A (en) Method for achieving controller area network (CAN) bus network nodes
CN204291029U (en) A kind of Internet of Things cloud gateway
CN103377170B (en) SPI high-speed bidirectional Peer Data Communication system between heterogeneous processor
CN205195742U (en) FlexRay bus and CAN bus protocol conversion device
CN102637453A (en) Phase change memory including serial input/output interface
CN103186500A (en) Car-mounted terminal multiprocessor communication interface system and communication method
CN204279131U (en) A kind of entire car controller of pure electric automobile
CN106302460A (en) Process layer point-to-point SV sending method and system
CN203849590U (en) Multi-shaft motion numerical control system
CN205647570U (en) EtherCAT and deviceNET's communication gateway
CN103577976A (en) SWP implantation device of security chip
CN108183705A (en) A kind of server system one-way bus transmission method
CN107423249A (en) It is a kind of based on AHB lite bus protocols from end bus control unit design method
CN202939792U (en) Single-phase dual-channel communication module
Yang et al. The design of distributed control system based on CAN Bus

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160427

Termination date: 20181218

CF01 Termination of patent right due to non-payment of annual fee