Open FlynnMa opened 1 year ago
HI @FlynnMa,
Can you include the device side "Error logs" that you get when "user node association" fails.
I've tried the switch example on idf v4.4 tag (8153bfe4125e6a608abccf1561fd10285016c90a) and did not see any errors while provisioning. Have you tried provisioning after erasing your flash using idf.py erase-flash
?
Hi @sanketwadekar,
As you can see, I already attached all logs with level at debug.
I tried with erase-flash and everything I can imagion
@FlynnMa , considering that the process has reached step 4 of provisioning, there should be some prints indicating that some user id and secret key was received from the phone app, followed by SSID and passphrase and then wifi connection success. Thereafter there should be messages indicating claiming/mqtt error or some crash, because of which the step 4 failed. The full logs can help understand that, but we do not see any of this in the logs you shared.
@shahpiyushv ,
I don't see that kind of error, but do you think bellow warnning might related?
W (2679) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration
@FlynnMa , these logs surely are incomplete. Even the timestamps are till 2723, which means 2.7 seconds since bootup. There must be some QR code you scanned, right? I do not see that in the logs here. The phy_init warning you mentioned may result in failure of Wi-Fi connection itself, but we see that your node has gone beyond the "Confirming Wi-Fi Connection" step, which means that the connection itself went through fine.
@shahpiyushv please check this,
As you mentioned QR code, I checked my QR setting by idf.py menuconfig
, it is enabled. Don't know why it is not showing up.
Most features was fine until my recent upgrade, All I have done is just checkout v4.4, changed #include <include/esp_wifi.h>
to #include <esp_wifi.h>
@FlynnMa , where exactly did you do the change from #include <include/esp_wifi.h>
to #include <esp_wifi.h>
?
When you captured the above log, did you do a manual provisioning (i.e. without QR code) and provided the pop (a0df7e8b) as mentioned in your log? Did it still proceed till step 4 and yet not print any logs after the efuse logs above?
Using git status
command, can you ensure that you have no custom changes? Moreover, can you ensure that all the submodules in esp-idf and esp-rainmaker are in sync using git submodule update --init --recursive
?
Today I see this error. it is replicable by my side
@FlynnMa , did this eventually work for you? The latest logs point to some hardware issue rather than a software issue since the device itself has disconnected from the serial terminal. Also, we never really got any logs for the original issue which talks about failure at step 4 of provisioning.
Answers checklist.
IDF version.
v4.4
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32-C3-DevKitM-1
Power Supply used.
USB
What is the expected behavior?
confirming user-node associate success
What is the actual behavior?
On my android app, I can see it failed with message
Steps to reproduce.
Debug Logs.
More Information.
No response