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

W211 CAN B Hacking

Thread Tools
 
Search this Thread
 
Rate Thread
 
Old 06-05-2017, 03:41 PM
  #101  
Newbie
 
scotttherobot's Avatar
 
Join Date: May 2017
Location: Boulder Creek, CA
Posts: 11
Received 3 Likes on 3 Posts
2005 E320CDI, 2008 GL320 CDI, 1979 300D Euro, 1982 300D Turbo
Originally Posted by Mackhack
www.MidCityEngineering.com.

I'm not sure if you'll get the EZS from MB as it is a theft relevant part that also needs to be coded by MB in Texas. Let us know. You guys make good progress on this. I personally stopped after finding most PIDs.

Btw. did anyone find out if you can open and close the trunk with the power trunk closer? That's what I would be interested in most.
Yes, exactly, the MidCity one is the one I was thinking of! But yeah, if I were to get an EZS it would be a non-virgin one from a wrecked car. They seem to be going for around $100 USD with a matching key. Unfortunately I have not been able to find much documentation on the EZS module, all of the search results are clogged up with talk about key cloning and eeprom dumping etc, which is not the information I want.

As far as the trunk, there seem to be several PIDs labeled for "remote boot lid closing". Have a look at 0x018 or 0x019. I have not thought to sniff what happens when you pull the trunk switch.
The following users liked this post:
Mackhack (06-05-2017)
Old 06-05-2017, 05:39 PM
  #102  
Junior Member
 
angelovAlex's Avatar
 
Join Date: Jan 2017
Posts: 17
Likes: 0
Received 12 Likes on 5 Posts
2005 E320
Originally Posted by scotttherobot
That's the plan. I'm using a Raspberry Pi plugged into a USB car charger tucked into the glove box, and I wirelessly connect to it from my laptop. I'd like to follow along with what you've done like automatically enabling seat heaters on startup if it's cold, etc, and I'm also exploring building an iOS app to remotely control the locks, windows, etc.

My ultimate goal is to figure out how to emulate keyless go/EZS to enable remote start, but I'm not sure how likely that is to happen. I'm working on buying EZS and ESL modules so I can sniff the two CAN buses and the K-line and see what's going on there. I know it can be done (there's at least one aftermarket module that adds remote start using the factory key fobs) but I don't know if I'm smart enough to figure it out!
That's great as our goals are the same. I'm using mr3020 router with OpenWRT as it has build-in wifi (new versions of rpi have wifi as well, but I dont own any of them). And outside of this can bus hacking things, I'm an iOS/macOS developer
Old 06-06-2017, 03:43 AM
  #103  
Super Member
 
jumph4x's Avatar
 
Join Date: Aug 2009
Location: Oakland
Posts: 998
Received 70 Likes on 54 Posts
W210 DRFT BNZ
Brings joy to my heart seeing this thread flourish again! I just wish we were all local so we could get together and jam.
Old 06-06-2017, 04:42 PM
  #104  
Newbie
 
scotttherobot's Avatar
 
Join Date: May 2017
Location: Boulder Creek, CA
Posts: 11
Received 3 Likes on 3 Posts
2005 E320CDI, 2008 GL320 CDI, 1979 300D Euro, 1982 300D Turbo
Originally Posted by angelovAlex
That's great as our goals are the same. I'm using mr3020 router with OpenWRT as it has build-in wifi (new versions of rpi have wifi as well, but I dont own any of them). And outside of this can bus hacking things, I'm an iOS/macOS developer
Those little boxes are awesome! OpenWRT is so flexible. My day job is also in software development.

Originally Posted by jumph4x
Brings joy to my heart seeing this thread flourish again! I just wish we were all local so we could get together and jam.
I live in the Santa Cruz area but work in the South bay. So almost local, if you're in Oakland! I've been keeping my eye on your build!
Old 07-19-2017, 06:04 PM
  #105  
Banned
 
Mackhack's Avatar
 
Join Date: Feb 2008
Posts: 0
Received 115 Likes on 98 Posts
Is it possible to create a menu structure which can be controlled by the steering wheel buttons?
Old 07-26-2017, 10:14 AM
  #106  
Junior Member
 
the88g's Avatar
 
