The invention discloses a communication protocol coding method based on a CAN (Controller
Area Network)
bus, which is characterized in that a message ID (Identity) is defined based on a standard CAN2.0 extension frame, and the CAN2.0 extension frame is respectively defined as a corresponding
function code, a
source address, a target address, a multi-frame mark, an end frame mark, redundancy check, an error code,
security check and a message serial number. Powerful support is provided for a user to construct a stable and reliable communication
system by ensuring the integrity, uniqueness, accuracy and safety of data and being compatible with the requirements of different devices; according to the technical scheme of the invention, the CAN2.0 standard 29-bit extension frame ID is utilized, other multiple functions including function codes and the like are realized, multiple fields which can be used by a user are provided for security-related
processing, and the security-related
processing can be controlled deeper and more accurate. The method has the
advantage of realizing efficient, accurate and stable communication among multiple devices.