Abstract:
On the basis of character device model on Linux,the CAN bus driver has been abandoned. Beyond the foundation of character device model network equipment model,SocketCAN has replaced it,because of all kinds of defects of CAN bus driver.The emergence of SocketCAN is greatly simplified programming of CAN bus communication on Linux.It is illustrated that the background and implementation of SocketCAN in this paper.Specifially,it is described the strengths and weaknesses of SocketCAN when comparing with the traditional CAN bus driver,as well as the toolsets of ScocketCAN and basic methods of writing program code on Linux.