CN105187363A - Method and device achieving MVB data and VME data protocol intercommunication - Google Patents
Method and device achieving MVB data and VME data protocol intercommunication Download PDFInfo
- Publication number
- CN105187363A CN105187363A CN201410768284.9A CN201410768284A CN105187363A CN 105187363 A CN105187363 A CN 105187363A CN 201410768284 A CN201410768284 A CN 201410768284A CN 105187363 A CN105187363 A CN 105187363A
- Authority
- CN
- China
- Prior art keywords
- data
- vme
- mvb
- controller
- interface
- 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
Links
Landscapes
- Communication Control (AREA)
Abstract
The invention provides a method and device achieving MVB data and VME data protocol intercommunication. The method comprises steps: an MVB controller decodes an MVB frame, and label information and data information obtained through decoding are written into a double-port RAM; the label information is read from the double-port RAM and sent to a VME controller through a label line, and data information is read and sent to the VME controller through a data line; information in the RAM of the VME is read through a parallel bus; the VME controller codes the label information and data information corresponding to the identical label information into VME data, and sends the VME data to a VME data interface; when the VME data from the VME data interface is read, the VME data is mapped to the self RAM according to an address with a specific width. The provided method can raise the real-time property of communication between MVB data and VME data effectively.
Description
Technical field
The present invention relates to train communication technical field, particularly relate to a kind of method and apparatus realizing MVB data and the intercommunication of VME data protocol.
Background technology
Along with the fast development of China's field of track traffic, the electric equipment in train is constantly intelligent, networking also.In medium control mode, communication service, real-time etc., there is the TCN of unique advantage (TCN) to obtain swift and violent development.Its multifunction vehicle bus comprised (MVB), for connecting each electric equipment in vehicle, is widely used.Each electric equipment on vehicle has different interfaces, and as CAN interface, PC104 interface, RS485 interface etc., these equipment need be linked on MVB network by protocol conversion apparatus, as CAN-MVB network interface card, and PC104-MVB network interface card, RS485-MVB network interface card.But along with the fast development of train, increasing informational needs transmits between device interior, between equipment and equipment, at this moment the bus that CAN, PC104, RS485 etc. are traditional demonstrates bottleneck gradually in transmission rate, real-time, reliability etc., can not meet bulk information and reliably, has in real time transmitted.
The all-purpose computer bus VME (VersaModuleEurocard) extensively used in many space flight military project armament systems is a kind of safe, reliable, bus that real-time is higher, and VME bus also has stronger antijamming capability, its advantage is just meeting the demand of speed Train Development.Therefore, increasing equipment adopts VME as core bus, and it is mutual to carry out internal data.Substantially increase reliability and the transmission rate of transmission data like this.
Meanwhile, how the equipment access with VME bus interface is become a problem day by day highlighted on MVB.At this moment a kind of device of demand data completed based on MVB agreement are converted to the data based on VME agreement.This kind of product abroad technology is closed, expensive and the Buying Cycle is long.Study less at home, and this kind of network interface card deal with data process developed at present is numerous and diverse, needs multiple conversions data format, easily cause the loss of data, unreliability factors increases, and in addition due to the conversion of repeatedly data format, greatly reduces the real-time of communication.
Summary of the invention
The object of the invention is the real-time improving MVB and VME data interchange.
In order to achieve the above object, the invention provides the method realizing MVB data and the intercommunication of VME data protocol, for in MVB data and VME data protocol conversion device, this device comprises MVB controller and VME controller, described MVB controller is connected by parallel bus with described VME controller, this parallel bus comprises label line and data wire, and the method comprises:
MVB controller, after receiving the MVB frame from MVB data-interface, is decoded to MVB frame, and the label information obtained decoding and data message write in the dual port RAM of self respectively; When sending data, reading tag information from dual port RAM is also sent to VME controller by label line, and read data information is also sent to VME controller by data wire; When the data message after a MVB frame decoding needs repeatedly to send, when sending data message each time, all label information corresponding for this MVB frame is sent to VME controller simultaneously; After the reading signal receiving the transmission of VME controller, read the information in the RAM of VME by parallel bus;
VME controller is encoded to VME data by label information and corresponding to the data message of same label information, and is sent to VME data-interface; When reading VME data from VME data-interface, according to the address of specific width by VME data-mapping to self RAM, rear transmission to MVB read signal; Described specific width and described parallel bus adapt.
Preferably, in described parallel bus, the number of label line and data wire is 16, and described specific width is 16.
Preferably, before the label information that described MVB controller obtains decoding and data message write in the dual port RAM of self respectively, described method also comprises:
The label information that described MVB controller obtains decoding and data message verify.
Present invention also offers a kind of MVB data and VME data protocol conversion device, comprising:
MVB controller and VME controller, wherein, be packaged with MVB control logic and dual port RAM, and have MVB data-interface and parallel interface in MVB controller; Be packaged with MVB control logic and RAM in VME controller, and be provided with VME data-interface and parallel interface; Each parallel interface includes tag interface and data-interface; Also comprise: for connecting the parallel bus of two parallel interfaces, this parallel bus comprises the label line corresponding to tag interface and the data wire corresponding to data-interface;
Wherein, MVB control logic is used for after receiving the MVB frame from MVB data-interface, decodes to MVB frame, and the label information obtained decoding and data message write in dual port RAM respectively; When sending data, reading tag information from dual port RAM is also sent to VME controller by label line, and read data information is also sent to VME controller by data wire; When the data message after a MVB frame decoding needs repeatedly to send, when sending data message each time, all label information corresponding for this MVB frame is sent to VME controller simultaneously; After the reading signal receiving the transmission of VME controller, read the data in the RAM of VME by parallel bus;
VME control logic is used for being encoded to VME data by label information and corresponding to the data message of same label information, and is sent to VME data-interface; When reading VME data from VME data-interface, according to the address of specific width by VME data-mapping to self RAM, rear transmission to MVB read signal; Described specific width and described parallel bus adapt.
Further, in described parallel bus, the number of label line and data wire is 16, and described specific width is 16.
Further, before the decode label information that obtains and data message write in the dual port RAM of self by described MVB control logic respectively, also verify for the label information that obtains decoding and data message.
Further, described MVB controller and VME controller are on-site programmable gate array FPGA.
The method realizing MVB data and the intercommunication of VME data protocol provided by the invention, significantly can reduce the flow process of the protocol conversion between MVB data and VME data, effectively improves MVB data and the real-time of carrying out between VME data communicating.
Accompanying drawing explanation
Fig. 1 is the structural representation of a kind of MVB data provided by the invention and VME data protocol conversion device;
Fig. 2 provided by the inventionly a kind ofly realizes the schematic flow sheet of MVB data to the method for VME data interchange;
Fig. 3 provided by the inventionly a kind ofly realizes the schematic flow sheet of VME data to the method for MVB data interchange.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is further described.Following examples only for technical scheme of the present invention is clearly described, and can not limit the scope of the invention with this.
The invention provides a kind of MVB data and VME data protocol conversion device, as shown in Figure 1, this device comprises: MVB controller and VME controller, wherein, be packaged with MVB control logic and dual port RAM in MVB controller, and there is MVB data-interface and parallel interface; Be packaged with MVB control logic and RAM in VME controller, and be provided with VME data-interface and parallel interface; Each parallel interface includes tag interface and data-interface (meaning not shown in the figures); Also comprise: for connecting the parallel bus of two parallel interfaces, this parallel bus comprises the label line corresponding to tag interface and the data wire (meaning not shown in the figures) corresponding to data-interface;
Wherein, MVB control logic is used for after receiving the MVB frame from MVB data-interface, decodes to MVB frame, and the label information obtained decoding and data message write in dual port RAM respectively; When sending data, reading tag information from dual port RAM is also sent to VME controller by label line, and read data information is also sent to VME controller by data wire; When the data message after a MVB frame decoding needs repeatedly to send, when sending data message each time, all label information corresponding for this MVB frame is sent to VME controller simultaneously; After the reading signal receiving the transmission of VME controller, read the data in the RAM of VME by parallel bus;
VME control logic is used for being encoded to VME data by label information and corresponding to the data message of same label information, and is sent to VME data-interface; For the VME data from VME data-interface, read VME data according to the address of specific width and be mapped in the RAM of self, rear transmission to MVB read signal; Described specific address width and described parallel bus adapt.
MVB data provided by the invention and VME data protocol conversion device, significantly can reduce the flow process of the protocol conversion between MVB data and VME data, effectively improves MVB data and the real-time of carrying out between VME data communicating.
Further, in described parallel bus, the number of label line and data wire is 16, and described specific width is 16.
Further, before the label information that described MVB control logic obtains decoding and data message write in the dual port RAM of self respectively, the label information obtained decoding and data message verify.In this way, the accuracy of the data be transferred in VME controller can be ensured.
In the specific implementation, MVB controller and VME controller can be the FPGA (Field-ProgrammableGateArray, field programmable gate array) dividing and have control logic region and ram region.Or also can realize the logical device of above-mentioned functions for other.
Below in conjunction with accompanying drawing 2 and Fig. 3, the method that protocol conversion apparatus provided by the invention realizes MVB data and the intercommunication of VME data protocol is described, for convenience of description, suppose that the number of label line and data wire in parallel bus is 16, the width of the address that VME uses is 16, as shown in Figure 2, for the process that MVB frame is changed to VME data protocol, comprising:
Step 21, MVB controller is receiving the MVB data from MVB data-interface.
Step 22, MVB controller is decoded to MVB frame, and the label information obtained decoding and data message write in the dual port RAM of self respectively.
In a particular application, label information here may comprise address information, class information, type information etc., and the address of corresponding these data of expression, grade and type, data message is the data content portion of this MVB frame.
Step 23, MVB controller reading tag information be sent to VME controller by label line from dual port RAM, read data information is also sent to VME controller by data wire.
In step 23, if when the data message after a MVB frame decoding needs repeatedly to send, when sending data message each time, all label information corresponding for this MVB frame is sent to VME controller simultaneously; After the reading signal receiving the transmission of VME controller, read the information in the RAM of VME by parallel bus.
In actual applications, when sending each time, the information corresponding to the position of data message in whole MVB frame that can also send this this is sent to VME, reduces according to corresponding positional information to make VME to data message.
Step 24, VME controller is encoded to VME data by label information and corresponding to the data message of same label information.
So far complete by the conversion of MVB frame to VME data.
Step 25, VME data are sent to VME data-interface by VME controller.
As shown in Figure 3, be the process that MVB frame is changed to VME data protocol, comprise:
Step 31, VME controller reads the VME data from VME data-interface with A16 width address;
Step 32, the data of read each time 16 are mapped in the RAM of self by VME controller according to address;
Step 33, VME controller sends to MVB controller and reads signal, points out the data in the RAM in described MVB controller reading VME controller.
Step 34, MVB controller passes through the parallel bus of 32 with the data in the form of internal storage access reading VME controller RAM, and may be encoded as MVB Frame.
The parallel bus of here 32 comprises the label line of 16 and the data wire of 16.
After step 34, can also comprise:
Step S35, corresponding MVB data are transferred to other equipment by MVB data-interface by MVB controller.
As can be seen from flow process above, in the present invention, MVB/VME controller only needs decoding data to be converted, and send/store label information wherein and data message according to fixing mode, VME/MVB controller carries out reading to the data received or the data be stored in RAM according to specific mode can realize MVB data to VME data/VME data to the conversion of MVB data, compared with the protocol mode carrying out in prior art providing, significantly can reduce the flow process of conversion, improve the real-time of MVB data and VME transfer of data.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the prerequisite not departing from the technology of the present invention principle; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (7)
1. one kind realizes the method for MVB data and the intercommunication of VME data protocol, it is characterized in that, for in MVB data and VME data protocol conversion device, this device comprises MVB controller and VME controller, described MVB controller is connected by parallel bus with described VME controller, this parallel bus comprises label line and data wire, and the method comprises:
MVB controller, after receiving the MVB frame from MVB interface, is decoded to MVB frame, and the label information obtained decoding and data message write in the dual port RAM of self respectively; Reading tag information from dual port RAM is also sent to VME controller by label line, and read data information is also sent to VME controller by data wire; When the data message after a MVB frame decoding needs repeatedly to send, when sending data message each time, all label information corresponding for this MVB frame is sent to VME controller simultaneously; After the reading signal receiving the transmission of VME controller, read the information in the RAM of VME by parallel bus;
VME controller is encoded to VME data by label information and corresponding to the data message of same label information, and is sent to VME data-interface; When reading VME data from VME data-interface, according to the address of specific width by VME data-mapping to self RAM, rear transmission to MVB read signal; Described specific width and described parallel bus adapt.
2. the method for claim 1, is characterized in that, in described parallel bus, the number of label line and data wire is 16, and described specific width is 16.
3. the method for claim 1, is characterized in that, before the label information that described MVB controller obtains decoding and data message write in the dual port RAM of self respectively, described method also comprises:
The label information that described MVB controller obtains decoding and data message verify.
4. MVB data and a VME data protocol conversion device, is characterized in that, comprising:
MVB controller and VME controller, wherein, be packaged with MVB control logic and dual port RAM, and have MVB data-interface and parallel interface in MVB controller; Be packaged with MVB control logic and RAM in VME controller, and be provided with VME data-interface and parallel interface; Each parallel interface includes tag interface and data-interface; Also comprise: for connecting the parallel bus of two parallel interfaces, this parallel bus comprises the label line corresponding to tag interface and the data wire corresponding to data-interface;
Wherein, MVB control logic is used for after receiving the MVB frame from MVB data-interface, decodes to MVB frame, and the label information obtained decoding and data message write in dual port RAM respectively; When sending data, reading tag information from dual port RAM is also sent to VME controller by label line, and read data information is also sent to VME controller by data wire; When the data message after a MVB frame decoding needs repeatedly to send, when sending data message each time, all label information corresponding for this MVB frame is sent to VME controller simultaneously; After the reading signal receiving the transmission of VME controller, read the data in the RAM of VME by parallel bus;
VME control logic is used for being encoded to VME data by label information and corresponding to the data message of same label information, and is sent to VME data-interface; When reading VME data from VME data-interface, according to the address of specific width by VME data-mapping to self RAM, rear transmission to MVB read signal; Described specific width and described parallel bus adapt.
5. device as claimed in claim 4, it is characterized in that, in described parallel bus, the number of label line and data wire is 16, and described specific width is 16.
6. device as claimed in claim 4, is characterized in that, before the label information that described MVB control logic obtains decoding and data message write in the dual port RAM of self respectively, also verifies for the label information that obtains decoding and data message.
7. the device as described in any one of claim 4-6, is characterized in that, described MVB controller and VME controller are on-site programmable gate array FPGA.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410768284.9A CN105187363B (en) | 2014-12-11 | 2014-12-11 | The method and apparatus for realizing MVB data and VME data protocol intercommunications |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410768284.9A CN105187363B (en) | 2014-12-11 | 2014-12-11 | The method and apparatus for realizing MVB data and VME data protocol intercommunications |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105187363A true CN105187363A (en) | 2015-12-23 |
CN105187363B CN105187363B (en) | 2018-08-24 |
Family
ID=54909209
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410768284.9A Active CN105187363B (en) | 2014-12-11 | 2014-12-11 | The method and apparatus for realizing MVB data and VME data protocol intercommunications |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105187363B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6870853B1 (en) * | 1998-02-20 | 2005-03-22 | Siemens Ag | Device and method for converting data sequences between FR format and ATM format |
CN101729560A (en) * | 2009-11-24 | 2010-06-09 | 中国北车股份有限公司大连电力牵引研发中心 | Gateway equipment |
CN101895549A (en) * | 2010-07-21 | 2010-11-24 | 中国北车股份有限公司大连电力牵引研发中心 | Conversion gateway and conversion method of vehicle communication network data |
CN103580970A (en) * | 2012-07-26 | 2014-02-12 | 中国北车股份有限公司大连电力牵引研发中心 | Communication board card based on VME bus and data communication method |
-
2014
- 2014-12-11 CN CN201410768284.9A patent/CN105187363B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6870853B1 (en) * | 1998-02-20 | 2005-03-22 | Siemens Ag | Device and method for converting data sequences between FR format and ATM format |
CN101729560A (en) * | 2009-11-24 | 2010-06-09 | 中国北车股份有限公司大连电力牵引研发中心 | Gateway equipment |
CN101895549A (en) * | 2010-07-21 | 2010-11-24 | 中国北车股份有限公司大连电力牵引研发中心 | Conversion gateway and conversion method of vehicle communication network data |
CN103580970A (en) * | 2012-07-26 | 2014-02-12 | 中国北车股份有限公司大连电力牵引研发中心 | Communication board card based on VME bus and data communication method |
Also Published As
Publication number | Publication date |
---|---|
CN105187363B (en) | 2018-08-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN201146536Y (en) | MVB-WORLDFIP gateway based on ARM7CPU nucleus | |
CN105208034A (en) | SPI bus and CAN bus protocol converting circuit and method | |
CN103043085A (en) | Master control device and data transmission method | |
CN103067238A (en) | Data collection method compatible with MODBUS bus | |
CN105279123A (en) | Serial port conversion structure and method of dual-redundancy 1553B bus | |
CN103823785A (en) | Multi-way ARINC429 data transmit-receive circuit structure based on development of DSP and CPLD | |
CN106411463B (en) | A kind of high-speed data transmission apparatus and method based on asynchronous clock | |
CN203746067U (en) | Multi-path ARINC 429 data receiving and transmitting circuit structure based on DSP and CPLD development | |
CN203294099U (en) | CAN bus locomotive multi-connection system based on PAC controller | |
CN105187363A (en) | Method and device achieving MVB data and VME data protocol intercommunication | |
CN202374285U (en) | Real-time data communication system employing programmable logic controller | |
CN201754588U (en) | Repeater based on MVB bus network | |
CN201287733Y (en) | Synchronous control communication set for electric locomotive brake system | |
CN105262659A (en) | HDLC protocol controller based on FPGA chip | |
CN110189509A (en) | A kind of wireless long-distance meter-reading system | |
CN205092880U (en) | HDLC protocol controller based on FPGA chip | |
CN206075266U (en) | Multichannel ARINC429 Communication Cards | |
CN204044808U (en) | The device that a kind of RS232 of realization, RS485 and USB turn mutually | |
CN204695304U (en) | A kind of 1553B Bus PC 104 interface board | |
CN104360668B (en) | Control method of Ethernet controller of digital substation | |
CN105376149B (en) | Communication gate for rail traffic | |
CN101820417A (en) | Development system of interoperability electricity communication protocol | |
CN204069019U (en) | For the communication gate of track traffic | |
CN202331443U (en) | Internal structure for electric remote-control communication equipment | |
CN205051133U (en) | 100G cable module based on CFP4 interface |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: Chengyang District of Shandong city of Qingdao province Jinhong road 266111 No. 88 Applicant after: CRRC QINGDAO SIFANG CO., LTD. Address before: Chengyang District of Shandong city of Qingdao province Jinhong road 266111 No. 88 Applicant before: CSR Qingdao Sifang Locomotive and Rolling Stock Co., Ltd. |
|
COR | Change of bibliographic data | ||
GR01 | Patent grant | ||
GR01 | Patent grant |