start	end	text
0	6440	All righty, it's about 4.30 so I'll start. Hi everyone, my name is Varjits Jiva and I'm going
6440	11080	to talk to you guys about how I got annoyed with a bunch of paywalls while I was trying to program
11080	17740	my digital gauge cluster into my Cadillac ATS-V, figured it out, put it up on GitHub and helped a
17740	23760	bunch of people. So I have 35 slides in 25 minutes so we're going to get going. So the overview for
23760	28420	this talk, I'm going to introduce myself on the project, what project points made this possible,
28420	33860	how the hell I figured it out. The high-level process results in the future of GM programming
33860	40800	and open source. So an introduction to myself, I'm just a software engineer but I'm into cars.
40800	46140	I grew up in the Fast and Furious era so I was into Japanese cars for a long time and I somehow
46140	50620	ended up buying a Cadillac ATS-V earlier this year. It was a six-speed manual with 400 wheel
50620	55640	horsepower and I love that thing. I fall more in love with it every single day. But I almost didn't
55640	62260	buy it. Why? Because it came with a gauge cluster on the left. It's needles. 2016 to 2019 this car
62260	67920	was made and GM shipped it with needles. The rest of the fleet that they had had digital gauge
67920	72700	clusters with the fancy stuff you see on the right but for my car they never made it. But I
73240	77940	bought a bit the bullet and bought the car because turns out people were selling programming services
77940	83940	to retrofit a digital gauge cluster into my car. So when I went into that there was one dude that
84400	90220	paid me $350. Then you can do it. And this was the only guy doing it for a long time.
90220	95240	Then some other dude showed up from the shadows of Facebook marketplace. It was like $250. I was
95240	99880	like, huh? How did this guy figure it out? And then I look a little bit further. There's another
99880	107500	guy on a Corvette forum that put a 2021 digital gauge cluster into his 2019 C7 Corvette. And I
107500	111480	was like, huh? If those two people can figure it out then I should be able to. And then there's
111600	116100	a couple of people selling courses and weird tools and all the sketchy websites. I don't want
116100	120060	to pay any of these people any money. I just want to figure it out. I don't want to go bankrupt in
120060	128500	the process too. So what project points actually made this possible? So first, the 12.3 inch gauge
128500	133840	cluster I'm talking about, the fully digital one, was available in a whole bunch of Cadillac models
133840	137820	of the same year but with different views and stuff like that. They just didn't ship it with
137820	143280	my car. On top of that, the plug that was on the back of this thing was the same thing as my car.
143280	148460	So that was already a good indication. Then the view that I want to see on this 12.3 inch cluster
148460	154760	was the same thing that was available on a Cadillac CTS-V Sport, which was the same engines,
154760	159680	3.6 liter twin turbo with the gauges and everything. It's got what I needed. And then
159680	165900	turns out that between the needle gauge cluster and the 12.3 inch digital one, the total set of
165900	171240	configuration flags was the exact same between the two. So basically what I'm saying is this
171240	175460	gauge cluster could have fit my car the whole time, but GM just decided to not ship it. So
175980	180200	that's why this programming became a thing. And here's how I figured it out. And here's the funny
180200	187420	thing. I've added a counter into these slides where people sell courses and tools on how to
187420	193340	do this stuff. And that total ran up to over $1,000 just to do this one thing. So I'll show
193340	197640	you through these slides, how much you get to save by just listening to the presentation. So
198140	203160	from the beginning, let's say you're me, you have this car and you want to retrofit this cluster
203160	207940	into that. So the programming advertisement, they'll tell you, get any of the 12.3 inch
207940	212160	clusters from any of the car, any of the Cadillac cars from the same year. And then we'll program
212160	223320	it to show the V cluster on there and what the correct red line and all this stuff. I was like,
223860	228760	there's no way they made the graphics and stuff like that themselves. But was there a car that
228760	235620	had the same basically engine and stuff that could show the right view? It was like, yeah,
235620	240440	it was the Cadillac CTS Vsport. So I just had to get a 12.3 inch cluster, doesn't matter from what
240440	249960	car, show that specific car's view and then put it into my car. So how do I make my cluster look
249960	257280	like the one from the target vehicle? So I ended up buying a cluster from a 2017 Escalade and I had
257280	262960	to make it show the view for the 2017 Cadillac CTS Vsport. So the first thing I did with this
262960	267960	cluster was pop the back of it. If you see the middle chip right there, it's the middle to the
267960	272520	little bit to the right, there's a silver one. That's a Texas Instruments ARM CPU. It was Linux
272520	277180	based basically. So I'm looking at PNG files, whatever, all those graphics. So it's pretty
277180	282460	straightforward, I guess, at that point. But the next three questions I had at this point were,
282460	287540	one, can this cluster connect to my car? Two, are the right files on there? Do I have to somehow
287540	292960	patch them to get the right gauge cluster to show up? And three, how do I configure the cluster to
292960	299920	work with my car, with my specific feature set and stuff? So those three questions actually relate
299920	307920	to the three steps of CAN bus module programming in GM. First, you have to configure authentication,
307920	313180	then programming for like the general purpose firmware, software, whatever, and the setup and
313180	321960	configuration to set the config flags according to what your car has. So the first thing,
321960	326420	can I just plug and play this cluster? No. The first thing that you have to do is actually make
326420	330700	sure that the cluster can authenticate with the rest of the CAN bus. And it does that with two
330700	335340	specific pieces of information, which is the VIN number and the security pin, which is derived from
335340	341300	the VIN number. So all I had to do was program those onto the cluster. But how do you do that?
341300	345760	I looked in the back of the thing. And if anyone in here has ever touched a gauge cluster before,
345760	350740	usually this kind of information is stored on an EEPROM chip. So I already had one of the best
350740	357400	this market is a CH341A EEPROM programmer, which is like $5 on AliExpress. And it turns out that
357400	364440	the chip that was holding this was an I2C24C16. People were selling a tool that can do this
364440	369640	programming for $100. I figured it out for $5 and I read the chip. So what I did was I read it
369640	373920	immediately. I didn't even have to repin it, just read the chip, dumped it. And it turns out that
373920	380460	in plain text, the first 17 digits was the VIN number. And there's a suspicious four digits right
380460	385580	under, which is the security pin. All I did was set those to my values for my car, and immediately
386200	393100	it worked. The first thing this picture shows is that the cluster works with my car. It's pulling
393100	397160	values and stuff, but it's just not showing the right thing. And I know this worked because you
397160	404280	could see that the mileage for the vehicle actually showed up there. In GM, the mileage for the car is
404280	408400	actually not stored in the gauge cluster like other cars. It's actually stored in the body
408400	412720	control module. And if your module fails to authenticate with that module because of the
412720	417860	mismatch of the VIN and pin, then that mileage will actually show up as dash, dash, dash. So I
417860	424620	know I got this right because I got the odometer to show up actually. So cool. I got it to connect
424620	429000	to the car. Now, how do I make sure the right files and the graphics are on there? So now I'll
429000	433720	talk a little bit about how GM programming actually works with the DO software called SPS2.
433720	438380	I don't exactly remember what the acronym means, but that's basically the DO software.
438380	444600	You get that, you get a subscription with that VIN number for your car, $45 for two years,
444600	450800	not expensive. Then you get the dealer cable, $186, not a big deal either. So the programming
450800	456440	step, what this does is that it loads the firmware, all the software, whatever it needs just
456440	463940	to run the general purpose of this module. So there's even a step before this because in the
463940	468480	world of GM programming, people can actually check what files are going to be loaded by the
468480	473920	software into the modules before ahead of time. And surprisingly, there was a light version of
473920	479740	this running on the internet open to the public, which is hosted by Opal. Turns out that GM has
479740	484560	been selling their Canva system to a whole bunch of other manufacturers. One of them being Opal,
484560	489380	Skoda, I think. And then I think a Chinese manufacturer, I don't remember. But it turns
489380	493640	out I use this website just to check what programming files are going to be loaded
493640	500240	into this module. And I did that by taking the VIN number from my donor Escalade cluster.
500240	506260	I took the VIN number from a target car, which is the Cadillac CTS-V Sport. And I just ran the
507120	513360	programming steps to just see what VIN number was going to come out. These numbers are actually
513360	517320	called calibration numbers. That's how you know. It's a unique identifier in the GM world where
517320	522660	they say this has this specific set of files in it. It turns out, though, that the number is the
522660	528920	exact same in both of these cars. That means that my Escalade cluster already had the views that I
528920	534240	needed for a CTS-V, which is a sports car. It was already on all these cars. I just had to be able
534240	539660	to reveal it. And how do I do that? That gets to step number three, the setup and configuration
539660	546400	of GM programming. So now I have to actually set the configuration values according to what I need.
546400	552340	So a couple of slides here. This is actually some screen caps from when you actually go to get SPS-2
552340	557200	from ACDelco. You go to this website here, you sign up for your VIN number, you download the
557200	564320	thing. It's a Java-based program. And you go into here, then you see right there instrument cluster,
564320	571200	you go to set up a configuration, just run that. And it does a two-step process where it pulls the
571200	577620	files from the GM servers, stores it on your computer, and then programs it against your car.
578120	584880	And it turns out that they dumped all these files to your local C drive. So a couple of bonus
584880	590360	slides here where you can save some money. $450. This one was $450, which is ridiculous.
591580	597680	This is how to grab any BIN file or config files from SPS-2 for any vehicle. All you have to do
597680	601800	is buy the VIN number for the car that you don't have in front of you.
602080	606180	And then you just have to connect to your car, even though it doesn't have the right VIN number,
606180	610420	and then just download and then run the programming for whatever you need for whatever
610420	615220	module. It'll save the files to your computer. And then as soon as it's done downloading,
615220	619780	yank the cable from your car. That's it. That's all I did to pull out these files from the car.
619780	624540	And the thing is, people were advertising emulators online for this. This would have
626000	630920	$450 just to do this when there's an override button right in front of you with a screen cap.
631300	636720	And also those emulators get you banned from the GM server. So instead of paying $450,
636720	642640	press an override button, which is ridiculous. Then another bonus slide, how to grab the
642640	649680	security PIN for a VIN number from the car for a VIN number from GM. So what you do here is that
649680	655000	you actually run a dummy configuration that's just kind of safe because it only sets configuration
655000	660880	flags in your module. All I did was run that with a vehicle that I don't own. Well, I don't have
660880	665720	access to it really. And then just running against my car, it'll just fail to authenticate with the
665720	669740	module inside the car. So then it'll just bomb out, doesn't do anything. And then you go check
669740	675440	inside the C drive over here. And there's a file right here called SPS tool bridge,
675440	679900	toolbridge.log. Right there's the VIN number that I was attempted and the security PIN that was
679900	686080	right there. So right then and there, you get it for free. Well, almost for free. There's also VIN
686080	690260	to PIN services that you could buy online for $50 from some random website, or you can get it from
690260	697740	GM directly using this method. Now, before I can explain what I did for the configuration flags,
697740	704380	I have to explain two things, what a build code and RPO code is. So in those local files I was
704380	710520	talking about earlier, there's a build record at BLD, which has your VIN number, chassis code,
710520	715180	and then a bunch of things called RPO codes. These are build codes or like option codes for
715180	719840	stuff in your car. Like, oh, if you have a digital cluster or this fancy suspension, whatever.
720140	725060	Then there's an S3 file right there where ACDelco publishes every single RPO code that they've ever
725060	729780	made for GM. And you can just look it up there. And the next file that was inside the C drive was
729780	737440	an XML file that says something quite interesting. It turns out it is a logical mapping of P
737440	744500	underscore whatever flag that says, set this flag to this value based on the existence of this RPO
744500	750540	code and this chassis code in the car. So I looked through this and I knew that I wanted to get the
750540	758440	gauge cluster from a CTS vSport, which has the chassis code of 6AL69 right there and the engine
758440	768120	code. And turns out that right here, PDDH variant gets set to the value of 6 to get the V fancy
769220	775680	graphic out. So all I did was edit this file to include my car, which is a 6AE47 chassis code with
775680	782720	an engine code of LF4. I left the UDV in there and then edited my build record to have a UDV,
782720	787300	which is for the 12.3 inch cluster. UDD is for the needle one, whatever. I just changed it
787300	793280	just so that all the files that get enabled by this XML file will be for my car. So it fully
793280	798620	works. And then as soon as I did that, saw this, ran to my car. Oh yeah, by the way, this would
798620	805520	have cost an extra $350. We're at $950 right now already. Ran to my car. Press the configuration
806700	812040	function. Turns out that also the cache files on here are not checksum. You could just edit the
812040	818280	and GM will just, you know, detect the existence of the files, not even check anything else. You
818280	822460	click, it'll just run with the files on your disk and then that's it. So I managed to click programs
822460	827200	to this thing for free without paying anyone anything, which is fucking awesome. So tying
827200	831300	this all together, high level process. There's a list of requirements right here. I'm not going
831300	837440	to read this all out to you guys. High level programming steps. It's just setting up your
837440	842880	Windows laptop, then running a cluster configuration with your OEM cluster just to get
842880	849420	the RPO codes and the XML files out. Then you edit the EEPROM on the cluster, which I explained
849420	854040	earlier, then also edit the cache files locally, and then just run the configuration again. And
854040	861680	that's it. So the future of GM programming and open source. I posted this right away on GitHub
861680	865720	and I posted it right away in the Cadillac forum. So a few people actually got to use this and fix
865720	871220	their own problems, which was really nice. But the crazy thing is I don't understand how I had
871220	875100	to spend a thousand dollars just to figure this out. And thank God I did not pay any of that money
875100	880560	because for how complicated this process was, it really wasn't that complicated. Most of the stuff
880560	886820	was just open to the public, open on your laptop, open on the internet. It didn't really make sense.
886820	893520	So I hope that with this, that more people get into modifying their GM cars to do cool stuff
893520	898840	like this without having to pay $350 and stuff like that to do this stuff. So I really hope that
898840	904760	this helps maybe a couple of people. A big shout out to the DEF CON conference and the Car Hacking
904760	909740	Village for selecting my talk. This is actually my first DEF CON ever. So being up on the stage
909740	913260	is crazy. So thank you guys so much. And yeah.
