The utility model relates to a CAN integrated test environment tool, comprising a
database used for storing test logs and test configuration information, a
Raspberry Pi, a communication MCU, and a CAN
transceiver, the
Raspberry Pi is connected with the
database through a data line so as to upload the test logs to the
database or load the test configuration information from the database; the communication MCU and the
Raspberry Pi are connected through an SPI
bus for
bidirectional communication; the CAN
transceiver is respectively connected with the communication MCU and the ECU through a
CAN bus to realize bidirectional conversion between a
digital signal and a differential
signal. The
system has the beneficial effects that a heterogeneous computing architecture in which the communication MCU is used for real-
time control and the
raspberry Pi is used for high-
order processing is adopted, the work division is clear, the communication MCU is responsible for underlying CAN communication and GPIO interrupt response, the
raspberry Pi is responsible for test logic scheduling,
data analysis and
report generation, bidirectional efficient data interaction between the communication MCU and the
raspberry Pi is realized through an SPI
bus, real-time performance and computing power are taken into consideration, and the
system is suitable for large-scale popularization and application. The problem that a traditional single-MCU scheme is insufficient in performance is solved.