Willkommen bei MattzoBricks › Foren › MattzoTrainController for Powered Up (MTC4PU) › Controller does not connect to WiFi
- Dieses Thema hat 3 Antworten sowie 3 Teilnehmer und wurde zuletzt vor vor 3 Jahren, 5 Monaten von
Oscar WAGNER aktualisiert.
-
AutorBeiträge
-
-
Dezember 29, 2021 um 14:30 Uhr #4410
Ulrich Schneider
TeilnehmerHi,
All my controllers using ESP8266 boards work like a charm. They connect to the Wifi and MQTT and are integrated into rocrail.
My ESP32 MTCPU controller, however, does not work properly. I am a bit stunned, because it uses the same network configuration files as the other controllers. I can hook up a Powered UP Hub via Bluetooth, but there is no connection to the Wifi & MQTT.
I am using the AZ delivery development boards (“WROOM”) and chose the Board “ESP32 Dev Module” on the Arduino application.Currently, I tried my luck with firmware 5.0 as the other ones are labeled a bit buggy.
I am happy for any help or suggestions.
-
Januar 1, 2022 um 10:19 Uhr #4488
Joseph Bettenhausen
TeilnehmerHi,
I had the same scenario as you for the past couple of days. I had no problem with the ESP8266 and connecting reed sensors. However, with the same board https://www.amazon.de/gp/product/B071P98VTG/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1
and selection in the Arduino IDE, I could not get the MTCPU to stay connected to WiFi, the hub was no problem. It connected at first boot to WiFi and then connected to the hub, but then always lost connection to WiFi.
I also saw this error.
[WiFiClient.cpp:258] connect(): socket error on fd 55, errno: 113, “Software caused connection abortMatthias had mentioned about WiFi frequencies here:
So I also tried naming my 2.4 and 5 SSID different, but that didn’t help either.Have you tried the MTC4BT? I tried that last night with a status LED as well and got it working to controll my train with a lot less headache. It also now shows on my router, which the other MTCPU didn’t, because of the short connection. Every day I am more and more impressed with VS Code and glad the project is going in this direction.
-
Diese Antwort wurde vor 3 Jahren, 8 Monaten von
Joseph Bettenhausen geändert.
-
Diese Antwort wurde vor 3 Jahren, 8 Monaten von
Joseph Bettenhausen geändert. Grund: added error
-
Januar 2, 2022 um 21:46 Uhr #4541
Ulrich Schneider
TeilnehmerHi,
thanks for pointing that out. I had some initial issues with the BT as well, but now the MTCBT works. So, I am staying with that one.
Best,
Uli
-
Diese Antwort wurde vor 3 Jahren, 8 Monaten von
-
April 17, 2022 um 16:46 Uhr #5296
Oscar WAGNER
TeilnehmerSalut à tous
J’avais le même problème et je l’ai résolu en in insérant une ligne de code à la fin:
” mcLog(“*** DEBUG-INFO ***”);
mcLog(“WiFi + MQTT connection Status: ” + String(getConnectionStatus() == MCConnectionStatus::CONNECTED));
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(“.”);qui permet de reconnecter le WI-FI et alors tout fonctionne.
Bonne continuation
-
-
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.