Its-g5
← Older revision Revision as of 09:09, 7 July 2026 (One intermediate revision by the same user not shown) Line 48: Line 48: * The serial link doesn't have to be very high speed, 115200 for example. We use a hardware UART on both sides of the serial link. * The serial link doesn't have to be very high speed, 115200 for example. We use a hardware UART on both sides of the serial link. * Use https://registry.platformio.org/libraries/thomasfredericks/MicroSlip for framing packets over the serial port. * Use https://registry.platformio.org/libraries/thomasfredericks/MicroSlip for framing packets over the serial port. === opentraffic map interface === See https://github.com/MPW1412/openwrt-otm-bridge#wire-format-mimics-the-esp32-c5-firmware for the mqtt wire format. See also https://github.com/pit711/v2x2map/blob/main/firmware/main/mqtt.c In short: server = mqtts://cits1.opentrafficmap.org:8883 : * no user name / password * topic 'its/<node>/status' (online or offline), retained * topic 'its/<node>/info' with a JSON string, like {"emac":"xx:xx:xx:xx:xx:xx","ver":"github.com/bertrik/its-g5-receiver-v0.0.1","hwv":"esp32-c5-devkit-c1"} * topic 'its/<node>/packet' for sniffed packets (raw, not JSON encoded) == Hardware == == Hardware == Line 53: Line 65: [[File:esp32-c3-supermini.jpg|thumb|right|alt=esp32-c3]] [[File:esp32-c3-supermini.jpg|thumb|right|alt=esp32-c3]] I got an ESP32-C5-devkitC-1 board , and it worked for me : This project uses an ESP32-C5-devkitC-1 board: * Aliexpress product page https://nl.aliexpress.com/item/1005012416463528.html * Aliexpress product page https://nl.aliexpress.com/item/1005012416463528.html * Espressif schematic https://dl.espressif.com/dl/schematics/SCH_ESP32-C5-DevkitC-1_V1.1_20240621.pdf . Actually my board is not exactly like this, the USB-UART is connected to pins GPIO11 (TX) and GPIO12 (RX), not GPIO25/GPIO24. * Espressif schematic https://dl.espressif.com/dl/schematics/SCH_ESP32-C5-DevkitC-1_V1.1_20240621.pdf . Actually my board is not exactly like this, the USB-UART is connected to pins GPIO11 (TX) and GPIO12 (RX), not GPIO25/GPIO24. Line 96: Line 108: Then viewed in wireshark: Then viewed in wireshark: wireshark message.pcap wireshark message.pcap === opentraffic map interface === See https://github.com/MPW1412/openwrt-otm-bridge#wire-format-mimics-the-esp32-c5-firmware for the mqtt wire format. See also https://github.com/pit711/v2x2map/blob/main/firmware/main/mqtt.c In short: server = mqtts://cits1.opentrafficmap.org:8883 : * no user name / password * topic 'its/<node>/status' (online or offline), retained * topic 'its/<node>/info' with a JSON string, like {"emac":"xx:xx:xx:xx:xx:xx","ver":"github.com/bertrik/its-g5-receiver-v0.0.1","hwv":"esp32-c5-devkit-c1"} * topic 'its/<node>/packet' for sniffed packets (raw, not JSON encoded)