WEBVTT

00:00.000 --> 00:02.860
All righty, it's about 4.30 so I'll start.

00:02.940 --> 00:18.500
Hi everyone, my name is Varjits Jiva and I'm going to talk to you guys about how I got annoyed with a bunch of paywalls while I was trying to program my digital gauge cluster into my Cadillac ATS-V, figured it out, put it up on GitHub and helped a bunch of people.

00:18.820 --> 00:22.500
So I have 35 slides in 25 minutes so we're going to get going.

00:22.760 --> 00:30.200
So the overview for this talk, I'm going to introduce myself on the project, what project points made this possible, how the hell I figured it out.

00:30.200 --> 00:35.420
The high-level process results in the future of GM programming and open source.

00:35.720 --> 00:40.800
So an introduction to myself, I'm just a software engineer but I'm into cars.

00:40.800 --> 00:48.840
I grew up in the Fast and Furious era so I was into Japanese cars for a long time and I somehow ended up buying a Cadillac ATS-V earlier this year.

00:48.840 --> 00:52.660
It was a six-speed manual with 400 wheel horsepower and I love that thing.

00:52.660 --> 00:54.700
I fall more in love with it every single day.

00:54.700 --> 00:56.200
But I almost didn't buy it.

00:56.200 --> 00:56.940
Why?

00:57.020 --> 00:59.400
Because it came with a gauge cluster on the left.

00:59.400 --> 01:00.400
It's needles.

01:00.720 --> 01:05.020
2016 to 2019 this car was made and GM shipped it with needles.

01:05.020 --> 01:12.300
The rest of the fleet that they had had digital gauge clusters with the fancy stuff you see on the right but for my car they never made it.

01:12.300 --> 01:21.020
But I bought a bit the bullet and bought the car because turns out people were selling programming services to retrofit a digital gauge cluster into my car.

01:21.060 --> 01:25.780
So when I went into that there was one dude that paid me $350.

01:26.020 --> 01:27.320
Then you can do it.

01:27.760 --> 01:30.220
And this was the only guy doing it for a long time.

01:30.220 --> 01:33.380
Then some other dude showed up from the shadows of Facebook marketplace.

01:33.380 --> 01:35.040
It was like $250.

01:35.040 --> 01:36.160
I was like, huh?

01:36.160 --> 01:37.760
How did this guy figure it out?

01:37.800 --> 01:39.460
And then I look a little bit further.

01:39.460 --> 01:47.160
There's another guy on a Corvette forum that put a 2021 digital gauge cluster into his 2019 C7 Corvette.

01:47.300 --> 01:48.140
And I was like, huh?

01:48.140 --> 01:51.000
If those two people can figure it out then I should be able to.

01:51.000 --> 01:55.840
And then there's a couple of people selling courses and weird tools and all the sketchy websites.

01:55.840 --> 01:58.160
I don't want to pay any of these people any money.

01:58.160 --> 01:59.120
I just want to figure it out.

01:59.120 --> 02:01.100
I don't want to go bankrupt in the process too.

02:01.300 --> 02:05.020
So what project points actually made this possible?

02:05.380 --> 02:16.780
So first, the 12.3 inch gauge cluster I'm talking about, the fully digital one, was available in a whole bunch of Cadillac models of the same year but with different views and stuff like that.

02:16.780 --> 02:18.640
They just didn't ship it with my car.

02:18.740 --> 02:23.280
On top of that, the plug that was on the back of this thing was the same thing as my car.

02:23.280 --> 02:25.380
So that was already a good indication.

02:25.620 --> 02:37.580
Then the view that I want to see on this 12.3 inch cluster was the same thing that was available on a Cadillac CTS-V Sport, which was the same engines, 3.6 liter twin turbo with the gauges and everything.

02:37.760 --> 02:38.920
It's got what I needed.

02:39.040 --> 02:49.120
And then turns out that between the needle gauge cluster and the 12.3 inch digital one, the total set of configuration flags was the exact same between the two.

