CN101969393A - Protocol converter for FlexRay bus and PC104 bus - Google Patents

Protocol converter for FlexRay bus and PC104 bus Download PDF

Info

Publication number
CN101969393A
CN101969393A CN 201010521572 CN201010521572A CN101969393A CN 101969393 A CN101969393 A CN 101969393A CN 201010521572 CN201010521572 CN 201010521572 CN 201010521572 A CN201010521572 A CN 201010521572A CN 101969393 A CN101969393 A CN 101969393A
Authority
CN
China
Prior art keywords
bus
flexray
over
flexray bus
change step
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.)
Granted
Application number
CN 201010521572
Other languages
Chinese (zh)
Other versions
CN101969393B (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.)
Mianyang Weibo Electronic Co Ltd
Original Assignee
SICHUAN MIANYANG SOUTHWEST AUTOMATION INSTITUTE
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 SICHUAN MIANYANG SOUTHWEST AUTOMATION INSTITUTE filed Critical SICHUAN MIANYANG SOUTHWEST AUTOMATION INSTITUTE
Priority to CN2010105215726A priority Critical patent/CN101969393B/en
Publication of CN101969393A publication Critical patent/CN101969393A/en
Application granted granted Critical
Publication of CN101969393B publication Critical patent/CN101969393B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a protocol converter for a FlexRay bus and a PC104 bus. The converter comprises base hardware and support software, wherein the base hardware comprises a power supply adapting module and a protocol conversion module, and the support software is a finite state machine implemented based on state query and response mechanism. The protocol converter can efficiently and reliably realize bidirectional communication between nodes of the FlexRay bus and the PC104 bus in real time, meanwhile, positions, identifies, analyzes, tracks and detects the bus communication fault, solves the problems of signal interfaces and data exchange between the FlexRay bus and the PC104 bus, and has the advantages of low network time delay, reasonable dynamic distribution of data frames, accurate and quick fault positioning and convenience for quick and effective integration of a multi-bus control system.

Description