Join Date: Aug 2014
Location: Surrey, UK
Posts: 51
Received 0 Likes on 0 Posts
CLK320 2009 (W209)
Oh my gosh! I'm thrilled to see the progress here! And those pictures of the cluster with the lines and text, amazing.

A menu structure could be possible easily by keeping track of the current menu/selected item on a Pi or any written application, then when detecting the steering wheel buttons, you push a new line of text to the screen - I would like to do this to have a few options just like 'Say Thanks' [Indicator left, then right, then left] and 'Windows all up' [Self explanatory].

Does anyone know if the recirculated air button when held sends an all windows up/down code??

I have been absent on making any progress with this but I've recently changed to a W216, hoping to continue my project. I wonder how much of the LCD speedometer I can mess with. I was thinking an LVDS solution to an android device to get navigation directly in front of me would be nice.

Looking back at this thread has got me motivated once again. Nice work all round! Well done.

Last edited by the88g; 07-26-2017 at 10:34 AM.
Old 08-28-2017, 06:43 AM
  #107  
Junior Member
 
gapcobenz's Avatar
 
Join Date: Sep 2010
Location: Johannesburg, South Africa
Posts: 48
Likes: 0
Received 2 Likes on 2 Posts
Various Fiat
Hello guys. does anyone perhaps have the PIDS to open and close the CD changer door mechanism. I cannot find my logs on the W211 and don't have a car to read the messages.

Many thanks



Old 09-22-2017, 03:57 PM
  #108  
MBWorld Fanatic!
 
t-bone's Avatar
 
Join Date: Nov 2001
Location: Pasadena
Posts: 1,393
Likes: 0
Received 11 Likes on 10 Posts
2004 E55
Originally Posted by gapcobenz
Hello guys. does anyone perhaps have the PIDS to open and close the CD changer door mechanism. I cannot find my logs on the W211 and don't have a car to read the messages.

Many thanks



Kabeldavido.de used to sell a DVD enabler that allowed the CD changer door to open without having a CD changer in it. However, I just checked the site and can no longer find it.
Old 09-22-2017, 03:57 PM
  #109  
MBWorld Fanatic!
 
t-bone's Avatar
 
Join Date: Nov 2001
Location: Pasadena
Posts: 1,393
Likes: 0
Received 11 Likes on 10 Posts
2004 E55
Originally Posted by scotttherobot
Yes, exactly, the MidCity one is the one I was thinking of! But yeah, if I were to get an EZS it would be a non-virgin one from a wrecked car. They seem to be going for around $100 USD with a matching key. Unfortunately I have not been able to find much documentation on the EZS module, all of the search results are clogged up with talk about key cloning and eeprom dumping etc, which is not the information I want.

As far as the trunk, there seem to be several PIDs labeled for "remote boot lid closing". Have a look at 0x018 or 0x019. I have not thought to sniff what happens when you pull the trunk switch.
Here's what I installed in order to allow the trunk lid to be closed using my key fob:

https://www.kufatec.de/shop/de/heckk...-e-klasse-w211
Old 09-22-2017, 09:44 PM
  #110  
Banned
 
Mackhack's Avatar
 
Join Date: Feb 2008
Posts: 0
Received 115 Likes on 98 Posts
Originally Posted by gapcobenz
Hello guys. does anyone perhaps have the PIDS to open and close the CD changer door mechanism. I cannot find my logs on the W211 and don't have a car to read the messages.

Many thanks



I built my own circuit before to handle this problem.
Old 09-26-2017, 04:13 PM
  #111  
Junior Member
 
gapcobenz's Avatar
 
Join Date: Sep 2010
Location: Johannesburg, South Africa
Posts: 48
Likes: 0
Received 2 Likes on 2 Posts
Various Fiat
Originally Posted by Mackhack
I built my own circuit before to handle this problem.

I want to use a CANBUS emulator for bench testing the CD door after repair and not for in car use.
The following users liked this post:
Mackhack (09-26-2017)
Old 09-26-2017, 08:57 PM
  #112  
Member
 
Mitch Detailed's Avatar
 
Join Date: Mar 2014
Location: Murfreesboro TN
Posts: 95
Received 8 Likes on 7 Posts
2006 E55 AMG Kompressor
Originally Posted by gapcobenz
I want to use a CANBUS emulator for bench testing the CD door after repair and not for in car use.

