| At the beginning of 2020,China’s high-speed railway operation mileage reached 35,000 kilometers,ranking first in the world,and the high-speed train manufacturing level is in the world’s leading position.In recent years,the “Fuxing” Chinese standard EMU independently developed by China has become a popular story in the world due to its fast average running speed,strong stability and high riding comfort.Its excellent performance is inseparable from the stable operation of the train communication network TCN.The MVB communication gateway is an important part of the TCN communication network,and its performance is also crucial.At the same time,many low-level vehicle-mounted devices require the MVB gateway as an intermediary to mount on the MVB bus,so the train has great application requirements for the MVB gateway.However,the existing MVB gateway products on the market only have a single protocol conversion function,which cannot meet the requirements in some cases.Therefore,it is particularly necessary to design a practical MVB multi-protocol gateway.Under this background,this project proposed a design scheme of MVB multi-protocol gateway,which can realize the protocol conversion between MVB,RS-485 and CAN bus in one gateway.By analyzing application requirements,this paper determines the hardware platform of MVB multi-protocol gateway and completes the system hardware design.In the hardware design part,the ARM processor STM32F103ZET6 of STMicroelectronics is selected as the core processor;Use Duagon’s product "D013" MVB communication board to complete the design of the MVB interface module circuit;Select SP3485 chip as RS-485 transceiver to complete the circuit design of RS-485 interface module;Choose TJA1050 chip as CAN transceiver,complete the CAN interface module circuit design,and finally complete the peripheral expansion circuit design.Then complete the system software design with five parts: RS-485 module,CAN module,MVB module,data processing module and SD card module,Adopt MDK5 software platform,write relevant software program to realize the mutual conversion function of protocol between MVB,RS-485 and CAN bus.In order to enrich the functionality of the gateway,the configuration interface of the MVB multi-protocol gateway is designed,which can be visualized for the MVB multi-protocol gateway designed in this topic.For example,configure MVB port and data,configure RS-485 communication baud rate,configure CAN communication baud rate,etc.On the basis of completing the design of software and hardware,this paper builds a test platform.First,the overall hardware circuit is tested comprehensively.Then use "EMU single-car debugging system" to test the overall performance of the gateway,The test results show that the solution proposed in this subject is practical and feasible,and realizes the protocol conversion function between MVB,RS-485 and CAN bus,which facilitates the integration of the system and has certain application value. |