[info] CAN bus: BMW instrument cluster

Hardware inside and outside of the ECU
Post Reply
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

CAN bus: BMW instrument cluster

Post by AndreyB »

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:
Image

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
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
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: CAN bus: BMW instrument cluster

Post by AndreyB »

Image

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)
Image
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
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: CAN bus: BMW instrument cluster

Post by AndreyB »

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
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: CAN bus: BMW instrument cluster

Post by AndreyB »

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.
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
jedediah_frey
contributor
contributor
Posts: 51
Joined: Tue Nov 05, 2013 1:43 pm

Re: CAN bus: BMW instrument cluster

Post by jedediah_frey »

russian wrote:I hope one day we will control injectors via CAN.
Unfortunately CAN isn't deterministic (FlexRay will be) so CAN is best used for communication of non-realtime information.
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: CAN bus: BMW instrument cluster

Post by AndreyB »

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 :)
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
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: CAN bus: BMW instrument cluster

Post by AndreyB »

Since PCI is still pending and plans B and C have failed

[video][/video]
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
Post Reply