CN101895549A - Conversion gateway and conversion method of vehicle communication network data - Google Patents

Conversion gateway and conversion method of vehicle communication network data Download PDF

Info

Publication number
CN101895549A
CN101895549A CN2010102326892A CN201010232689A CN101895549A CN 101895549 A CN101895549 A CN 101895549A CN 2010102326892 A CN2010102326892 A CN 2010102326892A CN 201010232689 A CN201010232689 A CN 201010232689A CN 101895549 A CN101895549 A CN 101895549A
Authority
CN
China
Prior art keywords
data
communication protocol
decoded
interface
buffer area
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
CN2010102326892A
Other languages
Chinese (zh)
Other versions
CN101895549B (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.)
CRRC Dalian R&D Co Ltd
Original Assignee
CNR Dalian Electric Traction R& D Center 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 CNR Dalian Electric Traction R& D Center Co Ltd filed Critical CNR Dalian Electric Traction R& D Center Co Ltd
Priority to CN201010232689.2A priority Critical patent/CN101895549B/en
Publication of CN101895549A publication Critical patent/CN101895549A/en
Application granted granted Critical
Publication of CN101895549B publication Critical patent/CN101895549B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a conversion gateway and conversion method of vehicle communication network data. The vehicle communication network data comprises first communication protocol data and second communication protocol data of a data link layer. The conversion method of the vehicle communication network data comprises the following steps of: decoding the received first communication protocol data, and writing the first communication protocol data into a data buffer area; and reading the decoded data from the data buffer area, coding the data according to the requirements of the second communication protocol, and then, sending the data. By decoding one kind of communication protocol data and then coding the communication protocol data into another kind of communication protocol data, the invention can realize interconnection and intercommunication among network elements with different communication protocols.

Description

