click below
click below
Normal Size Small Size show me how
LIN protocol
| Question | Answer |
|---|---|
| Meaning of LIN bus? | Local Interconnect Network (LIN) |
| What is LIN? where is used? | -Low cost option (if speed/fault tolerance are not critical) -Often used in vehicles for windows, wipers, air condition etc.. |
| Speed? | 1-20 kbit/s at max 40 m bus length |
| How is wired? | -Single wire (+ground) |
| Parts of the frame | header and a response -Sync Break Field(SBF) -SYNC Field -Protected ID -Data Field -Checksum Field |
| Voltage? | -Operating voltage of 12V |
| Break | The Sync Break Field (SBF) aka Break is minimum 13 + 1 bits long (and in practice most often 18 + 2 bits). The Break field acts as a “start of frame" notice to all LIN nodes on the bus. |
| Sync | The 8 bit Sync field has a predefined value of 0x55 (in binary, 01010101). This structure allows the LIN nodes to determine the time between rising/falling edges and thus the baud rate used by the master node. This lets each of them stay in sync. |
| Identifier | The Identifier is 6 bits, followed by 2 parity bits. The ID acts as an identifier for each LIN message sent and which nodes react to the header. Slaves determine the validity of the ID field (based on the parity bits) and act via below: |
| Data | When a LIN slave is polled by the master, it can respond by transmitting 2, 4 or 8 bytes of data. The data length can be customized, but it is typically linked to the ID range (ID 0-31: 2 bytes, 32-47: 4 bytes, 48-63: 8 bytes). The data bytes contain the |
| Checksum | As in CAN, a checksum field ensures the validity of the LIN frame. The classic 8 bit checksum is based on summing the data bytes only (LIN 1.3), while the enhanced checksum algorithm also includes the identifier field (LIN 2.0). |
| Sleep & wake up? | LIN slave can be forced into sleep mode by the master sending a diagnostic request (ID 60) with the first byte equal to 0. Each slave also automatically sleeps after 4 seconds of bus inactivity. |
| What is the maximum number of slaves in a LIN bus network? | The maximum number of slaves in a standard LIN network is 16 slaves (connected to 1 single master node). |
| How is the dominant state achieved electrically on a LIN bus line? | pulling the single LIN wire down to Ground (GND). |