
LIN bus
- AndreyB
- Site Admin
- Posts: 13672
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
LIN bus
We already read one important bit via K-line, let's see what would end up being first rusEFI LIN use-case 

Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
- AndreyB
- Site Admin
- Posts: 13672
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: LIN bus
2019 Q7 battery monitoring maybe? LIN is shared with generator and goes to gateway
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Re: LIN bus
looks like a smart shunt? do you have the part number? know anything about its datagrams?
-
- running engine in first post
- Posts: 1452
- Joined: Mon Jan 30, 2017 2:05 am
- Location: Seattle-ish
Re: LIN bus
It's either a shunt or a hall effect sensor.
Aside: Lots of hall effect ones available that you just tape around the battery cable and have regular ground/power/voltage output. Ford makes a few that are on a bazillion different vehicles.
Aside: Lots of hall effect ones available that you just tape around the battery cable and have regular ground/power/voltage output. Ford makes a few that are on a bazillion different vehicles.
Re: LIN bus
afaik, hall-based current sensors work best at some certain current range: if it is good for small currents, it won't work for large currents (btw, not sure, will it provide wrong readings or just fail). those intended for large currents (e.g. of a starter motor) won't read small values (sensitivity issues?)
but once again, what information do such devices provide and who is the final 'consumer' of such information?
but once again, what information do such devices provide and who is the final 'consumer' of such information?
- Dron_Gus
- contributor
- Posts: 405
- Joined: Wed Nov 13, 2013 1:11 pm
- Location: S-Pb
- Github Username: dron0gus
Re: LIN bus
Sorry, following link is Russian https://www.drive2.ru/l/591231042828962546/
Re: LIN bus
I am curious how much current does it consume when in sleep mode?
Still, no protocol details
I wonder, what chip is inside. Is it possible to disassebme the firmware? or decyphering protocol is the way to go?
sort of offtopic: there are also chinese BLE battery trackers, which provide detailed info (Vbatt) over the 30-day period - nice devices for ~$30.

Still, no protocol details

sort of offtopic: there are also chinese BLE battery trackers, which provide detailed info (Vbatt) over the 30-day period - nice devices for ~$30.
- Dron_Gus
- contributor
- Posts: 405
- Joined: Wed Nov 13, 2013 1:11 pm
- Location: S-Pb
- Github Username: dron0gus
Re: LIN bus
Some battery monitor from "BMW 2 F22 2013":
Only few bytes in first message changes... Seems it need some additional initialization?
Code: Select all
RX: ID 0x09, PID 0x49 (TX PID was 0x49), data len 8: 0f 27 57 2c 5e 00 00 b0 CRC 37
RX: ID 0x0a, PID 0xca (TX PID was 0xca), data len 8: 00 00 00 00 00 ff ff ff CRC 00
RX: ID 0x0b, PID 0x8b (TX PID was 0x8b), data len 8: 00 00 00 00 7c ff ff ff CRC 83
RX: ID 0x0f, PID 0xcf (TX PID was 0xcf), data len 8: ff ff ff ff ff ff ff ff CRC 00
RX: ID 0x10, PID 0x50 (TX PID was 0x50), data len 8: 00 ff 00 00 00 00 00 00 CRC 00
RX: ID 0x11, PID 0x11 (TX PID was 0x11), data len 8: 00 00 00 00 00 00 00 00 CRC ff
- Dron_Gus
- contributor
- Posts: 405
- Joined: Wed Nov 13, 2013 1:11 pm
- Location: S-Pb
- Github Username: dron0gus
Re: LIN bus
Battery monitor from Audi A5/S5 2008+
Baudrate seems to be around 19200. New (LIN2.0) CRC type.
Baudrate seems to be around 19200. New (LIN2.0) CRC type.
Code: Select all
---LIN wake---
RX: ID 0x2d, PID 0xad (TX PID was 0xad), data len 8: 60 30 00 80 00 ff fe ff CRC 42
RX: ID 0x2e, PID 0x2e (TX PID was 0x2e), data len 8: 00 00 00 00 80 00 08 fc CRC 4c
RX: ID 0x2f, PID 0x6f (TX PID was 0x6f), data len 8: 2f 29 e6 7f 3e 1a d0 00 CRC a8
RX: ID 0x30, PID 0xf0 (TX PID was 0xf0), data len 8: 17 ff 3e 3c 1e c0 b1 0b CRC e1
RX: ID 0x34, PID 0xb4 (TX PID was 0xb4), data len 8: af 2e 03 f1 a8 03 66 0c CRC 5a
- AndreyB
- Site Admin
- Posts: 13672
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: LIN bus
PRRRRRRRRRRRRRRRRR
PPPPPPPPPPPPPPPPPPR
PR?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Re: LIN bus
which code? it's just raw data..
btw, googled for that BMW battery wire and got this:
"Плюсовой провод аккумуляторной батареи БМВ, Клемма аккумулятора BMW с пиропатроном" %-)))
btw, googled for that BMW battery wire and got this:
"Плюсовой провод аккумуляторной батареи БМВ, Клемма аккумулятора BMW с пиропатроном" %-)))
- Dron_Gus
- contributor
- Posts: 405
- Joined: Wed Nov 13, 2013 1:11 pm
- Location: S-Pb
- Github Username: dron0gus
Re: LIN bus
https://github.com/mestrode/IBS-Sensor-Library but not compatible with these two sensors that I got from junkyard.