求帮忙解决ESP32C3连上wifi后每隔两分钟会断开重连,附上日志

guduzhe
Posts: 10
Joined: Wed Sep 27, 2023 2:32 am

求帮忙解决ESP32C3连上wifi后每隔两分钟会断开重连,附上日志

Postby guduzhe » Thu Sep 28, 2023 3:41 am

[11:28:33.519]收←◆ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5820,len:0x170c
load:0x403cc710,len:0x968
load:0x403ce710,len:0x2f68
entry 0x403cc710
[0;32mI (30) boot: ESP-IDF v5.1.1-dirty 2nd stage bootloader[0m
[0;32mI (30) boot: compile time Sep 28 2023 10:30:44[0m
[0;32mI (30) boot: chip revision: v0.4[0m
[0;32mI (34) boot.esp32c3: SPI Speed : 80MHz[0m
[0;32mI (39) boot.esp32c3: SPI Mode : DIO[0m
[0;32mI (43) boot.esp32c3: SPI Flash Size : 2MB[0m
[0;32mI (48) boot: Enabling RNG early entropy source...[0m
[0;32mI (53) boot: Partition Table:[0m
[0;32mI (57) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (64) boot: 0 nvs WiFi data 01 02 00009000 00006000[0m
[0;32mI (72) boot: 1 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (79) boot: 2 factory factory app 00 00 00010000 00100000[0m
[0;32mI (87) boot: End of partition table[0m
[0;32mI (91) esp_image: segment 0: paddr=00010020 vaddr=3c090020 size=22b18h (142104) map[0m
[0;32mI (122) esp_image: segment 1: paddr=00032b40 vaddr=3fc90800 size=02898h ( 10392) load[0m
[0;32mI (124) esp_image: segment 2: paddr=000353e0 vaddr=40380000 size=0ac38h ( 44088) load[0m
[0;32mI (136) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=8b6a0h (571040) map[0m

[11:28:33.745]收←◆[0;32mI (227) esp_image: segment 4: paddr=000cb6c8 vaddr=4038ac38 size=059e8h ( 23016) load[0m
[0;32mI (237) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (237) boot: Disabling RNG early entropy source...[0m
[0;32mI (249) cpu_start: Unicore app[0m
[0;32mI (249) cpu_start: Pro cpu up.[0m
D (257) clk: RTC_SLOW_CLK calibration value: 3705062[0m
[0;32mI (263) cpu_start: Pro cpu start user code[0m
[0;32mI (263) cpu_start: cpu freq: 160000000 Hz[0m
[0;32mI (263) cpu_start: Application information:[0m
[0;32mI (266) cpu_start: Project name: wifi_station[0m
[0;32mI (271) cpu_start: App version: 1[0m
[0;32mI (275) cpu_start: Compile time: Sep 28 2023 10:30:21[0m
[0;32mI (281) cpu_start: ELF file SHA256: b3f1974edd4c2536...[0m
[0;32mI (287) cpu_start: ESP-IDF: v5.1.1-dirty[0m
[0;32mI (293) cpu_start: Min chip rev: v0.3[0m
[0;32mI (298) cpu_start: Max chip rev: v0.99 [0m
[0;32mI (302) cpu_start: Chip rev: v0.4[0m
D (307) memory_layout: Checking 5 reserved memory ranges:[0m
D (313) memory_layout: Reserved memory range 0x3fc80000 - 0x3fc90800[0m
D (319) memory_layout: Reserved memory range 0x3fc90800 - 0x3fc97140[0m
D (325) memory_layout: Reserved memory range 0x3fcdf060 - 0x3fce0000[0m
D (332) memory_layout: Reserved memory range 0x50000000 - 0x50000010[0m
D (338) memory_layout: Reserved memory range 0x50001fe8 - 0x50002000[0m
D (345) memory_layout: Building list of available memory regions:[0m
D (351) memory_layout: Available memory region 0x3fc97140 - 0x3fca0000[0m
D (357) memory_layout: Available memory region 0x3fca0000 - 0x3fcc0000[0m
D (364) memory_layout: Available memory region 0x3fcc0000 - 0x3fcdc710[0m
D (371) memory_layout: Available memory region 0x3fcdc710 - 0x3fcdf060[0m
D (377) memory_layout: Available memory region 0x50000010 - 0x50001fe8[0m
[0;32mI (384) heap_init: Initializing. RAM available for dynamic allocation:[0m
D (391) heap_init: New heap initialised at 0x3fc97140[0m
[0;32mI (396) heap_init: At 3FC97140 len 000455D0 (277 KiB): DRAM[0m
[0;32mI (402) heap_init: At 3FCDC710 len 00002950 (10 KiB): STACK/DRAM[0m
D (409) heap_init: New heap initialised at 0x50000010[0m
[0;32mI (414) heap_init: At 50000010 len 00001FD8 (7 KiB): RTCRAM[0m
D (421) intr_alloc: Connected src 27 to int 2 (cpu 0)[0m
D (426) spi_flash: trying chip: issi[0m
D (429) spi_flash: trying chip: gd[0m
D (433) spi_flash: trying chip: mxic[0m
D (436) spi_flash: trying chip: winbond[0m
D (440) spi_flash: trying chip: boya[0m
D (444) spi_flash: trying chip: th[0m
D (447) spi_flash: trying chip: generic[0m
[0;32mI (451) spi_flash: detected chip: generic[0m
[0;32mI (456) spi_flash: flash io: dio[0m
[0;33mW (460) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.[0m
D (473) cpu_start: calling init function: 0x42076c0e[0m
D (478) cpu_start: calling init function: 0x42076b66[0m
D (483) cpu_start: calling init function: 0x42076976[0m
D (488) cpu_start: calling init function: 0x420764b4[0m
D (493) cpu_start: calling init function: 0x42044b4c[0m
D (498) efuse: In EFUSE_BLK2__DATA4_REG is used 2 bits starting with 0 bit[0m
D (505) efuse: In EFUSE_BLK2__DATA5_REG is used 10 bits starting with 18 bit[0m
D (512) cpu_start: calling init function: 0x42014346[0m
D (517) cpu_start: calling init function: 0x4200002a[0m
D (522) cpu_start: calling init function: 0x420058dc on core: 0[0m
D (529) intr_alloc: Connected src 39 to int 3 (cpu 0)[0m
D (533) cpu_start: calling init function: 0x4200329a on core: 0[0m
[0;32mI (540) sleep: Configure to isolate all GPIO pins in sleep state[0m
[0;32mI (546) sleep: Enable automatic switching of GPIO sleep configuration[0m
D (553) cpu_start: calling init function: 0x42001364 on core: 0[0m
D (559) intr_alloc: Connected src 50 to int 4 (cpu 0)[0m
[0;32mI (564) app_start: Starting scheduler on CPU0[0m
D (569) intr_alloc: Connected src 37 to int 7 (cpu 0)[0m
[0;32mI (569) main_task: Started on CPU0[0m
D (569) heap_init: New heap initialised at 0x3fcdc710[0m
D (569) intr_alloc: Connected src 33 to int 9 (cpu 0)[0m
[0;32mI (579) main_task: Calling app_main()[0m
[0;32mI (589) wifi station: ESP_WIFI_MODE_STA[0m
D (589) esp_netif_lwip: LwIP stack has been initialized[0m
D (589) esp_netif_lwip: esp-netif has been successfully initialized[0m
D (599) event: running task for loop 0x3fc9c5c8[0m
D (599) event: created task for loop 0x3fc9c5c8[0m
D (609) event: created event loop 0x3fc9c5c8[0m
D (609) esp_netif_objects: esp_netif_add_to_list 0x3fc9d4f0[0m
D (619) esp_netif_objects: esp_netif_add_to_list netif added successfully (total netifs: 1)[0m
D (629) esp_netif_lwip: check: remote, if=0x0 fn=0x420109c2
[0m
D (629) esp_netif_lwip: call api in lwip: ret=0x0, give sem[0m
[0;32mI (639) pp: pp rom version: 9387209[0m
[0;32mI (639) net80211: net80211 rom version: 9387209[0m
D (649) nvs: nvs_open_from_partition misc 1[0m
I (659) wifi:wifi driver task: 3fc9feec, prio:23, stack:6656, core=0
D (659) efuse: In EFUSE_BLK1__DATA1_REG is used 8 bits starting with 8 bit[0m
D (669) efuse: In EFUSE_BLK1__DATA1_REG is used 8 bits starting with 0 bit[0m
D (669) efuse: In EFUSE_BLK1__DATA0_REG is used 8 bits starting with 24 bit[0m
D (679) efuse: In EFUSE_BLK1__DATA0_REG is used 8 bits starting with 16 bit[0m
D (689) efuse: In EFUSE_BLK1__DATA0_REG is used 8 bits starting with 8 bit[0m
D (689) efuse: In EFUSE_BLK1__DATA0_REG is used 8 bits starting with 0 bit[0m
D (699) nvs: nvs_open_from_partition nvs.net80211 1[0m
D (709) nvs: nvs_get opmode 1[0m
D (709) nvs: nvs_get_str_or_blob sta.ssid[0m
D (709) nvs: nvs_get sta.authmode 1[0m
D (719) nvs: nvs_get_str_or_blob sta.pswd[0m
D (719) nvs: nvs_get_str_or_blob sta.pmk[0m
D (719) nvs: nvs_get sta.chan 1[0m
D (729) nvs: nvs_get auto.conn 1[0m
D (729) nvs: nvs_get bssid.set 1[0m
D (729) nvs: nvs_get_str_or_blob sta.bssid[0m
D (739) nvs: nvs_get sta.lis_intval 2[0m
D (739) nvs: nvs_get sta.phym 1[0m
D (749) nvs: nvs_get sta.phybw 1[0m
D (749) nvs: nvs_get_str_or_blob sta.apsw[0m
D (749) nvs: nvs_get_str_or_blob sta.apinfo[0m
D (759) nvs: nvs_get sta.scan_method 1[0m
D (759) nvs: nvs_get sta.sort_method 1[0m
D (759) nvs: nvs_get sta.minrssi 1[0m
D (769) nvs: nvs_get sta.minauth 1[0m
D (769) nvs: nvs_get sta.pmf_e 1[0m
D (769) nvs: nvs_get sta.pmf_r 1[0m
D (779) nvs: nvs_get sta.btm_e 1[0m
D (779) nvs: nvs_get sta.rrm_e 1[0m
D (779) nvs: nvs_get sta.mbo_e 1[0m
D (789) nvs: nvs_get_str_or_blob ap.ssid[0m
D (789) nvs: nvs_get_str_or_blob ap.passwd[0m
D (799) nvs: nvs_get_str_or_blob ap.pmk[0m
D (799) nvs: nvs_get ap.chan 1[0m
D (799) nvs: nvs_get ap.authmode 1[0m
D (809) nvs: nvs_get ap.hidden 1[0m
D (809) nvs: nvs_get ap.max.conn 1[0m
D (809) nvs: nvs_get bcn.interval 2[0m
D (819) nvs: nvs_get ap.phym 1[0m
D (819) nvs: nvs_get ap.phybw 1[0m
D (819) nvs: nvs_get ap.sndchan 1[0m
D (829) nvs: nvs_get ap.pmf_e 1[0m
D (829) nvs: nvs_get ap.pmf_r 1[0m
D (829) nvs: nvs_get ap.p_cipher 1[0m
D (839) nvs: nvs_get lorate 1[0m
D (839) nvs: nvs_get_str_or_blob country[0m
D (839) nvs: nvs_get ap.ftm_r 1[0m
D (849) nvs: nvs_get sta.ft 1[0m
D (849) nvs: nvs_get sta.owe 1[0m
D (849) nvs: nvs_get sta.trans_d 1[0m
D (859) nvs: nvs_get sta.sae_h2e 1[0m
D (859) nvs: nvs_get sta.sae_pk_mode 1[0m
D (859) nvs: nvs_get sta.bss_retry 1[0m
D (869) nvs: nvs_get_str_or_blob sta.owe_data[0m
D (869) nvs: nvs_get sta.he_dcm 1[0m
D (879) nvs: nvs_get sta.he_dcm_c_tx 1[0m
D (879) nvs: nvs_get sta.he_dcm_c_rx 1[0m
D (879) nvs: nvs_get sta.he_mcs9_d 1[0m
D (889) nvs: nvs_get sta.he_su_b_d 1[0m
D (889) nvs: nvs_get sta.he_su_b_f_d 1[0m
D (889) nvs: nvs_get sta.he_mu_b_f_d 1[0m
D (899) nvs: nvs_get sta.he_cqi_f_d 1[0m
D (899) nvs: nvs_get_str_or_blob sta.sae_h2e_id[0m
D (909) nvs: nvs_get ap.sae_h2e 1[0m
D (909) nvs: nvs_get_str_or_blob ap.pmk_info[0m
D (909) nvs: nvs_get nan.phym 1[0m
D (919) nvs: nvs_set ap.sndchan 1 1[0m
I (919) wifi:wifi firmware version: ce9244d
I (919) wifi:wifi certification version: v7.0
I (929) wifi:config NVS flash: enabled
I (929) wifi:config nano formating: disabled
I (939) wifi:Init data frame dynamic rx buffer num: 32
I (939) wifi:Init management frame dynamic rx buffer num: 32
I (949) wifi:Init management short buffer num: 32
I (949) wifi:Init dynamic tx buffer num: 32
I (949) wifi:Init static tx FG buffer num: 2
I (959) wifi:Init static rx buffer size: 1600
I (959) wifi:Init static rx buffer num: 10
I (969) wifi:Init dynamic rx buffer num: 32
[0;32mI (969) wifi_init: rx ba win: 6[0m
[0;32mI (969) wifi_init: tcpip mbox: 32[0m
[0;32mI (979) wifi_init: udp mbox: 6[0m
[0;32mI (979) wifi_init: tcp mbox: 6[0m
[0;32mI (989) wifi_init: tcp tx win: 5744[0m
[0;32mI (989) wifi_init: tcp rx win: 5744[0m
[0;32mI (989) wifi_init: tcp mss: 1440[0m
[0;32mI (999) wifi_init: WiFi IRAM OP enabled[0m
[0;32mI (999) wifi_init: WiFi RX IRAM OP enabled[0m
D (1009) nvs: nvs_get opmode 1[0m
D (1009) wifi:clear blacklist
D (1009) nvs: nvs_set_blob sta.ssid 36[0m
D (1029) nvs: nvs_set_blob sta.pswd 65[0m
D (1029) nvs: nvs_set bssid.set 1 0[0m
D (1029) nvs: nvs_set sta.lis_intval 2 3[0m
D (1029) nvs: nvs_set sta.chan 1 0[0m
D (1029) nvs: nvs_set sta.scan_method 1 0[0m
D (1039) nvs: nvs_set sta.sort_method 1 0[0m
D (1039) nvs: nvs_set sta.minrssi 1 -127[0m
D (1039) nvs: nvs_set sta.minauth 1 3[0m
D (1049) nvs: nvs_set_blob sta.apsw 2[0m
D (1059) nvs: nvs_set sta.pmf_e 1 1[0m
D (1059) nvs: nvs_set sta.pmf_r 1 0[0m
D (1059) nvs: nvs_set sta.rrm_e 1 0[0m
D (1059) nvs: nvs_set sta.btm_e 1 0[0m
D (1069) nvs: nvs_set sta.mbo_e 1 0[0m
D (1069) nvs: nvs_set sta.ft 1 0[0m
D (1069) nvs: nvs_set sta.owe 1 0[0m
D (1079) nvs: nvs_set sta.bss_retry 1 0[0m
D (1079) nvs: nvs_set sta.trans_d 1 0[0m
D (1079) nvs: nvs_set sta.sae_h2e 1 2[0m
D (1089) nvs: nvs_set sta.sae_pk_mode 1 0[0m
D (1089) nvs: nvs_set_blob sta.sae_h2e_id 32[0m
D (1099) nvs: nvs_set_blob sta.apinfo 700[0m
[0;32mI (1099) phy_init: phy_version 970,1856f88,May 10 2023,17:44:12[0m
D (1109) phy_init: loading PHY init data from application binary[0m
D (1109) nvs: nvs_open_from_partition phy 0[0m
D (1119) nvs: nvs_get cal_version 4[0m
D (1119) nvs: nvs_get_str_or_blob cal_mac[0m
D (1119) efuse: In EFUSE_BLK1__DATA1_REG is used 8 bits starting with 8 bit[0m
D (1129) efuse: In EFUSE_BLK1__DATA1_REG is used 8 bits starting with 0 bit[0m
D (1139) efuse: In EFUSE_BLK1__DATA0_REG is used 8 bits starting with 24 bit[0m
D (1149) efuse: In EFUSE_BLK1__DATA0_REG is used 8 bits starting with 16 bit[0m
D (1149) efuse: In EFUSE_BLK1__DATA0_REG is used 8 bits starting with 8 bit[0m
D (1159) efuse: In EFUSE_BLK1__DATA0_REG is used 8 bits starting with 0 bit[0m
D (1169) nvs: nvs_get_str_or_blob cal_data[0m
D (1169) nvs: nvs_close 3[0m
D (1169) efuse: In EFUSE_BLK1__DATA1_REG is used 8 bits starting with 8 bit[0m
D (1179) efuse: In EFUSE_BLK1__DATA1_REG is used 8 bits starting with 0 bit[0m
D (1189) efuse: In EFUSE_BLK1__DATA0_REG is used 8 bits starting with 24 bit[0m
D (1189) efuse: In EFUSE_BLK1__DATA0_REG is used 8 bits starting with 16 bit[0m
D (1199) efuse: In EFUSE_BLK1__DATA0_REG is used 8 bits starting with 8 bit[0m
D (1209) efuse: In EFUSE_BLK1__DATA0_REG is used 8 bits starting with 0 bit[0m
D (1229) temperature_sensor: range changed, change to index 2[0m
D (1259) wifi:filter: set rx policy=0
I (1259) wifi:mode : sta (ec:da:3b:ab:07:18)
I (1259) wifi:enable tsf
D (1259) wifi:filter: set rx policy=1
D (1259) wifi:connect status 0 -> 0
D (1259) event: running post WIFI_EVENT:2 with handler 0x42014788 and context 0x3fc9d744 on loop 0x3fc9c5c8[0m
D (1269) wifi_init_default: wifi_start esp-netif:0x3fc9d4f0 event-id2[0m
D (1279) wifi_init_default: WIFI mac address: ec da 3b ab 7 18[0m
D (1279) esp_netif_lwip: check: remote, if=0x3fc9d4f0 fn=0x420109e2
[0m
D (1289) esp_netif_lwip: call api in lwip: ret=0x0, give sem[0m
D (1299) esp_netif_handlers: esp_netif action has started with netif0x3fc9d4f0 from event_id=2[0m
D (1299) esp_netif_lwip: check: remote, if=0x3fc9d4f0 fn=0x42011456
[0m
D (1309) esp_netif_lwip: esp_netif_start_api 0x3fc9d4f0[0m
D (1319) esp_netif_lwip: esp_netif_get_hostname esp_netif:0x3fc9d4f0[0m
D (1319) esp_netif_lwip: check: local, if=0x3fc9d4f0 fn=0x420121c4
[0m
D (1329) esp_netif_lwip: esp_netif_update_default_netif_lwip 0x3fc9d4f0[0m
D (1339) esp_netif_lwip: call api in lwip: ret=0x0, give sem[0m
D (1339) event: running post WIFI_EVENT:2 with handler 0x42007f2e and context 0x3fca55f8 on loop 0x3fc9c5c8[0m
D (1349) wifi:Start wifi connect
D (1349) wifi:connect status 0 -> 0
D (1359) wifi:connect chan=0
D (1359) wifi:first chan=6
D (1359) wifi:connect status 0 -> 1
D (1369) wifi:filter: set rx policy=3
D (1369) wifi:clear scan ap list
D (1369) wifi:start scan: type=0x50f, priority=2, cb=0x42036826, arg=0x0, ss_state=0x1, time=1382136, index=0
D (1379) wifi:perform scan: ss_state=0x9, chan<6,0>, dur<0,120>
[0;32mI (1389) wifi station: wifi_init_sta finished.[0m
D (1389) wifi:rsn valid: gcipher=3 ucipher=3 akm=5

D (1399) wifi:profile match: ss_state=0x7
D (1399) wifi:scan end: arg=0x0, status=0, ss_state=0x7
D (1409) wifi:find first mathched ssid, scan done
D (1409) wifi:filter: set rx policy=4
D (1409) wifi:first chan=1
D (1419) wifi:handoff_cb: status=0
D (1419) wifi:ap found, mac=4e:1d:96:d8:a5:5e
D (1419) wifi:new_bss=0x3fc94a40, cur_bss=0x0, new_chan=<6,0>, cur_chan=1
D (1429) wifi:filter: set rx policy=5
I (1429) wifi:new:<6,0>, old:<1,0>, ap:<255,255>, sta:<6,0>, prof:1
D (1439) wifi:connect_op: status=0, auth=5, cipher=3
D (1439) wifi:auth mode is not none
D (1449) wifi:connect_bss: auth=1, reconnect=0
I (1449) wifi:state: init -> auth (b0)
D (1459) wifi:start 1s AUTH timer
D (1459) wifi:clear scan ap list
D (1469) wifi:recv auth: seq=2, status=0
I (1469) wifi:state: auth -> assoc (0)
D (1469) wifi:restart connect 1s timer for assoc
D (1469) wifi:recv assoc: type=0x10
D (1479) wifi:filter: set rx policy=6
I (1479) wifi:state: assoc -> run (10)
D (1479) wifi:start 10s connect timer for 4 way handshake
D (1489) gdma: new group (0) at 0x3fca5fac[0m
D (1489) gdma: new pair (0,0) at 0x3fca5fe0[0m
D (1499) gdma: new tx channel (0,0) at 0x3fca5f78[0m
D (1499) gdma: new rx channel (0,0) at 0x3fca6000[0m
D (1509) gdma: tx channel (0,0), (1:0) bytes aligned, burst enabled[0m
D (1509) gdma: rx channel (0,0), (1:0) bytes aligned, burst disabled[0m
I (1529) wifi:connected with EESP123456, aid = 6, channel 6, BW20, bssid = 4e:1d:96:d8:a5:5e
I (1529) wifi:security: WPA2-PSK, phy: bgn, rssi: -23
D (1529) wifi:remove all except 4e:1d:96:d8:a5:5e from rc list
D (1539) wifi:clear blacklist
D (1539) nvs: nvs_set sta.chan 1 6[0m
D (1549) nvs: nvs_set_blob sta.apinfo 700[0m
D (1549) wifi:filter: set rx policy=7
I (1549) wifi:pm start, type: 1

I (1549) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 25000, mt_pti: 0, mt_time: 10000
D (1559) wifi:Send sta connected event
D (1569) wifi:connect status 1 -> 5
D (1569) wifi:obss scan is disabled
D (1569) wifi:start obss scan: obss scan is stopped
D (1579) event: running post WIFI_EVENT:4 with handler 0x420147bc and context 0x3fc9d7a4 on loop 0x3fc9c5c8[0m
I (1579) wifi:AP's beacon interval = 102400 us, DTIM period = 3
D (1589) wifi:set max rate: from <rate=130, phy=3, sig=0> to <rate=144, phy=3 sig=0>
D (1599) wifi:sig_b=1, sig_g=0, sig_n=0, max_b=0, max_g=108, max_n=144
D (1609) wifi:update trc
D (1609) esp_netif_handlers: esp_netif action connected with netif0x3fc9d4f0 from event_id=4[0m
D (1619) esp_netif_lwip: check: remote, if=0x3fc9d4f0 fn=0x4201197a
[0m
D (1619) esp_netif_lwip: esp_netif_up_api esp_netif:0x3fc9d4f0[0m
D (1629) esp_netif_lwip: check: local, if=0x3fc9d4f0 fn=0x420121c4
[0m
D (1629) esp_netif_lwip: esp_netif_update_default_netif_lwip 0x3fc9d4f0[0m
D (1639) esp_netif_lwip: call api in lwip: ret=0x0, give sem[0m
D (1649) esp_netif_lwip: check: remote, if=0x3fc9d4f0 fn=0x420117b6
[0m
D (1649) esp_netif_lwip: esp_netif_dhcpc_start_api esp_netif:0x3fc9d4f0[0m
D (1659) esp_netif_lwip: esp_netif_start_ip_lost_timer esp_netif:0x3fc9d4f0[0m
D (1669) esp_netif_lwip: if0x3fc9d4f0 start ip lost tmr: no need start because netif=0x3fc9d574 interval=120 ip=0[0m
D (1679) esp_netif_lwip: starting dhcp client[0m
D (1679) esp_netif_lwip: call api in lwip: ret=0x0, give sem[0m
D (1689) event: running post WIFI_EVENT:4 with handler 0x42007f2e and context 0x3fca55f8 on loop 0x3fc9c5c8[0m

[11:28:36.204]收←◆D (2679) esp_netif_lwip: esp_netif_internal_dhcpc_cb lwip-netif:0x3fc9d574[0m
D (2679) esp_netif_lwip: if0x3fc9d4f0 ip changed=1[0m
D (2679) event: running post IP_EVENT:0 with handler 0x4201451e and context 0x3fc9d878 on loop 0x3fc9c5c8[0m
D (2689) wifi_init_default: Got IP wifi default handler entered[0m
D (2689) esp_netif_handlers: esp_netif action got_ip with netif0x3fc9d4f0 from event_id=0[0m
[0;32mI (2699) esp_netif_handlers: sta ip: 172.16.63.3, mask: 255.255.0.0, gw: 172.16.63.1[0m
D (2709) event: running post IP_EVENT:0 with handler 0x42007f2e and context 0x3fca5618 on loop 0x3fc9c5c8[0m
[0;32mI (2719) wifi station: got ip:172.16.63.3[0m
[0;32mI (2719) wifi station: Yconnected to ap SSID:EESP123456 password:12345678[0m
[0;32mI (2729) main_task: Returned from app_main()[0m

[11:30:35.119]收←◆D (121599) wifi:recv deauth, reason=0x0
I (121599) wifi:state: run -> init (c0)
D (121599) wifi:recv deauth/disassoc, stop beacon/connect timer
D (121599) wifi:connect status 5 -> 4
D (121599) wifi:sta leave
I (121599) wifi:pm stop, total sleep time: 116257899 us / 120049479 us

D (121609) wifi:stop CSA timer
D (121609) wifi:remove 4e:1d:96:d8:a5:5e from rc list
I (121619) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
D (121619) wifi:filter: set rx policy=8
D (121629) wifi:Send disconnect event, reason=0, AP number=0
D (121629) event: running post WIFI_EVENT:5 with handler 0x420147a2 and context 0x3fc9d7d4 on loop 0x3fc9c5c8[0m
D (121639) esp_netif_handlers: esp_netif action disconnected with netif0x3fc9d4f0 from event_id=5[0m
D (121649) esp_netif_lwip: check: remote, if=0x3fc9d4f0 fn=0x420119f0
[0m
D (121659) esp_netif_lwip: esp_netif_down_api esp_netif:0x3fc9d4f0[0m
D (121659) esp_netif_lwip: esp_netif_internal_dhcpc_cb lwip-netif:0x3fc9d574[0m
D (121669) esp_netif_lwip: esp_netif_start_ip_lost_timer esp_netif:0x3fc9d4f0[0m
D (121679) esp_netif_lwip: if0x3fc9d4f0 start ip lost tmr: interval=120[0m
D (121679) esp_netif_lwip: esp_netif_start_ip_lost_timer esp_netif:0x3fc9d4f0[0m
D (121689) esp_netif_lwip: if0x3fc9d4f0 start ip lost tmr: already started[0m
D (121699) esp_netif_lwip: check: local, if=0x3fc9d4f0 fn=0x420121c4
[0m
D (121709) esp_netif_lwip: esp_netif_update_default_netif_lwip 0x3fc9d4f0[0m
D (121709) esp_netif_lwip: call api in lwip: ret=0x0, give sem[0m
D (121719) event: running post WIFI_EVENT:5 with handler 0x42007f2e and context 0x3fca55f8 on loop 0x3fc9c5c8[0m
[0;31mE (121729) wifi station: Disconnect reason : 0[0m
D (121729) wifi:Start wifi connect
D (121739) wifi:connect status 4 -> 0
D (121739) wifi:connect chan=0
D (121739) wifi:first chan=6
D (121749) wifi:connect status 0 -> 1
D (121749) wifi:filter: set rx policy=3
D (121749) wifi:clear scan ap list
D (121759) wifi:start scan: type=0x50f, priority=2, cb=0x42036826, arg=0x0, ss_state=0x1, time=121765255, index=0
D (121769) wifi:perform scan: ss_state=0x9, chan<6,0>, dur<0,120>
[0;32mI (121769) wifi station: retry to connect to the AP[0m
[0;32mI (121779) wifi station: connect to the AP fail[0m
D (121769) wifi:rsn valid: gcipher=3 ucipher=3 akm=5

D (121789) wifi:profile match: ss_state=0x7
D (121789) wifi:scan end: arg=0x0, status=0, ss_state=0x7
D (121799) wifi:find first mathched ssid, scan done
D (121799) wifi:filter: set rx policy=4
D (121799) wifi:first chan=1
D (121809) wifi:handoff_cb: status=0
D (121809) wifi:ap found, mac=4e:1d:96:d8:a5:5e
D (121809) wifi:new_bss=0x3fc94a40, cur_bss=0x0, new_chan=<6,0>, cur_chan=6
D (121819) wifi:filter: set rx policy=5
I (121819) wifi:new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
D (121829) wifi:connect_op: status=0, auth=5, cipher=3
D (121839) wifi:auth mode is not none
D (121839) wifi:connect_bss: auth=1, reconnect=0
I (121839) wifi:state: init -> auth (b0)
D (121849) wifi:start 1s AUTH timer
D (121849) wifi:clear scan ap list
D (121859) wifi:recv auth: seq=2, status=0
I (121859) wifi:state: auth -> assoc (0)
D (121859) wifi:restart connect 1s timer for assoc
D (121869) wifi:recv assoc: type=0x10
D (121869) wifi:filter: set rx policy=6
I (121869) wifi:state: assoc -> run (10)
D (121879) wifi:start 10s connect timer for 4 way handshake
I (121889) wifi:connected with EESP123456, aid = 7, channel 6, BW20, bssid = 4e:1d:96:d8:a5:5e
I (121889) wifi:security: WPA2-PSK, phy: bgn, rssi: -22
D (121889) wifi:remove all except 4e:1d:96:d8:a5:5e from rc list
D (121899) wifi:clear blacklist
D (121899) nvs: nvs_set sta.chan 1 6[0m
D (121909) nvs: nvs_set_blob sta.apinfo 700[0m
D (121909) wifi:filter: set rx policy=7
I (121909) wifi:pm start, type: 1

I (121919) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 25000, mt_pti: 0, mt_time: 10000
D (121929) wifi:Send sta connected event
D (121929) wifi:connect status 1 -> 5
D (121929) wifi:obss scan is disabled
D (121939) wifi:start obss scan: obss scan is stopped
I (121939) wifi:AP's beacon interval = 102400 us, DTIM period = 3
D (121949) wifi:set max rate: from <rate=130, phy=3, sig=0> to <rate=144, phy=3 sig=0>
D (121949) wifi:sig_b=1, sig_g=0, sig_n=0, max_b=0, max_g=108, max_n=144
D (121959) wifi:update trc
D (121959) event: running post WIFI_EVENT:4 with handler 0x420147bc and context 0x3fc9d7a4 on loop 0x3fc9c5c8[0m
D (121969) esp_netif_handlers: esp_netif action connected with netif0x3fc9d4f0 from event_id=4[0m
D (121979) esp_netif_lwip: check: remote, if=0x3fc9d4f0 fn=0x4201197a
[0m
D (121989) esp_netif_lwip: esp_netif_up_api esp_netif:0x3fc9d4f0[0m
D (121999) esp_netif_lwip: check: local, if=0x3fc9d4f0 fn=0x420121c4
[0m
D (121999) esp_netif_lwip: esp_netif_update_default_netif_lwip 0x3fc9d4f0[0m
D (122009) esp_netif_lwip: call api in lwip: ret=0x0, give sem[0m
D (122009) esp_netif_lwip: check: remote, if=0x3fc9d4f0 fn=0x420117b6
[0m
D (122019) esp_netif_lwip: esp_netif_dhcpc_start_api esp_netif:0x3fc9d4f0[0m
D (122029) esp_netif_lwip: esp_netif_start_ip_lost_timer esp_netif:0x3fc9d4f0[0m
D (122039) esp_netif_lwip: if0x3fc9d4f0 start ip lost tmr: already started[0m
D (122039) esp_netif_lwip: starting dhcp client[0m
D (122049) esp_netif_lwip: call api in lwip: ret=0x0, give sem[0m
D (122049) event: running post WIFI_EVENT:4 with handler 0x42007f2e and context 0x3fca55f8 on loop 0x3fc9c5c8[0m

[11:30:36.571]收←◆D (123049) esp_netif_lwip: esp_netif_internal_dhcpc_cb lwip-netif:0x3fc9d574[0m
D (123049) esp_netif_lwip: if0x3fc9d4f0 ip changed=0[0m
D (123049) event: running post IP_EVENT:0 with handler 0x4201451e and context 0x3fc9d878 on loop 0x3fc9c5c8[0m
D (123059) wifi_init_default: Got IP wifi default handler entered[0m
D (123059) esp_netif_handlers: esp_netif action got_ip with netif0x3fc9d4f0 from event_id=0[0m
[0;32mI (123069) esp_netif_handlers: sta ip: 172.16.63.3, mask: 255.255.0.0, gw: 172.16.63.1[0m
D (123079) event: running post IP_EVENT:0 with handler 0x42007f2e and context 0x3fca5618 on loop 0x3fc9c5c8[0m
[0;32mI (123089) wifi station: got ip:172.16.63.3[0m

日志如上,实在没看明白什么原因,麻烦看懂的人指教一下怎么解决,谢谢

ESP_Penguin_Helper
Posts: 156
Joined: Tue Jul 11, 2023 6:55 am

Re: 求帮忙解决ESP32C3连上wifi后每隔两分钟会断开重连,附上日志

Postby ESP_Penguin_Helper » Thu Sep 28, 2023 9:02 am

请问硬件是自己画的板子吗?运行的是 IDF 中的 STA 示例还是自己写的代码?

guduzhe
Posts: 10
Joined: Wed Sep 27, 2023 2:32 am

Re: 求帮忙解决ESP32C3连上wifi后每隔两分钟会断开重连,附上日志

Postby guduzhe » Thu Sep 28, 2023 9:14 am

淘宝买的开发板。IDF的STATION例程

guduzhe
Posts: 10
Joined: Wed Sep 27, 2023 2:32 am

Re: 求帮忙解决ESP32C3连上wifi后每隔两分钟会断开重连,附上日志

Postby guduzhe » Fri Oct 06, 2023 7:16 am

guduzhe wrote:
Thu Sep 28, 2023 9:14 am
淘宝买的开发板。IDF的STATION例程
淘宝买的开发板。IDF的STATION例程

guduzhe
Posts: 10
Joined: Wed Sep 27, 2023 2:32 am

Re: 求帮忙解决ESP32C3连上wifi后每隔两分钟会断开重连,附上日志

Postby guduzhe » Fri Oct 06, 2023 7:17 am

ESP_Penguin_Helper wrote:
Thu Sep 28, 2023 9:02 am
请问硬件是自己画的板子吗?运行的是 IDF 中的 STA 示例还是自己写的代码?
淘宝买的开发板。IDF的STATION例程

ESP_Penguin_Helper
Posts: 156
Joined: Tue Jul 11, 2023 6:55 am

Re: 求帮忙解决ESP32C3连上wifi后每隔两分钟会断开重连,附上日志

Postby ESP_Penguin_Helper » Sat Oct 07, 2023 2:40 am

你好,我看到你的 AP 向 STA 发送了deauth 包,导致 STA 被强制断开与 AP 的连接。

Code: Select all

[11:30:35.119]收←◆D (121599) wifi:recv deauth, reason=0x0
I (121599) wifi:state: run -> init (c0)
D (121599) wifi:recv deauth/disassoc, stop beacon/connect timer
D (121599) wifi:connect status 5 -> 4
D (121599) wifi:sta leave
这种情况需要通过抓包来进行具体分析,参考抓包教程:https://docs.espressif.com/projects/esp ... guide.html

或者你可以更换一个 AP 再进行连接试一下。

guduzhe
Posts: 10
Joined: Wed Sep 27, 2023 2:32 am

Re: 求帮忙解决ESP32C3连上wifi后每隔两分钟会断开重连,附上日志

Postby guduzhe » Sat Oct 07, 2023 6:39 am

没人吗

guduzhe
Posts: 10
Joined: Wed Sep 27, 2023 2:32 am

Re: 求帮忙解决ESP32C3连上wifi后每隔两分钟会断开重连,附上日志

Postby guduzhe » Sat Oct 07, 2023 7:50 am

ESP_Penguin_Helper wrote:
Sat Oct 07, 2023 2:40 am
你好,我看到你的 AP 向 STA 发送了deauth 包,导致 STA 被强制断开与 AP 的连接。

Code: Select all

[11:30:35.119]收←◆D (121599) wifi:recv deauth, reason=0x0
I (121599) wifi:state: run -> init (c0)
D (121599) wifi:recv deauth/disassoc, stop beacon/connect timer
D (121599) wifi:connect status 5 -> 4
D (121599) wifi:sta leave
这种情况需要通过抓包来进行具体分析,参考抓包教程:https://docs.espressif.com/projects/esp ... guide.html

或者你可以更换一个 AP 再进行连接试一下。
为什么 AP 向 STA 发送了deauth 包?我试过公司和家里的路由器,都会有这情况,是路由器的设置问题吗?能关掉这个吗?

ESP_Penguin_Helper
Posts: 156
Joined: Tue Jul 11, 2023 6:55 am

Re: 求帮忙解决ESP32C3连上wifi后每隔两分钟会断开重连,附上日志

Postby ESP_Penguin_Helper » Sat Oct 07, 2023 10:38 am

AP 向 STA 发送了 Deauth 包是出于安全或管理目的,而不是随意的断开连接。所以需要使用抓包软件抓取到 Deauth 包后,检查 Deauth 原因代码。这个代码将提供有关为何发送 Deauth 包的原因的信息。

还有,为了排除硬件故障原因,建议你换一个开发板尝试一下是否问题依然存在。

guduzhe
Posts: 10
Joined: Wed Sep 27, 2023 2:32 am

Re: 求帮忙解决ESP32C3连上wifi后每隔两分钟会断开重连,附上日志

Postby guduzhe » Sun Oct 08, 2023 7:26 am

ESP_Penguin_Helper wrote:
Sat Oct 07, 2023 10:38 am
AP 向 STA 发送了 Deauth 包是出于安全或管理目的,而不是随意的断开连接。所以需要使用抓包软件抓取到 Deauth 包后,检查 Deauth 原因代码。这个代码将提供有关为何发送 Deauth 包的原因的信息。

还有,为了排除硬件故障原因,建议你换一个开发板尝试一下是否问题依然存在。
换一个开发板问题还是一样。但是连接手机热点就不会收到Deauth包,是路由器的问题吗?为什么网上没人遇到这个问题的?

Who is online

Users browsing this forum: No registered users and 216 guests