Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 01:40
    atesin commented #1184
  • 01:40
    SinglWolf commented #686
  • Sep 29 17:18
    stale[bot] unlabeled #1157
  • Sep 29 17:18
    stale[bot] commented #1157
  • Sep 29 17:18
    simonttp78 commented #1157
  • Sep 28 23:24
    RoboticNerd commented #1141
  • Sep 27 17:34
    slimline33 commented #1210
  • Sep 27 14:56
    slimline33 commented #1210
  • Sep 26 14:20
    me-chiel commented #1147
  • Sep 25 16:35
    gibo77 commented #1190
  • Sep 25 16:23
    Pablo2048 commented #1190
  • Sep 25 16:13
    softhack007 commented #1190
  • Sep 25 16:11
    softhack007 commented #1190
  • Sep 25 11:11
    Napoleon-BlownApart closed #1213
  • Sep 25 11:11
    Napoleon-BlownApart commented #1213
  • Sep 25 11:11
    Napoleon-BlownApart commented #1213
  • Sep 25 11:11
    Napoleon-BlownApart reopened #1213
  • Sep 25 11:11
    Napoleon-BlownApart commented #1213
  • Sep 25 11:11
    Napoleon-BlownApart commented #1213
  • Sep 25 11:10
    Napoleon-BlownApart closed #1213
Umer Arshad
@umerm64

@atanisoft Thank you for your suggestion. It helped a little with the issue but I still am facing the problem
Basically I am using BLE alongwith WiFi
When I initialize BLE before connecting WiFi it crashes as follows:

Connecting to WFH...
abort() was called at PC 0x401f8477 on core 0
ELF file SHA256: 0000000000000000
Backtrace: 0x40090370:0x3fff0580 0x400906cd:0x3fff05a0 0x401f8477:0x3fff05c0 0x401d7ca0:0x3fff05e0 0x401d6fde:0x3fff0600 0x401fb012:0x3fff0620 0x4009217a:0x3fff0650
  #0  0x40090370:0x3fff0580 in invoke_abort at /home/cschwinne/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:648
  #1  0x400906cd:0x3fff05a0 in abort at /home/cschwinne/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:648
  #2  0x401f8477:0x3fff05c0 in pm_set_sleep_type at ??:?
  #3  0x401d7ca0:0x3fff05e0 in wifi_set_ps_process at ??:?
  #4  0x401d6fde:0x3fff0600 in ieee80211_ioctl_process at ??:?
  #5  0x401fb012:0x3fff0620 in ppTask at ??:?
  #6  0x4009217a:0x3fff0650 in vPortTaskWrapper at /home/cschwinne/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DOUT, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1084
load:0x40078000,len:11220
load:0x40080400,len:5360
entry 0x4008067c

On the contrary, when I reverse the order of WiFi and BLE and connect to WiFi before then it connects to WiFi correctly but crashes in the BLE as follows:

Connecting to WFH...
Connected! IP address: 192.168.10.21
Init STA interfaces
mDNS started
going to init ble
abort() was called at PC 0x401a8332 on core 1
ELF file SHA256: 0000000000000000
Backtrace: 0x40090370:0x3ffd3170 0x400906cd:0x3ffd3190 0x401a8332:0x3ffd31b0 0x401aca70:0x3ffd31d0 0x401acc4a:0x3ffd31f0 0x4011905a:0x3ffd3220 0x40114ae2:0x3ffd3240 0x4010d711:0x3ffd3280 0x400f55a2:0x3ffd32b0 0x400f56a4:0x3ffd32f0 0x400f6b03:0x3ffd3310 0x400f6b4a:0x3ffd33d0 0x400f6f62:0x3ffd3410 0x40116e2c:0x3ffd3430 0x4009217a:0x3ffd3450
  #0  0x40090370:0x3ffd3170 in invoke_abort at /home/cschwinne/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:648
  #1  0x400906cd:0x3ffd3190 in abort at /home/cschwinne/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:648
  #2  0x401a8332:0x3ffd31b0 in coex_init at ??:?
  #3  0x401aca70:0x3ffd31d0 in esp_phy_rf_init at /home/cschwinne/esp32-arduino-lib-builder/esp-idf/components/esp32/phy_init.c:524
  #4  0x401acc4a:0x3ffd31f0 in esp_phy_load_cal_and_init at /home/cschwinne/esp32-arduino-lib-builder/esp-idf/components/esp32/phy_init.c:673
  #5  0x4011905a:0x3ffd3220 in esp_bt_controller_enable at /home/cschwinne/esp32-arduino-lib-builder/esp-idf/components/bt/bt.c:1704
  #6  0x40114ae2:0x3ffd3240 in btStart at C:\Users\umer.arshad\.platformio\packages\framework-arduinoespressif32\cores\esp32/esp32-hal-bt.c:45
  #7  0x4010d711:0x3ffd3280 in BLEDevice::init(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) at C:/Users/umer.arshad/.platformio/packages/framework-arduinoespressif32@src-e9b1fbd6563a55e19ddae15e1fc09589/libraries/BLE/src/BLEDevice.cpp:591
  #8  0x400f55a2:0x3ffd32b0 in ble_init() at wled00/usermod.cpp:110
  #9  0x400f56a4:0x3ffd32f0 in userConnected() at wled00/usermod.cpp:123
  #10 0x400f6b03:0x3ffd3310 in WLED::handleConnection() at wled00/bus_manager.h:149
  #11 0x400f6b4a:0x3ffd33d0 in WLED::loop() at wled00/bus_manager.h:149
  #12 0x400f6f62:0x3ffd3410 in loop() at D:/MyStuff/WattsLights/WLED/wled00/wled00.ino:20
  #13 0x40116e2c:0x3ffd3430 in loopTask(void*) at C:\Users\umer.arshad\.platformio\packages\framework-arduinoespressif32\cores\esp32/main.cpp:23
  #14 0x4009217a:0x3ffd3450 in vPortTaskWrapper at /home/cschwinne/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0