02:49.120 --> 02:55.340
So basically what I'm saying is this gauge cluster could have fit my car the whole time, but GM just decided to not ship it.

02:55.340 --> 02:57.580
So that's why this programming became a thing.

02:57.660 --> 02:59.380
And here's how I figured it out.

02:59.380 --> 03:00.580
And here's the funny thing.

03:00.580 --> 03:08.240
I've added a counter into these slides where people sell courses and tools on how to do this stuff.

03:08.240 --> 03:12.260
And that total ran up to over $1,000 just to do this one thing.

03:12.260 --> 03:16.980
So I'll show you through these slides, how much you get to save by just listening to the presentation.

03:17.240 --> 03:23.920
So from the beginning, let's say you're me, you have this car and you want to retrofit this cluster into that.

03:23.980 --> 03:31.260
So the programming advertisement, they'll tell you, get any of the 12.3 inch clusters from any of the car, any of the Cadillac cars from the same year.

03:31.360 --> 03:36.720
And then we'll program it to show the V cluster on there and what the correct red line and all this stuff.

03:36.720 --> 03:47.080
I was like, there's no way they made the graphics and stuff like that themselves.

03:47.080 --> 03:54.600
But was there a car that had the same basically engine and stuff that could show the right view?

03:54.600 --> 03:57.160
It was like, yeah, it was the Cadillac CTS Vsport.

03:57.160 --> 04:05.640
So I just had to get a 12.3 inch cluster, doesn't matter from what car, show that specific car's view and then put it into my car.

04:06.220 --> 04:11.760
So how do I make my cluster look like the one from the target vehicle?

04:12.120 --> 04:21.080
So I ended up buying a cluster from a 2017 Escalade and I had to make it show the view for the 2017 Cadillac CTS Vsport.

04:21.280 --> 04:24.520
So the first thing I did with this cluster was pop the back of it.

04:24.520 --> 04:29.660
If you see the middle chip right there, it's the middle to the little bit to the right, there's a silver one.

04:29.660 --> 04:31.940
That's a Texas Instruments ARM CPU.

04:31.940 --> 04:33.280
It was Linux based basically.

04:33.280 --> 04:36.440
So I'm looking at PNG files, whatever, all those graphics.

04:36.440 --> 04:39.240
So it's pretty straightforward, I guess, at that point.

04:39.240 --> 04:44.600
But the next three questions I had at this point were, one , can this cluster connect to my car?

04:44.600 --> 04:46.460
Two, are the right files on there?

04:46.460 --> 04:50.760
Do I have to somehow patch them to get the right gauge cluster to show up?

04:50.760 --> 04:56.140
And three, how do I configure the cluster to work with my car, with my specific feature set and stuff?

04:56.720 --> 05:05.660
So those three questions actually relate to the three steps of CAN bus module programming in GM.

05:05.660 --> 05:20.300
First, you have to configure authentication, then programming for like the general purpose firmware, software, whatever, and the setup and configuration to set the config flags according to what your car has.

05:20.760 --> 05:23.560
So the first thing, can I just plug and play this cluster?

05:23.560 --> 05:24.340
No.

05:24.340 --> 05:29.700
The first thing that you have to do is actually make sure that the cluster can authenticate with the rest of the CAN bus.

05:29.800 --> 05:36.160
And it does that with two specific pieces of information, which is the VIN number and the security pin, which is derived from the VIN number.

05:36.360 --> 05:40.240
So all I had to do was program those onto the cluster.

05:40.240 --> 05:41.300
But how do you do that?

05:41.300 --> 05:42.640
I looked in the back of the thing.

05:42.640 --> 05:48.240
And if anyone in here has ever touched a gauge cluster before, usually this kind of information is stored on an EEPROM chip.

05:48.240 --> 05:56.820
So I already had one of the best this market is a CH341A EEPROM programmer, which is like $5 on AliExpress.

