Skip to content
Benjamin Vernoux edited this page Mar 24, 2023 · 8 revisions

HydraFW Bus LIN (Local Interconnect Network)

This guide is updated towards firmware release HydraFW v0.9 Beta and later

Bus: LIN
Connections: two pins (RX/TX) and ground.
Output types: 3.3volt normal output, or open drain
(pull-up/pull-down resistors integrated in MCU or external).
Pull-up resistors: required for open collector output mode (2K – 10K).
Maximum Voltage: 5.5volts (5volt safe).

For hardware shield supported see https://github.com/smillier/HydraLINCAN

Protocol configuration syntax description:

  • show Show LIN parameters or show pins Show pins used in this mode

  • device with parameter 1 or 2 to choose LIN device (1 or 2)

  • exit to exit LIN mode

Note default value for device 1 or 2: 
For device 1 (LIN1):
> lin device 1
Note: LIN parameters have been reset to default values.
Device: LIN1

For device 2 (LIN2):
> lin device 2
Note: LIN parameters have been reset to default values.
Device: LIN2

Configuration options:

Hardware Informations:

lin1> show pins
TX: PA9
RX: PA10

lin2> show pins
TX: PA2
RX: PA3

Protocol configuration example:

Protocol interaction syntax description:

Bus interaction commands

trigger configures the trigger mode

[ Write a LIN break

Protocol interaction example usage LIN1 write:

lin1> 0x01 0x02 ~ r 0x00:4
WRITE: 0x01 0x02 0x53 
READ: 0x80
WRITE: 0x00 0x00 0x00 0x00

Additional informations about LIN

For more details on LIN see https://en.wikipedia.org/wiki/Local_Interconnect_Network

How to Flash/Use HydraFW

How to Build/Flash/Use HydraFW

Developer Getting-Started with HydraBus and STM32CubeIDE

Hardware

Firmware (hydrafw) performances

Firmware (hydrafw) Application guides

Firmware (hydrafw) guides

How to Help

Clone this wiki locally