I know that its probably related to some memory issue but I just can't place my mind.
Mike Dunston
@atanisoft
doesn't look memory related, open an issue on arduino-esp32 and provide a reproducible test case and someone will be able to help likely.
Umer Arshad
@umerm64
I have posted it in the arduino-esp32 group here at gitter as well @atanisoft
Mike Dunston
@atanisoft
open an issue on GitHub as well
Umer Arshad
@umerm64
Muhammad Arslan
@arslan437
Hi, New to gitter. How can I check how many messages are in queue of web socket.
Mehrdad K
@mkeyno

Hi all, I'm using async webserver call back to start or stop the timer , I can start and change alaram period without any problem but when I stop the timer I've got following error and chip reset

abort() was called at PC 0x400eca91 on core 0
Backtrace:0x4008369d:0x3ffbeadc |<-CORRUPTED

my call back is

void dosing(String side, String value,AsyncWebServerRequest *request){
request->send(200, "text/plain", "sure"); 
uint8_t s=side.toInt();
uint32_t v=value.toInt();
//PRINTS("speed=",v);
if(v<11)  stepper.stop();
 }
//////////////////////////////////
// class method
void  Stepper::stop(void){
//timerDetachInterrupt(timers[timer_n]);
 timerAlarmDisable(timers[timer_n]);
 timerStop(timers[timer_n]);
}
/////
OnurNP
@K0rkunc
hi how to detect wifi password is wrong
Hamza Khan
@hamza765
@K0rkunc maybe checkout WiFi.status()
Hamza Khan
@hamza765
void onBody(AsyncWebServerRequest *request, uint8_t *data, size_t len, size_t index, size_t total){
  if(!index){
    Serial.printf("BodyStart: %u B\n", total);
  }
  for(size_t i=0; i<len; i++){
    Serial.write(data[i]);
  }
  if(index + len == total){
    Serial.printf("BodyEnd: %u B\n", total);
  }
}
server.on("/connect", HTTP_POST, [](AsyncWebServerRequest * request) {
    Serial.print("connect");

    request->send(200);

  }, onBody);
  server.onFileUpload(onUpload);
  server.onRequestBody(onBody);
Any clue why my code isn't printing anything out when i send call that route and send it a message of 'ping'?
RW
@mm108
hi to the good people on gitter
suddenly ran into a somewhat weird issue with what I think points to ESP Async WebServer
it was all working fine and then this error pops up on PlatformIO
.pio/libdeps/esp32dev/ESP Async WebServer/src/WebAuthentication.cpp:74: undefined reference to `mbedtls_md5_starts'
.pio/libdeps/esp32dev/ESP Async WebServer/src/WebAuthentication.cpp:74: undefined reference to `mbedtls_md5_starts'
did some research and the it seems to be related to not having the latest version ... but mine's the absolute latest version - of all the libraries
including PlatformIO, VS Code etc
the cause seems to be the now deprecated mbedtls_md5_starts which is replaced by mbedtls_md5_starts_ret()
RW
@mm108
void onBody(AsyncWebServerRequest *request, uint8_t *data, size_t len, size_t index, size_t total){
  if(!index){
    Serial.printf("BodyStart: %u B\n", total);
  }
  for(size_t i=0; i<len; i++){
    Serial.write(data[i]);
  }
  if(index + len == total){
    Serial.printf("BodyEnd: %u B\n", total);
  }
}
server.on("/connect", HTTP_POST, [](AsyncWebServerRequest * request) {
    Serial.print("connect");

    request->send(200);

  }, onBody);
  server.onFileUpload(onUpload);
  server.onRequestBody(onBody);

