Car ALDL to ESP32 Mini Wifi or Bluetooth VR,VS,VX,VY

160 And 8192 Baud Aldl
User avatar
antus
Site Admin
Posts: 10111
Joined: Sat Feb 28, 2009 10:34 am
cars: TX Gemini 2L Twincam 8psi
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Subaru WRX 2007

Re: Car ALDL to ESP32 Mini Wifi or Bluetooth VR,VS,VX,VY

Post by antus »

I just checked this again to find the evidence of the baud rates, but there is better information now. The VCP on the PC side does have standard baud rates but they are ignored and the BT works as fast as it can in the conditions. So it makes no difference if the PC selects 9600 or another speed. But the next thing to be careful of is voltage levels between the ALDL side and the ESP32. The ESP32 is a 3.3v board, and the mudded VAG cable will be 5v. So need some kind of level shifter, unless you're lucky enough that its 5v tolerant and just works. But there could be smoke when connected directly.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
User avatar
vlad01
Posts: 8600
Joined: Mon Oct 08, 2012 8:41 am
cars: VP I S
VP I executive
VP II executive
VP II executive #2
Location: Kyneton, Vic

Re: Car ALDL to ESP32 Mini Wifi or Bluetooth VR,VS,VX,VY

Post by vlad01 »

So kinda like how I can set some random baud rate in TP but it makes no difference because the port in virtual in that sense?
User avatar
antus
Site Admin
Posts: 10111
Joined: Sat Feb 28, 2009 10:34 am
cars: TX Gemini 2L Twincam 8psi
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Subaru WRX 2007

Re: Car ALDL to ESP32 Mini Wifi or Bluetooth VR,VS,VX,VY

Post by antus »

Yes that's right. The USB and Bluetooth speeds are not connected to the VCP (virtual com port) speed as the underlaying communications technology is fundamentally different.
Some VCP drivers artificially enforce the speed. It would seem ESP32 BT VCP does not.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
User avatar
vlad01
Posts: 8600
Joined: Mon Oct 08, 2012 8:41 am
cars: VP I S
VP I executive
VP II executive
VP II executive #2
Location: Kyneton, Vic

Re: Car ALDL to ESP32 Mini Wifi or Bluetooth VR,VS,VX,VY

Post by vlad01 »

So if I understand correctly along my first line of thoughts, the ALDL baud handing would need to be handled at the adapter's hardware end and the BT/Wifi is merely just the link back to the PC.

Probably should have posted the 1st prompt response first, not the 2nd one lol. It tells you straight up that the ESP32 can serve as the bridge, and then some other suitable DIY device handling the serial that allows custom rates, level shift etc...


"Most off-the-shelf Bluetooth-to-serial adapters only support standard baud rates (like 4800, 9600, or 19200), meaning you will likely need an ESP32-based bridge or a microcontroller buffer to handle a non-standard 8192 baud rate (commonly used in GM OBD1 ALDL automotive diagnostics).

1. Plug-and-Play Commercial Adapters (Limited Support)

Standard commercial Bluetooth serial adapters (such as the HC-05, HC-06, or SENA Parani) use fixed internal clock dividers that reject AT+UART=8192 commands or round them to 9600 baud, causing framing errors.
• ESP32-Based Commercial Adapters: Adapters built around an ESP32 chipset, such as the US Converters S2B2232FIV2, feature flexible fractional baud rate generators capable of custom speeds between 1200 and 921,600 bps. However, their default configuration apps and AT firmware often restrict user selection to standard preset menus unless custom firmware is flashed.

2. DIY ESP32 Bluetooth Bridge (Recommended)

An ESP32 development board (such as an ESP32-WROOM) is the most reliable solution because its hardware UART supports arbitrary baud rates with high precision, and it includes built-in Bluetooth Classic (SPP) to act as a wireless COM port on Windows or Android.
• Direct Hardware UART: Using the Arduino BluetoothSerial library, you can initialize the hardware serial port at exact custom speeds using Serial2.begin(8192, SERIAL_8N1, RX_PIN, TX_PIN).
• Signal Level Shifting: Because the ESP32 operates at 3.3V logic, you must add a logic level converter (for 5V TTL signals) or a MAX3232 transceiver (for RS232 or 12V ALDL automotive lines) between your target device and the ESP32 pins.

3. Microcontroller Baud-Rate Translator (Using Standard BT Modules)

If you already own a standard 9600-baud Bluetooth module (like an HC-05), you can place a cheap microcontroller in the middle to translate the speeds.
• Dual-Serial Buffering: As demonstrated in Matthias Straub's ElanBT project, an Arduino Nano or Pro Mini can read the incoming 8192 baud stream on its hardware serial port (Serial.begin(8192)) and relay the bytes to an HC-05 module running at 9600 baud over SoftwareSerial.
• ALDL Specifics: If this is for a GM/Holden OBD1 vehicle, note that ALDL uses a single-wire bidirectional data line; you will need a basic two-transistor or diode-resistor interface circuit to split the single wire into separate RX and TX lines before connecting to the microcontroller."
User avatar
Rapidfire
Posts: 66
Joined: Sun Oct 18, 2026 9:56 am
cars: Vp Group A Rep
Ve 6.0 Lsa 6 speed Ute
Vf Redline Wagon
L300 Van with 3.8 Buick

