With the development of train network control systems towards high speed, intelligence, and digitization, the application of real-time Ethernet for trains to high-speed EMU network technology is becoming increasingly important. Based on the theoretical basis of the train real-time data protocol (TRDP), this paper studies the TRDP communication driver. By designing and configuring the TRDP protocol stack, starting and stopping TRDP communication, and sending and receiving TRDP messages, the process data communication driver is packaged. The use of Swing components, action monitoring processing mechanism, multi-threading technology to achieve driver call, load TRDP configuration database, publish and subscribe message information data real-time display. Finally, use a PC and wireshark packet capture software to communicate and send and receive data and other functions to verify and analyze the captured TRDP messages.