The invention provides a TRDP
protocol stack application method based on Linux, which comprises the following steps: designing a universal hardware platform, and implementing a TRDP
protocol stack (based on a Linux
operating system) on a TRDP layer; for a TRDP layer, a TRDP
protocol stack is packaged into a
library, an API interface is provided for a user, and a TRDP single-network-port communication function and a TRDP double-network-port communication function are achieved by calling a configuration file. For a Linux
operating system platform, a TRDP protocol stack is packaged into a
library to serve as an independent
software module, an API interface is provided for a user, and the method has the advantages of being friendly and easy to use through a real vehicle
verification test; meanwhile, the method is applied to a designed hardware core board card, serves as a universal
software and hardware platform and is provided for a user, after the user uses the scheme, the TRDP protocol stack
software can be used only by writing a configuration file and simply modifying a program, the development threshold is lowered, the
programming efficiency is improved, errors caused by human factors are reduced, and the user experience is improved. The problem of application of TRDP protocol stack and TRDP protocol stack dual-network-port development in a Linux
operating system is solved.