Vehicle communication network data transfer gateway and conversion method thereof
Technical field
The present invention relates to the communication network technology field, particularly relate to a kind of vehicle communication network data transfer gateway and conversion method thereof.
Background technology
Multifunction vehicle bus (MVB, Multifunctional Vehicle Bus) is to be positioned at same vehicle, or the standard device in the different vehicle of fixed-interlock is connected to the vehicle bus on the TCN.MVB adopts the MS master-slave mode, to the visit of medium by main equipment centralized control unique on the bus.Main equipment is divided into two parts with bus width, i.e. the part (cycle phase) of periodic fixed allocation and demand assigned part (mutually accidental).Cycle transfers process data, the accidental message data that transfers.Equipment among the MVB can be divided into totally 6 types of 0~5 classes by function, and wherein, class 0 equipment does not have its communication ability, mainly comprises repeater and bus coupler etc.; 1 kind equipment has process data disposal ability and equipment state responding ability; 2~5 kind equipments also have the message data disposal ability except that the function with a kind equipment, wherein the 4th class and the 5th kind equipment also have the bus management ability, can be used as bus master and use.The international standard that the MVB agreement is followed is IEC61375, i.e. TCN (TCN, Train Communication Network) standard.
High-Level Data Link Control (HDLC, High-Level Data Link Control) agreement be one at Synchronization Network transmitting data, bit-oriented data link layer protocol, HDLC guarantees that the data that are sent to down one deck can be received (correct without any loss and sequence during just mistake discharges) exactly in transmission course; Another critical function of HDLC is flow control, in case receiving terminal is received data, just can transmit immediately.The consensus standard of HDLC is ISO 13239, and its physical layer adopts the RS485 interface usually, and at industrial control field, the HDLC ordinary representation operates in the HDLC on the RS485 basis.
In the TCN network, except that the MVB network element, also exist and use HDLC network element more widely, but prior art does not also have MVB to change the gateway product of HDLC; In addition, though there is MVB to change universal asynchronous receiving/transmitting device (UART, Universal Asynchronous Receiver/Transmitter) RS485 gateway product, but the hardware configuration of URAT-RS485 and HDLC and software arrangements are all inequality, do not possess the correlation function of HDLC.Therefore, need the urgent technical problem that solves of those skilled in the art to be exactly: how a kind of method is provided, can realizes the mutual conversion between MVB and the HDLC network element, thereby realization to have interconnecting between the product of different communication protocol.
Summary of the invention
Technical problem to be solved by this invention provides a kind of vehicle communication network data conversion method, can solve the problem that interconnects between the product with different communication protocol.
The present invention also provides a kind of vehicle communication network data transfer gateway, to guarantee said method application in practice.
In order to address the above problem, the invention discloses a kind of vehicle communication network data conversion method, described vehicle communication network data comprises first communication protocol data and the second communication protocol data of data link layer, the conversion method of described vehicle communication network data comprises: described first communication protocol data that will receive is decoded, and writes data buffer area; Read described decoded data from described data buffer area, send after encoding by described second communication protocol requirement.
Preferably, the read-write mode of described data buffer area is the first in first out control mode.
Preferably, described first communication protocol is multifunction vehicle bus, described described first communication protocol data that will receive is decoded, the method that writes data buffer area is specially: the prime frame data that detect and receive described multifunction vehicle bus, decoding back generating solution code data writes data buffer area; Circulation receives data from described multifunction vehicle bus in default decode time scope, and the decoding back writes data buffer area as described prime frame data from the frame data order.
Preferably, described second communication agreement is a High level data link control, describedly read described decoded data from described data buffer area, the method that sends after encoding by described second communication protocol requirement is specially: read described decoded data from described data buffer area, carry out and go here and there conversion, and insert banner word " 0 " back order and send.
Preferably, described first communication protocol is High level data link control, described described first communication protocol data that will receive is decoded, and the method that writes data buffer area is specially: the described High level data link control Data Detection that will receive and deleted marker word " 0 " back generating solution code data; Described decoded data gone here and there and change after write described data buffer area.
Preferably, described second communication agreement is a multifunction vehicle bus, describedly read described decoded data from described data buffer area, the method that sends after encoding by described second communication protocol requirement is specially: start Manchester codec, read the described decoded data of preset length from described data buffer area, be converted to Manchester code, and send after adding prime frame frame head and postamble; In the preset coding time range, circulate then and read the data of preset length from described data buffer area, be converted to Manchester code, and interpolation sends behind frame frame head and postamble.
Preferably, also comprised before said write data buffer area step: the data that will preset long back, position judge whether consistent with the local check code that produces as check code; If then the long data in described default position are write data buffer area.
Preferably, after reading described decoded data step, also comprise: the additional local check code that produces after the long data in each default position from described data buffer area.
Preferably, described default decode time is 1.3 milliseconds; The described preset coding time is 2~6 microseconds.
According to another preferred embodiment of the present invention, a kind of vehicle communication network data transfer gateway is also disclosed, comprise the first communication Protocol Conversion module, interface control module and second communication protocol conversion module, wherein: the described first communication Protocol Conversion module is used for described first communication protocol data that receives is decoded, and submits decoded data to described interface control module; And, ask described interface control module to read decoded data, and send after encoding by the call format of described first communication protocol; Described second communication protocol conversion module is used for the described second communication protocol data that receives is decoded, and submits decoded data to described interface control module; And, ask described interface control module to read decoded data, and send after encoding by the call format of described second communication agreement; Described interface control module is used to receive the decoded data of described first communication Protocol Conversion module and/or the submission of second communication protocol conversion module, and writes data buffer area by the mode of first in first out; And, according to the request of the first communication Protocol Conversion module and/or second communication protocol conversion module, read decoded data by the mode of first in first out from data buffer area.
Preferably, also comprise the first communication protocol network interface and second communication protocol network interface, the described first communication protocol network interface is used for described gateway is connected to the first communication protocol network element, and described second communication protocol network interface is used for described gateway is connected to second communication agreement network element.
Preferably, the first communication protocol network interface is the multifunction vehicle bus physical interface; The described first communication Protocol Conversion module comprises that specifically Manchester codec, Frame write control unit, Frame read control unit, wherein: described Manchester codec is used for receiving Manchester code data from described multifunction vehicle bus physical interface, behind decoding and the deletion frame head postamble, submit decoded data to described Frame write control unit; And the request according to described Frame reads control unit is converted to Manchester code with decoded data and also adds prime frame head and postamble or behind frame head and postamble, be sent to described multifunction vehicle bus physical interface; Described Frame write control unit is used to receive the decoded data that described Manchester codec is submitted to, submit described interface control module to as the prime frame data, circulation is read described decoded data from described Manchester codec in default decode time scope then, and as submitting described interface control module to from the frame data order; Described Frame reads control unit and is used for reading decoded data from described interface control module, submit described Manchester codec to as prime frame, circulation is read described decoded data from described interface control module in the preset coding time range then, and as submitting described Manchester codec to from the frame data order.
Preferably, second communication protocol network interface is the High level data link control interface, described second communication agreement control module specifically comprises data decode unit, string and TCU transfer control unit and goes here and there TCU transfer control unit and digital coding unit, wherein: described data decode unit is used for receiving the High level data link control data from described High level data link control interface, behind detection and the deleted marker word " 0 ", submit described string and TCU transfer control unit to as decoded data; Described string and TCU transfer control unit are used to receive the decoded data that described data decode unit is submitted to, go here and there and change the back and submit described interface control module to; Described and string TCU transfer control unit is used for reading decoded data from described interface control module, carries out and go here and there the described digital coding of conversion back submission unit; Described digital coding unit is used to receive decoded data described and that the string TCU transfer control unit is submitted to, behind the insertion banner word " 0 ", is sent to described High level data link control interface.
Preferably, described gateway also comprises the verification control module, be used for answering the request of described Frame write control unit and/or string and TCU transfer control unit that described decoded data is carried out verification, and, should described Frame read control unit and/or and to go here and there the request of TCU transfer control unit be the additional check code of decoded data.
Preferably, described second communication protocol conversion module also comprises the global clock unit, is used for the sequential of unifying described data decode unit, string and TCU transfer control unit and going here and there TCU transfer control unit and digital coding unit.
Preferably, the described first communication Protocol Conversion module, interface control module and second communication protocol conversion module adopt the field programmable gate array circuit to realize; Described interface control module also is provided with the CPU connecting interface, is used to transmit the request that described first communication Protocol Conversion module and second communication protocol conversion module send to CPU.
Compared with prior art, the present invention has the following advantages:
The present invention can realize having interconnecting between the different communication protocol network element by with being encoded into another kind of communication protocol data again after a kind of communication protocol data decoding.
In a preferred embodiment of this invention, by Manchester codec, behind the MVB data frame coding and decoding, can realize the intercommunication of other communication protocols (as HDLC) in MVB agreement and the TCN network in data link layer, solve the problem that to control mutually between the MVB network element and other communication protocol network elements in the existing TCN network, can improve the overall control ability of train greatly.
In a preferred embodiment of this invention, each functional module of gateway adopts field programmable gate array (FPGA, Field-Programmable Gate Array) circuit to realize, at first, can improve the processing speed of gateway by the mode of frequency multiplication external clock; Secondly, can utilize the abundant I/O resource of FPGA, realization is connected with multiple network element device; The 3rd, but each the functional module concurrent running in the gateway has further ensured the high-performance operation of gateway.
Description of drawings
Fig. 1 is vehicle communication network data conversion method one an embodiment flow chart of the present invention;
Fig. 2-a is the method specific embodiment flow chart that MVB data of the present invention are converted to the HDLC data;
Fig. 2-b is the method specific embodiment flow chart that HDLC data of the present invention are converted to the MVB data;
Fig. 3 is the structured flowchart of vehicle communication network data transfer gateway one embodiment of the present invention;
Fig. 4 is the structured flowchart of MVB of the present invention and HDLC data switching gateway specific embodiment.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
One of core idea of the present invention is, characteristics at the main network communication protocol that adopts in the TCN network (MVB and HDLC), to the network data that receives decode, buffer memory after the verification, then, from buffer area, read decoded data again, after adding check code,, thereby in data link layer realization TCN network, interconnect between the network element of different network protocol according to characteristics coding, the transmission of conversion back network communication protocol.
With reference to Fig. 1, show the flow process of vehicle communication network data conversion method one embodiment of the present invention, vehicle communication network data before and after the conversion is respectively first communication protocol data and the second communication protocol data of data link layer, and conversion method specifically may further comprise the steps:
Step S101: first communication protocol data that will receive is installed first communications protocol format and is decoded, and decoded decoded data is write data buffer area;
Step S102: read decoded data from data buffer area, send after encoding by the requirement of second communication protocol format.
In a preferred embodiment of the invention, write data buffer area and be first-in first-out from the control mode of data buffer area reading of data.
Below, specifically, the vehicle communication network data conversion method is described with the example that is converted between widely used MVB in the TCN network and the HDLC data in link layer.
With reference to Fig. 2-a, show the flow process that the MVB data are converted to the HDLC data, specifically comprise:
Step S201: Manchester codec detects and receives the prime frame data of multifunction vehicle bus by the MVB interface, and decoding back generating solution code data writes interim buffer area;
The MVB data in link layer is base unit with the frame, and except that the frame head postamble, other parts all are the Manchester code of standard in the MVB Frame.The MVB Frame is divided into prime frame and from frame, its frame head has different codings, and postamble is the low level of 0.75BT+125nS.
Step S202: the decoded data that described Manchester codec receives and the decoding back generates is read in circulation in default decode time scope, writes interim buffer area as above-mentioned prime frame data from the frame data order;
In this preferred embodiment, default decode time is 1.3 milliseconds, that is to say, assert the data that Manchester codec is received in 1.3 milliseconds, for aforementioned prime frame data from frame data.
Step S203: the data in the interim buffer area are carried out CRC check,, then the data in the interim buffer area are write data buffer area by the control mode of first in first out successively if all data all do not have crc error;
Step S204: read decoded data from data buffer area, carry out and go here and there conversion, then the additional CRC check sign indicating number that self produces after the long data in each default position;
In this preferred embodiment, default position is long to be 64, when growing up in 64 the time in the position of decoded data, every 64 additional one 8 CRC check sign indicating numbers; When the position of decoded data long when being less than or equal to 64, additional one 8 the CRC check sign indicating number at the end of decoded data.
Step S205: in the data of having added the CRC check sign indicating number, insert banner word " 0 " back and generate the HDLC data, be sent to the HDLC interface.
With reference to Fig. 2-b, show the flow process that the HDLC data are converted to the MVB data, specifically comprise:
Step S221: receive the HDLC data from the HDLC interface, detect and deleted marker word " 0 " back generating solution code data;
Step S222: judge whether above-mentioned decoded data does not have crc error, if then change step 223;
Step S223: above-mentioned decoded data gone here and there and change after write data buffer area;
Step S224: start Manchester codec, read the decoded data of preset length, be converted to Manchester code, and be sent to the MVB interface as the prime frame data after adding prime frame frame head and postamble from data buffer area;
Step S225: circulation is read the data of preset length from data buffer area in the preset coding time range, is converted to Manchester code, and adds behind frame frame head and the postamble as being sent to the MVB interface from frame data.
In this preferred embodiment, the preset coding time is 2~6 microseconds, that is to say, assert that Manchester codec obtains and be converted to the data of Manchester code in 2~6 microseconds from data buffer area in the time, for aforementioned prime frame data from frame data; In addition, default position is long to be 64, when growing up in 64 the time in the position of decoded data, every 64 additional one 8 CRC check sign indicating numbers; When the position of decoded data long when being less than or equal to 64, additional one 8 the CRC check sign indicating number at the end of decoded data.
For aforesaid each method embodiment, simple in order to describe, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art should know that also said method embodiment all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
With reference to Fig. 3, show the structured flowchart of vehicle communication network data transfer gateway one embodiment of the present invention, specifically comprise with lower module:
The first communication Protocol Conversion module 31: be used for first communication protocol data that receives from the first communication protocol network interface 34 is decoded, and submit decoded data to interface control module 33; And request interface control module 33 reads decoded data, and is sent to the first communication protocol network interface 34 after encoding by the requirement of first communications protocol format;
Second communication protocol conversion module 32: be used for the second communication protocol data that receives from second communication protocol network interface 35 is decoded, and submit decoded data to interface control module 33; And request interface control module 33 reads decoded data, and is sent to second communication protocol network interface 35 after encoding by the requirement of first communications protocol format;
Interface control module 33: be used to receive the decoded data of the first communication Protocol Conversion module 31 and 32 submissions of second communication protocol conversion module, and write data buffer area by the mode of first in first out; And, according to the request of the first communication Protocol Conversion module 31 and second communication protocol conversion module 32, read decoded data by the mode of first in first out from data buffer area;
The first communication protocol network interface 34: be used to set up being connected of vehicle communication network data transfer gateway and the first communication protocol network element, the data that the first communication Protocol Conversion module 31 is sent are committed to the first communication protocol network element, and the data that the first communication protocol network element is sent are committed to the first communication Protocol Conversion module 31;
Second communication protocol network interface 35: be used to set up being connected of vehicle communication network data transfer gateway and second communication agreement network element, the data that second communication protocol conversion module 32 is sent are committed to second communication agreement network element, and the data that second communication agreement network element is sent are committed to second communication protocol conversion module 32.
Below, specifically with the conversion between widely used MVB in the TCN network and the HDLC network data, and be example as the specific implementation of main components and parts with CPU and FPGA circuit board, the structure and the workflow of MVB and HDLC transfer gateway are described, Fig. 4 wherein shows the structured flowchart of MVB and HDLC transfer gateway, comprise FPGA41, MVB interface 42, HDLC interface 43 and CPU44, wherein:
MVB interface 42: be used to set up being connected of MVB and HDLC transfer gateway and MVB bus, the data that MVB modular converter 411 is sent are committed to the MVB bus, and, will be committed to MVB modular converter 411 from the MVB network data of MVB bus;
HDLC interface 43: be used to set up being connected of MVB and HDLC transfer gateway and HDLC network element, the HDLC network data that HDLC modular converter 412 is sent is committed to the HDLC network element, and, will be committed to HDLC modular converter 412 from the HDLC network data of HDLC network element;
CPU44: be used to receive and handle the processing request that MVB modular converter 411 and HDLC modular converter 412 are submitted to by interface control module 413;
FPGA41: be used to realize the conversion between MVB and the HDLC data, comprise MVB modular converter 411, HDLC modular converter 412, interface control module 413, verification control module 414 and memory 415.
MVB modular converter 411 is used for and will is converted to data in link layer after the MVB Frame decoding from MVB interface 42, asks 414 pairs of decoded datas of verification control module to carry out CRC check, will submit interface control module 413 to by the decoded data of verification then, and, the decoded data that will read from data buffer area by interface control module 413, request verification control module 414 additional CRC check sign indicating numbers, submit MVB interface 42 to after being converted to the MVB Frame again;
HDLC modular converter 412 is used for from the HDLC Data Detection of HDLC interface 43 and deleted marker word " 0 ", decoded data is carried out CRC check, will go here and there and change the back and submit interface control module 413 to by the decoded data of verification again, and, will be undertaken by the decoded data that interface control module 413 reads from data buffer area and go here and there conversion, additional CRC check sign indicating number, insert banner word " 0 " back and submit HDLC interface 43 to;
Interface control module 413 is used to receive the decoded data of MVB modular converter 411 and 412 submissions of HDLC modular converter, and writes data buffer area by the mode of first in first out; And, according to the request of MVB modular converter 411 and HDLC modular converter 412, read decoded data by the mode of first in first out from data buffer area;
Verification control module 414 is used to MVB modular converter 411 and HDLC modular converter 412 that the CRC check service is provided, and, answer MVB modular converter 411 and 412 requests of HDLC modular converter to generate and add the CRC check sign indicating number for decoded data.
Memory 415 is used to connect for data buffer area provides memory space.
MVB modular converter 411 comprises that specifically Manchester codec 4111, Frame write control unit 4112 and Frame read control unit 4113, wherein:
Manchester codec 4111 is made up of encoder two parts, and encoder is used for that Frame is read the data that control unit 4113 submits to and is converted to Manchester code, and is sent to MVB interface 42 after adding corresponding frame head and postamble; Decoder is used for the trailing edge by MVB interface 42 Monitoring Line level, and with its beginning as each frame, after judging that frame head data is correct, Manchester code data decoded, submit to Frame write control unit 4112 as decoded data after being converted to normal data link layer logical data thereafter;
Frame write control unit 4112 is used to receive the decoded data that Manchester codec 4111 is submitted to, be committed to interface control module 413 as the prime frame data, then with corresponding port setting " port effective marker ", and (1.3 milliseconds) circulation is read decoded data from Manchester codec 4111 in default decode time scope, and as being committed to interface control module 413 from the frame data order; Before decoded data is committed to interface control module 413, Frame write control unit 4112 at first will carry out CRC check to decoded data, method is: after Frame write control unit 4112 reads decoded data from Manchester codec 4111, write extra buffer earlier, every position through a regulation is long, all read in one 8 CRC check sign indicating number, and this check code is committed to verification control module 414 carries out CRC check, if not by CRC check, " signal error " sign is set then; If all decoded datas all do not have crc error, then submit the data in the extra buffer to interface control module 413 successively; Otherwise the data in the interim buffer area are not submitted interface control module 413 to;
Frame reads control unit 4113 and is used for request interface control module 413 and reads decoded data from data buffer area, be committed to Manchester codec 4111 as the prime frame data, (2~6 microsecond) circulation is read decoded data from interface control module 413 in the preset coding time range then, and as submitting Manchester codec 4111 to from the frame data order; Frame read control unit 4113 before submitting Manchester codec 4111 to the prime frame data with from frame data, every position long (as 64) through a regulation, the CRC check sign indicating number that all will ask additional one 8 of verification control module 414 is (to greater than the long data of predetermined bits, position every a regulation is long, additional one 8 CRC check sign indicating number; To less than the long data of predetermined bits, only add one 8 CRC check sign indicating number) at the data end.
HDLC modular converter 412 specifically comprises data decode unit 4121, string and TCU transfer control unit 4122 and goes here and there TCU transfer control unit 4123, digital coding unit 4124 and global clock 4125, wherein:
Data decode unit 4121 is used for receiving from HDLC interface 43 the HDLC data of data link layer, behind detection and the deleted marker word " 0 ", is committed to string and TCU transfer control unit 4122 as decoded data;
String and TCU transfer control unit 4122 are used to receive the decoded data that data decode unit 4121 is submitted to, and request verification control module 414 is carried out CRC check, then, after will going here and there and change by the decoded data of CRC check, be committed to interface control module 413;
And string TCU transfer control unit 4123 is used for request interface control module 413 and reads decoded data from the data buffer zone, carries out and go here and there after the conversion, and request verification control module 414 is added the CRC check sign indicating numbers, is committed to digital coding unit 4124 then;
Digital coding unit 4124 is used to receive and go here and there the decoded data that TCU transfer control unit 4123 is submitted to, insert banner word " 0 " after, be sent to HDLC interface 43.
Global clock 4125 is used for uniform data decoding unit 4121, string and TCU transfer control unit 4122 and the sequential of TCU transfer control unit 4123 and digital coding unit 4124 of going here and there, to reach minimum clock jitter and delay.
Need to prove that said apparatus embodiment belongs to preferred embodiment, related module and unit might not be that the present invention is necessary.In addition, above-mentioned MVB modular converter 411, HDLC modular converter 412 are gone back available dedicated MVB control chip and the HDLC control chip replaces FPGA to realize.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For device embodiment of the present invention, because it is similar substantially to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
More than a kind of vehicle communication network data transfer gateway provided by the present invention and conversion method thereof are described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (16)

