cancel
Showing results for 
Search instead for 
Did you mean: 

How can I Analyze LIN Data on car by STM32?

ThanhVd
Associate II

I have a sensor which send LIN message to vehicle, I want to read value of current, voltage, etc, form this message by SMT32. I connect LIN Wire to IO of MCU. How can I connect and analyze data?

1 ACCEPTED SOLUTION

Accepted Solutions

Thank you for providing the comment. 
I just started with LIN Communication. Could you please give me the example code for analyzing data sent from LIN wire in the vehicle?
Thank you

View solution in original post

4 REPLIES 4
AScha.3
Chief III

> I connect LIN Wire to IO of MCU.

I hope you did not ! LIN is 12V signal level, will damage a 3.3V cpu !

You need to connect  LIN Transceiver, maybe NCV7329, and set the serial interface to LIN mode.

AScha3_0-1713164232054.png

 

What speed an protocol is used, you should know from sensor or vehicle data - otherwise you cannot do anything useful.

If you feel a post has answered your question, please click "Accept as Solution".

Thank you for providing the comment. 
I just started with LIN Communication. Could you please give me the example code for analyzing data sent from LIN wire in the vehicle?
Thank you

I never did...but see on git ->

https://github.com/kilohercas/STM32F103_LINBUS

 

+

set uart to ->

AScha3_0-1713284708965.png

 

If you feel a post has answered your question, please click "Accept as Solution".
ThanhVd
Associate II

Thank you very much.