Settings

Theme

Man Hooks Up His 1994 Jeep Cherokee to ChatGPT

thedrive.com

155 points by thehoff · 98 comments

Reader

18 threads
js2

Yeah, well, I have Apple CarPlay feeding directions to the head-ups display on my 2016 Mazda CX-9 when running either Apple or Google Maps. I also made the physical mute button pause/un-pause whatever media is playing. By, "I", I mean that I worked with Claude and Codex. The "hook" to get the Mazda entertainment system to run your own code when you plug in a USB thumb drive is having an empty file on the drive named like so:

  $(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.

  • hnlmorg

    Back when the original RaspberryPi was released, I built an in car entertainment system that used TTS to announce artist and album names, and had physical buttons wired into the GPIO pins.

    I’d have killed for something like ChatGPT back then to help with the EE.

  • cloudfudge

    Clever trick. In case anyone else is curious, what that string evaluates to is "sh /mnt/sd[abcd]1/t"

  • loeg

    As usual, motorcycles are 10 years behind cars, but you can cast CarPlay/Android Auto to stock Yamaha motorcycle displays with Pillion: https://github.com/alexandrevega/pillion

  • novia

    Codex is much less annoying than Claude, but, last night it started issuing major refusals for benign tasks in a way that makes me think they also might be going down the dark path

  • shostack

    How badly does this void the warranty cause any issues with insurance and the like?

    • AngryData

      Well they would have to know you did it. And automobiles in the US can't have warranties invalidated unless they can prove your modification was the cause of failure.

      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.

    • onionisafruit

      A nice thing about a 10 year old car is you don't have to worry about voiding the warranty

  • VladVladikoff

    Something with how my glasses and vision works but I absolutely loathe those heads up displays. I know someone with a Mazda cx30 and driving it was a painful experience. As in literally painful, it gave me a terrible headache and I can’t see well through that portion of the window. Maybe because of my astigmatism.

    • js2

      You can adjust its height or turn it off entirely. I wonder if it might be the refresh rate. I really miss the HUD in cars that don't have it, especially the current vehicle speed is nice to have.

      • VladVladikoff

        I need to try turning it off next time, but I think it’s not the display but the way the glass is formed to reflect the display. The whole area is harder to view out of. Just that one portion of the windshield that was designed to reflect the display, the glass is different in that part.

        • js2

          Interesting. I had no idea the windshield glass was special, though apparently it is. On my particular Mazda I don't discern anything different about the glass in the HUD area. I'll have to look more closely at it tomorrow!

      • fc417fc802

        Not op and no astigmatism (AFAIK) but agreed that certain flicker rates certainly bother me sometimes. Separate from that many displays have an indescribable quality to the light that I sometimes find irritating and I've heard similar things from other people. However I've never gone to the trouble of rigorously quantifying the phenomenon since it would be so much effort.

      • dmoy

        > I wonder if it might be the refresh rate

        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).

  • obmelvin

    OMG. I have long wished that my '21 CX-5 would show the CarPlay directions in the HUD in addition to the built-in maps.

    This is amazing. Thank you so much for posting. Excited for this project :)

  • syntaxing

    Super cool, is the HUD stock or is it after market?

    • js2

      Stock HUD. It displays navigation instructions via the built-in Mazda nav system, but when Mazda added CarPlay support, they didn't tie it to the HUD. Turns out it's relatively straightforward to read directions from CP (or AA) and send them to the HUD.

bishop_mortimer

I was working on software on the radio for the Jeep and other Fiat (Chrysler) vehicles back in the early 2010s. My company doing infotainment, the OS was from RIM (Blackberry), Built-in network radio from Sprint. Somebody made some mistake somewhere at RIM, and you could find any car with the software on the local Sprint network and get into the Canbus. You could, for example, deploy the brakes.

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.

  • ehnto

    Dang, that's bad. Was it resolved by Jeep?

    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.

treetalker

Made me think that installing a local model with text-to-speech could give us a real-world KITT from Knight Rider.

<begins searching for used Trans Ams>

rootsudo

This was posted before on HN: https://news.ycombinator.com/item?id=50463399 the comments were different.

  • wpm

    The top comment there is spot on, handing the keys over to a real "thing" to one of these is awesome in the "awesome power" kind of way, not in the "totally tubular" sense.

    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.

    • ehnto

      I let it resolve some linux driver issues for a connected force feedback steering wheel, and when it got it working and the wheel starting spinning on its own, I felt like I was in a 90s ghost film.

harrylepotter

as a homeassistant user who's connected and automated almost every dumb device in their home using esp32s (like many have), I can't help but feel slightly underwhelmed by this article.

  • kqr

    Sorry, do you have more information on this? I lack the imaginination to understand how someone would automate dumb home devices with microcontrollers.

    • ssl-3

      I couldn't fall sleep the other night and it was cold in my bedroom, so I got up for a bit.

      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.)

    • oculetteai

      microcontroller-powered MCP Cameras allow you to read arbitrary state which is pretty nice, and actuating depends on the device. I used a microcontroller-powered MCP IR blaster + microcontroller-powered MCP camera to automate fixing my AC.

    • knodi123

      aren't you just tired of manually pressing the lever on your toaster?