1. a vehicle communication network data conversion method is characterized in that, described vehicle communication network data comprises first communication protocol data and the second communication protocol data of data link layer, and the conversion method of described vehicle communication network data comprises:
Described first communication protocol data that receives is decoded, write data buffer area;
Read described decoded data from described data buffer area, send after encoding by described second communication protocol requirement.
2. the method for claim 1 is characterized in that, the read-write mode of described data buffer area is the first in first out control mode.
3. method as claimed in claim 2 is characterized in that, described first communication protocol is multifunction vehicle bus, and described described first communication protocol data that will receive is decoded, and the method that writes data buffer area is specially:
Detect and receive the prime frame data of described multifunction vehicle bus, decoding back generating solution code data writes data buffer area;
Circulation receives data from described multifunction vehicle bus in default decode time scope, and the decoding back writes data buffer area as described prime frame data from the frame data order.
4. method as claimed in claim 3, it is characterized in that, described second communication agreement is a High level data link control, describedly reads described decoded data from described data buffer area, and the method that sends after encoding by described second communication protocol requirement is specially:
Read described decoded data from described data buffer area, carry out and go here and there conversion, and insert banner word " 0 " back order and send.
5. method as claimed in claim 2 is characterized in that, described first communication protocol is High level data link control, and described described first communication protocol data that will receive is decoded, and the method that writes data buffer area is specially:
With described High level data link control Data Detection and deleted marker word " 0 " the back generating solution code data of receiving;
Described decoded data gone here and there and change after write described data buffer area.
6. method as claimed in claim 5 is characterized in that, described second communication agreement is a multifunction vehicle bus, describedly reads described decoded data from described data buffer area, and the method that sends after encoding by described second communication protocol requirement is specially:
Start Manchester codec, read the described decoded data of preset length, be converted to Manchester code, and send after adding prime frame frame head and postamble from described data buffer area; In the preset coding time range, circulate then and read the data of preset length from described data buffer area, be converted to Manchester code, and interpolation sends behind frame frame head and postamble.
7. as claim 3 or 5 described methods, it is characterized in that, before said write data buffer area step, also comprise:
As check code, judge whether consistent the data of long back, default position with the check code of local generation; If then the long data in described default position are write data buffer area.
8. as claim 4 or 6 described methods, it is characterized in that, after reading described decoded data step, also comprise: the additional local check code that produces after the long data in each default position from described data buffer area.
9. as claim 3 or 6 described methods, it is characterized in that described default decode time is 1.3 milliseconds; The described preset coding time is 2~6 microseconds.
10. a vehicle communication network data transfer gateway is characterized in that, comprises the first communication Protocol Conversion module, interface control module and second communication protocol conversion module, wherein:
The described first communication Protocol Conversion module is used for described first communication protocol data that receives is decoded, and submits decoded data to described interface control module; And, ask described interface control module to read decoded data, and send after encoding by the call format of described first communication protocol;
Described second communication protocol conversion module is used for the described second communication protocol data that receives is decoded, and submits decoded data to described interface control module; And, ask described interface control module to read decoded data, and send after encoding by the call format of described second communication agreement;
Described interface control module is used to receive the decoded data of described first communication Protocol Conversion module and/or the submission of second communication protocol conversion module, and writes data buffer area by the mode of first in first out; And, according to the request of the first communication Protocol Conversion module and/or second communication protocol conversion module, read decoded data by the mode of first in first out from data buffer area.
11. gateway as claimed in claim 10, it is characterized in that, also comprise the first communication protocol network interface and second communication protocol network interface, the described first communication protocol network interface is used for described gateway is connected to the first communication protocol network element, and described second communication protocol network interface is used for described gateway is connected to second communication agreement network element.
12. gateway as claimed in claim 11 is characterized in that, the first communication protocol network interface is the multifunction vehicle bus physical interface; The described first communication Protocol Conversion module comprises that specifically Manchester codec, Frame write control unit, Frame read control unit, wherein:
Described Manchester codec is used for receiving Manchester code data from described multifunction vehicle bus physical interface, behind decoding and the deletion frame head postamble, submits decoded data to described Frame write control unit; And the request according to described Frame reads control unit is converted to Manchester code with decoded data and also adds prime frame head and postamble or behind frame head and postamble, be sent to described multifunction vehicle bus physical interface;
Described Frame write control unit is used to receive the decoded data that described Manchester codec is submitted to, submit described interface control module to as the prime frame data, circulation is read described decoded data from described Manchester codec in default decode time scope then, and as submitting described interface control module to from the frame data order;
Described Frame reads control unit and is used for reading decoded data from described interface control module, submit described Manchester codec to as prime frame, circulation is read described decoded data from described interface control module in the preset coding time range then, and as submitting described Manchester codec to from the frame data order.
13. gateway as claimed in claim 11, it is characterized in that, second communication protocol network interface is the High level data link control interface, described second communication agreement control module specifically comprises data decode unit, string and TCU transfer control unit and goes here and there TCU transfer control unit and digital coding unit, wherein:
Described data decode unit is used for receiving the High level data link control data from described High level data link control interface, behind detection and the deleted marker word " 0 ", submits described string and TCU transfer control unit to as decoded data;
Described string and TCU transfer control unit are used to receive the decoded data that described data decode unit is submitted to, go here and there and change the back and submit described interface control module to;
Described and string TCU transfer control unit is used for reading decoded data from described interface control module, carries out and go here and there the described digital coding of conversion back submission unit;
Described digital coding unit is used to receive decoded data described and that the string TCU transfer control unit is submitted to, behind the insertion banner word " 0 ", is sent to described High level data link control interface.
14. as claim 12 or 13 described gateways, it is characterized in that, described gateway also comprises the verification control module, be used for answering the request of described Frame write control unit and/or string and TCU transfer control unit that described decoded data is carried out verification, and, should described Frame read control unit and/or and to go here and there the request of TCU transfer control unit be the additional check code of decoded data.
15. gateway as claimed in claim 13, it is characterized in that, described second communication protocol conversion module also comprises the global clock unit, is used for the sequential of unifying described data decode unit, string and TCU transfer control unit and going here and there TCU transfer control unit and digital coding unit.
16. gateway as claimed in claim 10 is characterized in that:
The described first communication Protocol Conversion module, interface control module and second communication protocol conversion module adopt the field programmable gate array circuit to realize;
Described interface control module also is provided with the CPU connecting interface, is used to transmit the request that described first communication Protocol Conversion module and second communication protocol conversion module send to CPU.
CN201010232689.2A 2010-07-21 2010-07-21 Conversion gateway and conversion method of vehicle communication network data Active CN101895549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010232689.2A CN101895549B (en) 2010-07-21 2010-07-21 Conversion gateway and conversion method of vehicle communication network data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010232689.2A CN101895549B (en) 2010-07-21 2010-07-21 Conversion gateway and conversion method of vehicle communication network data

