Skip navigation
Weekend project: reverse engineered the RAM 2500 CAN bus.
0:00 / 0:20

Weekend project: reverse engineered the RAM 2500 CAN bus.

Christopher Stanley

@cstanley113K followers

Visit on X
1,810 likesDownloadOriginal post

190,380 views

Weekend project: reverse engineered the RAM 2500 CAN bus. Captured live CAN traffic, found the message IDs that moved in the 2024 layout, patched the DBC/fingerprint path, and got openpilot working. Supervised L2, not full self driving, but still pretty damn cool!

55 Comments

Comments from the original post on X (Twitter)

  • elliott's profile picture

    @cyburke

    Comma algorithm has found me! I see you have the 4 up there. Cute lil' fella! Love seeing progress like this. My C3X still blows me away every day especially running on a now 10 year old car and doing what it does.

    24 likes

  • Christopher Stanley's profile picture

    @cstanley

    Super fun! I’ve also been playing around with the comma 4 UI to change what it displays since it’s much smaller than the 3

    16 likes

  • elliott's profile picture

    @cyburke

    Have you tested a fork yet that allows the Comma to keep control of the Lateral while you maintain the Long with your foot? Your car is newer so the steer ratio might be tighter, but on mine I noticed with a heavier car I could hold harder turns by me handling long myself.

    2 likes

  • Christopher Stanley's profile picture

    @cstanley

    Right now I’m running my own SunnyPilot fork with a few changes to reduce the ping ponging I was seeing. I can cancel ACC and still keep comma controlling LKAS, but lateral control still drops out at 36 mph and below. That seems to be a limitation in the factory LKAS/EPS control path on the Ram HD, not just a SunnyPilot setting. There may be some way to do a hardware man in the middle setup to work around that limit while still using the steering assist path, but I need to dig into it more. I’m still pretty new to this scene honestly haha.

    4 likes

  • elliott's profile picture

    @cyburke

    It is a LOT to learn. You seem like you are already far beyond just base level for sure. In my car I had to get a sDSU setup in order to work with below ~20-something mph down to zero. That works! But.. comes with a caveat in that Comma deprecated the sDSU and now I'm pinned.

    1 like

  • Christopher Stanley's profile picture

    @cstanley

    Yeah, you could probably backport the sDSU setup into a newer comma/openpilot version so you are not pinned to the older build. I have not looked at how invasive that would be yet, but if the old sDSU path still worked for your car, it may just be a matter of bringing that support forward cleanly.

    1 like

  • elliott's profile picture

    @cyburke

    I know some people were working on it but I haven't gone down that rabbit hole on Discord to find it. I've been juggling figuring out local LLM and other stuff related to Hermes and all of that for the past few months. My current pinned model is working and I use it every day. 😄

  • Christopher Stanley's profile picture

    @cstanley

    What version are you running? I’ll look to see if it’s easy.

  • Tech-Zilla's profile picture

    @TechnicalZilla

    I trust Bill Cosby at a lemonade stand more than I'd trust that Wile E. Coyote setup.

    24 likes

  • Qptc's profile picture

    @Qptc12

    Damn, wishing I splurged on lane assist and ACC now! Supervised L2 makes eating while driving so much easier

    8 likes

  • Christopher Stanley's profile picture

    @cstanley

    Exactly this haha

    4 likes

  • Nate McGrady's profile picture

    @natemcgrady

    Great use of free will

    7 likes

  • Mothberg 133's profile picture

    @GodsLibtard

    I don't like that you can move the steering wheel through CAN. like that shouldn't be possible

    5 likes

  • Christopher Stanley's profile picture

    @cstanley

    I get why that sounds sketchy, but that is how factory LKAS works. It is not directly driving a random motor, it is sending steering assist commands through the OEM EPS/LKAS path, with factory torque limits, checks, and driver override still in place.

    15 likes

  • Mothberg 133's profile picture

    @GodsLibtard

    Ye but why over OBD?

  • The Niggler's profile picture

    @nigggler69

    @cstanley It’s not over obd… that’s what the harness is for

    2 likes

  • Mothberg 133's profile picture

    @GodsLibtard

    @cstanley CAN*, should be direct wired imo

    1 like

  • overbeykno's profile picture

    @overbeykno

    @nigggler69 @cstanley How do you think every vehicle with LKAS does it?

    2 likes

  • Mothberg 133's profile picture

    @GodsLibtard

    @nigggler69 @cstanley module with direct connection to steering electronics

    1 like

  • The Eagle🌲's profile picture

    @EagleZeroX

    Lol Stellantis will NOT be happy about this. Automotive OEMs are pathological about protecting their software. To the tremendous detriment of the consumer and especially aftermarket.

    4 likes