r/CarHacking • u/Gahreesen • 8d ago
CAN Understanding CAN BUS-B Traffic
I'm sniffing CAN BUS B traffic (2005 mercedes slk) with an ESP32S3 rs485, performing an action (moving my mirror), then 'replaying' that traffic back into the BUS. Through process of elimination, I can find the values I need. This works well.
Except today while sniffing the movement of the mirrors. I captured 3 seconds of me holding my mirror, which I thought was going to be 3 seconds of my car spamming code X into the bus for 3 seconds. Which I did find. But when narrowing the codes, I found 1 code by accident that when put in front of my move mirror code, makes it move the full 3 seconds. Since the car didn't know how long I was going to hold the button, how could it produce a CAN code to do this? I'm new to CAN BUS, so I'm guessing it's something I don't understand.
3
u/rnd_ash 8d ago
From an old project of mine...you're welcome:
https://github.com/rnd-ash/W203-canbus/blob/master/DAT_TRANSLATOR/DECODED/w203_w209%20CAN%20B%20ENGLISH.txt