Look into Linux and socketcan, you can buy an 80$ usb2can module and record, modify, get bus statistics and replay any captured bus information. Unlimited filters, etc.
The following users liked this post:
Mackhack (09-26-2017)
Old 09-27-2017, 02:18 AM
  #113  
Junior Member
 
gapcobenz's Avatar
 
Join Date: Sep 2010
Location: Johannesburg, South Africa
Posts: 48
Likes: 0
Received 2 Likes on 2 Posts
Various Fiat
Thanks for the reply Mitch. I use my own design CANBUS interface which uses a AT90CAN132 RISC chip.I also have interfaces from Microchip, CANDIP and some others as well. My problem is I cannot get a W211 to read the CAN messages for my application.
Old 09-27-2017, 07:37 AM
  #114  
Member
 
Mitch Detailed's Avatar
 
Join Date: Mar 2014
Location: Murfreesboro TN
Posts: 95
Received 8 Likes on 7 Posts
2006 E55 AMG Kompressor
Originally Posted by gapcobenz
Thanks for the reply Mitch. I use my own design CANBUS interface which uses a AT90CAN132 RISC chip.I also have interfaces from Microchip, CANDIP and some others as well. My problem is I cannot get a W211 to read the CAN messages for my application.
I understand, are you at least able to read packets from the bus with your device(s)?
Old 09-27-2017, 10:05 AM
  #115  
Junior Member
 
gapcobenz's Avatar
 
Join Date: Sep 2010
Location: Johannesburg, South Africa
Posts: 48
Likes: 0
Received 2 Likes on 2 Posts
Various Fiat
Yes my device can read packets from multiple locations simultaneously and also send messages at the same time. Basically I asked if anyone had the CDC door CANBUS pids as I cannot find my logs on the W211. Failing getting help on the forum I must find a car to read the data. Thanks anyway.
Old 10-01-2017, 12:54 PM
  #116  
MBWorld Fanatic!
 
Russell Ormerod's Avatar
 
Join Date: Jun 2011
Location: Cape town
Posts: 1,494
Received 131 Likes on 129 Posts
not a merc
Sdscan can read data and show exactly what ID is assigned to what message.
Old 10-01-2017, 04:55 PM
  #117  
iwl
Newbie
 
iwl's Avatar
 
Join Date: Sep 2017
Location: Germany Leipzig
Posts: 5
Likes: 0
Received 2 Likes on 2 Posts
A-Class W169
A Class W169 Android Head Unit Radio Can Hacking

Hi Forum,

I've started can bus hacking my Android head unit radio for my A class W169.

I have a raspberry pi with mcp2515/tj1015 can controller/transceiver connected to the android radio.

I can send at 83.3 kbps and get can acks from radio in deep sleep or up.

I haven't found out what message to send to get the radio up from deep sleep yet, use Acc-Wire for now.

May be somebody can send me a can bus trace and I try to send it to my radio and then filter out what messages to send to the radio to get it up.

Last edited by iwl; 10-01-2017 at 09:35 PM.
Old 10-01-2017, 09:33 PM
  #118  
iwl
Newbie
 
iwl's Avatar
 
Join Date: Sep 2017
Location: Germany Leipzig
Posts: 5
Likes: 0
Received 2 Likes on 2 Posts
A-Class W169
Due to the world wide exclusiv excellent information in this thread I now found out how to switch on my Android head unit radio by can bus after 1,5 months research.

I have to send id 0 FF two times to switch it on, id 0 00 to switch it off, all at 83 (,3 ??) kbps

with raspberry pi socket can this is:

sudo ip link set can0 up type can bitrate 83300 loopback off

cansend can0 000#FF
cansend can0 000#FF

cansend can0 000#00

especially helpful was:

https://github.com/jumph4x/can-bus-w211

describing lots of can ids including id 0 Byte 0 containing KL15 bits (Ignition / Acc)
The following users liked this post:
M-a-x-G (10-14-2017)
Old 10-02-2017, 08:41 AM
  #119  
Member
 
Mitch Detailed's Avatar
 
Join Date: Mar 2014
Location: Murfreesboro TN
Posts: 95
Received 8 Likes on 7 Posts
2006 E55 AMG Kompressor
Originally Posted by iwl
Due to the world wide exclusiv excellent information in this thread I now found out how to switch on my Android head unit radio by can bus after 1,5 months research.

