The invention provides a dual-CAN channel fusion J1939
protocol stack of a vehicle-mounted terminal and a
parallel communication diagnosis method, and aims to solve the problems that an existing dual-CAN channel terminal lacks a protocol layer
parallel processing mechanism and an intelligent routing strategy, communication and diagnosis conflicts still exist, and a J1939 protocol is insufficient in
adaptation and poor in
baud rate adaptation flexibility. The method comprises the following steps: S1, constructing a dual-CAN FD channel and dynamic
baud rate adaptive detection mechanism, and providing a link basis for service isolation; s2, integrating J1939 and UDSonCAN dual protocol stacks based on dual CAN FD channels, and establishing
data mapping to realize
data collaboration between protocols; s3, designing an intelligent
message routing and channel flow monitoring mechanism, and ensuring conflict-free parallel transmission of communication and diagnosis services; and S4, newly adding J1939
network management, configuration parameter persistence and
firmware online upgrading functions, and improving the
maintainability of the terminal. According to the invention, the advantages of dual-CAN channel hardware are fully exerted, efficient cooperation of communication and diagnosis and protocol deep compatibility are realized, and the compatibility, flexibility and stability of the terminal are greatly improved.