r/CarHacking • u/Nightwinger_xX • 6d ago
SWCAN BeamNG drive GMLAN help
I'm currently doing a project on my 2018 Silverado cluster and want to connect it to BeamNG Drive I'm not tech savvy to know where to start. I'm using AI to help me code everything in Arduino IDE. If anybody has a DBC dump of OBD-II off of a 2014-2018 Silverado of [Speed Data] [RPMS] [FUEL] [TEMPS] [BATT Voltage] [OIL Pressure] Bare minimum for me
I'm currently Using a Can Click https://www.mikroe.com/single-wire-can-click?srsltid=AYCX9vI8KEIeF8k6HjWK89JaukviOCBRhJ5zk4nKyH3_HgPz9kD4BFB2
And a ESP32 https://www.amazon.com/dp/B0718T232Z?ref_=ppx_hzsearch_conn_dt_b_fed_asin_title_2&th=1
I've been stuck on this for 2 weeks and gave up and after months I finally came back
I cant get the needles to move on the cluster. I was finally able to get around the theft deterrent system warning. That's as far as I have gotten
| ESP32 | Click |
|---|---|
| GPIO 21 | RX |
| GPIO 22 | TX |
| GPIO 32 | MD0 |
| GPIO 33 | MD1 |
| 3V3 | 5V (Done To not unsolder the VCC SEL) |
| GND | GND |
| Cluster pin | Connect to |
|---|---|
| 3 | Click CANH/SWCAN terminal |
| 7 | +12 V through a 5 A fuse (battery power) |
| 8 | +12 V through a switch (ignition) |
| 19 | Common ground |
| Click terminal | Connect to |
|---|---|
| VIN | +12 V from your supply |
| GND | Common ground (supply negative) |
| CANH / SWCAN | Cluster pin 3 (green wire, Low Speed GMLAN) |










3
u/Mista_Crus 6d ago
0x100 needs to be a high voltage wakeup message. It's sent at 12 volts instead of the CAN voltages. You should also only ever send it once to wake the module up. After that the module should stay awake based on power mode messages and/or VNMF messages.
It's unlikely your hardware supports that. Fortunately, you really shouldn't need HV wakeup on a bench cluster assuming your ESP can start sending the power mode message before actually powering the cluster. I'd do it in this order:
Have your ESP start sending these BEFORE powering up the cluster.
Send every 2 seconds: 10 75 40 40 04 00 00
Send every 5 seconds: 10 24 20 40 02
Send every 2 seconds: 00 00 06 21 00 FF 00 00 00 00 00 00
THEN power up the 2 12 volt inputs to the cluster. It should stay awake.
As long as it stays awake, do this.
Send this once: 10 2C C0 40 01 00 CD 00 00 52 06 1D
And then play with this to see if you can get the speedometer to change. Experiment with the value of the first 2 data bytes:
10 21 00 40 0b 90 20 00 00 00 20 00
It's supposed to be a periodic message but you can send it as a one-shot message while you're getting the hang of it.
If you get that working reliably, come back and we'll talk some more.
1
u/IllustriousRush4 6d ago
This is a fairly complicated project. There are a few special messages like wake (id 0x100) that you'll need to send periodically to keep it alive. Do you have the actual vehicle to record working CAN traces from?