guillaumef / cg-scale-wifi-oled

CG scale for all rc planes with OLED/WIFI - foldable design
GNU General Public License v3.0
12 stars 6 forks source link

Reboot after Wifi connection #2

Closed Prop3r closed 3 years ago

Prop3r commented 3 years ago

Bonjour Guillaume,

Thank you for the excellent work and documentation on this CG scale. I'm in the final phase of building the scale, but I'm stuck.

After turning on the device, the splash screen is shown, and after that the instructions to connect to the Wi-Fi appear. Every time I connect to the Wi-Fi, using my mobile phone, the scale reboots automatically.

I've checked the wiring and boards for continuity and errors, and renewed the scale boards as a precaution, but to no avail.

I've changed the 3,3V connection to the scale boards to 5V. No effect. Main power is provided by a 850mAh 1S lipo (4V).

Do you have any idea what could be wrong? Is there a log file somewhere I could check?

Cordialement,

Vincent

guillaumef commented 3 years ago

Bonjour Vincent,

Utilisez-vous la même board que celle que j'ai utilisé? A mon sens, le problème doit se situer dans le soft et non le hard. Le Wifi softAP est capricieux, ligne 369-370 - nombreux bugs sont remontés notamment sur les timings. Essayer d'inserer en ligne 368:

    delay(1000);     
    WiFi.mode(WIFI_AP);
    delay(1000);  
    WiFi.persistent(false); 
Prop3r commented 3 years ago

Bonjour Guillaume,

Oui, je Utilisez le ESP32 OLED V2.0 TTGO.

I will try your suggestion, thanks for the quick response!

Cordialement,

Vincent

Prop3r commented 3 years ago

Bonjour Guillaume,

I was able to successfully connect to the Wifi, without reboots. Thank you!

I could however not connect to the webpage http://172.16.19.1/ After checking the code, I noticed a small error:

IPAddress local_IP(172,16,9,1); IPAddress gateway(172,16,9,1);

This should be: IPAddress local_IP(172,16,19,1); IPAddress gateway(172,16,19,1);

All works now!

Cordialement,

Vincent

guillaumef commented 3 years ago

Great. I hope you will find it accurate. My two builds are working perfectly (I made a second one with two throw meters and a detachable rj45 cable).