LIN Frame Types

There are several different frame types in the Local Interconnect Network (LIN), each contributing specific functionality to the data link layer.

Unconditional Frames

This is the “normal” type of LIN communication. The Master sends a frame header in a scheduled frame slot and the designated Slave node fills the frame with data. Unconditional frames carry signals and their frame identifiers are in the range 0 (zero) to 59 (0x3B).

unconditional-frames.png

Event Triggered Frames

The purpose of an event triggered frame is to increase the responsivity of the LIN cluster without assigning too much of the bus bandwidth to the polling of multiple Slave nodes with seldom occurring events.

  • Master asks Slaves if a certain event has occurred.
  • Only those who have seen the event publish a response.
  • Identifiers 0x00 to 0x3b (0-59).
  • Collisions are possible - If more than one Slave has detected the specified event, all respond simultaneously, resulting in a collision.
  • When detected, Master reverts to unconditional frames.
  • Can result in better utilization of bandwidth.

Scenario #1

No Slaves have an event to report, no one publishes:

event-frame-scenario1.png

Scenario #2

SLAVE1 has an event to report and publishes a response:

event-frame-scenario2.png

Scenario #3

Two (or more) Slaves detect and publish responses:

event-frame-scenario3.png

Sporadic Frames

The purpose of sporadic frames is to blend some dynamic behavior into the deterministic and real-time focused schedule table without losing the determinism in the rest of the schedule table.

  • Sent by Master only when it is known that a Slave has updated information to publish.
  • Blends dynamic behavior into the schedule table.
sporadic-frame.png

Diagnostic Frames

These are used in the Transport Layer Specification section of the LIN v2.2A Specification. Their primary function is in the area implementing diagnostics and configuration functions on LIN Slaves.

  • Carry diagnostic/configuration data.
  • Always contain 8-byte data payload.
  • Designated Identifiers:
    • 0x3C (60) Master Request Frame.
    • 0x3D (61) Slave Response Frame.

Data Field Definitions:

  • Node Configuration:
    • Configuration of standard Slaves.
    • Universal usage.
    • Off the shelf sensors can be used.
  • NAD (Node Address)
    • Initial NAD: Origin address of Slave (Slave answers to this address in case of a Master Request).
    • NAD: Address of Slave. Can be assigned by configuration.
  • Supplier ID:
    • Supplier Identification e.g. 0x0014 = Microchip.
  • Function ID:
    • Function Application e.g. 0xAA55 = Window Lift Switch.
  • Variant:
    • Application Type e.g. 0x3C = Anti Pinch Function.

Example (Master Request Frame)

diagnostic-frame-master-request.png

Example (Slave Response Frame)

diagnostic-frame-slave-response.png

Network Management Frames

Network management in a LIN cluster refers to cluster wake up and go to sleep only.

All Nodes Sleep Command

The Master sets the cluster into Bus Sleep mode by transmitting a go to sleep command. The go to sleep command is a Master request frame with the first data field set to 0
and rest set to 0xFF:

go-to-sleep-frame.png

Wake Up

  • Any node can request a wakeup.
  • Node forces dominant from 250 µs – 5 ms.
  • All nodes should then wakeup within 100 ms from end of wakeup signal.
  • Master node must transmit within 150 ms.
wake-up-signal.png
© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.