A kind of protocol converter that is used for FlexRay bus and PC104 bus
Technical field
The invention belongs to field bus communication control technology field, be specifically related to the protocol converter of a kind of FlexRay of being used for bus and PC104 bus.The present invention can be used for Auto Electronic Controlled System and industrial bus control system.
Background technology
In Auto Electronic Controlled System and industrial bus control system, usually need to use multiple bussing technique in the same control system.Signaling interface between the bus and protocol conversion problem directly influence the quick effective integration of The whole control system.As a kind of emerging high-speed bus with transmission confirmability and failure tolerant mechanism, the FlexRay bus also needs to be resolved hurrily and present widely used PC104, buses such as USB, CAN between interface problem.
Summary of the invention
[0003] in order to solve signaling interface and the protocol conversion problem between FlexRay bus and the PC104 bus, the invention provides the protocol converter of a kind of FlexRay of being used for bus and PC104 bus.This protocol converter is based on FlexRay bus and PC104 bus communication agreement, realize the on-the-spot full duplex real time communication between FlexRay bus and the PC104 bus, and seamless integrated identification, analysis, tracking and detection failure technology, solve signaling interface and exchanges data problem between FlexRay bus and the PC104 bus, be convenient to the quick effective integration of multibus control system.
The technical solution adopted for the present invention to solve the technical problems is as follows:
The invention provides the protocol converter of a kind of FlexRay of being used for bus and PC104 bus, it comprises bottom hardware and support programs two large divisions.
Bottom hardware comprises protocol conversion module, power adaptation module two parts.
Protocol conversion module is the core of described protocol converter bottom hardware, comprises master controller, FlexRay bus control unit, voltage isolation transducer, FlexRay bus transceiver and signal lamp.Solidify FlexRay bus and PC104 bus protocol conversion logic and configuration item in the master controller, realize exchanges data and Communication Control between FlexRay bus and the PC104 bus, it is connected with exterior PC 104 main control computers, and signal is realized voltage isolation and conversion via the voltage isolation transducer, be connected with the FlexRay bus control unit.The FlexRay bus control unit is configured and controls FlexRay bus communication process, and it is connected with the voltage isolation transducer realizes that voltage of signals is isolated and conversion, is connected with the FlexRay bus transceiver then.The FlexRay bus transceiver is connected with outside FlexRay network, is the interface of FlexRay bus control unit and physics FlexRay bus, for outside FlexRay network provides differential reception and transmitting capacity.Signal lamp is connected with primary processor, indication bus communication state and fault message.
Power adaptation module comprises power transfer module, electric source filter circuit and power supply indicator for protocol conversion module provides required direct voltage.Power adaptation module is by the PC104 bus interface, obtain direct voltage from exterior PC 104 main control computers, through electric source filter circuit electric current is cushioned and filtering, be converted to required direct voltage via power transfer module, power to the protocol conversion module related circuit, and be connected to show power supply state with power supply indicator.
Support programs are stored in the master controller, and exchanges data and communication process between FlexRay bus and the PC104 bus are controlled, and mainly realize finite state machine, carry out following steps successively:
1) power-up initializing is provided with the Status Flag bit vector;
2) the protocol converter self-detection mechanism checkout gear according to FlexRay bus and PC104 bus starts successfully sign, if this flag bit is effective, changes step 4) over to, otherwise, change step 3) over to;
3) fault detect identification, location and processing;
4) detect self check and successfully indicate,, change step 5) over to if this flag bit is effective, otherwise, change step 3) over to;
5) test initialization successfully indicates, if this flag bit is effective, changes step 6) over to, otherwise, change step 3) over to;
6) detect finite state machine and successfully start sign,, change step 7) over to if this flag bit is effective, otherwise, change step 3) over to; 7) detect the key node Status Flag,, change step 8) over to if this flag bit is effective, otherwise, change step 3) over to;
8) detect end operation request flag,, change step 10) over to if this flag bit is effective, otherwise, step 7) returned via step 9);
9) self adaptation is regulated;
10) detect sign out of service,, change step 11) over to if this flag bit is effective, otherwise, change step 3) over to;
11) set done state for finishing operation and outage cleared condition.
Bus protocol conversion operation process of the present invention is:
Described protocol converter two ends respectively with exterior PC 104 main control computers with after outside FlexRay network is connected, when exterior PC 104 main control computers are correlated with downstream site transmitting control commands and data in outside FlexRay network, these orders and data enter in the master controller, master controller is by interrupting receiving and resolving these orders or data, and decode by the PC104 bus protocol, then with decoded order, data and corresponding presupposed information are combined into one group of data-signal that satisfies the FlexRay agreement, and data-signal is realized voltage isolation and conversion via the voltage isolation transducer, the data that write the FlexRay bus control unit send buffering area, and the FlexRay bus control unit is sent to outside FlexRay network via voltage isolation transducer and FlexRay bus transceiver with data-signal.
When in the outside FlexRay network by on-the-spot FlexRay node when the PC104 main control computer sends data, at first the FlexRay bus transceiver receives on-the-spot FlexRay node and uploads information, carry out voltage isolation and conversion by the voltage isolation transducer, write the Data Receiving buffering area of FlexRay bus control unit, while FlexRay bus control unit sends reception to master controller and successfully arbitrates, master controller response arbitration, Data Receiving buffering area reading of data from the FlexRay bus control unit, and data-signal is realized voltage isolation and conversion via the voltage isolation transducer, according to FlexRay communication protocol the data of obtaining are decoded then, after then decoded data and corresponding presupposed information being combined into one group of data that satisfy the PC104 agreement, send control commands corresponding and data by master controller, be sent to exterior PC 104 main control computers through the PC104 bus.
In this process, master controller is according to perfect identification, analysis and follow the tracks of detection failure algorithm real-time tracking key node state, and the flicker of control signal indicator light is to show and to follow the tracks of the operating state and the fault message of this protocol converter.
The invention has the beneficial effects as follows, in the time of the signaling interface of realization FlexRay bus and PC104 bus and Communication Control, trigger mode switch problem settling time with Event triggered, optimize FlexRay binary channels redundancy communication logic, each functional module adopts mature technology and universal elements, simple in structure, circuit elements device interchangeability is good.
Description of drawings
Fig. 1 is the bottom hardware structured flowchart that the present invention is used for the protocol converter of FlexRay bus and PC104 bus.
Fig. 2 is the flow chart of the support programs of the present invention's protocol converter of being used for FlexRay bus and PC104 bus.
Embodiment
The present invention will be elaborated with reference to accompanying drawing in conjunction with example, so that to purpose of the present invention, feature and advantage are carried out more deep understanding.
Fig. 1 is the bottom hardware structure chart of the protocol converter of FlexRay bus and PC104 bus.This protocol converter bottom hardware comprises protocol conversion module 1 and power adaptation module 2 two large divisions altogether.
Protocol conversion module 1 is the core of described protocol converter, comprises a master controller 10, FlexRay bus control unit 12, voltage isolation transducer 11, voltage isolation transducer 13, voltage isolation transducer 15, FlexRay bus transceiver 14, FlexRay bus transceiver 16 and a signal lamp 17.
Master controller 10 adopts programmable logic device, solidify the protocol conversion logic and the configuration item of exchange of FlexRay bus and PC104 bus data and Communication Control, select the CPLD M4A5-192/96 of Lattice company in this example for use, it has 192 macrocells, 96 available I/O mouths are supported the JTAG debug standard.12 pairs of FlexRay bus communications of FlexRay bus control unit process is configured and controls, and selects the MFR4200 controller of FreeScale company in this example for use, and it provides 9 bit address lines, 16 position datawires, 11 signaling interfaces such as control line.FlexRay bus transceiver 14, FlexRay bus transceiver 16 are the interface of FlexRay controller and physics FlexRay bus, for outside FlexRay network provides differential reception and transmitting capacity, select the TJA1080A transceiver of NXP company in this example for use.Voltage isolation transducer 11, voltage isolation transducer 13, voltage isolation transducer 15, be used for voltage isolation and conversion,, select the level transferring chip LVC164245 of TI company in this example for use to guarantee the data normal communication and to avoid chip overvoltage damage.Signal lamp 17 is used to indicate bus communication state and fault message, selects the paster green LED in this example for use, encapsulation 0805.
Exterior PC 104 main control computers are connected with primary processor 10 via the I/O port with 16 position datawires, 8 control lines, 9 bit address line modes.Primary processor 10 is realized voltage isolation and conversion with 16 position datawires, 11 control lines, 9 bit address line modes via 11 pairs of signals of voltage isolation transducer, is connected with FlexRay bus control unit 12.Primary processor 10 is connected with signal lamp 17 simultaneously, indication bus communication state and fault message.FlexRay bus control unit 12 is connected with voltage isolation transducer 13, realizes that voltage of signals is isolated and conversion, be connected with FlexRay bus transceiver 14 then, and FlexRay bus transceiver 14 is connected with outside FlexRay network.The FlexRay bus is the binary channels redundant bus, after FlexRay bus control unit 12 also being arranged and voltage isolation transducer 15 being connected, be connected with FlexRay bus transceiver 16, and FlexRay bus transceiver 16 is connected with outside FlexRay network.
Power adaptation module 2 satisfies required direct voltage for protocol conversion module 1 provides, and comprises a power transfer module 20, electric source filter circuit 19, electric source filter circuit 21) and power supply indicator 22.
Power transfer module 20 realizes the level conversion function, selects the TPS7333Q low-dropout regulator of TI company in this example for use.Electric source filter circuit 19 is realized the buffering and the filtering of electric current, adopts one 100 μ F electrochemical capacitor and one 0.01 μ F capacitance series circuit in this example.Electric source filter circuit 21 is identical with structure with electric source filter circuit 19 principles.Power supply indicator 22 is used to indicate power supply status, selects the paster green LED in this example for use, encapsulation 0805.
Power adaptation module 2, cushions and filtering through 19 pairs of electric currents of electric source filter circuit, to protocol conversion module 1 circuit supply from exterior PC 104 main control computer acquisition+5V direct voltages by the PC104 bus interface; Simultaneously, be converted to+the 3.3V direct voltage, cushion and filtering, supply with FlexRay bus control unit 12 and use through 21 pairs of electric currents of electric source filter circuit via power transfer module 20 general+5V direct voltages; And be connected the display power supply on off operating mode with power supply indicator 22.
Fig. 2 is the flow chart of support programs of the protocol converter of FlexRay bus and PC104 bus.The support programs that the present invention is used for the protocol converter of FlexRay bus and PC104 bus are based on status poll and response mechanism realization finite state machine:
Step 20 is an initial actuating.
Step 21 Status Flag bit vector power-up initializing.
Step 22 starts successfully sign according to the protocol converter self-detection mechanism checkout gear of FlexRay bus and PC104 bus, if this flag bit is effective, changes step 24 over to; Otherwise, change step 23 over to.
Step 23 fault detect identification, location and processing.
Step 24 detects self check and successfully indicates, if this flag bit is effective, changes step 25 over to; Otherwise, change step 23 over to.
Step 25 test initialization successfully indicates, if this flag bit is effective, changes step 26 over to; Otherwise, change step 23 over to.
Step 26 detects finite state machine and successfully starts sign, if this flag bit is effective, changes step 27 over to; Otherwise, change step 23 over to.
Step 27 detects the key node Status Flag, if this flag bit is effective, changes step 28 over to; Otherwise, change step 23 over to.
Step 28 detects and finishes the operation request flag, if this flag bit is effective, changes step 30 over to; Otherwise, return step 27 via step 29.
Step 29 self adaptation is regulated.
Step 30 detects sign out of service, if this flag bit is effective, changes step 31 over to; Otherwise, change step 23 over to.
Step 31 is set done state for finishing operation and outage cleared condition.
Above-mentioned example only exemplifies for explanation the present invention, is not to be used to limit the present invention, and any equivalents based on the foregoing description all should be within scope of patent protection of the present invention.