Publications (2)

Publication Number Publication Date
CN101895549A true CN101895549A (en) 2010-11-24
CN101895549B CN101895549B (en) 2014-06-11

Family

ID=43104616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010232689.2A Active CN101895549B (en) 2010-07-21 2010-07-21 Conversion gateway and conversion method of vehicle communication network data

Country Status (1)

Country Link
CN (1) CN101895549B (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307203A (en) * 2011-09-08 2012-01-04 中国北车股份有限公司大连电力牵引研发中心 Protocol conversion device and data transmission method
CN102546480A (en) * 2012-02-24 2012-07-04 武汉正远铁路电气有限公司 MVB (Multifunction Vehicle Bus)/HDLC (High-level Data Link Control) gateway device
CN102662431A (en) * 2012-03-14 2012-09-12 华为终端有限公司 A docking station, method and system for controlling peripheral by utilizing same
CN103139029A (en) * 2011-11-25 2013-06-05 中国北车股份有限公司大连电力牵引研发中心 Data communication method, system and gateway
CN103546357A (en) * 2012-07-17 2014-01-29 中国北车集团大同电力机车有限责任公司 Communication method and system of different double-heading network locomotives, and gateways
CN103731343A (en) * 2012-10-11 2014-04-16 中国科学院软件研究所 MVB-WTB gateway based on LPC2468 and working method thereof
CN103780442A (en) * 2012-10-17 2014-05-07 中国北车股份有限公司 MVB debugging method and MVB debugging device
CN104331028A (en) * 2013-07-22 2015-02-04 上海联影医疗科技有限公司 Control device and bus system
CN104683226A (en) * 2013-11-28 2015-06-03 北车大连电力牵引研发中心有限公司 Locomotive reconnection gateway based on Ethernet (ETH)
CN104683227A (en) * 2013-11-28 2015-06-03 北车大连电力牵引研发中心有限公司 HDLC (High-level Data Link Control)-based locomotive re-connection gateway
CN105187363A (en) * 2014-12-11 2015-12-23 南车青岛四方机车车辆股份有限公司 Method and device achieving MVB data and VME data protocol intercommunication
CN105629190A (en) * 2016-01-27 2016-06-01 中车株洲电力机车有限公司 AC/DC network voltage detection circuit
CN105915424A (en) * 2016-04-14 2016-08-31 萨格思特(深圳)科技有限公司 FPGA-chip-based MVB communication apparatus
CN106483938A (en) * 2015-08-31 2017-03-08 中车大连电力牵引研发中心有限公司 Train communication equipment
CN107707526A (en) * 2017-08-31 2018-02-16 中车大连电力牵引研发中心有限公司 A kind of data processing equipment and method
CN105262679B (en) * 2014-07-15 2018-08-24 中车大连电力牵引研发中心有限公司 Gateway equipment for train
CN109040021A (en) * 2018-06-29 2018-12-18 中车大连电力牵引研发中心有限公司 Gateway and light rail information monitoring device
CN109525363A (en) * 2018-09-29 2019-03-26 深圳市元征科技股份有限公司 Data transmission method and device
CN110072185A (en) * 2010-11-03 2019-07-30 安华高科技股份有限公司 Network management module
CN110209399A (en) * 2018-09-29 2019-09-06 腾讯科技(深圳)有限公司 FPGA service system, data processing method and storage medium
CN110365342A (en) * 2019-06-06 2019-10-22 中车青岛四方机车车辆股份有限公司 Waveform decoder method and device
CN112075063A (en) * 2018-05-04 2020-12-11 大陆汽车有限责任公司 Gateway for data communication in a vehicle
CN112615859A (en) * 2020-12-17 2021-04-06 成都民航空管科技发展有限公司 HDLC data link self-adaptive access method, protocol converter and system
CN113098873A (en) * 2021-04-02 2021-07-09 北京天融信网络安全技术有限公司 Data transmission method, data transmission device, computer equipment and computer readable storage medium
CN113129643A (en) * 2021-04-21 2021-07-16 湖北亿咖通科技有限公司 Early warning method, system, device and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1417980A (en) * 2002-11-07 2003-05-14 吕京建 Intelligent gateway device for vehicle controller LAN
CN2930120Y (en) * 2006-07-07 2007-08-01 谢步明 MVB relay
CN101022378A (en) * 2007-03-13 2007-08-22 株洲南车时代电气股份有限公司 Train communication network management method and apparatus
CN101083590A (en) * 2007-05-24 2007-12-05 谢步明 TCN railway engine network control experiment platform
CN101127739A (en) * 2007-04-18 2008-02-20 谢步明 TCN gateway communication device
CN100382546C (en) * 2005-03-30 2008-04-16 黄涛 Infrared communication gateway based on CAN network
CN100469035C (en) * 2006-06-26 2009-03-11 株洲南车时代电气股份有限公司 Multi-bus automobile communication control module based on TCN
CN101702694A (en) * 2009-11-12 2010-05-05 中国北车股份有限公司大连电力牵引研发中心 Train interconnection gateway and system and train communication method
CN201717878U (en) * 2010-07-21 2011-01-19 中国北车股份有限公司大连电力牵引研发中心 Vehicle communication network data conversion gateway

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1417980A (en) * 2002-11-07 2003-05-14 吕京建 Intelligent gateway device for vehicle controller LAN
CN100382546C (en) * 2005-03-30 2008-04-16 黄涛 Infrared communication gateway based on CAN network
CN100469035C (en) * 2006-06-26 2009-03-11 株洲南车时代电气股份有限公司 Multi-bus automobile communication control module based on TCN
CN2930120Y (en) * 2006-07-07 2007-08-01 谢步明 MVB relay
CN101022378A (en) * 2007-03-13 2007-08-22 株洲南车时代电气股份有限公司 Train communication network management method and apparatus
CN101127739A (en) * 2007-04-18 2008-02-20 谢步明 TCN gateway communication device
CN101083590A (en) * 2007-05-24 2007-12-05 谢步明 TCN railway engine network control experiment platform
CN101702694A (en) * 2009-11-12 2010-05-05 中国北车股份有限公司大连电力牵引研发中心 Train interconnection gateway and system and train communication method
CN201717878U (en) * 2010-07-21 2011-01-19 中国北车股份有限公司大连电力牵引研发中心 Vehicle communication network data conversion gateway

Cited By (43)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110072185B (en) * 2010-11-03 2021-06-01 安华高科技股份有限公司 Network management module
CN110072185A (en) * 2010-11-03 2019-07-30 安华高科技股份有限公司 Network management module
CN102307203A (en) * 2011-09-08 2012-01-04 中国北车股份有限公司大连电力牵引研发中心 Protocol conversion device and data transmission method
CN103139029B (en) * 2011-11-25 2016-01-27 中国北车股份有限公司 Data communications method, system and gateway
CN103139029A (en) * 2011-11-25 2013-06-05 中国北车股份有限公司大连电力牵引研发中心 Data communication method, system and gateway
CN102546480A (en) * 2012-02-24 2012-07-04 武汉正远铁路电气有限公司 MVB (Multifunction Vehicle Bus)/HDLC (High-level Data Link Control) gateway device
CN102662431B (en) * 2012-03-14 2015-05-27 华为终端有限公司 A docking station, method and system for controlling peripheral by utilizing same
CN102662431A (en) * 2012-03-14 2012-09-12 华为终端有限公司 A docking station, method and system for controlling peripheral by utilizing same
US9760523B2 (en) 2012-03-14 2017-09-12 Huawei Device Co., Ltd. Docking station and external device control method and system utilizing the docking station
CN103546357B (en) * 2012-07-17 2017-03-15 中车大同电力机车有限公司 The different communication means and system, gateway that is networked between network locomotive again
CN103546357A (en) * 2012-07-17 2014-01-29 中国北车集团大同电力机车有限责任公司 Communication method and system of different double-heading network locomotives, and gateways
CN103731343A (en) * 2012-10-11 2014-04-16 中国科学院软件研究所 MVB-WTB gateway based on LPC2468 and working method thereof
CN103731343B (en) * 2012-10-11 2016-12-21 中国科学院软件研究所 MVB WTB gateway based on LPC2468 and method of work thereof
CN103780442A (en) * 2012-10-17 2014-05-07 中国北车股份有限公司 MVB debugging method and MVB debugging device
CN104331028A (en) * 2013-07-22 2015-02-04 上海联影医疗科技有限公司 Control device and bus system
CN104331028B (en) * 2013-07-22 2017-11-28 上海联影医疗科技有限公司 Control device and bus system
CN104683226B (en) * 2013-11-28 2018-01-05 中车大连电力牵引研发中心有限公司 Locomotive double heading gateway based on Ethernet ETH
CN104683227B (en) * 2013-11-28 2018-01-09 中车大连电力牵引研发中心有限公司 Locomotive double heading gateway based on High-Level Data Link Control HDLC
CN104683227A (en) * 2013-11-28 2015-06-03 北车大连电力牵引研发中心有限公司 HDLC (High-level Data Link Control)-based locomotive re-connection gateway
CN104683226A (en) * 2013-11-28 2015-06-03 北车大连电力牵引研发中心有限公司 Locomotive reconnection gateway based on Ethernet (ETH)
CN105262679B (en) * 2014-07-15 2018-08-24 中车大连电力牵引研发中心有限公司 Gateway equipment for train
CN105187363A (en) * 2014-12-11 2015-12-23 南车青岛四方机车车辆股份有限公司 Method and device achieving MVB data and VME data protocol intercommunication
CN105187363B (en) * 2014-12-11 2018-08-24 中车青岛四方机车车辆股份有限公司 The method and apparatus for realizing MVB data and VME data protocol intercommunications
CN106483938A (en) * 2015-08-31 2017-03-08 中车大连电力牵引研发中心有限公司 Train communication equipment
CN105629190A (en) * 2016-01-27 2016-06-01 中车株洲电力机车有限公司 AC/DC network voltage detection circuit
CN105629190B (en) * 2016-01-27 2019-01-15 中车株洲电力机车有限公司 A kind of alternating current-direct current network pressure detection circuit
CN105915424A (en) * 2016-04-14 2016-08-31 萨格思特(深圳)科技有限公司 FPGA-chip-based MVB communication apparatus
CN107707526A (en) * 2017-08-31 2018-02-16 中车大连电力牵引研发中心有限公司 A kind of data processing equipment and method
CN112075063B (en) * 2018-05-04 2023-08-11 大陆汽车科技有限公司 Gateway for data communication in a vehicle
US11611452B2 (en) 2018-05-04 2023-03-21 Continental Automotive Gmbh Gateway for data communication in a vehicle
CN112075063A (en) * 2018-05-04 2020-12-11 大陆汽车有限责任公司 Gateway for data communication in a vehicle
CN109040021A (en) * 2018-06-29 2018-12-18 中车大连电力牵引研发中心有限公司 Gateway and light rail information monitoring device
CN110209399A (en) * 2018-09-29 2019-09-06 腾讯科技(深圳)有限公司 FPGA service system, data processing method and storage medium
CN109525363B (en) * 2018-09-29 2021-07-06 深圳市元征科技股份有限公司 Data transmission method and device
CN110209399B (en) * 2018-09-29 2022-02-08 腾讯科技(深圳)有限公司 FPGA service system, data processing method and storage medium
CN109525363A (en) * 2018-09-29 2019-03-26 深圳市元征科技股份有限公司 Data transmission method and device
CN110365342A (en) * 2019-06-06 2019-10-22 中车青岛四方机车车辆股份有限公司 Waveform decoder method and device
CN110365342B (en) * 2019-06-06 2023-05-12 中车青岛四方机车车辆股份有限公司 Waveform decoding method and device
CN112615859A (en) * 2020-12-17 2021-04-06 成都民航空管科技发展有限公司 HDLC data link self-adaptive access method, protocol converter and system
CN113098873A (en) * 2021-04-02 2021-07-09 北京天融信网络安全技术有限公司 Data transmission method, data transmission device, computer equipment and computer readable storage medium
CN113098873B (en) * 2021-04-02 2021-11-16 北京天融信网络安全技术有限公司 Data transmission method, data transmission device, computer equipment and computer readable storage medium
CN113129643A (en) * 2021-04-21 2021-07-16 湖北亿咖通科技有限公司 Early warning method, system, device and storage medium
CN113129643B (en) * 2021-04-21 2022-12-27 亿咖通(湖北)技术有限公司 Early warning method, system, device and storage medium

Also Published As

Publication number Publication date
CN101895549B (en) 2014-06-11

Similar Documents

Publication Publication Date Title
CN101895549B (en) Conversion gateway and conversion method of vehicle communication network data
CN201717878U (en) Vehicle communication network data conversion gateway
CN100366029C (en) Communication controller, host-side controller, communication equipment, communication system and method
RU2596582C2 (en) Method and device for memory size adapted serial data transfer
CN106959935B (en) Method compatible with I2C communication and IPMB communication
CN111050403B (en) Data transmission method, device and equipment
KR20160065206A (en) Camera control interface slave device to slave device communication
CN104808966A (en) Method and apparatus for valid encoding
CN109165184B (en) 1553B bus system based on double-bus transceiver
CN101464848A (en) Serial bus expansion method and apparatus
WO2010123143A1 (en) Transmission device, transmission method, and control program for transmission device
CN106201973B (en) Method and system for single-wire serial communication interface
CN108255776A (en) A kind of I3C main equipments, master-slave system and the communication means of compatible APB buses
CN112003775B (en) Single-level single-wire full-duplex bus communication method and system
CN112367236A (en) Data scheduling method and system of LIN bus
CN103885910B (en) The method that many equipment carry out IIC communications under holotype
CN110659242A (en) MIL-STD-1553B bus protocol controller
CN1917519B (en) Method and system for parallel transmitting serial data according to high level data link control
RU126162U1 (en) COMMUNICATION INTERFACE DEVICE FOR NETWORK Space Wire
CN101902436A (en) Interplate communication method, device and system
CN110381095B (en) System on chip, equipment and communication system
Zhijian Notice of Retraction: Research and design of 1553B protocol Bus Control Unit
CN101478467A (en) MVB digital signal output module based on FPGA
CN102035618B (en) Data transmission method, device and system
CN101208863B (en) Method and apparatus for transferring signals between devices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C53 Correction of patent of invention or patent application
CB03 Change of inventor or designer information

Inventor after: Yuan Yinyuan

Inventor after: Wang Feng

Inventor after: Kang Chengwei

Inventor after: Zhu Mingliang

Inventor after: Zhao Lei

Inventor after: Chen Yufei

Inventor after: Wu Shengguo

Inventor before: Wang Feng

Inventor before: Kang Chengwei

Inventor before: Zhu Mingliang

Inventor before: Zhao Lei

Inventor before: Chen Yufei

Inventor before: Wu Shengguo

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: WANG FENG KANG CHENGWEI ZHU MINGLIANG ZHAO LEI CHEN YUFEI WU SHENGGUO TO: YUN YINYUAN WANG FENG KANG CHENGWEI ZHU MINGLIANG ZHAO LEI CHEN YUFEI WU SHENGGUO