Car LIN bus characteristics

Serial communication: small interference between lines, saving wiring harness, long transmission distance

Single wire transmission: enhanced ISO 9141 (ISO 15765-1), bus voltage based on VBAT

Maximum rate: 20kbit/s

Single-master and multiple-slave structure without arbitration: the master node contains both The master task and the slave task, the slave node only contains the slave task, the master task is responsible for the message on the bus, and the slave task is responsible for sending data; the master task sends the header, and the slave task uses the response to supplement the header to form a complete message< /address> Low-cost interface hardware based on universal UART/SCI: Almost all MCUs have the hardware basis of LIN bus

can be flexibly increased or decreased Number of nodes, up to 16 nodes can be connected to one line

Supports multi-packet message transmission and diagnostic services address> Data transmitted:

Signal message, the signal is located in the data field of the frame and appears in the form of numbers or arrays; the position of the same signal in the message with the same ID is always fixed

Diagnosis messages are transmitted by two reserved IDs, which are used to transmit the diagnosis information of the node. > Interval field: indicates the beginning of a frame of message, which is sent by the master node; it is composed of at least 13 dominant bits, and the interval delimiter is composed of at least 1 recessive bit.

Synchronization field: ensure that all slave nodes use and The master node sends and receives data at the same baud rate, one byte, fixed structure 0x55

Identifier field: ID range from 0 to 63; parity bit

Data field: length 1 to 8 Byte, low byte is sent first, low byte is sent first,

Checksum field: check whether the data is correct, classic checksum enhanced check,

byte interval is located between each byte, response interval is located between the header and response: leave enough processing time for the MCU , The frame length may increase

Frame type:

Unconditional frame, event-triggered frame, reserved frame, sporadic frame, diagnostic frame, custom frame

Leave a Comment

Your email address will not be published.