Claims (2)

1. a protocol converter that is used for FlexRay bus and PC104 bus comprises bottom hardware and support programs two large divisions, it is characterized in that:
Bottom hardware comprises protocol conversion module, power adaptation module two parts;
Protocol conversion module is the core of this protocol converter, comprises master controller, FlexRay bus control unit, voltage isolation transducer, FlexRay bus transceiver and signal lamp; Solidify FlexRay bus and PC104 bus protocol conversion logic and configuration item in the master controller, be connected, via the voltage isolation transducer signal is realized voltage isolation and conversion simultaneously, be connected with the FlexRay bus control unit with exterior PC 104 main control computers; The FlexRay bus control unit is configured and controls FlexRay bus communication process, is connected with the voltage isolation transducer to realize that voltage of signals is isolated and conversion, is connected with the FlexRay bus transceiver then; The FlexRay bus transceiver is connected with outside FlexRay network, for outside FlexRay network provides differential reception and transmitting capacity; Signal lamp is connected with primary processor, indication bus communication state and fault message;
Power adaptation module comprises power transfer module, electric source filter circuit and power supply indicator for protocol conversion module provides required direct voltage; Power adaptation module is by the PC104 bus interface, obtain direct voltage from exterior PC 104 main control computers, through electric source filter circuit electric current is cushioned and filtering, be converted to required direct voltage via power transfer module, power to the protocol conversion module related circuit, and be connected to show power supply state with power supply indicator;
Support programs are stored in the master controller, and exchanges data and communication process between FlexRay bus and the PC104 bus are controlled, and mainly realize finite state machine.
2. the protocol converter that is used for FlexRay bus and PC104 bus according to claim 1, it is characterized in that: described support programs are carried out following steps successively:
1) power-up initializing is provided with the Status Flag bit vector;
2) the protocol converter self-detection mechanism checkout gear according to FlexRay bus and PC104 bus starts successfully sign, if this flag bit is effective, changes step 4) over to, otherwise, change step 3) over to;
3) fault detect identification, location and processing;
4) detect self check and successfully indicate,, change step 5) over to if this flag bit is effective, otherwise, change step 3) over to;
5) test initialization successfully indicates, if this flag bit is effective, changes step 6) over to, otherwise, change step 3) over to;
6) detect finite state machine and successfully start sign,, change step 7) over to if this flag bit is effective, otherwise, change step 3) over to;
7) detect the key node Status Flag,, change step 8) over to if this flag bit is effective, otherwise, change step 3) over to;
8) detect end operation request flag,, change step 10) over to if this flag bit is effective, otherwise, step 7) returned via step 9);
9) self adaptation is regulated;
10) detect sign out of service,, change step 11) over to if this flag bit is effective, otherwise, change step 3) over to;
11) set done state for finishing operation and outage cleared condition.
CN2010105215726A 2010-10-27 2010-10-27 Protocol converter for FlexRay bus and PC104 bus Expired - Fee Related CN101969393B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105215726A CN101969393B (en) 2010-10-27 2010-10-27 Protocol converter for FlexRay bus and PC104 bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105215726A CN101969393B (en) 2010-10-27 2010-10-27 Protocol converter for FlexRay bus and PC104 bus