Any clue why my code isn't printing anything out when i send call that route and send it a message of 'ping'?

Not an expert on ESP Async Web Server but couple of things I can think of - is the method on the client side correct? ( GET or POST )?

And I am guessing the serial port has been initialized with the correct baud rate ...
Oops didn't notice the date - that seems to be 10 days old issue :-E

hi to the good people on gitter

I did post this issue on the ESPAsyncWebServer github repo but I thought I'd ask here - perhaps someone has run into a similar problem

Mike Dunston
@atanisoft

did some research and the it seems to be related to not having the latest version ... but mine's the absolute latest version - of all the libraries

Latest released version via lib manager or latest from GitHub? There is a big difference as the error you are reporting has been fixed on GitHub but the library version was not advanced thus it is not available via lib manager.

RW
@mm108
oops ... from the PlatformIO library registry
then I guess I can download a copy gtom Github and add it to the project for now?
Mike Dunston
@atanisoft
you can adjust your platformio.ini file to have it automatically pull and maintain it
RW
@mm108

did some research and the it seems to be related to not having the latest version ... but mine's the absolute latest version - of all the libraries

Latest released version via lib manager or latest from GitHub? There is a big difference as the error you are reporting has been fixed on GitHub but the library version was not advanced thus it is not available via lib manager.

you can adjust your platformio.ini file to have it automatically pull and maintain it

Cool, thanks

Mike Dunston
@atanisoft
declare the lib_deps entry for it as https://github.com/me-no-dev/ESPAsyncWebServer.git and it should pull automatically
RW
@mm108
at least now I know where the error most probably lies ...

declare the lib_deps entry for it as https://github.com/me-no-dev/ESPAsyncWebServer.git and it should pull automatically

Wonderful thanks

thanks a ton
Mike Dunston
@atanisoft
you may also need a similar line for AsyncTCP (it will have a similar pattern)
RW
@mm108
Ok cool ... will do that too
Normally I add libraries from the PlatformIO lib registry ... but it seems that that isn't always the best thing to do :)
I was living under the impression that the libs are the latest cos I keep updating them - via the "Libraries" tab in PlatformIO
Cool thanks a ton -
Mike Dunston
@atanisoft
generally yes the library manager is a good approach, unfortunately things can get out of sync when updates are put in without a newer version applied to them.
RW
@mm108
my libs are all generally declared this way in the ini: me-no-dev/ESP Async WebServer @ ^1.2.3
unless a newer version has some issue in which case I restrict the version to something that's tried and tested

generally yes the library manager is a good approach, unfortunately things can get out of sync when updates are put in without a newer version applied to them.

Hopefully that will get fixed in time to come. PlatformIO has generally been wonderful to use

Mike Dunston
@atanisoft
Hopefully that will get fixed in time to come. PlatformIO has generally been wonderful to use
Don't count on it, it is a library author issue and not a PlatformIO issue. The same would happen over on Arduino IDE. People forget to update the version when they update their library with a bug fix and then it goes out of sync
RW
@mm108
Oops :)
My experience with PlatformIO is kinda limited ... cos for the most part once the libs are installed then it is generally only the code to be dealt with ...
but I learnt something new - so I guess next time I have one more area to look at when something like this happens
Earlier I was so sure that the libs are latest, that I did not even care to check that part
which I should have :-E
lol ... I nearly started replacing the deprecated functions with newer ones ---- lucky I had my hesitation and reservations doing that .. it just didn't seem right
RW
@mm108

declare the lib_deps entry for it as https://github.com/me-no-dev/ESPAsyncWebServer.git and it should pull automatically

That compiled without issues! Thanks a zillion

GUEST.it
@guestisp
Hi guys. I'm struggling trying to execute a VERY LONG task triggered by a websocket message. workflow is as follow:
  1. Client send a message to the ESP32, via websocket, asking to run a very long task
  2. the handler gets the message and start a freertos thread (without the thread , the watchdog kills everything) with a struct containign a reference to the asyncwebsocketclient
  3. when the thread is finished , i try to reply to the client but every time I do this, guru meditation 1 reboot the esp