I have to send id 0 FF two times to switch it on, id 0 00 to switch it off, all at 83 (,3 ??) kbps

with raspberry pi socket can this is:

sudo ip link set can0 up type can bitrate 83300 loopback off

cansend can0 000#FF
cansend can0 000#FF

cansend can0 000#00

especially helpful was:

https://github.com/jumph4x/can-bus-w211

describing lots of can ids including id 0 Byte 0 containing KL15 bits (Ignition / Acc)

Awesome! Another socketcan user. I really wish that the socketcan formatting would be a common format for all non-socketcan based software.
Old 10-07-2017, 06:23 PM
  #120  
Former Vendor of MBWorld
 
ecmexchange's Avatar
 
Join Date: Mar 2017
Posts: 335
Received 12 Likes on 12 Posts
na
I'm lucky if I can turn on my lights, let alone get into this level of detail on Can B hacking. Kudos
Old 11-13-2017, 12:53 PM
  #121  
Junior Member
 
angelovAlex's Avatar
 
Join Date: Jan 2017
Posts: 17
Likes: 0
Received 12 Likes on 5 Posts
2005 E320
Forgot about that thread, actually thought it's dead already. Glad to see that there's still some interest.

Originally Posted by Mackhack
Is it possible to create a menu structure which can be controlled by the steering wheel buttons?
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


Originally Posted by gapcobenz
Hello guys. does anyone perhaps have the PIDS to open and close the CD changer door mechanism. I cannot find my logs on the W211 and don't have a car to read the messages.

Many thanks

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.
The following 2 users liked this post by angelovAlex:
ecmexchange (11-14-2017), Mackhack (11-13-2017)
Old 11-16-2017, 10:27 AM
  #122  
Newbie
 
enzo80's Avatar
 
Join Date: Nov 2017
Posts: 5
Likes: 0
Received 0 Likes on 0 Posts
cls350
I want to test a comand ntg 2.5 system on bench from an mercedes w211.
I have a arduino connected to a can shield with mcp2515 chip.
I search the ignition on can keys for sending over canb.
Can anybody help here ?

many thanks in advance

is this correct sketch with can keys for ignition on ???

// CAN Send Example
//

#include <mcp_can.h>
#include <SPI.h>

MCP_CAN CAN0(10); // Set CS to pin 10

void setup()
{
Serial.begin(115200);

// Initialize MCP2515 running at 8MHz with a baudrate of 80kb/s and the masks and filters disabled.
if(CAN0.begin(MCP_ANY, CAN_80KBPS, MCP_8MHZ) == CAN_OK) Serial.println("MCP2515 Initialized Successfully!");
else Serial.println("Error Initializing MCP2515...");

CAN0.setMode(MCP_NORMAL); // Change to normal mode to allow messages to be transmitted
}

byte data[1] = {0xff};

void loop()
{
// send data
byte sndStat = CAN0.sendMsgBuf(0x000, 0, 1 , data);
if(sndStat == CAN_OK){
Serial.println("Message Sent Successfully!");
} else {
Serial.println("Error Sending Message...");
}
delay(100); // send data per 100ms
}

Last edited by enzo80; 11-16-2017 at 12:12 PM.
Old 11-16-2017, 09:06 PM
  #123  
Banned
 
Mackhack's Avatar
 
Join Date: Feb 2008
Posts: 0
Received 115 Likes on 98 Posts
Does anyone have code to share to control the buzzer inside the cluster?
Old 11-17-2017, 12:07 AM
  #124  
MBWorld Fanatic!
 
Russell Ormerod's Avatar
 
Join Date: Jun 2011
Location: Cape town
Posts: 1,494
Received 131 Likes on 129 Posts
not a merc
Buzzer is controlled within the cluster and can't be driven via the bus
Old 11-17-2017, 12:49 AM
  #125  
MBWorld Fanatic!
 
Russell Ormerod's Avatar
 
Join Date: Jun 2011
Location: Cape town
Posts: 1,494
Received 131 Likes on 129 Posts
not a merc
@enzo80,
Firstly the bus speed is 83.3kb not 80! Start there first


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

Quick Reply: W211 CAN B Hacking



All times are GMT -4. The time now is 11:59 PM.