2.2 KiB
NMEA2000-Gateway with ESP32
Based on the work of
- Homberger
- Timo Lappalainen
- Arno Duvenhage and a couple of other open source projects. Many thanks for all the great work.
Goal
Have a simple ready-to-go ESP32 binary that can be flashed onto a M5 Atom CAN, potentially extended by an Atom Tail485 for NMEA0183 connection and power supply.
But will also run on other ESP32 boards.
Modes
- NMEA2000 -> Wifi (NMEA0183)
- NMEA2000 -> USB (NMEA0183)
- NMEA0183 -> Wifi
- NMEA0183 -> NMEA2000
- Wifi (NMEA0183) -> NMEA2000
- USB (NMEA0183) -> NMEA2000
- ....
Environment
PlatformIO. Should be possible to use M5Burner to flash ready binaries.
Pre Build Binaries
In the release section you can find a couple of pre-build binaries that can easily be flashed on your ESP32 board using ESPTool. The flash command must be (example for m5stack-atom):
esptool.py --port XXXX --chip esp32 write_flash 0x1000 m5stack-atom-all.bin
For the meaning of the boar names have a look in platformio.ini and look for the hardware definitions in GwHardware.h.
Starting
After flushing a wifi access point is created. Connect to it (name: ESP32NMEA2K, password: esp32nmea2k). Afterwards use a Bonjour Browser, the address ESP32NMEA2k.local or the ip address 192.168.15.1 to connect with your browser. You will get a small UI to watch the status and make settings. If you want to connect to another wifi network, just enter the credentials in the wifi client tab. On the data page you will have a small dashboard for the currently received data. On the status page you can check the number of messages flowing in and out.
more to come...