Pages: [1]   Go Down
Author Topic: LIN bus monitoring - any similar projects done?  (Read 871 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi guys,

What I am trying to develop is arduino based controller which monitors LIN based communication (one wire 9600 bits per second)
The idea is to monitor lin bus(car steering wheel buttons) via arduino serial rx line and based on the received data perform switch actions.
Most difficult part for me is to find out how to filter out the important bytes from the lin frame which includes at least five bytes.

My idea:
1) wait for the uart brake  - serial starts
2) wait for the sync byte -  uart 0x55 always
3) look the ID byte - known 8 bit byte
4) read the data byte(S) - based on that information start switch case

 If anyone has good ideas or similar code  - you are welcome to help:)

« Last Edit: December 26, 2012, 06:36:31 pm by jakim » Logged

Offline Offline
Sr. Member
Karma: 3
Posts: 259
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You need a logic tool to catch the whole ball of wax.

Then take reading to find the start and stop bytes.

This will not be easy cause a car is not going to use a standard.

Pages: [1]   Go Up
Jump to: