A
CAN bus data transmission method adopts methods such as dynamically changing frame priority,
frame sequence control, multi-frame response mechanism, and multi-frame
selection strategy to improve the reliability of
CAN bus large data block transmission. The present invention adopts the strategy of dynamically changing frame priority, the priority of the first frame and the last frame of multi-frame data is higher than that of ordinary data, so these two frames will not be affected by ordinary multi-frame data, ensuring frame identification, The normal reception of important control information such as frame length and frame check code; the multi-frame response mechanism of the present invention adds a head frame response and a
tail frame response, which ensures the effective reception of the head frame and prevents the error of the head frame from continuing In the case of sending data, the
bus bandwidth is effectively saved, and the transmission efficiency is improved; the error
frame sequence number contained in the
tail frame response of the present invention also makes the data sending end know the specific frame number of the error as soon as possible, thereby only resending the wrong frame number, It is not necessary to resend all of them, which wastes the bandwidth of the
bus; the invention greatly improves the reliability of sending and receiving large data blocks of the
CAN bus, and has a certain error correction and detection function, expands the application level of the CAN
bus, and improves the robustness of the network
system.