This application relates to the field of
simulation and testing technology, and in particular to a remote CAN
simulation system and method. The
system includes: a first terminal and a second terminal connected via
Ethernet; the second terminal accesses the
system to be simulated via a
CAN bus or CANFD
bus. The first terminal receives remote command parameters input from an
external source, packages the remote command parameters based on a preset protocol to obtain a message body to be sent, and sends the message body to the second terminal. The second terminal receives the message body to be sent, parses it into a
local call instruction, and calls the SocketCAN function according to the
local call instruction to
complete data interaction with the
bus of the system to be simulated. This system provides a highly versatile remote CAN
simulation architecture, which helps reduce
system usage costs and facilitates deployment.