Wifi wrong? #35
-
Hi all, The ESP now opens a new WiFi AP dtuGateway_10197101 and I can conenct to it. |
Beta Was this translation helpful? Give feedback.
Replies: 13 comments 8 replies
-
Hi @Rainer1969 , sorry for the confusion - the recent snapshots have errors in this. (as you already noticed - the webserver is not coming up in first start mode). Due to the last quick hacks a refactoring was needed and it is still in dev. But you can give it a try as an early bird ;-) - especially when you only need the gateway function (reading dtu values and showing these on the webpage). With the refactoring there also comes multi-arch builds for ESP8266 and ESP32. You can find it here -> https://github.com/ohAnd/dtuGateway/tree/migrate_ESP32 - regarding readme and so on. Please give a short feedback if it's working or also if not! ;-) BR |
Beta Was this translation helpful? Give feedback.
-
Hi Andreas / ohAnd, |
Beta Was this translation helpful? Give feedback.
-
Moin Andreas! What I don't get is, why I have to integrate the DTU in my network first. Currently my device is not yet in the cloud (and I don't really want to have it there).. There is a bunch of reasons, why I would prefer contact the Wifi of the PUT directly:
if anything is missing - nothing is working. Under the line I would like to raise the discussion, if it is not possible to contact directly the DTU. without having it integrated in the private network and S-Miles-Cloud. Thank you again for providing ohAnd and Best Regards, |
Beta Was this translation helpful? Give feedback.
-
Moin Rainer! I understand your idea / target setup... As I started with the project, I connected the dtuGateway directly with the dtu over the dtu internal access point and read the values directly over serial port. As a suggestions, for a first setup on your side:
so far... for this possibility. The idea for changing the networks for a given time... in my opinion not suitable for the target application to use the powerSetting to get dynamic changes of the output power of ther inverter for e.g. surplus control. I want to have the control to change every second. So, when it should go in this direction that you prefer, then I would suggest to connect two dtuGateways over serial (SPI, whatever) to use one as a connection to the DTU and one for the connection to your local network and both exchanging only the DTU relevant data. btw. I don't know at this time, if there is any configuration or first setup of the DTU needed to be "in the internet" needed for the function, the only thing could be, that you have outdated firmware of the dtu or outdated grid config. But I would assume that without any setup (bring dtu ot internet/ hoymiles connection) it should be accessible as described above. BR |
Beta Was this translation helpful? Give feedback.
-
Send long answer via reply email - I hope it will appear here. |
Beta Was this translation helpful? Give feedback.
-
Hi together! Sorry, but no matter whether I use dtuGateway_ESP32_snapshot_1.9.0030_migrate_ESP32.bin or dtuGateway_ESP32_snapshot_1.9.0048_develop.bin, no new access point is displayed. If I work with the old but useless opendtu-generic.factory.bin, I immediately have an OpenDTU-xxx access point. As hardware I have an ESP32-D0WD-V3 board, a radio module E01-ML01DP5 V3.2 based on nRF24L01+ and the 1.3” display SH1106. Who can help? @ohAnd Andreas? Hope so! Greetings |
Beta Was this translation helpful? Give feedback.
-
Sorry Andreas for my late reply, but apparently my message from a few days ago didn't make it here. I must have done something wrong or it has ended up somewhere wrong! Incidentally, my board has esp32doit-devkit-v1 printed on it and the module on it is an ESP-WROOM-32. The old, now useless openDTU displayed it as ESP32-D0WD-V3, but that must not be correct. Now to my problem: I have only ever flashed the finished BINs with the Flash Tool. Do I probably need Putty? Maybe you can help me out... Thank you very much! Greetings PS: Is English mandatory or can I also answer in German. Then I can save myself the DeepL translation. :-) |
Beta Was this translation helpful? Give feedback.
-
Hallo Andrea @ohAnd , vielen Dank! Ich habe das Board jetzt noch mal neu geflashed mit Deiner dtuGateway_ESP32_snapshot_1.9.0049_develop.bin Datei: Die Ausgabe ist: D:\users\Frank_Franks Dateien\Technische Downloads_Haus\Photovoltaik\OpenDTU_AhoyDTU\Tool für WiFi Wechselrichter\dtuGateway_ESP32_snapshot_1.9.0049_develop.bin is stub and send flash finish Wenn ich jetzt mit Putty an den seriell COM gehe, dann läuft dort nur immer durch: ets Jul 29 2019 12:21:46 rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) |
Beta Was this translation helpful? Give feedback.
-
Hi, was auch gehen sollte: Für den ersten Flash reicht es auch eine Aktuelle bin ( also z.b die aktuelle Version oder ein Snapshot ) zu nehmen und die mit dem "flash download tool" ab adresse 0x0 zuflashen. So spart man sich das mit bootloader, boot app , partitions usw. |
Beta Was this translation helpful? Give feedback.
-
Hallo Andreas @ohAnd , heureka! Es hat geklappt! Vielen Dank für Deine Hilfe! Worüber ich noch gestolpert bin: Ich habe nach dem Verbinden des WLANs des ESP32 Moduls mit einem Windows 11 Laptop (mein Android Smartphone wollte keine Verbindung herstellen) und Aufruf von: http://192.168.4.1 mein WiFi Netz und passendes Passwort eingetragen. Dann bin ich zum 2. Reiter DTU gewechselt und habe dort die IP-Adresse des Mikrowechselrichters eingetragen, aber in der Seriellen Konsole von Putty kam trotzdem weiterhin: "DTUinterface: getDataUpdate - ERROR - not connected to DTU!" Mein Fehler: Die Verbindung des ESP32 hatte sich in der Zwischenzeit bereits mit meinem Haus WiFi verbunden und die Änderung an dem Laptop nicht mehr mitbekommen. Nach einem Reboot des ESPs konnte ich das dann auch ablesen. Die Änderung über die Web GUI hat dann anstandslos geklappt und nun werden die Daten in der GUI und im Display angezeigt! Tolle Sache! Bin total happy! Genommen habe ich Version 1.9.0049, habe aber gesehen, dass Du bereits eine v1.9.0052 eingestellt hast. Die betrifft aber nur das OLED Display und nicht mein SH1106 Display, richtig? Eine Anregung für Verbesserung hätte ich noch: Bei dem bisherigen openDTU Programm, konnte man die Helligkeit der Anzeige dimmen und wenn der Wechselrichter abends offline ging, auch das Display ausgehen lassen. Und man konnte einen Modus gegen "Einbrennen" aktivieren, so dass die Schrift sich immer ein wenig bewegte. Wenn Du mal Langeweile hast und das auch als sinnvoll erachtest, würde ich mich darüber freuen. (ja, so ist das, erst reichst Du den kleinen Finger und dann nehme ich gleich die ganze Hand, sorry ;-) Aber ganz im Ernst, tolle Arbeit hast Du da vollbracht! 1A mit Mappe! Gruß |
Beta Was this translation helpful? Give feedback.
-
Was bedeutet in der Anzeige eigentlich ab und zu das Smiley? Das er Daten nicht abrufen kann, wegen der Cloud Pause? |
Beta Was this translation helpful? Give feedback.
-
Hi, das zeigt dir an, dass er gerade ein Cloud Update macht |
Beta Was this translation helpful? Give feedback.
Hallo Frank ( @Frankyistda ),
... now I got it ... ;-)
Den Ablauf für das erste ESP32 flashen hatte ich noch nicht in der readme beschrieben... Da ich bei mir direkt mit platformio (via esptool) flashe, kam das Problem auch noch nicht auf ;-)
Daher nun hier der Ablauf für das erstmalige flashen eines ESP32 mit dem "flash download tool".
Es werden 4 Dateien benötigt:
Die ersten 3 files werde ich dann zukünftig im repo verlinken.
flash download tool:
sollte dann so aussehen: