Other

Its-g5

🇳🇱 · Revelation space · Bertrik Sikken

opentraffic map interface ← Older revision Revision as of 06:54, 29 June 2026 (3 intermediate revisions by the same user not shown) Line 58: Line 58: It has an onboard antenna. There are also other boards with an antenna connection, which allows using an external antenna. This may be better, I don't know yet. It has an onboard antenna. There are also other boards with an antenna connection, which allows using an external antenna. This may be better, I don't know yet. How to wire it up, what I did: * Put both the esp32-c3-supermini board and the esp32-c5-devkit-c1 on a breadboard * Use male-male dupont wires to connect: ** 5V to 5V, GND to GND, esp32-c5 TX to esp32-c3 RX * Programmed the esp32-c5 with firmware * Plug an USB-C cable into the esp32-c3, programmed it with firmware, now it's powering both the esp32-c3 and the esp32-c5 {| class="wikitable" style="margin:auto" |+ Connections |- ! ESP32-c5 !! ESP32-c3 !! Remark |- | GND || GND || shared ground |- | 5V || 5V || raw power |- | U0TXD/GPIO11 || RX/GPIO20 || Data link |} == Software == == Software == See https://github.com/bertrik/its-g5-receiver See https://github.com/bertrik/its-g5-receiver This is heavily inspired by https://git.devlol.org/jstsmthrgk/simple-its-g5-receiver-firmware but with a fixed size ring buffer instead of dynamic allocation. === Compiling the firmware === === Compiling the firmware === Line 78: Line 100: See also https://github.com/pit711/v2x2map/blob/main/firmware/main/mqtt.c 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)