The MVB/HDLC gateway apparatus
Technical field
The present invention relates to the railway locomotive network control system, belong to the HDLC communication network technology, be specifically related to the MVB/HDLC gateway apparatus.
Background technology
At present, based on the MVB bus of IEC61375 " TCN " standard, be widely used in the railway locomotive network control system, be used for the transfer of data of various mobile units based on the HDLC communication network technology of RS485 bus.It is most important to adopt HDLC communication network and the MVB bus network of RS485 bus to carry out exchanges data; But in the prior art; Conversion between two kinds of agreements of MVB/HDLC gateway apparatus has difficulties, and hindered the development with control technology of communicating by letter between the network vehicle-mounted equipment of HDLC and the bus vehicle mounted equipment of MVB.
Summary of the invention
The objective of the invention is to solve the problem of above-mentioned existence, and a kind of transition of communications between the multiple bus that can realize flexibly is provided, volume is little, as the practical MVB/HDLC gateway apparatus of mobile unit.
For realizing above-mentioned purpose; A kind of MVB/HDLC gateway apparatus of the present invention's design; The gateway power module that comprises the MVB/HDLC change-over panel and supply power voltage is provided for the MVB/HDLC change-over panel; Said MVB/HDLC change-over panel comprises FPGA module and CPU module; Be provided with HDLC controlling links treatment circuit and MVB controlling links treatment circuit in the said FPGA module, be provided with memory, ethernet interface circuit, usb circuit, RS485 interface circuit, RS232 interface circuit, a CAN bus interface circuit and the 2nd CAN bus interface circuit in the said CPU module, be connected through parallel bus between said FPGA module and the CPU module.
Further, said memory comprises NandFlash, NorFlash, SDRAM and NVRAM.
Further; Comprise data processing unit and exchanges data unit in the said CPU module, said data processing unit is connected with memory, ethernet interface circuit, usb circuit, RS485 interface circuit, RS232 interface circuit, a CAN bus interface circuit and the 2nd CAN bus interface circuit respectively with the exchanges data unit.
The present invention adopts technique scheme to have following significant technological progress:
1, integrated MVB and HDLC controlling links treatment circuit in the FPGA module of the present invention; All through parallel bus and CPU module communication; CPU module then application data is handled, is exchanged, and sends from HDLC or MVB bus again, has realized the conversion of MVB agreement and HDLC agreement.
2, MVB/HDLC gateway apparatus of the present invention comprises gateway power module and MVB/HDLC change-over panel; The gateway power module provides supply power voltage for the MVB/HDLC change-over panel, and the MVB/HDLC change-over panel has been realized the function of HDLC communication, ethernet communication, USB, RS485, RS232, CAN bus and MVB mutual communication.
3, MVB/HDLC gateway apparatus of the present invention has designed the circuit of realizing ESD+ and two kinds of bus access mediums of EMD simultaneously as the Class4 equipment of MVB bus standard definition on hardware, can select as required in the application to insert.And employing RS485 level on the HDLC hardware; Possess the following baud rate of 1Mbps and can join function arbitrarily; Adopt the soft nuclear of control of FPGA customization integrated HDLC mode of operation, traffic rate configuration register, the CPU module can be accomplished configuration through the value of revising register in initialized process to it.
Description of drawings
Fig. 1 is the embodiments of the invention circuit structure diagram;
Fig. 2 is data flow sketch map between CPU module of the present invention and the FPGA module;
Among the figure: 1, the FPGA module (1.1, HDLC controlling links treatment circuit, 1.2, MVB controlling links treatment circuit, 1.3, parallel bus interface); 2, the CPU module (2.1, the ethernet interface circuit, 2.2, usb circuit, 2.3, the RS485 interface circuit; 2.4, the RS232 interface circuit, 2.5 the one CAN bus interface circuits, the 2.6, the 2nd CAN bus interface circuit; 2.7, NandFlash, 2.8, NorFlash, 2.9, SDRAM; 2.10, NVRAM), 3, parallel bus, 4, the gateway power module.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is done further detailed description.
MVB/HDLC gateway apparatus as shown in Figure 1 comprises the MVB/HDLC change-over panel; And the gateway power module 4 that supply power voltage is provided for the MVB/HDLC change-over panel; The MVB/HDLC change-over panel comprises FPGA module 1 and CPU module 2; Be provided with HDLC controlling links treatment circuit 1.1 and MVB controlling links treatment circuit 1.2 in the FPGA module 1; Be provided with memory in the CPU module; Ethernet interface circuit 2.1; Usb circuit 2.2; RS485 interface circuit 2.3; RS232 interface circuit 2.4; The one CAN bus interface circuit 2.5 and the 2nd CAN bus interface circuit 2.6
Be provided with parallel bus interface 1.3 in the FPGA module 1, be connected with parallel bus 3 on the parallel bus interface 1.3, be connected through parallel bus 3 between FPGA module 1 and the CPU module 2; Integrated MVB controlling links treatment circuit and HDLC controlling links treatment circuit in the FPGA module; All through parallel bus 3 and CPU module communication, CPU module then application data is handled, is exchanged, and sends from HDLC or MVB bus again; Consult shown in Figure 2ly, curved arrow is represented data flow direction among the figure.
Memory comprises NandFlash2.7, NorFlash2.8, SDRAM2.9 and NVRAM2.10.
Comprise data processing unit and exchanges data unit in the CPU module 2, data processing unit is connected with the 2nd CAN bus interface circuit 2.6 with NandFlash2.7, NorFlash2.8, SDRAM2.9 and NVRAM2.10, ethernet interface circuit 2.1, usb circuit 2.2, RS485 interface circuit 2.3, RS232 interface circuit 2.4, a CAN bus interface circuit 2.5 respectively with the exchanges data unit.
The present invention possesses 1 road MVB, 1 road HDLC, 2 road CAN, 1 road RS232, and 1 road RS485 communication interface, the MVB/HDLC gateway apparatus has been realized the transition of communications between MVB and the HDLC, and has realized the transition of communications between the multiple bus.
In the practical implementation process, whole device adopts the 3U structural design of standard, and compact conformation, volume are little, and be practical as mobile unit.
The content that this specification is not done to describe in detail belongs to this area professional and technical personnel's known prior art.