Connecting to wifi occasionally failing

srosca93
Posts: 2
Joined: Fri Mar 24, 2017 2:14 pm

Connecting to wifi occasionally failing

Postby srosca93 » Fri Mar 24, 2017 2:41 pm

I am running the latest AT firmware on my ESP32. Sometimes when I run the AT+CWJAP command, I get

Code: Select all

AT+CWJAP="invisible","12345678"

+CWJAP:0

ERROR
On the OS output from TXD0 and RXD0 I see

Code: Select all

I (35758) wifi: state: init -> auth (b0)
I (35763) wifi: state: auth -> assoc (0)
I (35775) wifi: state: assoc -> run (10)
I (35824) wifi: connected with invisible, channel 1
I (37237) wifi: state: run -> init (0)
I (37238) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I should note that this happens most often right after flashing the device. After several tries, it will comeback successful. Once it comes back successful once, it fails much less often.

Following is the full output from the ESP32 booting

Code: Select all

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
Falling back to built-in command interpreter.
OK
>ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0008,len:8
load:0x3fff0010,len:3384
load:0x40078000,len:7428
load:0x40080000,len:252
entry 0x40080034
.[0;32mI (43) boot: ESP-IDF v2.0-rc1-296-g02fdf82 2nd stage bootloader.[0m
.[0;32mI (43) boot: compile time 16:20:26.[0m
.[0;32mI (44) boot: Enabling RNG early entropy source....[0m
.[0;32mI (64) boot: SPI Speed      : 40MHz.[0m
.[0;32mI (76) boot: SPI Mode       : DIO.[0m
.[0;32mI (89) boot: SPI Flash Size : 4MB.[0m
.[0;32mI (101) boot: Partition Table:.[0m
.[0;32mI (112) boot: ## Label            Usage          Type ST Offset   Length.[0m
.[0;32mI (135) boot:  0 phy_init         RF data          01 01 0000f000 00001000.[0m
.[0;32mI (158) boot:  1 ota_0            OTA app          00 10 00010000 000ea000.[0m
.[0;32mI (182) boot:  2 nvs              WiFi data        01 02 000fa000 00016000.[0m
.[0;32mI (205) boot:  3 ota_1            OTA app          00 11 00110000 000ea000.[0m
.[0;32mI (228) boot:  4 otadata          OTA data         01 00 001fd000 00003000.[0m
.[0;32mI (252) boot: End of partition table.[0m
.[0;32mI (265) boot: Disabling RNG early entropy source....[0m
.[0;32mI (282) boot: Loading app partition at offset 00010000.[0m
.[0;32mI (1302) boot: segment 0: paddr=0x00010018 vaddr=0x00000000 size=0x0ffe8 ( 65512) .[0m
.[0;32mI (1302) boot: segment 1: paddr=0x00020008 vaddr=0x3f400010 size=0x182a0 ( 98976) map.[0m
.[0;32mI (1319) boot: segment 2: paddr=0x000382b0 vaddr=0x3ffb0000 size=0x0209c (  8348) load.[0m
.[0;32mI (1349) boot: segment 3: paddr=0x0003a354 vaddr=0x40080000 size=0x00400 (  1024) load.[0m
.[0;32mI (1373) boot: segment 4: paddr=0x0003a75c vaddr=0x40080400 size=0x1a058 (106584) load.[0m
.[0;32mI (1449) boot: segment 5: paddr=0x000547bc vaddr=0x400c0000 size=0x00034 (    52) load.[0m
.[0;32mI (1450) boot: segment 6: paddr=0x000547f8 vaddr=0x00000000 size=0x0b810 ( 47120) .[0m
.[0;32mI (1467) boot: segment 7: paddr=0x00060010 vaddr=0x400d0018 size=0x7012c (459052) map.[0m
.[0;32mI (1493) cpu_start: Pro cpu up..[0m
.[0;32mI (1504) cpu_start: Single core mode.[0m
.[0;32mI (1518) heap_alloc_caps: Initializing. RAM available for dynamic allocation:.[0m
.[0;32mI (1542) heap_alloc_caps: At 3FFAE2A0 len 00001D60 (7 KiB): DRAM.[0m
.[0;32mI (1562) heap_alloc_caps: At 3FFBA5B8 len 00025A48 (150 KiB): DRAM.[0m
.[0;32mI (1583) heap_alloc_caps: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM.[0m
.[0;32mI (1605) heap_alloc_caps: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM.[0m
.[0;32mI (1626) heap_alloc_caps: At 4009A458 len 00005BA8 (22 KiB): IRAM.[0m
.[0;32mI (1647) cpu_start: Pro cpu start user code.[0m
.[0;32mI (1707) cpu_start: Starting scheduler on PRO CPU..[0m
.[0;32mI (1716) uart: queue free spaces: 10.[0m
I (1751) wifi: wifi firmware version: 0b5b6e7
I (1751) wifi: config NVS flash: enabled
I (1751) wifi: config nano formating: disabled
I (1756) wifi: Init dynamic tx buffer num: 32
I (1756) wifi: wifi driver task: 3ffc2f04, prio:23, stack:3584
I (1762) wifi: Init static rx buffer num: 10
I (1766) wifi: Init dynamic rx buffer num: 0
I (1770) wifi: Init rx ampdu len mblock:7
I (1773) wifi: Init lldesc rx ampdu entry mblock:4
I (1778) wifi: wifi power manager task: 0x3ffc82ac prio: 21 stack: 2560
I (1784) wifi: wifi timer task: 3ffc932c, prio:22, stack:3584
.[0;31mE (1790) phy_init: PHY data partition validated.[0m
.[0;32mI (1826) phy: phy_version: 329, Feb 22 2017, 15:58:07, 0, 0.[0m
I (1827) wifi: Init ampdu: 1
I (1827) wifi: mode : sta (24:0a:c4:05:85:00)
I (1829) wifi: Init ampdu: 1
I (1831) wifi: mode : sta (24:0a:c4:05:85:00) + softAP (24:0a:c4:05:85:01)
I (1840) wifi: mode : sta (24:0a:c4:05:85:00)
I (15233) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (15793) wifi: state: init -> auth (b0)
I (15799) wifi: state: auth -> assoc (0)
I (15808) wifi: state: assoc -> run (10)
I (15841) wifi: connected with invisible, channel 1
I (17194) wifi: state: run -> init (0)
I (17195) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1

Who is online

Users browsing this forum: Bing [Bot] and 189 guests