Re: Car ALDL to ESP32 Mini Wifi or Bluetooth VR,VS,VX,VY

Post by Rapidfire »

I was able to create a simulator for The Holden VX BCM - and the PCM as well

I've created the firmware for a second ESP32 mini to emulate the VX BCM and the PCM for testing ALDL ESP 32 mini Bluetooth

just waiting for the hardware to turn up so I can make the actual physical connection

I did simulated test and emulated tests just to see if my theory would work and taking everyone suggestions, So far it's worked with no errors but that's only emulated not actual physical connection

so far I don't have an issue with the 8192 bald rate having any connection issues The only issue that I have is the bluetooth latency

it's looking good Just need to make the physical connection between the cars aldl and the bluetooth connection to Tuner Pro RT

and I've put a proposed wiring diagram, I just got to see how all this works. I've got a few 3D printers so making a case is not an issue
You do not have the required permissions to view the files attached to this post.
Last edited by Rapidfire on Mon Nov 16, 2026 4:28 am, edited 1 time in total.
User avatar
vlad01
Posts: 8600
Joined: Mon Oct 08, 2012 8:41 am
cars: VP I S
VP I executive
VP II executive
VP II executive #2
Location: Kyneton, Vic

Re: Car ALDL to ESP32 Mini Wifi or Bluetooth VR,VS,VX,VY

Post by vlad01 »

Nice work!

The latency should be alright. I am using the OSE 3.0 plugin that Ant sent me, it's been redone with flexible timing routines, so it should work here as well.

The wine translation layer adds its own latency, including Linux's differences to Win in that regard, and so the regular OSE plugin would not work for up or download, but it did work ok for logging only. The v3 plugin fixed all latency issues and it works flawlessly across the various layers. So it should work here too I hope.

The OSE flash tool might be something you can test with, since it worked out of the box for me though wine, and it has timing settings you can adjust if need be.
User avatar
antus
Site Admin
Posts: 10111
Joined: Sat Feb 28, 2009 10:34 am
cars: TX Gemini 2L Twincam 8psi
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Subaru WRX 2007

Re: Car ALDL to ESP32 Mini Wifi or Bluetooth VR,VS,VX,VY

Post by antus »

You are likely going to need more electrical protection than that. ALDL direct to U1 will blow up if someone connects it to a 12v 160 baud ALDL or there are voltage transients in the car which are common for an automotive environment.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
User avatar
Rapidfire
Posts: 66
Joined: Sun Oct 18, 2026 9:56 am
cars: Vp Group A Rep
Ve 6.0 Lsa 6 speed Ute
Vf Redline Wagon
L300 Van with 3.8 Buick

Re: Car ALDL to ESP32 Mini Wifi or Bluetooth VR,VS,VX,VY

Post by Rapidfire »

antus wrote: Mon Nov 16, 2026 5:43 am You are likely going to need more electrical protection than that. ALDL direct to U1 will blow up if someone connects it to a 12v 160 baud ALDL or there are voltage transients in the car which are common for an automotive environment.
that's just a mock up I'm just designing the gerbers the the circuit board and the BOM right now
antus
I've seen all your instructions in regards to protection, and ive designed some pretty heavy protection on the ALDL line. and power spikes coming in on 12v could potentially blow things up as you would put it
without naming what I've put in, I've got protection on the 12 Volt line from spikes. Got protection on the 5 Volt line and did the ESP32 + protected the ALDL line @ 3.3 volts.
I've seen your warnings and tried finding the right components that would work within the system. once everything's designed I'll push it up to the manufacture and they can source the circuitry components for me and build it. just leaves me the final assembly. then the closure made it so that you can't plug anything externally into the ESP32's USB once the lid is closed it's sealed. LOL it was supposed to be an easy simple little project, now I've made it a full on and could be tuned into a commercial viability

I could easily invest $2000 to $3000 Money's really not the object. It's whether or not something like this could viable
You do not have the required permissions to view the files attached to this post.
Last edited by Rapidfire on Mon Nov 16, 2026 7:45 am, edited 1 time in total.
User avatar
Rapidfire
Posts: 66
Joined: Sun Oct 18, 2026 9:56 am
cars: Vp Group A Rep
Ve 6.0 Lsa 6 speed Ute
Vf Redline Wagon
L300 Van with 3.8 Buick

Re: Car ALDL to ESP32 Mini Wifi or Bluetooth VR,VS,VX,VY

Post by Rapidfire »

I think the interesting part to this build was the ESP32 emulating the BCM module. the fact that you can turn on and turn off certain functions of the BCM obviously that's not via a switch thats the code itself