Skip to main content
Linas L
Senior
February 7, 2021
Solved

LIN Bus example on any family of STM32 MCU's

  • February 7, 2021
  • 1 reply
  • 9899 views

Hello. For my automotive project I need to imitate motorcycle handlebar that uses LINbus for buttons many buttons. Since I can't always take handle off motorcycle I need to make emulator of it.

This is Typical frame, and I mapped all bits of this burst. Brak , sync, ID is by my understanding is generated by master ( ECU ) and data is generated by handlebar controller.

Is where any example how to use LINbus? My understanding it should be something like CANBus, I get I whould get IRQ then ID is matched and simply send data just like regular UART message as well as calculate message CRC ?

Any information would be welcome. Thank you !

0693W000007EEX0QAO.png

This topic has been closed for replies.
Best answer by Linas L

https://github.com/kilohercas/STM32F103_LINBUS

Feel free to use it :)

1 reply

Linas L
Linas LAuthorBest answer
Senior
February 13, 2021