t1234s

Wouldn't be surprised if this guy gets job offers by edelbrock or similar companies that are in the market of making upgrades for older cars. Modules to add the tesla-app like functionality to older electro-mechanical cars is kinda cool idea.

  • SecretDreams

    Retro future cars where the voice that talks to you might sound like a genius, but the interior feels like something nice from a simpler time?

    Count me in!

  • schwap

    Not to be dismissive, but the only impressive part of this article is that AI enabled a layman to do this.

    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.

  • potmat

    Really doubt Edelbrock would ever release a hack like this as a real product. It's impressive but almost certainly violates some TOS somewhere.

    • Zak

      Cars didn't have terms of service until recently, and even those only show up when activating certain networked or subscription features.

      • ehnto

        That threw me through a little existential crisis, like my car-brain and tech-brain collided. Cars having a ToS did not compute.

        Voiding a warranty though, that's something thst has been around for a while.

kaeland

Man, this is so cool! Would love to see the process of him integrating some of the other features he mentioned later in the video too.

nathannaveen

Don't get me wrong, this is really cool! But I just can't help thinking this is a bad idea from a security perspective.

personjerry

"They were so preoccupied with whether or not they could, they didn't stop to think if they should."

tmysl

We're missing the chat-JEEP-T pun here.

alnwlsn

There is something immensely amusing about having a fancy video with animations and all this advanced AI technology paired with a rats nest wiring harness, cheap relay boards and the finest copper-clad-alunimium Dupont jumpers you can buy.

  • dpeckett

    The choice of relays was ... special. That 32 channel waveshare modbus unit was an excellent choice but then like 4-6 of the cheapest aliexpress relay boards possible? Then all the cable tapping rather than just splicing into the connectors etc, OMG.

    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.

    • switchbak

      As someone who has just done a lot of LLM-guided hardware hacking myself - that sounds like the typical mismash of good and bad advice you'd get from a model like DeepSeek.

      • knodi123

        > typical mismash of good and bad advice you'd get

        As someone who just did a major carpentry project with Claude, I wish I'd known how common a problem that was before I started. Enough good advice to make a novice like me think it was a good plan/blueprint, so I went off to the races.... But I kept running into a roadblock and asking the AI "wouldn't it have been simpler to [...]" and it kept saying "Yes, absolutely, here's a modified simplified plan that is objectively better in several ways."

        I pulled a lot of hair out on that project.

        • ehnto

          An insight I have had is that LLMs feel like they think in retrospect, or backwards. That gets hidden by agentic harnesses and reasoning traces often thede days, but still rears it's head the quicker something is done.

          So it's worth having a separate context or even separate model evaluate things first (or use your wrinkly meat model, no use if you're a novice).

        • _carbyau_

          Nothing beats having an actual helpful, knowledgeable person - if only because they can own stuff and they might let you borrow some required tools.

          AI gives us enough rope hang our projects on. But after hanging one or two projects, you learn and sometimes that's fun too.

          • knodi123

            Absolutely. Failing at building that project has taught me way more than I expected, and all it cost me was lumber, screws, and time. I also learned a lot about how to frame problems so as to get better results from an AI. I'm sure my next project will go better, if I ever get free time again.

      • dpeckett

        I suspect his agentic workflow probably plays a role. There seems to be a lot of missing context between the various agents.

JoeAltmaier

"Make the necessary adjustments to pass the smog test."

