CAN(Controller Area Network)总线协议是由 BOSCH 发明的一种基于消息广播模式的串行通信总线,它起初用于实现汽车内ECU之间可靠的通信,后因其简单实用可靠等特点,而广泛应用于工业自动化、船舶、医疗等其它领域。相比于其它网络类型,如局域网(LAN, Local Area Network)、广域网(WAN, Wide Area Network)和个人网(PAN, Personal Area Network)等,CAN 更加适合应用于现场控制领域,因此得名。
CAN标准化
CAN标准分为底层标准(物理层和数据链路层)和上层标准(应用层)两大类。CAN底层标准主要是 ISO 11898 系列的国际标准,也就是说不同厂商在CAN总线的物理层和数据链路层定义基本相同;而上层标准,涉及到例如流控制、设备寻址和大数据块传输控制等,不同应用领域或制造商会有不同的做法,没有统一的国际标准。
ISO 11898-1:2015
Part 1 defines the data link layer including the logical link control (LLC) sub-layer and the medium access control (MAC) sub-layer, as well as the physical signalling (PHS) sub-layer; 定义了数据链路层,包括逻辑链路控制(LLC)子层和介质访问控制(MAC)子层,以及物理信令(PHS)子层
Part 2 defines the high-speed physical medium attachment (PMA); 定义了高速物理介质附件 (PMA)
Part 3 defines the low-speed fault-tolerant physical medium attachment (PMA); 定义了低速容错物理介质连接 (PMA)
Part 4 defines the time-triggered communication; 定义了时间触发的通信
Part 5 defines the power modes of the high-speed physical medium attachment (PMA); 定义了高速物理介质附件 (PMA) 的功率模式
Part 6 defines the selective wake-up functionality of the high-speed physical medium attachment (PMA). 定义了高速物理介质附件 (PMA) 的选择性唤醒功能