By:David Cohen & Gadi Gilad Instructor: Boaz Mizrahi Project Midterm Presentation CAN Bus Logger Spring 2011
Introduction The CAN (Controller Area Network) bus is an automotive communications system developed by Robert Bosch specifically for data exchange between electronic control units, switches, sensors and actuators in vehicles. CAN is also used in industrial microcontroller networks. For example as a bus system that connects machine tools with the computers that control them. It allows for data supply between measurement, control and display functions and super ordinate computers, as well as for connecting sensors, actuators and controls.
The device is divided into three layers. Physical layer to connect to a CAN network, Data Link layer to manage messages to\from other CAN nodes, and a processing unit to run applications. Processing Unit Data Link Layer Physical Layer CAN Module MCP2551MCP2515 The CAN Module SPI To MCU CANH CANL To CAN Bus RX TX PIC18
Initialize spi_initmcp _ init mcp _ resetinit_buffersclose_spiopen_spiconfig_modeconfig_rate The Function’s blocks diagram
Send Message get_free_buffer set_idwrite_auxwrite_data activate Write_Message spi_writemcp_write print_data
The Function’s blocks diagram Receive Message read_message read_idread_dataread_auxmcp_read mcp_modify spi_readspi_write print_data
The CAN Module
Estimated time table · 15.5 – The end of the main studying · 22.5 –Submission of the software blocks scheme · 12.6 – Starting to work on the loopback · 24.7 – The end of the exams period · Loopback mode demonstrated on device: send and receive packets with "Hello World" · Chat application demo on loop back · Receive and display first packet received from car connector
Notes…