It's too damn dark & cold outside, so I'll distract myself with some CAN bus fun. 2002 BMW 330 instrument cluster was $57 shipped from car-part.com.
Wiring diagram:
The CAN shield is http://www.wvshare.com/product/SN65HVD230-CAN-Board.htm based on http://www.ti.com/product/sn65hvd230
More on BMW e46 Can bus
[info] CAN bus: BMW instrument cluster
- AndreyB
- Site Admin
- Posts: 14332
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
CAN bus: BMW instrument cluster
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: 14332
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: CAN bus: BMW instrument cluster
The cluster has arrived and it took me 'only' two hours to figure out that it wants +12 on three wires in order to start sending out CAN messages.
So, "BATTERY" + "IGN (START/RUN)" + "IGN (ACCY/RUN/START)" powered (and obviously GND) got me a constant flow of CAN messages. Here they are on the logic analyzer (that white box in the top-right corner)
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: 14332
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: CAN bus: BMW instrument cluster
With a hint from ChibiOS forum I have received my first CAN message! ARBID 0x613 is one of the cluster status messages. Big day for our CAN subsystem
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: 14332
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: CAN bus: BMW instrument cluster
That's a miracle. This cluster has arrived yesterday and today I am controlling it?!
I hope one day we will control injectors via CAN.
I hope one day we will control injectors via CAN.
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
-
- contributor
- Posts: 51
- Joined: Tue Nov 05, 2013 1:43 pm
Re: CAN bus: BMW instrument cluster
Unfortunately CAN isn't deterministic (FlexRay will be) so CAN is best used for communication of non-realtime information.russian wrote:I hope one day we will control injectors via CAN.
- AndreyB
- Site Admin
- Posts: 14332
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: CAN bus: BMW instrument cluster
Turned out e46 has a CAN message for speed, but the instrument cluster does not use it! Speedometer works via a PWM on a dedicated wire fed from some other block somewhere else. Tach an temperature is controlled by CAN. With 30 wires coming to the cluster it looks like the e46 is an intermediate technology mixing some CAN with some analog.
For example Mercedes W220 instrument cluster has only 11 wires connected to it - but no one has bothered to reverse-engineer the protocol yet.
Anyway, this was interesting experience and e46 cluster goes to eBay
For example Mercedes W220 instrument cluster has only 11 wires connected to it - but no one has bothered to reverse-engineer the protocol yet.
Anyway, this was interesting experience and e46 cluster goes to eBay
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: 14332
- Joined: Wed Aug 28, 2013 1:28 am
- Location: Jersey City
- Github Username: rusefillc
- Slack: Andrey B
Re: CAN bus: BMW instrument cluster
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