Notices
Audio & Electronics Use this forum to discuss audio and electronic upgrades for your Mercedes-Benz.
Sponsored by:
Sponsored by: Innova

W211 CAN B Hacking

Thread Tools
 
Search this Thread
 
Rate Thread
 
Old Nov 17, 2017 | 10:13 AM
  #126  
enzo80's Avatar
Newbie
 
Joined: Nov 2017
Posts: 5
Likes: 0
cls350
Can anybody tell me the right can codes for w211 ignition-on ?
I have tested ID = 0x000 with 1 byte 0xFF.
This is not right for ignition on ??
Anybody can help ?

Many thanks in advance
Reply
Old Nov 17, 2017 | 11:51 AM
  #127  
Russell Ormerod's Avatar
MBWorld Fanatic!
 
Joined: Jun 2011
Posts: 1,494
Likes: 131
From: Cape town
not a merc
I will have to check but I am pretty sure it will not have an ID of 0
Reply
Old Dec 14, 2017 | 01:19 AM
  #128  
jumph4x's Avatar
Super Member
 
Joined: Aug 2009
Posts: 998
Likes: 70
From: Oakland
W210 DRFT BNZ
Going to revive this real quick.

I'm trying to emulate steering wheel buttons and having no luck. A I've already mentioned, I'm using the Parktronic/Airmatic button canbus wires to tap in as mentioned above in this thread.
Looking at the document Alex sourced and I translated (source: https://github.com/angelovAlex/can-b...er/EN_PIDS.txt), I see two areas documenting steering wheel buttons.

On line 536:
--- KOMBI_A8 ID:0x032a
------ KI_STAT_MSS() Status Combi, offset:0, len:8
--- --- BUTTON_1_1_MSS() Next screen, offset:15, len:1
--- --- BUTTON_1_2_MSS() Previous display, offset:14, len:1
--- --- BUTTON_2_1_MSS() reserve, offset:13, len:1
--- --- BUTTON_2_2_MSS() reserve, offset:12, len:1
--- --- BUTTON_3_1_MSS() Button "", offset:11, len:1
--- --- BUTTON_3_2_MSS() Button "-", offset:10, len:1
--- --- BUTTON_4_1_MSS() Phone Send, offset:9, len:1
--- --- BUTTON_4_2_MSS() Phone End, offset:8, len:1
And on line 503:
--- KOMBI_A5 ID:0x01ca
--- --- KI_STAT() Status Combi, offset:0, len:8
--- --- BUTTON_1_1() Next screen, offset:15, len:1
--- --- BUTTON_1_2() Previous display, offset:14, len:1
--- --- BUTTON_2_1() reserve, offset:13, len:1
--- --- BUTTON_2_2() reserve, offset:12, len:1
--- --- BUTTON_3_1() Button "", offset:11, len:1
--- --- BUTTON_3_2() Button "-", offset:10, len:1
--- --- BUTTON_4_1() Phone Send, offset:9, len:1
--- --- BUTTON_4_2() Phone End, offset:8, len:1
So I try sending the various button commands on both listed PIDs: the 01ca and 032a to no avail.
Tried these:
00 01 00 00
-
00 02 00 00
-
00 04 00 00
I replaced my steering wheel and in the process glitched out the SCM (steering control module) to a permanent LIN bus communication error (DTC 9001) so I can no longer *sniff* the actual packets to make this work, help!
Reply
Old Dec 14, 2017 | 07:26 PM
  #129  
Mitch Detailed's Avatar
Member
 
Joined: Mar 2014
Posts: 95
Likes: 8
From: Murfreesboro TN
2006 E55 AMG Kompressor
Originally Posted by jumph4x
Going to revive this real quick.

I'm trying to emulate steering wheel buttons and having no luck. A I've already mentioned, I'm using the Parktronic/Airmatic button canbus wires to tap in as mentioned above in this thread.
Looking at the document Alex sourced and I translated (source: https://github.com/angelovAlex/can-b...er/EN_PIDS.txt), I see two areas documenting steering wheel buttons.

On line 536:


And on line 503:


So I try sending the various button commands on both listed PIDs: the 01ca and 032a to no avail.
Tried these:


I replaced my steering wheel and in the process glitched out the SCM (steering control module) to a permanent LIN bus communication error (DTC 9001) so I can no longer *sniff* the actual packets to make this work, help!

Are you on can-c or can-b?
Reply
Old Dec 14, 2017 | 07:31 PM
  #130  
Mackhack's Avatar
Banned
 
Joined: Feb 2008
Posts: 0
Likes: 118
AIRmatic switch block is on CAN B with Brown Brown/Red wires. CAN C (motor) Green Green/White wires.
Reply
Old Dec 14, 2017 | 07:33 PM
  #131  
jumph4x's Avatar
Super Member
 
Joined: Aug 2009
Posts: 998
Likes: 70
From: Oakland
W210 DRFT BNZ
Originally Posted by Mitch Detailed
Are you on can-c or can-b?
CAN-B just like the thread title states. I can open/close all windows successfully, but nothing else.
Reply
Old Dec 23, 2017 | 03:13 AM
  #132  
Polar Bear's Avatar
MBWorld Fanatic!
 
Joined: Nov 2004
Posts: 1,691
Likes: 142
W221 S600, W220 S55 AMG Kompressor, W124 300E, W140 S320, W210 E3204M W164 ML320 Bluetec
I really wish someone could develop a module that would take from a factory sensor or aftermarket sensor and display a digital bar graph or numeric boost gauge in the cluster. That would be awesome for those of us with S600s, E55s, and all the other vehicles out with forced induction. I proposed this idea to Mid City years ago, and they seemed interested, but nothing ever came of it.
Reply
Old Dec 26, 2017 | 09:10 PM
  #133  
ecmexchange's Avatar
Former Vendor of MBWorld
 
Joined: Mar 2017
Posts: 335
Likes: 12
na
Originally Posted by Polar Bear
I really wish someone could develop a module that would take from a factory sensor or aftermarket sensor and display a digital bar graph or numeric boost gauge in the cluster. That would be awesome for those of us with S600s, E55s, and all the other vehicles out with forced induction. I proposed this idea to Mid City years ago, and they seemed interested, but nothing ever came of it.
I agree, it seems like it would be an item with a decent market.
Reply
Old Dec 27, 2017 | 06:20 PM
  #134  
jumph4x's Avatar
Super Member
 
Joined: Aug 2009
Posts: 998
Likes: 70
From: Oakland
W210 DRFT BNZ
Originally Posted by Polar Bear
I really wish someone could develop a module that would take from a factory sensor or aftermarket sensor and display a digital bar graph or numeric boost gauge in the cluster. That would be awesome for those of us with S600s, E55s, and all the other vehicles out with forced induction. I proposed this idea to Mid City years ago, and they seemed interested, but nothing ever came of it.
$350 Android headunit on eBay + $50 BT CANBUS reader is what we do around here.
Reply
Old Dec 30, 2017 | 11:50 AM
  #135  
angelovAlex's Avatar
Junior Member
5 Year Member
 
Joined: Jan 2017
Posts: 36
Likes: 14
2024 E400e
Originally Posted by jumph4x
Going to revive this real quick.

I'm trying to emulate steering wheel buttons and having no luck. A I've already mentioned, I'm using the Parktronic/Airmatic button canbus wires to tap in as mentioned above in this thread.
Looking at the document Alex sourced and I translated (source: https://github.com/angelovAlex/can-b...er/EN_PIDS.txt), I see two areas documenting steering wheel buttons.
Ping me in skype next time you need help. I have simulated pressing steering wheel buttons for long time, and never had issues with that. It just as simple as controlling windows.
I checked the code and it seems that I use another PID and it has only 2 bytes. I dont remember where I got that information, I believe I just sniffed it long time ago.
In source code on github there are 4 functions, ic_env_w, ic_env_a, ic_env_s and ic_env_d. (W,A,S,D buttons ) They are implementing pressing on buttons that are at left on steering wheel.

canB.sendMsg(424, 2, 0x04, 0x00); //will press one of them

Added: note that 424 is a decimal.

Last edited by angelovAlex; Dec 30, 2017 at 11:55 AM.
Reply
Old Dec 30, 2017 | 07:53 PM
  #136  
jumph4x's Avatar
Super Member
 
Joined: Aug 2009
Posts: 998
Likes: 70
From: Oakland
W210 DRFT BNZ
Originally Posted by angelovAlex
Ping me in skype next time you need help. I have simulated pressing steering wheel buttons for long time, and never had issues with that. It just as simple as controlling windows.
I checked the code and it seems that I use another PID and it has only 2 bytes. I dont remember where I got that information, I believe I just sniffed it long time ago.
In source code on github there are 4 functions, ic_env_w, ic_env_a, ic_env_s and ic_env_d. (W,A,S,D buttons ) They are implementing pressing on buttons that are at left on steering wheel.

canB.sendMsg(424, 2, 0x04, 0x00); //will press one of them

Added: note that 424 is a decimal.
Sounds like I have a different steering wheel, but I will try what you're suggesting.
Reply
Old Dec 31, 2017 | 01:13 PM
  #137  
venise's Avatar
Newbie
 
Joined: Dec 2017
Posts: 11
Likes: 0
mercdes 350CLS
Originally Posted by DaveBk
About 12 years ago, I built a canbus interface for my E320. I used it to intercept the steering wheel buttons to control an after market Bluetooth phone adaptor. I'll have to see if I can find any notes on how I interfaced it, but I do recall CANB is fault tolerant so needs the right interface chip to correctly interpret the voltage levels. I have found the source code for the PIC16F84 code I was using and I was filtering on 01 A8 messages, so these were the ones I established were for the steering wheel controls.
bonjour
ou trouver les fils du CANBUS des commandes au volant .
pour pouvoir les brancher sur mon SEICANE qui ne fonctionne pas car les connecteur ne sont pas les meme que la mercedes
Reply
Old Dec 31, 2017 | 01:42 PM
  #138  
Mackhack's Avatar
Banned
 
Joined: Feb 2008
Posts: 0
Likes: 118
English?
Reply
Old Dec 31, 2017 | 02:47 PM
  #139  
venise's Avatar
Newbie
 
Joined: Dec 2017
Posts: 11
Likes: 0
mercdes 350CLS
Unhappy CAN BUS Commande volant

[QUOTE = JacekD; 6707982] Salut!

Pouvez-vous partager ce que vous avez réussi à réaliser?

J'essaie de faire semblable. J'ai tablette Android avec OTG, où je vais avoir la navigation. Je veux afficher les informations suivantes sur le
MF2 W211: -Informations sur la navigation -La
limite de vitesse actuelle (et peut-être avertir si elle est dépassée)
-traffic informations / avertissements (accidents et autres).

En outre, je veux commander la table avec des boutons de volant.

J'attends juste l'arrivée de l'interface CAN BUS que je connecte à l'hôte USB dans la tablette.
Je vais obtenir des fils CAN (GND, CAN H, CAN L) à l'arrière de Audio 20.

Je suis prêt à partager avec mes résultats, mais je voudrais commencer en fonction des connaissances actuelles.

.
bonjour
Avez-vous pu identifier, les fils du CANBUS des commandes au volant ?
Il me faut les brancher sur mon SEICANE .
Il ne fonctionne pas car les connecteurs ne sont pas les meme que sur ma mercedes 350 cls W219 ?
Merci
​​​​​​​Jean
Reply
Old Jan 10, 2018 | 02:27 PM
  #140  
gapcobenz's Avatar
Junior Member
 
Joined: Sep 2010
Posts: 48
Likes: 2
From: Johannesburg, South Africa
Various Fiat
Originally Posted by angelovAlex
Forgot about that thread, actually thought it's dead already. Glad to see that there's still some interest.



The short answer is no. But if you really want it, it can be done somehow. Instrumental cluster is very limited, it's designed to do what it does. It doesn't support creating of additional menu, but you can change existing menu, like service menu, but for this you need to inject you device between instumental cluster and CGW. Another option is to draw it on phone, or navi, or music menu. Unfortunately, that menus are also limited and you can draw only 2 big text lines in the center and 1 small text line at the top. The third option is to draw whatever you want with diagnostic messages, you can draw text, lines, squares and even single pixels, but for each command it takes about a second to update, so if you want to draw a menu with 5 text lines it will take 5 seconds





Sorry, but there's no PIDS for this door. The button on that door is connected directly to the controller that opens and closes that door. It can't be controlled over the CAN Bus.
Sorry have not seen this reply until now. When you say "controller" what do you mean?
Reply
Old Jan 11, 2018 | 12:46 AM
  #141  
Russell Ormerod's Avatar
MBWorld Fanatic!
 
Joined: Jun 2011
Posts: 1,494
Likes: 131
From: Cape town
not a merc
Controller = ecu
Reply
Old Jan 11, 2018 | 02:48 AM
  #142  
gapcobenz's Avatar
Junior Member
 
Joined: Sep 2010
Posts: 48
Likes: 2
From: Johannesburg, South Africa
Various Fiat
Originally Posted by Russell Ormerod
Controller = ecu
Are you referring to the car ECU ?
Reply
Old Jan 12, 2018 | 12:31 PM
  #143  
Russell Ormerod's Avatar
MBWorld Fanatic!
 
Joined: Jun 2011
Posts: 1,494
Likes: 131
From: Cape town
not a merc
Yes this is a car forum
Reply
Old Jan 12, 2018 | 03:14 PM
  #144  
gapcobenz's Avatar
Junior Member
 
Joined: Sep 2010
Posts: 48
Likes: 2
From: Johannesburg, South Africa
Various Fiat
Originally Posted by Russell Ormerod
Yes this is a car forum
The W211 ECU is in the CAN C system that runs @ 500kps. The interior CAN B system works @ 83.3kps. The PCB on the door of the CD changer has a TJA1054 CAN transceiver IC which can run up to a maximum baud rate of 125kps.
The W211 schematic diagram of the upper control panel where the CD opening/closing door is situated clearly shows it's connection to the CAN B system.

Your reply please.
Attached Files
Reply
Old Jan 13, 2018 | 01:01 AM
  #145  
Russell Ormerod's Avatar
MBWorld Fanatic!
 
Joined: Jun 2011
Posts: 1,494
Likes: 131
From: Cape town
not a merc
Ecu = electronic control unit it does not mean engine control unit. Ecu can refer to any of the maybe 15 or 20 ecus fitted to a w211.
Reply
Old Jan 13, 2018 | 01:20 AM
  #146  
Mackhack's Avatar
Banned
 
Joined: Feb 2008
Posts: 0
Likes: 118
Originally Posted by Russell Ormerod
Ecu = electronic control unit it does not mean engine control unit. Ecu can refer to any of the maybe 15 or 20 ecus fitted to a w211.
Even a C Class W203 Classic has more than 20 individual control modules
Reply
Old Jan 13, 2018 | 08:23 AM
  #147  
gapcobenz's Avatar
Junior Member
 
Joined: Sep 2010
Posts: 48
Likes: 2
From: Johannesburg, South Africa
Various Fiat
Originally Posted by Russell Ormerod
Ecu = electronic control unit it does not mean engine control unit. Ecu can refer to any of the maybe 15 or 20 ecus fitted to a w211.
The W211 has EIS,ESL,SRS,ETS,ESP modules to name just a few which are all electronic control units. Even a simple relay albeit an electro mechanical device can be considered an ECU.
A pop up toaster, washing machine or any other electrical household appliance can also be called an ECU as they all control something.

FYI an ECU in the automotive industry is another name for the ECM which controls engine management functions. Our friend Google will send your request to Wikipedia for you to better understand.

Seeing that this is a Mercedes Benz car forum and the thread is discussing CAN BUS hacking I think your reply to the question I asked should have been something like this.

" The controller Angelo is referring to could be the rear SAM where all the interior CAN BUS signals are generated, but having said that I could be wrong and you should wait for Angelo to reply"


I'll wait for Angelo to reply.
Reply
Old Jan 14, 2018 | 12:17 PM
  #148  
Russell Ormerod's Avatar
MBWorld Fanatic!
 
Joined: Jun 2011
Posts: 1,494
Likes: 131
From: Cape town
not a merc
That's why you must not believe all Google and wiki tell you, you will be misinformed. Go learn some more about what the rear Sam does!
Reply
Old Feb 1, 2018 | 04:00 PM
  #149  
gapcobenz's Avatar
Junior Member
 
Joined: Sep 2010
Posts: 48
Likes: 2
From: Johannesburg, South Africa
Various Fiat
Wink

Originally Posted by Russell Ormerod
That's why you must not believe all Google and wiki tell you, you will be misinformed. Go learn some more about what the rear Sam does!
You still at it I see. Let me feed your ignorance. In the W211 the EIS/EZS is the master CANBUS distributor and works together with the CGW. And I did not find this on the internet, instead the knowledege comes from repairing/reprogramming on a daily basis all the boxes you call ECU in Mercedes Benz cars for Mercedes Benz dealerships.
Reply
Old Feb 1, 2018 | 04:09 PM
  #150  
gapcobenz's Avatar
Junior Member
 
Joined: Sep 2010
Posts: 48
Likes: 2
From: Johannesburg, South Africa
Various Fiat
Originally Posted by angelovAlex
Forgot about that thread, actually thought it's dead already. Glad to see that there's still some interest.



The short answer is no. But if you really want it, it can be done somehow. Instrumental cluster is very limited, it's designed to do what it does. It doesn't support creating of additional menu, but you can change existing menu, like service menu, but for this you need to inject you device between instumental cluster and CGW. Another option is to draw it on phone, or navi, or music menu. Unfortunately, that menus are also limited and you can draw only 2 big text lines in the center and 1 small text line at the top. The third option is to draw whatever you want with diagnostic messages, you can draw text, lines, squares and even single pixels, but for each command it takes about a second to update, so if you want to draw a menu with 5 text lines it will take 5 seconds





Sorry, but there's no PIDS for this door. The button on that door is connected directly to the controller that opens and closes that door. It can't be controlled over the CAN Bus.
Not to worry about this. I have built a test jig for our benches that works without CANBUS data. Thanks anyway.
Reply


You have already rated this thread Rating: Thread Rating: 0 votes,  average.


All times are GMT -4. The time now is 04:22 AM.