espressif / esp-rainmaker

ESP RainMaker Agent for firmware development
Apache License 2.0
432 stars 145 forks source link

ESP32 stuck at provisioning #172

Closed maxakash closed 1 year ago

maxakash commented 1 year ago

I am trying to add my ESP32 to the ESP Rainmaker app. After scanning and sending wifi details, the process always stuck at "Confirming Wi-Fi connection" as the ESP32 reboots everytime after connecting to wifi. I have tried provisioning in both android and ios app and with different vendors of the ESP32 module.

I have attached the debug log. Please look into it.

@shahpiyushv

20:20:24.142 -> If QR code is not visible, copy paste the below URL in a browser.
20:20:24.142 -> https://rainmaker.espressif.com/qrcode.html?data={"ver":"v1","name":"PROV_SONOFF_DUALR3","pop":"123456","transport":"ble"}
20:20:46.820 -> [ 23458][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 1 - SCAN_DONE
20:20:52.048 -> [ 28713][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 37 - PROV_CRED_RECV
20:20:54.490 -> [ 31141][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
20:20:54.490 -> 
20:20:54.490 -> Connected to Wi-Fi!
20:20:54.527 -> [ 31194][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
20:20:54.560 -> [ 31194][D][WiFiGeneric.cpp:991] _eventCallback(): STA IP: 192.168.68.113, MASK: 255.255.255.0, GW: 192.168.68.1
20:20:54.560 -> [ 31200][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 39 - PROV_CRED_SUCCESS
20:20:59.708 -> E (37266) wifi_prov_mgr: Failed to create prov_stop_task!
20:20:59.708 -> 
20:20:59.708 -> abort() was called at PC 0x40177ffb on core 0
20:20:59.708 -> 
20:20:59.708 -> 
20:20:59.708 -> Backtrace:0x40083905:0x3ffe2a700x40094df9:0x3ffe2a90 0x4009a519:0x3ffe2ab0 0x40177ffb:0x3ffe2b30 0x401794d9:0x3ffe2b60 0x40179578:0x3ffe2b80 0x40179723:0x3ffe2ba0 0x40179fd9:0x3ffe2c20 0x4017a197:0x3ffe2c90 0x40181763:0x3ffe2cd0 0x40182ed9:0x3ffe2d20 0x40183515:0x3ffe2d60 0x40134482:0x3ffe2da0 0x40134dea:0x3ffe2dc0 0x40128b01:0x3ffe2e10 0x4012a977:0x3ffe2e30 
20:20:59.751 -> 
20:20:59.751 -> 
20:20:59.751 -> 
20:20:59.751 -> 
20:20:59.751 -> ELF file SHA256: 0000000000000000
20:20:59.751 -> 
20:20:59.751 -> Rebooting...
20:20:59.751 -> ets Jun  8 2016 00:22:57
20:20:59.751 -> 
20:20:59.751 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
20:20:59.751 -> configsip: 0, SPIWP:0xee
20:20:59.751 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
20:20:59.751 -> mode:DIO, clock div:1
20:20:59.751 -> load:0x3fff0030,len:1344
20:20:59.751 -> load:0x40078000,len:13864
20:20:59.751 -> load:0x40080400,len:3608
20:20:59.751 -> entry 0x400805f0
20:21:00.317 -> [⸮⸮mum⸮⸮⸮⸮2-hal-cpu.c:214] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
20:21:00.355 -> [    59][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 0 - WIFI_READY
20:21:00.393 -> [    86][I][RMaker.cpp:14] event_handler(): RainMaker Initialised.
20:21:00.393 -> 
20:21:00.393 -> Chip ID:  7729932 Service Name: PROV_SONOFF_DUALR3
20:21:00.393 -> 
20:21:00.393 -> Starting ESP-RainMaker
20:21:00.393 -> [    93][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 33 - PROV_INIT
20:21:00.393 -> [    95][I][WiFiProv.cpp:149] beginProvision(): Already Provisioned
20:21:00.430 -> [   101][I][WiFiProv.cpp:153] beginProvision(): Attempting connect to AP: Stark
20:21:00.430 -> 
20:21:00.507 -> [   198][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 2 - STA_START
20:21:00.507 -> [   199][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 34 - PROV_DEINIT
20:21:00.580 -> [   284][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
20:21:00.580 -> 
20:21:00.580 -> Connected to Wi-Fi!
20:21:02.927 -> [  2614][D][WiFiGeneric.cpp:929] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
20:21:02.927 -> [  2614][D][WiFiGeneric.cpp:991] _eventCallback(): STA IP: 192.168.68.113, MASK: 255.255.255.0, GW: 192.168.68.1