espressif / esp-aws-iot

AWS IoT SDK for ESP32 based chipsets
Apache License 2.0
256 stars 153 forks source link

Won't realize a connection to the wifi access point - esp32c6 (CA-318) #204

Closed gwentech closed 8 months ago

gwentech commented 8 months ago

The MTTQ and HTTP examples seem to repeatedly report failing to connect to the access point even though SSID and password are correct in menuconfig and access point admin reports a solid connection with the ESP as a client.

I'm running on an esp32c6 eval board. I'm using sdk 5.1. Am I missing something obvious?

`W (829) wifi:(bf)761:0x600a7cac:0x01b4b4b0
W (829) wifi:(agc)0x600a7128:0xd2178800, min.avgNF:0xce->0xd2(dB), RCalCount:0x178, min.RRssi:0x800(-128.00)
W (829) wifi:(TB)WDEV_PWR_TB_MCS0:19
W (829) wifi:(TB)WDEV_PWR_TB_MCS1:19
W (839) wifi:(TB)WDEV_PWR_TB_MCS2:19
W (839) wifi:(TB)WDEV_PWR_TB_MCS3:19
W (839) wifi:(TB)WDEV_PWR_TB_MCS4:19
W (849) wifi:(TB)WDEV_PWR_TB_MCS5:19
W (849) wifi:(TB)WDEV_PWR_TB_MCS6:18
W (849) wifi:(TB)WDEV_PWR_TB_MCS7:18
W (859) wifi:(TB)WDEV_PWR_TB_MCS8:17
W (859) wifi:(TB)WDEV_PWR_TB_MCS9:15
W (859) wifi:(TB)WDEV_PWR_TB_MCS10:15
W (869) wifi:(TB)WDEV_PWR_TB_MCS11:15
I (869) wifi:11ax coex: WDEVAX_PTI0(0x55777555), WDEVAX_PTI1(0x00003377).

I (879) wifi:mode : sta (40:4c:ca:42:42:80)
I (879) wifi:enable tsf
I (879) example_connect: Connecting to MyAccessPointSSID...
I (889) example_connect: Waiting for IP(s)
I (3289) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (3289) wifi:(connect)dot11_authmode:0x3, pairwise_cipher:0x3, group_cipher:0x3
I (4079) wifi:state: init -> auth (b0)
I (5079) wifi:state: auth -> init (200)
I (5079) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (5079) example_connect: Wi-Fi disconnected, trying to reconnect...
I (7489) example_connect: Wi-Fi disconnected, trying to reconnect...
I (9889) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (9889) wifi:(connect)dot11_authmode:0x3, pairwise_cipher:0x3, group_cipher:0x3
I (9889) wifi:state: init -> auth (b0)
I (10899) wifi:state: auth -> init (200)
I (10899) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (10899) example_connect: Wi-Fi disconnected, trying to reconnect...
I (13309) example_connect: Wi-Fi disconnected, trying to reconnect...
I (15709) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (15709) wifi:(connect)dot11_authmode:0x3, pairwise_cipher:0x3, group_cipher:0x3
I (15709) wifi:state: init -> auth (b0)
I (16719) wifi:state: auth -> init (200)
I (16719) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (16719) example_connect: Wi-Fi disconnected, trying to reconnect...
I (19129) example_connect: Wi-Fi disconnected, trying to reconnect...
I (21529) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (21529) wifi:(connect)dot11_authmode:0x3, pairwise_cipher:0x3, group_cipher:0x3
I (21539) wifi:state: init -> auth (b0)
I (22539) wifi:state: auth -> init (200)
I (22539) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (22539) example_connect: WiFi Connect failed 7 times, stop reconnect.
ESP_ERROR_CHECK failed: esp_err_t 0xffffffff (ESP_FAIL) at 0x42009c44
file: "./main/app_main.c" line 55
func: app_main
expression: example_connect()

abort() was called at PC 0x408067e9 on core 0
Core  0 register dump:
MEPC    : 0x4080062e  RA      : 0x408067f4  SP      : 0x4081d240  GP      : 0x40811ff0
TP      : 0x407f28c0  T0      : 0x37363534  T1      : 0x7271706f  T2      : 0x33323130
gwentech commented 8 months ago

User error. This was due to access point IPv6 settings