2024-04-14 10:12 PM
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?
Solved! Go to Solution.
2024-04-16 09:13 AM
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
2024-04-14 11:55 PM - edited 2024-04-14 11:57 PM
> 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.
What speed an protocol is used, you should know from sensor or vehicle data - otherwise you cannot do anything useful.
2024-04-16 09:13 AM
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
2024-04-16 09:22 AM - edited 2024-04-16 09:25 AM
I never did...but see on git ->
https://github.com/kilohercas/STM32F103_LINBUS
+
set uart to ->
2024-04-16 09:11 PM
Thank you very much.