ak-homberger / nmea2000wifigateway-with-esp32 Goto Github PK
View Code? Open in Web Editor NEWThis repository shows how to build a NMEA2000 WiFi Gateway with voltage and temperature alarms.
License: GNU General Public License v3.0
This repository shows how to build a NMEA2000 WiFi Gateway with voltage and temperature alarms.
License: GNU General Public License v3.0
Hi, thank you for your nice work.
I found a little Issue.
The password for the AP mode must at least use a minimum of 8 char.
Otherwise the method call WiFi.softAP(AP_ssid, AP_password); will fail and it give a generic SSID (e.g. ESP_32_83A4H) without password.
Hi Andreas,
you are writing at ttlappalainen/NMEA2000#97 (comment) that
BTW: The AZDelivery ESP32 NODE MCU is using:
GPIO2 -> CAN TX
GPIO4 -> CAN RX
But I could not find those pin definitions in your code?
Thanks,
Ronnie
Hi, I thank you so much for this code, it saved me a lot of time.
I found a slight issue: GetTemperature is delaying the main loop, I found this when I added a small oled display with a counter increasing every loop. I could see the counting freezing for about 0.5 second almost every 1 second.
I fixed it by making xTaskCreatePinnedToCore priority 0, removing the "delay" from GetTemperature, and adding vTaskDelay(100) after sensors.requestTemperatures() and another vTaskDelay(100) at the end. Now the counter does not freeze and GetTemperature still working correctly.
I've built the gateway, and the TCP connection is working fine. However, UDP does not seem to be working, even though UDP_Forwarding is set to 1. Does anyone have any clues as to why that might be?
HI, i tried to compile this code on Atom PlatformIO. Using different espressif32 platform versions (1.7.0, 1.8.0 and the last 1.12.4) i have the same error at the end of compiling;
Linking .pio\build\esp32doit-devkit-v1\firmware.elf
.pio\build\esp32doit-devkit-v1\src\main.cpp.o:(.literal.startup._GLOBAL__sub_I_NMEA2000+0x10): undefined reference to vtable for tN2kDataToNMEA0183'** .pio\build\esp32doit-devkit-v1\src\main.cpp.o:(.literal._Z4loopv+0x4): **undefined reference to
tN2kDataToNMEA0183::Update(tBoatData)'*
.pio\build\esp32doit-devkit-v1\src\main.cpp.o: In function loop()': main.cpp:(.text._Z4loopv+0x39): **undefined reference to
tN2kDataToNMEA0183::Update(tBoatData*)'**
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\esp32doit-devkit-v1\firmware.elf] Error 1
Is there some kind a problem in one library?
Thanks
Hi
I have problems when trying to compile you NMEA-Gateway.
Wifi-Serial-AP-AIS-CAN.ino: 413:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org\upgrade to learn how to upgrade your program to ArduinoJson version 6
StaticJsonBuffer<800> jsonBuffer
Any solution/recommendation?
Best Regards Uwe
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.