05:56.820 --> 06:00.580
And it turns out that the chip that was holding this was an I2C24C16.

06:01.180 --> 06:05.780
People were selling a tool that can do this programming for $100.

06:05.780 --> 06:08.360
I figured it out for $5 and I read the chip.

06:08.400 --> 06:10.220
So what I did was I read it immediately.

06:10.220 --> 06:13.100
I didn't even have to repin it, just read the chip, dumped it.

06:13.100 --> 06:18.340
And it turns out that in plain text, the first 17 digits was the VIN number.

06:18.340 --> 06:21.980
And there's a suspicious four digits right under, which is the security pin.

06:21.980 --> 06:27.160
All I did was set those to my values for my car, and immediately it worked.

06:27.160 --> 06:32.740
The first thing this picture shows is that the cluster works with my car.

06:32.740 --> 06:35.420
It's pulling values and stuff, but it's just not showing the right thing.

06:35.420 --> 06:41.140
And I know this worked because you could see that the mileage for the vehicle actually showed up there.

06:41.140 --> 06:46.380
In GM, the mileage for the car is actually not stored in the gauge cluster like other cars.

06:46.380 --> 06:49.500
It's actually stored in the body control module.

06:49.580 --> 06:57.400
And if your module fails to authenticate with that module because of the mismatch of the VIN and pin, then that mileage will actually show up as dash, dash, dash.

06:57.440 --> 07:02.640
So I know I got this right because I got the odometer to show up actually.

07:03.060 --> 07:03.760
So cool.

07:03.760 --> 07:05.280
I got it to connect to the car.

07:05.280 --> 07:08.260
Now, how do I make sure the right files and the graphics are on there?

07:08.260 --> 07:13.720
So now I'll talk a little bit about how GM programming actually works with the DO software called SPS2.

07:13.720 --> 07:18.380
I don't exactly remember what the acronym means, but that's basically the DO software.

07:18.380 --> 07:25.540
You get that, you get a subscription with that VIN number for your car, $45 for two years, not expensive.

07:25.540 --> 07:29.780
Then you get the dealer cable, $186, not a big deal either.

07:29.840 --> 07:39.460
So the programming step, what this does is that it loads the firmware, all the software, whatever it needs just to run the general purpose of this module.

07:39.860 --> 07:51.340
So there's even a step before this because in the world of GM programming, people can actually check what files are going to be loaded by the software into the modules before ahead of time.

07:51.400 --> 07:58.460
And surprisingly, there was a light version of this running on the internet open to the public, which is hosted by Opal.

07:58.460 --> 08:03.400
Turns out that GM has been selling their Canva system to a whole bunch of other manufacturers.

08:03.400 --> 08:05.800
One of them being Opal, Skoda, I think.

08:05.800 --> 08:08.300
And then I think a Chinese manufacturer, I don't remember.

08:08.460 --> 08:15.220
But it turns out I use this website just to check what programming files are going to be loaded into this module.

08:15.260 --> 08:20.240
And I did that by taking the VIN number from my donor Escalade cluster.

08:20.240 --> 08:25.360
I took the VIN number from a target car, which is the Cadillac CTS-V Sport.

08:25.360 --> 08:32.440
And I just ran the programming steps to just see what VIN number was going to come out.

08:32.440 --> 08:34.460
These numbers are actually called calibration numbers.

08:34.460 --> 08:35.280
That's how you know.

08:35.280 --> 08:40.340
It's a unique identifier in the GM world where they say this has this specific set of files in it.

08:40.340 --> 08:44.600
It turns out, though, that the number is the exact same in both of these cars.

08:44.600 --> 08:51.260
That means that my Escalade cluster already had the views that I needed for a CTS-V, which is a sports car.

08:51.260 --> 08:53.240
It was already on all these cars.

08:53.240 --> 08:55.300
I just had to be able to reveal it.

08:55.300 --> 08:56.580
And how do I do that?

08:56.580 --> 09:02.280
That gets to step number three, the setup and configuration of GM programming.

09:02.280 --> 09:06.400
So now I have to actually set the configuration values according to what I need.

09:06.400 --> 09:08.560
So a couple of slides here.

09:08.560 --> 09:13.800
This is actually some screen caps from when you actually go to get SPS-2 from ACDelco.

09:13.800 --> 09:17.720
You go to this website here, you sign up for your VIN number, you download the thing.

09:17.720 --> 09:20.680
It's a Java-based program.

09:21.020 --> 09:27.000
And you go into here, then you see right there instrument cluster, you go to set up a configuration, just run that.

09:27.640 --> 09:37.620
And it does a two-step process where it pulls the files from the GM servers, stores it on your computer, and then programs it against your car.

09:38.120 --> 09:43.720
And it turns out that they dumped all these files to your local C drive.

09:43.800 --> 09:46.520
So a couple of bonus slides here where you can save some money.

09:46.900 --> 09:47.860
$450.

09:47.860 --> 09:50.360
This one was $450, which is ridiculous.

09:51.580 --> 09:56.720
This is how to grab any BIN file or config files from SPS-2 for any vehicle.

09:56.720 --> 10:01.800
All you have to do is buy the VIN number for the car that you don't have in front of you.

10:02.080 --> 10:11.060
And then you just have to connect to your car, even though it doesn't have the right VIN number, and then just download and then run the programming for whatever you need for whatever module.

10:11.060 --> 10:13.180
It'll save the files to your computer.

10:13.280 --> 10:16.380
And then as soon as it's done downloading, yank the cable from your car.

10:16.380 --> 10:17.120
That's it.

10:17.120 --> 10:19.780
That's all I did to pull out these files from the car.

10:19.780 --> 10:23.920
And the thing is, people were advertising emulators online for this.

10:23.940 --> 10:30.920
This would have $450 just to do this when there's an override button right in front of you with a screen cap.

10:31.300 --> 10:34.700
And also those emulators get you banned from the GM server.

10:34.700 --> 10:39.180
So instead of paying $450, press an override button, which is ridiculous.

10:40.360 --> 10:47.420
Then another bonus slide, how to grab the security PIN for a VIN number from the car for a VIN number from GM.

10:48.240 --> 10:56.260
So what you do here is that you actually run a dummy configuration that's just kind of safe because it only sets configuration flags in your module.

10:56.260 --> 10:59.880
All I did was run that with a vehicle that I don't own.

10:59.980 --> 11:01.840
Well, I don't have access to it really.

11:01.880 --> 11:06.820
And then just running against my car, it'll just fail to authenticate with the module inside the car.

11:06.820 --> 11:09.060
So then it'll just bomb out, doesn't do anything.

11:09.060 --> 11:11.920
And then you go check inside the C drive over here.

11:12.020 --> 11:16.620
And there's a file right here called SPS tool bridge, toolbridge.log.

11:16.620 --> 11:20.920
Right there's the VIN number that I was attempted and the security PIN that was right there.

11:20.920 --> 11:24.100
So right then and there, you get it for free.

11:24.100 --> 11:25.220
Well, almost for free.

11:25.220 --> 11:32.080
There's also VIN to PIN services that you could buy online for $50 from some random website, or you can get it from GM directly using this method.

11:32.760 --> 11:42.120
Now, before I can explain what I did for the configuration flags, I have to explain two things, what a build code and RPO code is.

11:42.220 --> 11:52.860
So in those local files I was talking about earlier, there's a build record at BLD, which has your VIN number, chassis code, and then a bunch of things called RPO codes.

11:52.860 --> 11:56.060
These are build codes or like option codes for stuff in your car.

11:56.060 --> 11:59.840
Like, oh, if you have a digital cluster or this fancy suspension, whatever.

12:00.140 --> 12:05.860
Then there's an S3 file right there where ACDelco publishes every single RPO code that they've ever made for GM.

12:05.860 --> 12:07.260
And you can just look it up there.

12:07.380 --> 12:13.680
And the next file that was inside the C drive was an XML file that says something quite interesting.

12:13.680 --> 12:26.720
It turns out it is a logical mapping of P underscore whatever flag that says, set this flag to this value based on the existence of this RPO code and this chassis code in the car.

12:26.720 --> 12:39.220
So I looked through this and I knew that I wanted to get the gauge cluster from a CTS vSport, which has the chassis code of 6AL69 right there and the engine code.

12:39.360 --> 12:50.200
And turns out that right here, PDDH variant gets set to the value of 6 to get the V fancy graphic out.

12:50.200 --> 12:58.260
So all I did was edit this file to include my car, which is a 6AE47 chassis code with an engine code of LF4.

12:58.260 --> 13:04.920
I left the UDV in there and then edited my build record to have a UDV, which is for the 12.3 inch cluster.

13:04.920 --> 13:06.560
UDD is for the needle one, whatever.

13:06.560 --> 13:12.680
I just changed it just so that all the files that get enabled by this XML file will be for my car.

13:12.680 --> 13:14.180
So it fully works.

13:14.440 --> 13:17.740
And then as soon as I did that, saw this, ran to my car.

13:17.780 --> 13:19.840
Oh yeah, by the way, this would have cost an extra $350.

13:19.840 --> 13:22.160
We're at $950 right now already.

13:23.260 --> 13:24.700
Ran to my car.

13:24.820 --> 13:27.420
Press the configuration function.

13:27.420 --> 13:31.140
Turns out that also the cache files on here are not checksum.

13:31.140 --> 13:38.200
You could just edit the and GM will just, you know, detect the existence of the files, not even check anything else.

13:38.200 --> 13:40.800
You click, it'll just run with the files on your disk and then that's it.

13:40.800 --> 13:46.200
So I managed to click programs to this thing for free without paying anyone anything, which is fucking awesome.

13:46.660 --> 13:48.880
So tying this all together, high level process.

13:49.100 --> 13:50.720
There's a list of requirements right here.

13:50.720 --> 13:52.880
I'm not going to read this all out to you guys.

13:54.420 --> 13:56.220
High level programming steps.

13:56.360 --> 14:04.960
It's just setting up your Windows laptop, then running a cluster configuration with your OEM cluster just to get the RPO codes and the XML files out.

14:05.040 --> 14:13.940
Then you edit the EEPROM on the cluster, which I explained earlier, then also edit the cache files locally, and then just run the configuration again.

14:13.940 --> 14:14.880
And that's it.

14:15.140 --> 14:18.760
So the future of GM programming and open source.

14:19.500 --> 14:23.800
I posted this right away on GitHub and I posted it right away in the Cadillac forum.

14:23.800 --> 14:28.160
So a few people actually got to use this and fix their own problems, which was really nice.

14:28.160 --> 14:33.360
But the crazy thing is I don't understand how I had to spend a thousand dollars just to figure this out.

14:33.360 --> 14:39.840
And thank God I did not pay any of that money because for how complicated this process was, it really wasn't that complicated.

14:39.840 --> 14:45.520
Most of the stuff was just open to the public, open on your laptop, open on the internet.

14:45.520 --> 14:46.820
It didn't really make sense.

14:46.820 --> 14:57.640
So I hope that with this, that more people get into modifying their GM cars to do cool stuff like this without having to pay $350 and stuff like that to do this stuff.

14:57.720 --> 15:01.180
So I really hope that this helps maybe a couple of people.

15:01.380 --> 15:07.160
A big shout out to the DEF CON conference and the Car Hacking Village for selecting my talk.

15:07.160 --> 15:08.760
This is actually my first DEF CON ever.

15:08.760 --> 15:10.460
So being up on the stage is crazy.

15:10.460 --> 15:12.380
So thank you guys so much.

15:12.380 --> 15:13.260
And yeah.

