bri3d / esp32-isotp-ble-bridge

ESP32-IDF based BLE<->ISO-TP bridge targeting Macchina A0 hardware
Other
32 stars 28 forks source link
a0 automotive ble diagnostic esp32 iso15765 isotp macchina uds

ISOTP BLE Bridge

The goal of this project is to build a native Macchina A0 firmware which can bridge BLE to ISOTP.

This project is built using the ESP32 native toolchain ESP-IDF (based on FreeRTOS) and can be compiled using idf.py build (typically after . $IDF_PATH/export.sh). It can be flashed after building using idf.py flash and serial debugging logs can be viewed with idf.py monitor.

Currently, the project works, with a simple example client in the client directory.

Logs

Comment out CONFIG_LOG_DEFAULT_LEVEL_INFO=y and set CONFIG_LOG_DEFAULT_LEVEL_DEBUG=y in sdkconfig then recompile to turn on debug level logs.

A few notes about Macchina A0

Clever, dead simple board - a CAN transceiver, voltage regulators, and an ESP32-WROVER module with ESP32 revision 3 core. Tons of resources to use, including 8MB of SPI SRAM, 16MB of Flash.

And that's about it!

ESP32 implements a clone of the NXP CAN transceiver, which has been renamed to TWAI, presumably due to copyright reasons or because the transceiver IP isn't actually licensed. The TWAI drivers built into "ESP-IDF" seem to work well.