Skip to content
Documentation sections

LIN Bus Timing Calculator

POSThttps://rftools.io/api/py/v1/calculate

Slug lin-bus-timing. Calculate LIN bus bit time, break field length, frame time, and maximum frame rate for automotive LIN network design.

Inputs

Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.

Inputs of lin-bus-timing
NameUnitRangeDefaultDescription
baudRatenumberkbps0.1 … 2019.2LIN baud rate (typical: 2.4, 9.6, 10.4, 19.2 kbps)
dataBytesnumberbytes1 … 88Number of data bytes in the response field (1-8 per LIN spec)
slotTimenumberms0.1 … 100010The schedule table's time for this frame; LIN 2.x needs it to hold the frame at its 1.4 × nominal maximum

Outputs

Returned in values, by key. A value that is unbounded or undefined is null.

Outputs of lin-bus-timing
FieldUnitDescription
bitTimeμsDuration of one bit: T_bit = 1 / baud_rate
breakLengthμsMinimum break field duration (13 bit times)
frameTimeheadlineμsTotal LIN frame duration including header and response
framesPerSecframes/sMaximum frames per second at this baud rate and data length
busLoad%Approximate bus utilization percentage
frameTimeMaxmsThe frame time with its 40 % allowance for inter-byte spaces and the response space (LIN 2.x TFrame_Maximum); the schedule slot must hold it

Calling it

  • Calculate: one call, the request and response in full, and its errors.
  • Batch: this calculator with others, or a sweep, in one request.
  • Solve for a target: the value of one input that brings an output to a target.