-
-
i think it has to do with wifi power setting mentioned here
https://github.com/espressif/arduino-esp32/issues/6767#issuecomment-1145661485
-
Wifi is not broken on 4.4.7, we need to understand that if the board is already connected a another connect will break things. The folowing code will check for that situation:
var ssid="SSID"; var password="password"; var wifi=require("Wifi"); wifi.stopAP(()=> { print(wifi.getStatus()); var status = wifi.getStatus(); if (status.ssid == ssid && status.station == "connected"){ print(wifi.getIP()); } else { wifi.connect(ssid, {password: password}, function() { print(wifi.getIP()); }); } });
Line 8 is the breakthrough: Do not connect again if already connected
You can upload this code as ofen as you like and the ESP32 board will not reboot!
Edit:
Wow, tested today and it is broken again ....... -
A clone of an espressif esp32c3 devkitm-1
-
-
@Gordon What do you thing about having a optional timing setting like this:
np = require("neopixel").config(t0h : 350, tol : 900, t1h : 700, t1l : 600);
-
Timing from datasheets WS2812.pdf, WS2811.pdf
Signal WS2812-800KHz WS2811-400KHz WS2811-800KHz T0H_NS 350 500 250 T0L_NS 800 2000 1000 T1H_NS 700 1200 600 T1L_NS 600 1300 650
Tolerance is +-150ns
Coded in Espruino:
Signal ESP32 T0H_NS 350 T0L_NS 900 T1H_NS 900 T1L_NS 350
Now testing some WS2812 and WS2811 with this setting:
Signal ESP32 T0H_NS 350 T0L_NS 900 T1H_NS 700 T1L_NS 600
-
-
-
Try this
// Test ESP32 WiFi event callbacks var ssid="<SSID>"; var password="<PASSWORD>"; var wifi=require("Wifi"); wifi.on("associated", function(details) { console.log(" Event-> associated: " + JSON.stringify(details)); }); wifi.on("connected", function(details) { console.log(" Event-> connected: " + JSON.stringify(details)); }); wifi.on("disconnected", function(details) { console.log(" Event-> disconnected: " + JSON.stringify(details)); }); wifi.on("auth_change", function(details) { console.log(" Event-> auth_change: " + JSON.stringify(details)); }); wifi.on("dhcp_timeout", function(details) { console.log(" Event-> dhcp_timeout: " + JSON.stringify(details)); }); wifi.on("probe_recv", function(details) { console.log(" Event-> probe_recv: " + JSON.stringify(details)); }); wifi.on("sta_joined", function(details) { console.log(" Event-> sta_joined: " + JSON.stringify(details)); }); wifi.on("sta_left", function(details) { console.log(" Event-> sta_left: " + JSON.stringify(details)); }); level = 0; wifi.stopAP(()=> { level ++; print("I stoped AP", level); wifi.disconnect(()=>{ level ++; print("II disconnect station", level); wifi.connect(ssid, {password: password}, function() { level ++; console.log("III Connect completed", level); }); }); });
-
-
-
-
Hi @user158605 this is a known issue, check the workaround for this.
-
@Gordon Many thanks!
-
-
@SimonGAndrews did you check this Arduino thread?
https://forum.arduino.cc/t/problem-with-analogread-on-esp32-c3/892651 -
-
im trying to build a set of wifi tests, refactoring @tve s esp8266 tests
please also check this tests from @Wilberforce
https://github.com/espruino/Espruino/tree/master/targets/esp32/tests
-
-
if you have the .elf file you can use use
https://maximeborges.github.io/esp-stacktrace-decoder/
upload .elf file and enter the Stack trace CPU wise to get detail about the function
-
Look's like the usbc points to the serial device, check this
https://github.com/espruino/Espruino/blob/4aa54ffdbd40c9c74ad5c0ab260d9df027c8aa63/boards/ESP32C3_IDF4.py#L77