[00:00.000 --> 00:06.440] All righty, it's about 4.30 so I'll start. Hi everyone, my name is Varjits Jiva and I'm going [00:06.440 --> 00:11.080] to talk to you guys about how I got annoyed with a bunch of paywalls while I was trying to program [00:11.080 --> 00:17.740] my digital gauge cluster into my Cadillac ATS-V, figured it out, put it up on GitHub and helped a [00:17.740 --> 00:23.760] bunch of people. So I have 35 slides in 25 minutes so we're going to get going. So the overview for [00:23.760 --> 00:28.420] this talk, I'm going to introduce myself on the project, what project points made this possible, [00:28.420 --> 00:33.860] how the hell I figured it out. The high-level process results in the future of GM programming [00:33.860 --> 00:40.800] and open source. So an introduction to myself, I'm just a software engineer but I'm into cars. [00:40.800 --> 00:46.140] I grew up in the Fast and Furious era so I was into Japanese cars for a long time and I somehow [00:46.140 --> 00:50.620] ended up buying a Cadillac ATS-V earlier this year. It was a six-speed manual with 400 wheel [00:50.620 --> 00:55.640] horsepower and I love that thing. I fall more in love with it every single day. But I almost didn't [00:55.640 --> 01:02.260] buy it. Why? Because it came with a gauge cluster on the left. It's needles. 2016 to 2019 this car [01:02.260 --> 01:07.920] was made and GM shipped it with needles. The rest of the fleet that they had had digital gauge [01:07.920 --> 01:12.700] clusters with the fancy stuff you see on the right but for my car they never made it. But I [01:13.240 --> 01:17.940] bought a bit the bullet and bought the car because turns out people were selling programming services [01:17.940 --> 01:23.940] to retrofit a digital gauge cluster into my car. So when I went into that there was one dude that [01:24.400 --> 01:30.220] paid me $350. Then you can do it. And this was the only guy doing it for a long time. [01:30.220 --> 01:35.240] Then some other dude showed up from the shadows of Facebook marketplace. It was like $250. I was [01:35.240 --> 01:39.880] like, huh? How did this guy figure it out? And then I look a little bit further. There's another [01:39.880 --> 01:47.500] guy on a Corvette forum that put a 2021 digital gauge cluster into his 2019 C7 Corvette. And I [01:47.500 --> 01:51.480] was like, huh? If those two people can figure it out then I should be able to. And then there's [01:51.600 --> 01:56.100] a couple of people selling courses and weird tools and all the sketchy websites. I don't want [01:56.100 --> 02:00.060] to pay any of these people any money. I just want to figure it out. I don't want to go bankrupt in [02:00.060 --> 02:08.500] the process too. So what project points actually made this possible? So first, the 12.3 inch gauge [02:08.500 --> 02:13.840] cluster I'm talking about, the fully digital one, was available in a whole bunch of Cadillac models [02:13.840 --> 02:17.820] of the same year but with different views and stuff like that. They just didn't ship it with [02:17.820 --> 02:23.280] my car. 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:28.460] So that was already a good indication. Then the view that I want to see on this 12.3 inch cluster [02:28.460 --> 02:34.760] was the same thing that was available on a Cadillac CTS-V Sport, which was the same engines, [02:34.760 --> 02:39.680] 3.6 liter twin turbo with the gauges and everything. It's got what I needed. And then [02:39.680 --> 02:45.900] turns out that between the needle gauge cluster and the 12.3 inch digital one, the total set of [02:45.900 --> 02:51.240] configuration flags was the exact same between the two. So basically what I'm saying is this [02:51.240 --> 02:55.460] gauge cluster could have fit my car the whole time, but GM just decided to not ship it. So [02:55.980 --> 03:00.200] that's why this programming became a thing. And here's how I figured it out. And here's the funny [03:00.200 --> 03:07.420] thing. I've added a counter into these slides where people sell courses and tools on how to [03:07.420 --> 03:13.340] do this stuff. And that total ran up to over $1,000 just to do this one thing. So I'll show [03:13.340 --> 03:17.640] you through these slides, how much you get to save by just listening to the presentation. So [03:18.140 --> 03:23.160] from the beginning, let's say you're me, you have this car and you want to retrofit this cluster [03:23.160 --> 03:27.940] into that. So the programming advertisement, they'll tell you, get any of the 12.3 inch [03:27.940 --> 03:32.160] clusters from any of the car, any of the Cadillac cars from the same year. And then we'll program [03:32.160 --> 03:43.320] it to show the V cluster on there and what the correct red line and all this stuff. I was like, [03:43.860 --> 03:48.760] there's no way they made the graphics and stuff like that themselves. But was there a car that [03:48.760 --> 03:55.620] had the same basically engine and stuff that could show the right view? It was like, yeah, [03:55.620 --> 04:00.440] it was the Cadillac CTS Vsport. So I just had to get a 12.3 inch cluster, doesn't matter from what [04:00.440 --> 04:09.960] car, show that specific car's view and then put it into my car. So how do I make my cluster look [04:09.960 --> 04:17.280] like the one from the target vehicle? So I ended up buying a cluster from a 2017 Escalade and I had [04:17.280 --> 04:22.960] to make it show the view for the 2017 Cadillac CTS Vsport. So the first thing I did with this [04:22.960 --> 04:27.960] cluster was pop the back of it. If you see the middle chip right there, it's the middle to the [04:27.960 --> 04:32.520] little bit to the right, there's a silver one. That's a Texas Instruments ARM CPU. It was Linux [04:32.520 --> 04:37.180] based basically. So I'm looking at PNG files, whatever, all those graphics. So it's pretty [04:37.180 --> 04:42.460] straightforward, I guess, at that point. But the next three questions I had at this point were, [04:42.460 --> 04:47.540] one, can this cluster connect to my car? Two, are the right files on there? Do I have to somehow [04:47.540 --> 04:52.960] patch them to get the right gauge cluster to show up? And three, how do I configure the cluster to [04:52.960 --> 04:59.920] work with my car, with my specific feature set and stuff? So those three questions actually relate [04:59.920 --> 05:07.920] to the three steps of CAN bus module programming in GM. First, you have to configure authentication, [05:07.920 --> 05:13.180] then programming for like the general purpose firmware, software, whatever, and the setup and [05:13.180 --> 05:21.960] configuration to set the config flags according to what your car has. So the first thing, [05:21.960 --> 05:26.420] can I just plug and play this cluster? No. The first thing that you have to do is actually make [05:26.420 --> 05:30.700] sure that the cluster can authenticate with the rest of the CAN bus. And it does that with two [05:30.700 --> 05:35.340] specific pieces of information, which is the VIN number and the security pin, which is derived from [05:35.340 --> 05:41.300] the VIN number. So all I had to do was program those onto the cluster. But how do you do that? [05:41.300 --> 05:45.760] I looked in the back of the thing. And if anyone in here has ever touched a gauge cluster before, [05:45.760 --> 05:50.740] usually this kind of information is stored on an EEPROM chip. So I already had one of the best [05:50.740 --> 05:57.400] this market is a CH341A EEPROM programmer, which is like $5 on AliExpress. And it turns out that [05:57.400 --> 06:04.440] the chip that was holding this was an I2C24C16. People were selling a tool that can do this [06:04.440 --> 06:09.640] programming for $100. I figured it out for $5 and I read the chip. So what I did was I read it [06:09.640 --> 06:13.920] immediately. I didn't even have to repin it, just read the chip, dumped it. And it turns out that [06:13.920 --> 06:20.460] in plain text, the first 17 digits was the VIN number. And there's a suspicious four digits right [06:20.460 --> 06:25.580] under, which is the security pin. All I did was set those to my values for my car, and immediately [06:26.200 --> 06:33.100] it worked. The first thing this picture shows is that the cluster works with my car. It's pulling [06:33.100 --> 06:37.160] values and stuff, but it's just not showing the right thing. And I know this worked because you [06:37.160 --> 06:44.280] could see that the mileage for the vehicle actually showed up there. In GM, the mileage for the car is [06:44.280 --> 06:48.400] actually not stored in the gauge cluster like other cars. It's actually stored in the body [06:48.400 --> 06:52.720] control module. And if your module fails to authenticate with that module because of the [06:52.720 --> 06:57.860] mismatch of the VIN and pin, then that mileage will actually show up as dash, dash, dash. So I [06:57.860 --> 07:04.620] know I got this right because I got the odometer to show up actually. So cool. I got it to connect [07:04.620 --> 07:09.000] to the car. Now, how do I make sure the right files and the graphics are on there? So now I'll [07:09.000 --> 07:13.720] 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:24.600] You get that, you get a subscription with that VIN number for your car, $45 for two years, [07:24.600 --> 07:30.800] not expensive. Then you get the dealer cable, $186, not a big deal either. So the programming [07:30.800 --> 07:36.440] step, what this does is that it loads the firmware, all the software, whatever it needs just [07:36.440 --> 07:43.940] to run the general purpose of this module. So there's even a step before this because in the [07:43.940 --> 07:48.480] world of GM programming, people can actually check what files are going to be loaded by the [07:48.480 --> 07:53.920] software into the modules before ahead of time. And surprisingly, there was a light version of [07:53.920 --> 07:59.740] this running on the internet open to the public, which is hosted by Opal. Turns out that GM has [07:59.740 --> 08:04.560] been selling their Canva system to a whole bunch of other manufacturers. One of them being Opal, [08:04.560 --> 08:09.380] Skoda, I think. And then I think a Chinese manufacturer, I don't remember. But it turns [08:09.380 --> 08:13.640] out I use this website just to check what programming files are going to be loaded [08:13.640 --> 08:20.240] into this module. And I did that by taking the VIN number from my donor Escalade cluster. [08:20.240 --> 08:26.260] I took the VIN number from a target car, which is the Cadillac CTS-V Sport. And I just ran the [08:27.120 --> 08:33.360] programming steps to just see what VIN number was going to come out. These numbers are actually [08:33.360 --> 08:37.320] called calibration numbers. That's how you know. It's a unique identifier in the GM world where [08:37.320 --> 08:42.660] they say this has this specific set of files in it. It turns out, though, that the number is the [08:42.660 --> 08:48.920] exact same in both of these cars. That means that my Escalade cluster already had the views that I [08:48.920 --> 08:54.240] needed for a CTS-V, which is a sports car. It was already on all these cars. I just had to be able [08:54.240 --> 08:59.660] to reveal it. And how do I do that? That gets to step number three, the setup and configuration [08:59.660 --> 09:06.400] of GM programming. So now I have to actually set the configuration values according to what I need. [09:06.400 --> 09:12.340] So a couple of slides here. This is actually some screen caps from when you actually go to get SPS-2 [09:12.340 --> 09:17.200] from ACDelco. You go to this website here, you sign up for your VIN number, you download the [09:17.200 --> 09:24.320] thing. It's a Java-based program. And you go into here, then you see right there instrument cluster, [09:24.320 --> 09:31.200] you go to set up a configuration, just run that. And it does a two-step process where it pulls the [09:31.200 --> 09:37.620] files from the GM servers, stores it on your computer, and then programs it against your car. [09:38.120 --> 09:44.880] And it turns out that they dumped all these files to your local C drive. So a couple of bonus [09:44.880 --> 09:50.360] slides here where you can save some money. $450. This one was $450, which is ridiculous. [09:51.580 --> 09:57.680] This is how to grab any BIN file or config files from SPS-2 for any vehicle. All you have to do [09:57.680 --> 10:01.800] is buy the VIN number for the car that you don't have in front of you. [10:02.080 --> 10:06.180] And then you just have to connect to your car, even though it doesn't have the right VIN number, [10:06.180 --> 10:10.420] and then just download and then run the programming for whatever you need for whatever [10:10.420 --> 10:15.220] module. It'll save the files to your computer. And then as soon as it's done downloading, [10:15.220 --> 10:19.780] yank the cable from your car. That's it. That's all I did to pull out these files from the car. [10:19.780 --> 10:24.540] And the thing is, people were advertising emulators online for this. This would have [10:26.000 --> 10:30.920] $450 just to do this when there's an override button right in front of you with a screen cap. [10:31.300 --> 10:36.720] And also those emulators get you banned from the GM server. So instead of paying $450, [10:36.720 --> 10:42.640] press an override button, which is ridiculous. Then another bonus slide, how to grab the [10:42.640 --> 10:49.680] security PIN for a VIN number from the car for a VIN number from GM. So what you do here is that [10:49.680 --> 10:55.000] you actually run a dummy configuration that's just kind of safe because it only sets configuration [10:55.000 --> 11:00.880] flags in your module. All I did was run that with a vehicle that I don't own. Well, I don't have [11:00.880 --> 11:05.720] access to it really. And then just running against my car, it'll just fail to authenticate with the [11:05.720 --> 11:09.740] module inside the car. So then it'll just bomb out, doesn't do anything. And then you go check [11:09.740 --> 11:15.440] inside the C drive over here. And there's a file right here called SPS tool bridge, [11:15.440 --> 11:19.900] toolbridge.log. Right there's the VIN number that I was attempted and the security PIN that was [11:19.900 --> 11:26.080] right there. So right then and there, you get it for free. Well, almost for free. There's also VIN [11:26.080 --> 11:30.260] to PIN services that you could buy online for $50 from some random website, or you can get it from [11:30.260 --> 11:37.740] GM directly using this method. Now, before I can explain what I did for the configuration flags, [11:37.740 --> 11:44.380] I have to explain two things, what a build code and RPO code is. So in those local files I was [11:44.380 --> 11:50.520] talking about earlier, there's a build record at BLD, which has your VIN number, chassis code, [11:50.520 --> 11:55.180] and then a bunch of things called RPO codes. These are build codes or like option codes for [11:55.180 --> 11:59.840] stuff in your car. Like, oh, if you have a digital cluster or this fancy suspension, whatever. [12:00.140 --> 12:05.060] Then there's an S3 file right there where ACDelco publishes every single RPO code that they've ever [12:05.060 --> 12:09.780] made for GM. And you can just look it up there. And the next file that was inside the C drive was [12:09.780 --> 12:17.440] an XML file that says something quite interesting. It turns out it is a logical mapping of P [12:17.440 --> 12:24.500] underscore whatever flag that says, set this flag to this value based on the existence of this RPO [12:24.500 --> 12:30.540] code and this chassis code in the car. So I looked through this and I knew that I wanted to get the [12:30.540 --> 12:38.440] gauge cluster from a CTS vSport, which has the chassis code of 6AL69 right there and the engine [12:38.440 --> 12:48.120] code. And turns out that right here, PDDH variant gets set to the value of 6 to get the V fancy [12:49.220 --> 12:55.680] graphic out. So all I did was edit this file to include my car, which is a 6AE47 chassis code with [12:55.680 --> 13:02.720] an engine code of LF4. I left the UDV in there and then edited my build record to have a UDV, [13:02.720 --> 13:07.300] which is for the 12.3 inch cluster. UDD is for the needle one, whatever. I just changed it [13:07.300 --> 13:13.280] just so that all the files that get enabled by this XML file will be for my car. So it fully [13:13.280 --> 13:18.620] works. And then as soon as I did that, saw this, ran to my car. Oh yeah, by the way, this would [13:18.620 --> 13:25.520] have cost an extra $350. We're at $950 right now already. Ran to my car. Press the configuration [13:26.700 --> 13:32.040] function. Turns out that also the cache files on here are not checksum. You could just edit the [13:32.040 --> 13:38.280] and GM will just, you know, detect the existence of the files, not even check anything else. You [13:38.280 --> 13:42.460] click, it'll just run with the files on your disk and then that's it. So I managed to click programs [13:42.460 --> 13:47.200] to this thing for free without paying anyone anything, which is fucking awesome. So tying [13:47.200 --> 13:51.300] this all together, high level process. There's a list of requirements right here. I'm not going [13:51.300 --> 13:57.440] to read this all out to you guys. High level programming steps. It's just setting up your [13:57.440 --> 14:02.880] Windows laptop, then running a cluster configuration with your OEM cluster just to get [14:02.880 --> 14:09.420] the RPO codes and the XML files out. Then you edit the EEPROM on the cluster, which I explained [14:09.420 --> 14:14.040] earlier, then also edit the cache files locally, and then just run the configuration again. And [14:14.040 --> 14:21.680] that's it. So the future of GM programming and open source. I posted this right away on GitHub [14:21.680 --> 14:25.720] and I posted it right away in the Cadillac forum. So a few people actually got to use this and fix [14:25.720 --> 14:31.220] their own problems, which was really nice. But the crazy thing is I don't understand how I had [14:31.220 --> 14:35.100] to spend a thousand dollars just to figure this out. And thank God I did not pay any of that money [14:35.100 --> 14:40.560] because for how complicated this process was, it really wasn't that complicated. Most of the stuff [14:40.560 --> 14:46.820] was just open to the public, open on your laptop, open on the internet. It didn't really make sense. [14:46.820 --> 14:53.520] So I hope that with this, that more people get into modifying their GM cars to do cool stuff [14:53.520 --> 14:58.840] like this without having to pay $350 and stuff like that to do this stuff. So I really hope that [14:58.840 --> 15:04.760] this helps maybe a couple of people. A big shout out to the DEF CON conference and the Car Hacking [15:04.760 --> 15:09.740] Village for selecting my talk. This is actually my first DEF CON ever. So being up on the stage [15:09.740 --> 15:13.260] is crazy. So thank you guys so much. And yeah.