Publications (2)

Publication Number Publication Date
CN101969393A true CN101969393A (en) 2011-02-09
CN101969393B CN101969393B (en) 2012-05-23

Family

ID=43548499

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105215726A Expired - Fee Related CN101969393B (en) 2010-10-27 2010-10-27 Protocol converter for FlexRay bus and PC104 bus

Country Status (1)

Country Link
CN (1) CN101969393B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868583A (en) * 2012-06-06 2013-01-09 浙江吉利汽车研究院有限公司杭州分公司 FlexRay bus joint with fault diagnosis function
CN106302061A (en) * 2016-07-26 2017-01-04 北京润科通用技术有限公司 A kind of communication means based on FlexRay bus, Apparatus and system
CN108011697A (en) * 2017-11-30 2018-05-08 艾体威尔电子技术(北京)有限公司 A kind of data exchange communications method between non-contact card and terminal
CN109617921A (en) * 2019-01-23 2019-04-12 北京交通大学 The conversion equipment and method of FlexRay agreement and 802.11p agreement
CN110837486A (en) * 2019-11-13 2020-02-25 天津津航计算技术研究所 FlexRay-CPCIe communication module based on FPGA

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030043793A1 (en) * 2001-08-31 2003-03-06 Juergen Reinold Vehicle active network
CN1491008A (en) * 2003-08-28 2004-04-21 东南大学 Embedded gate for realizing interconnection between networks with different structures
CN101478460A (en) * 2008-10-28 2009-07-08 上海电力学院 FlexRay-CAN communication gateway and implementing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030043793A1 (en) * 2001-08-31 2003-03-06 Juergen Reinold Vehicle active network
CN1491008A (en) * 2003-08-28 2004-04-21 东南大学 Embedded gate for realizing interconnection between networks with different structures
CN101478460A (en) * 2008-10-28 2009-07-08 上海电力学院 FlexRay-CAN communication gateway and implementing method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868583A (en) * 2012-06-06 2013-01-09 浙江吉利汽车研究院有限公司杭州分公司 FlexRay bus joint with fault diagnosis function
CN102868583B (en) * 2012-06-06 2015-06-10 浙江吉利汽车研究院有限公司杭州分公司 FlexRay bus joint with fault diagnosis function
CN106302061A (en) * 2016-07-26 2017-01-04 北京润科通用技术有限公司 A kind of communication means based on FlexRay bus, Apparatus and system
CN108011697A (en) * 2017-11-30 2018-05-08 艾体威尔电子技术(北京)有限公司 A kind of data exchange communications method between non-contact card and terminal
CN108011697B (en) * 2017-11-30 2020-09-18 艾体威尔电子技术(北京)有限公司 Data exchange communication method between non-contact card and terminal
CN109617921A (en) * 2019-01-23 2019-04-12 北京交通大学 The conversion equipment and method of FlexRay agreement and 802.11p agreement
CN109617921B (en) * 2019-01-23 2020-07-07 北京交通大学 Conversion device and method for FlexRay protocol and 802.11p protocol
CN110837486A (en) * 2019-11-13 2020-02-25 天津津航计算技术研究所 FlexRay-CPCIe communication module based on FPGA
CN110837486B (en) * 2019-11-13 2023-07-28 天津津航计算技术研究所 FlexRay-CPCIe communication system based on FPGA

