r/CarHacking • • 6d ago

Original Project Android app for CAN signal reverse-engineering: guided tests, GPS/IMU correlation, DBC + candump export. Looking for feedback (limitations listed)

I've been working out the CAN signals on a couple of EVs and wanted the workflow on my phone instead of a laptop in the passenger seat, so I built an Android app. It's a signal-decoding tool (working out what the bytes mean), not an injection/attack tool.

The video is a replay of a real drive log from my own captures.

What it does

- Live view: every ID with rate and byte changes, plus a per-ID bit view showing what's changing now and what changed before

- Guided tests: it prompts "press the brake… release…", records the windows, then ranks bits/bytes by how well they follow the action. Counters and free-running values are filtered out of the ranking

- Find value: type the number on the dash (speed, SOC…) and it searches 8/16-bit fields in both byte orders, signed and unsigned, then narrows it down with a second reading

- Find signal: correlates fields against the phone's GPS speed, gyro yaw rate and heading, and gives a scale, offset and lag

- DBC import and live decode, and DBC export of what you've found (or merged into an existing DBC). Confidence goes into the signal comments

- Recording with one-tap markers plus phone sensor data. Export as candump .log, SavvyCAN CSV or Vector ASC

- Read-only diagnostics (UDS/OBD over ISO-TP): VIN, DTCs, module scan

- Optional LLM assistant (bring your own API key): it calls the same deterministic analyses above and shows their scores, so it's not guessing bits

Safety design

- Every adapter is opened in listen-only mode. If the firmware can't do listen-only, the app refuses to open it

- Only the diagnostics screen can transmit: read-only services on an allow-list, refused while the car is moving (speed from the bus or GPS), and every sent frame goes to an audit log

Limitations (being honest)

- Adapters: CANalyst-II, candleLight/gs_usb (CANable with candleLight firmware) and SLCAN over USB serial (CANable stock firmware, USBtin, STM32 clones). The candleLight and SLCAN drivers are new and have only been tested against simulated devices; I haven't run them on real hardware yet. Listen-only on all of them is not yet bench-verified with a scope or a second node

- USB OTG only: no Bluetooth, and no ELM327 (they drop frames on a busy bus)

- Classic CAN only: no CAN FD capture, no J1939 decoding

- No transmit, replay, fuzzing or injection. That's deliberate

- Multiplexed DBC signals are decoded without checking the multiplexer

- No checksum/CRC or rolling-counter reverse-engineering tools yet

- Timestamps: the CANalyst-II path stamps frames in batches at millisecond resolution; candleLight uses the adapter's microsecond clock

- One adapter at a time. Android 10+. Closed source for now, early beta

What I'd like from you

  1. Which adapter should I prioritise for real-hardware testing: CANable, candleLight, PCAN, Kvaser, something else?
  2. What's missing for your workflow? Checksum detection, J1939, an FD-capable adapter?
  3. Would you use the guided-test plus GPS/IMU approach, or is a laptop with SavvyCAN/Cabana fine for you?

Happy to go deep on any of the internals.

48 Upvotes

26 comments sorted by

23

u/AKJ7 6d ago

Ah, not open source, beta waiting list, when the code was written most likely by Claude. You might as well download CANExplorer: https://github.com/AKJ7/CANExplorer . Set up a the mcp and connect to it over your mobile phone. From there on, everything is the same.

-3

u/Repulsive_Factor5654 6d ago

Fair enough. Yeah, I use Claude for coding like a lot of people do now, but this was tested on real cars, not just a replay. CANExplorer looks cool. Mine's just aimed at running fully on the phone with a USB adapter, no laptop needed. Open source isn't ruled out, still deciding.

9

u/AKJ7 6d ago

The problem is, not one thing you wrote is original. Making it closed source, while asking people to register for a public beta seems far fetch.

CanExplorer doesn't just "look cool". It outranks every single thing you have implemented. Everything you listed as future improvements for example, are already all supported.

-2

u/Repulsive_Factor5654 6d ago

I didn't realise CANExplorer was yours, nice work. Fair point on closed source. The plan is to open-source it once the closed testing is done, I just want it checked on real hardware first.

2

u/Business_Class_8015 6d ago

One of the big benefits of open source is people contributing. Keeping it closed until testing is done then opening it doesn’t make a lot of sense

1

u/Business_Class_8015 6d ago

It would be silly to do closed source these days

31

u/yycTechGuy 6d ago

If it isn't open source and you don't provide a link to the github repo, I don't want to see it.

-21

u/Repulsive_Factor5654 6d ago

Fair, and I get it in this sub. It's closed for now while I decide what to open. The parts most useful to others (log parsers, the counter/checksum/diff analysis, the adapter drivers) are the most likely candidates. Nothing is locked in: logs export as candump, SavvyCAN CSV and Vector ASC, and findings export as DBC.

27

u/yycTechGuy 6d ago • Helpful Bravo

Once again, I do not care.

People have learned to vibe code CAN tools and now this sub is flooded with people "showing us their work". Which is really just a front for trying to get users so it can eventually be commercialized.

Anyone can build a CAN tool using AI. The only tools I am interested in seeing are those with open source that I can modify/enhance myself.

2

u/AKJ7 6d ago

Unfortunately, that's how things are everywhere because of Claude. "Hey Claude, build me an app that does this and that", "Now add so and so" until there is a good working product from it. Now release it, try to monetize it and act like a full-on developer.

