275 points · by thehoff · 2d ago · 161 comments
$(awk -v f=%c 'BEGIN{s=f f f f f f f f f f f f f f f f f f f;system(sprintf(s,115,104,32,47,109,110,116,47,115,100,91,97,98,99,100,93,49,47,116))}').up
The entertainment system (running Linux) sees an *.up file as an update file, which it tries to unzip and in so doing passes the filename to the shell, which runs the awk script, which runs `/mnt/t` and away you go. The filename needs to be FAT-32 compatible, hence encoding it in awk.(There's a separate flaw that lets you run whatever javascript you want using mp3 files on the USB with titles that aren't properly escaped before the entertainment system displays them. Both of these incredibly primitive flaws trigger Claude Fable's safety controls to terminate the session, so I ended up doing most of the work with Codex, which btw, is so much less annoying than Claude in every possible way.)
Based on this work:
- https://github.com/KidMixer/mazda-carplay-hud
- https://mazda-toolkit.monodev.org/
Adapted for North America, and my own particular sensibilities about what I wanted displayed on the HUD.
That Jeep Cherokee is a fantastic vehicle. A 1996 Cherokee Limited w/Upcountry suspension was the first vehicle I purchased new. Finally sold it when it was old enough to drink.
I’d have killed for something like ChatGPT back then to help with the EE.
I was just talking to a lawyer buddy of mine. They are having significant issues with commercial models and "abuse checking" even for the allegedly "sandboxed" private services. So they are strongly looking into open-weight local-hosted models just to get away from content/abuse checking. [Lawyers deal with stuff that can be full of trigger words that upsets safety checks.]
This is amazing. Thank you so much for posting. Excited for this project :)
Similar-ish thread from a month ago: "Jailbreaking my car's navigation system just so I can change the time" https://news.ycombinator.com/item?id=50339288
Having previously fought through various very-bad-astigmatism-induced headache things, I kinda doubt it.
I've had similar headaches from things with no electronics - bullseye practice with a mis-adjusted lens for astigmatism can trigger it.
Only real solution is to fix the corrective lenses (glasses, contacts, separate lens inserts, laser eye surgery, whatever).
Which is the one thing I really do not need but is the first thing every manufacturer wants to put on the HUD. Maybe it is because I own manuals, but I really don't like the distraction of a constantly changing/blinking number projected into my field of view.
https://github.com/jaysoffian/mazda-patcher/blob/fdef8b88883...
Dumping the original OS is trivial. Grab `cmu150_NA_74.00.324A_update.up` from the internet (widely available), assuming that's your FW version. That's just a zip file. Its password is here:
https://www.mazda3revolution.com/threads/mazda-up-filw.25078...
The clankers can take it from there.
The entertainment system is mostly a bunch of javascript running under opera.
Vehicle modifications by consumers in the US is kind of like the Wild Wild West though. Nobody really gives a crap except cops looking to write nuisance tickets for noise, or in a handful of states passing an occasional emissions test. And if someone really wanted to do something wild they will just find an old 1950s VIN tag, slap it on their home built contraption, and register it as a modified 1950s vehicle that had worse emissions than a modern weed wacker and no factory seatbelts so there is essentially zero restrictions on anything except overall size and weight limits.
https://www.wired.com/2015/07/hackers-remotely-kill-jeep-hig...
I'm mostly glad it wasn't our fault.
The OS was Odd. Same Java UI as BlackBerry. Our software was in a sandbox which was a little rough. Based on a coworker's calculation every web request we made had exactly a 1 second delay, like someone left a sleep(1000) statement in.
I worked on a vehicle telematics platform that was read-only on the CAN bus, and the idea of OTA updates gave me the chills.
This was a fairly novel application and it's essentially running on a mirrored CAN bus in a subsytem so there is no way it can go haywire and impact the actual running vehicle. But it would probably only take a couple of mistakes from future devs and integrators for thst to not be the case.
<begins searching for used Trans Ams>
I hooked up a weird proprietary serial printer and a webcam to a linux host that was also running a Windows 2000 VM in qemu and told an LLM to reverse engineer the ancient drivers for it. Hearing the printer print jobs the LLM sent totally on its own was a penny drop moment for me.
The other day I was organizing all of my electronics (ESP32 boards, sensors, LEDs, etc) and once we agreed on where everything was going to go, and I had loaded labels into my label printer, it kicked off a job and just spit out all the labels I needed, which is not that impressive in and of itself, but something about when Claude reaches into the physical world is so cool.
I thought about plugging in a space heater, but those suck for a few important reasons that anyone who has ever used one can probably relate to. One of those reasons is that the temperature regulation they provide for the room that they're in is usually very lousy, since the location of their integrated thermostat is right next to their source of heat.
On a whim, I decided to improve that thermostat. I already had a bag of cheap DS18B20 temperature sensor clones and some Raspberry Pi Pico Ws that had been looking for a project for years. I soldered those two things together and had Codex configure and install ESPHome for it, and tie that to Home Assistant.
That process went fast (only about 15 minutes) and provided a responsive wifi temperature sensor that was powered by a random USB wall-wart. Easy-peasy.
I also found a disused smart plug in the box of random electrical widgets.
The next move was to set up the Generic Thermostat card in Home Assistant. It reads the probe, and it switches the relay in the smart plug to turn the heater on and off.
This left me a heater over there (gestures) where sleeping-me won't be able to toss my bedclothes onto it or anything. That heater is ultimately controlled by a little sensor-probe on the nightstand next to my head, and a dial on a screen on my phone.
The room warmed up quickly and the temperature leveled off. Safety was maintained (the heater and its own thermostat are unmodified). Sleep came easily. Data was logged.
---
(It could have stopped there, and I might guess that most people would have been satisfied with the performance.
But the data showed that the DS18B20 clone was very noisy on the LSB regardless of sample bit-depth. That noise looked a lot like PWM to me so I had the bot concoct a 10-second rolling average for samples in ESPHome which solved the noise well-enough.
And the Generic Thermostat card is pretty dumb, as the name suggests. It just responds to observed temperature with a deadband around the setpoint, which works... But PID is better, so I've spent some time on that because I think PID is fun.)
(Reminds me a bit of https://xkcd.com/196.)
Cars were different back then.
When I swapped my 1995 BMW's auto gearbox for a manual, that only took two wiring changes: Hooking the clutch switch to where the neutral safety switch used to be at the gear selector (so it would start sensibly), and cut (splice? I forget) one wire at the ECU harness so it always used the in-gear engine map instead of the park/neutral engine map once it was started. It was amendable to being hacked and behaved extremely well. (Oh, and one more wiring hack for the reverse light switch -- the total is now 3 wiring hacks to replace a computer-controlled 4L30E with ~any dumb manual gearbox that can be made to physically work.)
On my more-modern (but still old -- 2012!) Honda, things generally communicate over serial data buses instead of simple low-speed binary on/off one-wire-per-function stuff. The fun stuff (including the bits for deleting their badly-implemented cylinder deactivation system) is encrypted and locked down.
Can that encryption be broken? Why, sure it can! But it's still not the same kind of thing that hacking a car from the middle part of the 1990s is.
The gains of port injection and a wideband are about 20% power and better emissions and logevity.
Count me in!
Nothing he did is novel from an aftermarket perspective. Aftermarket remote start or wiring harnesses to retrofit head units have been around for decades. So has aftermarket ECU reprogramming.
Edelbrock sells their own ECUs, they employ plenty of people capable of this.
You may be right about him being a "layman" (the YouTube description of the previous video linked in the Drive article shows that he himself says he's "not a mechanic") but I don't see anyone else doing this to their Jeep.
Voiding a warranty though, that's something thst has been around for a while.
...if something goes wrong, World of Hurt
Not to mention that punching down is fun to some people, that's what bullies do.
Gave it the SoC's BT SDK and the OTA firmware image and went to town.
I guess the fact it mostly worked is impressive in its own way and a testament to just how far you can get with modern AI.
A curious statement. Does that mean, fudging the log?
He got it to pass by having Claude remap the fuel delivery system for the test. Its cool from a technical perspective that claude could do that, but the bigger issue is that he was failing his smog test likely due to a failing physical component causing high NOx. While he faked his way to passing a smog test (and likely documented committing a crime on youtube by tampering with emissions equipment), there is still the underlying part failure causing his engine to run incorrectly.
Ill admit i'm at work and did not watch the video, but the text body mentions nothing about the title.
The testing places don't check the hash on your ECU firmware though, so they would never know. So long as it tests properly I would feel zero morale concern.
The fun part is finding a shop that still does tailpipe testing.
Here in the UK with a 30-year-old Range Rover, it gets tested on exhaust pipe emissions with the "sniffer", but it always passes because it's been converted to dual-fuel. If it's put in for a test on LPG, it gets tested on LPG.
I did one manage to take a roadside stop-and-check station out of action because they insisted on testing it anyway. I did say to them that it was gas and not petrol, but they went right ahead.
"But we can't test gas emissions"
Yeah, that's a you problem.
"It needs to be running on petrol so we can test it"
It doesn't run on petrol at the moment, I've got the tank out while I wait for a new fuel pump. (This broke their brains entirely)
"Well we have to test it so it needs to be on petrol"
It won't run on petrol, there's no petrol, it's running on propane.
"The tester's not working, it's shut down when we tested your car and says it needs calibrated"
Yeah, again, you problem. Here's the printout of the emissions sheet from the last MOT. Bye!
Idiots.
1. Throttle Body (pre 1996) -> Port (1996- ~2010) -> Direct injection (port is bolt on, a 15-20% relative power and efficiency increase)
2. Wideband O2 sensors (standardized ~2003) (potentially bolt on with a computer) allows the computer to monitor exhaust accurately more often than a continuous speed; (~5% efficiency improvements)
3. Static Valve Timing -> Variable Valve Timing (~2000 for DOHC engines) -> Variable Valve Duration (~2005 for DOHC engines) (10% efficiency gains through better torque curves)
Spoiler: not much!
Its certainly interesting to watch and I think we're going to see a lot of great AI assisted projects like this but boy does this one hurt to watch at times.
AI psychosis is everywhere. Even among people who own very expensive, very nice farming tractors, apparently.
But I do have to think: y'all should get outside more 8-/
I don't think anyone really needs an agentic model to roll down the windows in their car.
Just maybe consider stepping away from the computation and living real life for a change...
(Yes, typing at a computer is a form of real life, I'm suggesting trying some OTHER kind of real life)
He needs the llm to run his windshield wipers and turn on the headlights? My 15 year old car has remote start.
Just tiresome. Who cares? It can read canbus congrats.
This guy is demonstrating exactly that use case.
Maybe don't cover this story then?