Also Published As

Publication number Publication date
CN101969393B (en) 2012-05-23

Similar Documents

Publication Publication Date Title
CN101969393B (en) Protocol converter for FlexRay bus and PC104 bus
CN102253913B (en) Device for carrying out state acquisition and output control on multi-board-card port
CN101661454B (en) High-speed serial buss system capable of being dynamically reconfigured and control method thereof
US20050080887A1 (en) Redundant management control arbitration system
CN106826825B (en) A kind of more mechanical arm wireless control cabinets and more mechanical arm control systems
CN102662904A (en) Plug-and-play system based on controller area network (CAN) bus and design method thereof
US8392638B2 (en) Master-slave device communication circuit and ID address setting method thereof
CN104317677A (en) Brickland-based redundant monitoring management system and method
US5724343A (en) Device for communications between a plurality of functional modules installed in a local unit and an ARINC 629 type external bus
CN102098196B (en) The data transmission method of blade server
CN209813737U (en) Magnetic-levitation train and levitation control system and controller thereof
CN209657123U (en) A kind of control system
CN102768561A (en) Design method for twinbridge piece mainboard redundancy
CN201699729U (en) Monitoring control device
CN205203008U (en) Possesses empty control unit of vehicle electricity who is listed as tail function
CN103532804A (en) Double-Ethernet networking server provided with multi-serial ports
KR102066887B1 (en) System for Motor Control Center having Redundant Protection Control Module
CN112550636A (en) Cabin monitored control system based on dual redundancy
CN114615106B (en) Ring data processing system, method and network equipment
CN203876779U (en) 64D block machine based on DTMF communication
CN214384911U (en) Train network communication device and system
CN106850264B (en) A kind of network equipment
CN102023959A (en) Communication conversion bridge set based on USB-HID (universal serial bus-human input device) protocol
CN205812069U (en) A kind of internet interface conversion equipment for connecting Clinical Laboratory equipment
CN109120143B (en) Method, main controller and system for controlling power on and power off

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: MIANYANG WEIBO ELECTRONIC CO., LTD.

Free format text: FORMER OWNER: SICHUAN MIANYANG SOUTHWEST AUTOMATION INSTITUTE

Effective date: 20111226

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20111226

Address after: 621000 Mianyang city of Sichuan Province Branch Chong Park Innovation Service Center

Applicant after: Mianyang Weibo Electronic Co., Ltd.

Address before: 621000 Mianyang province Sichuan City Youxian District Road No. seven two immortals

Applicant before: Sichuan Mianyang Southwest Automation Institute

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: 20120523

Termination date: 20161027

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