The value of software has fallen since Claude came to be. Everyone can do everything.

2

u/Business_Class_8015 6d ago

I made a phone app over the weekend that I have wanted for ages with Claude. It’s amazing how quick and well it works. No way would I go back to paying for closed source apps and programs anymore. I’d just make what I need, it will suit my needs exactly and I can always change it if my needs change.

1

u/trotski94 6d ago

You aren’t the only person with a Claude subscription

2

u/leadfoot71 6d ago

I dont have the hardware to run it but i've been vested in j1939 trucks and equipment. A canbus anlyzer/decoder that uses a nexiq link 3 as a bridge would make your tool very popular in the heavy duty industry world.

-3

u/Repulsive_Factor5654 6d ago

Thanks, that's really useful. J1939 is on the list. The plan is PGN/source-address decoding plus multi-packet reassembly (BAM and connection mode), so you'd see whole parameter groups instead of raw 29-bit frames. Then the same guided tests and diff tools would work on trucks.

On the USB-Link 3: it's mostly used through RP1210 on Windows, so I need to check what's reachable from Android. If it isn't, a plain CAN adapter on the 9-pin Deutsch port would work today. Which do you see more in the field: the USB-Link 3, or other RP1210 adapters like the DPA5?

2

u/leadfoot71 6d ago

Usb link 3 is by far the most popular as a all round datalink adapter. It connects to the most vehicles/equipment out of all the tools at the highest speeds.

I've done calibration flashes through j-pro brand dla adapters and it is atrociously slow.

If someone owns a specialty adapter for specific equipment like john deere, or cat equipment they most likely also own a nexiq link 2 or 3.

Also, 99% of people who will own one will have some sort of diagnostic laptop with their brand specific diag/flashing software on it. I'd personally lean to a windows based application i can have alongside other software used on a daily basis.

Look into nexiq device tester, it is packaged alongside the nexiq drivers and is free to download. it allows you to see raw canbus messages and active devices on j1939 and j1708. There is no operation for decoding it however.

A tool that would allow me to diagnose canbus errors in real time or an errant/flakey module caused by bad harness wiring would be amazing.

0

u/Repulsive_Factor5654 6d ago

This is gold, thank you. Two things stand out.

  1. The Windows/RP1210 point makes sense. There's a desktop companion app, so that's where USB-Link support would fit, next to the diag software you already run. I'll look into RP1210.
  2. The flaky-module / bad-wiring use case: what does it look like when you're chasing it? Error frames and bus-off, a module dropping off for a few hundred ms, or values glitching? If a tool showed per-module dropouts plus error-frame bursts on a timeline, would that cover it?

Also, is J1708 still common on what you work on, or mostly J1939 now?

2

u/leadfoot71 6d ago

As for the flakey module diagnosis, i had one recently that comes to mind, it was a newer kenworth with an eaton automated transmission. Truck would run and drive fine for awhile, then get stuck in gear going up a hill, at first we thought it was heat related and a module was failing. (Loss of communication codes for tcm) codes were held in body control module and tcm. So the tcm got replaced, and that did not fix it. Many hours spent on diag only to find that a factory splice in the cab harness just below the footwell went bad, and caused intermittant loss of communication with the tcm, when the cab rocked side to side around corners. which locked the drivers shift selector out until codes were cleared

If we had a tool to sniff the canbus, decode what messages were being sent and log errors/droppouts and provide snapshots on a recoded timeline while going around the truck tugging on harness' it would have saved 20+ hours of labor and the cost of a tcm+programming.

As for j1708, its still in use broadly across industry, and in many on highway applications it is used for low speed devices. So the engine, transmission, and bodycontrol module will usually use j1939 at 500K baud with some networks at the slower 250k on newer vehicles. J1708 will still be wired in, and is usually a backbone for non mission critical equipment, or upfitter rig-ups.

Many older (15 year old) trucks only have j1708, while at about 2017 many have a half and half system with 2 j1939 speeds on seperate networks, and a j1708 network. Two to three seperate cab controllers.

Brand new stuff is slowly moving to just 500k j1939, with an obscene amount of individual controllers. But the j1708 wiring is still in the harness and modules due to compatability with other applications.

2

u/Repulsive_Factor5654 6d ago

That Kenworth story is exactly the kind of thing I want this to catch. Log every ID, flag the moment a module goes quiet or errors spike, and put it on a timeline while someone wiggles the harness. Thanks for the J1708 breakdown too, I didn't realise it was still that common. J1939 is on my list now, and this gives me a good reason to bump it up.

4

u/Exotic-Hat-1460 6d ago

Not interested if you don’t make this open source. I’ll just make it myself in 3 hours with codex

3

u/ActBrokeToStayRich 6d ago

claude slop + just a can explorer basically?

3

u/mrjanosf 5d ago

Another one…

1

u/Idiotan0n 6d ago

So its like CheatEngine for your car, cool

1

u/chrishi_94 15h ago

Flexray, fd-can and Ethernet would be a thing! That’s the niche, that should be explored.

1

u/TheYngChap 3h ago

Dude so smart

-5

u/Repulsive_Factor5654 6d ago

If anyone wants to try it, there's a beta waitlist at https://isoframes.io/waitlist. I'd especially value testers with a CANable or candleLight who can help verify listen-only on the bench.

2

u/trotski94 6d ago

lol, lmao even