Open-source OBD-II emulator based on an ESP32 + CAN transceiver IC, controllable via WiFi through a simple web UI (or via API).
Mode | PID | Description |
---|---|---|
0x01 | 0x0C | RPM |
0x01 | 0x0D | Vehicle speed |
0x01 | 0x11 | Throttle position |
0x09 | 0x02 | Vehicle Identification Number (VIN) |
ESP32-OBD2
(with password 88888888
)192.168.4.1
esptool.py write_flash --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 bootloader.bin 0x10000 obd2-emu.bin 0x8000 partitions.bin 0x110000 fatfs_image.img
git clone ...
make menuconfig
make all
make flash
make flashfatfs
Note: You might want to change some config values, for example: serial flasher, baud rate, pins, etc.
PATCH /api/vehicle
name
value
curl -XPATCH -H 'Content-Type: application/x-www-form-urlencoded' -d 'name=speed&value=50' '/api/vehicle'