A curious statement. Does that mean, fudging the log?

  • dghlsakjg

    He had another video where he went through troubleshooting a smog test failure with Claude. That's what that is about.

    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.

    • Zak

      It would be a hard sell to a jury to argue that making adjustments which resulted in reduced harmful emissions is tampering with emissions equipment even if technically true.

  • mmmlinux

    Yeah that's what i want to know. its a 94 so that predates OBDII for emission diagnostics. And if its managing to do anything regarding controlling the fuel system wouldn't that make the car no longer compliant?

    Ill admit i'm at work and did not watch the video, but the text body mentions nothing about the title.

    • ehnto

      Yes despite the outcome at the tailpipe, the modifications would be illegal in a lot of countries.

      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.

  • metalman

    no, actualy passing would be easier, as they do a physical sampling of what comes out the tail pipe. modern ignitions and injection systems are mostly software, and modifying the injection and spark timing to the very specific readings from o², mass air, and whatever else is availible on the car, if all else is in good shape should give a cleaner burn than factory new. modern motors with VVT are doing some funky stuff with ignition timing and injection, almost diesel, but with gas, and with the right data and modified software, you could get some of that with an older fixed cam motor, especialy if you have direct fuel injection, or at least indipendent injectors. 94 so there is probably a knock sensor which would work as a crude exhaust temp, and run it always nibbling on knock for a lean burn, your nox goes up at WOT, but they dont test for that, so likely cleaner overall, more power everywhere and better fuel milage. I am only an enthusiast, but know some top shelf engineers in the engine world who will likely be looking at this sort of thing to help with r&d for injection and ignition systems for after market use in varios motor sports. waste fuel means reduced range, greater heat which decreases performance and reliability while increasing maintenance, not to mention the polution and noise. as they say, the best place to take care of emmisions, is in cylinder.

    • dlcarrier

      At least in parts of California, they don't test the exhaust any more. Every other year, I have to clear the logs and stay off the freeway for a few days, until all the tests are ready, then get a SMOG check. Once it passes, I can go back on the freeway, and my check engine light will instantly turn back on.

      • ehnto

        How does anyone run cool modified cars there? I see them all the time on the internet but it sounds like they coukd never pass SMOG

      • MSFT_Edging

        I know someone who had a car that lived its life in florida, and for whatever reason the emissions self-test is totally broken and can't get into a testing mode. The car would probably pass with a tailpipe sensor but the law says if it has a self test, it has to pass it, so no shop will pass it.

      • mehjustmeh

        OBD2 cars will self-test the emissions system and a smog check is just reading the ECU. Older cars still need to have the tailpipe checked because they can't do that.

        The fun part is finding a shop that still does tailpipe testing.

        • js2

          In NC they used to just stop testing emissions after the vehicle reaches a certain age (20 years?) which kinda defeats the purpose, but I guess they figure there's not enough on the road at that point.

          • porkshoe

            Not many on the road, and also they aren't likely to drive as many future miles, which limits the cumulative damage.

      • hnav

        Not for a 1994. OBD2-only tests are for 2000+.

        • mmmlinux

          1996+, that's when OBD2 became required.

          • hnav

            96-99 are held to a different standard than later ones, they get to fail readiness on any 1 monitor but still get a sniffer test.

      • ErroneousBosh

        I'm genuinely surprised no-one's just made a little board that you wire to the OBDII socket that just goes "yeah everything fine here nothing to see".

        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.

        • switchbak

          "I lost my keys over there"

          "But there's no light over there, let's search here under this light instead".

      • VladVladikoff

        Maybe you should actually fix the problem that is causing the check engine light to come on??

        • toast0

          The smog check peeps are supposed to verify the check engine light turns on during the lamp test, so you can't just remove it. :P

          They also connect to the OBD-2 port, so the light doesn't really matter. :P

          • ErroneousBosh

            Yes, but why not just plug your own OBD2 diags in, read the faults, clear them, see what comes back, and then go and buy a new lambda sensor because it's nearly always that?

            Not only would the warning light be off but your engine ECU won't be in limp-home mode any more.

            • toast0

              Eh, in my experience, it's always a evap circuit error. I'm not sure how much fixing that is worth ... until it escalates to being unable to put gas in the tank.

              • jnellis

                In CA you're allowed one system monitor check to fail (which is usually evap related) and still have them perform the smog check. On my 99 town car, there's a circus act of things the vehicle has to do on the freeway to get the evap monitor to go green. It's nearly impossible, and thus why they allow one monitor as pending before they do the smog check.

                • Scoundreller

                  In a cold climate it can take months for the evap self-test to hit the eligibility criteria to run. Rules might be different in different locales. You do need the light to be off so a $20 reader can save a lot of cash.

    • MSFT_Edging

      I've been wondering how much more efficient you can make an early EFI engine with the better knowledge we have today. I've got a car with an old ford 2.3 lima. It can in theory get 30mpg if you treat it right.

  • gpderetta

    Maybe they Volkswagened it?

1970-01-01

What could possibly go wrong with a two ton vibe coded computer rolling down the freeway?

IshKebab

Cool project. Title is unnecessarily awestruck though - obviously you can do this.

twobitshifter

If you have seen the video, this guy is in full on AI psychosis believing everything the AI hallucinated as to why it could not fix his car.

  • dpeckett

    Not to mention he still hasn't addressed the original gasket issue that was causing the vehicle to fail its smog tests in the first place.

    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.

  • switchbak

    There's a video of this guy who brings in a broken tractor, used an LLM to diagnose the problem. Mechanic takes a look - it's blown a piston into orbit. The guy gets angry, simply will not accept that the LLM is wrong.

    AI psychosis is everywhere. Even among people who own very expensive, very nice farming tractors, apparently.

LegitShady

Meh these kinds of articles are repetitive and useless at this point.

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.

  • cmiles8

    I care. I find a letting AI loose on old hard-to-access tech is a solid use case. Things I’ve wanted to do but can’t because there’s no documentation or things are locked up in proprietary nonsense are now very possible by just asking AI to write custom code to sort through the mess.

    This guy is demonstrating exactly that use case.

  • buildsjets

    A 1994 Jeep does not even have OBD-II, much less a CAN network. He built a bespoke relay interface for the car.

johnea

Well, that's some kind of demo.

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)

  • hectdev

    It's fun to tinker and explore even if the ends don't justify the means. Besides, in his case, its less the AI and more the API. Throw in a wireless hotspot, and he can have his car auto start and warm up before driving in cold climates or cool in hot. Something common in many cars now.

viccis

>Though given my software and coding knowledge, I’m definitely not qualified to gauge which of these two projects was more difficult and/or fun.

Maybe don't cover this story then?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection