ESP32

ESP32, Wi-Fi, wifi_scan

CoyoteUgly 2018. 8. 20. 18:07

ESP32, Wi-Fi, wifi_scan


make menuconfig 를 통해 ssid, password를 지정하도록 되어 있습니다.


0. 참고 사이트


1. 모듈


2. 보드 연결


3. 소스 설명


4. 소스

https://github.com/sglee0223/esp32/tree/master/wifi_scan


5. 결과 확인

scan: SYSTEM_EVENT_STA_START 로그 이후에 동작 방향이 달라집니다.

  • 기본 설정인 경우






I (0) cpu_start: App cpu up.
I (346) heap_init: Initializing. RAM available for dynamic allocation:
I (353) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (359) heap_init: At 3FFB9E08 len 000261F8 (152 KiB): DRAM
I (365) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (372) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (378) heap_init: At 400902A8 len 0000FD58 (63 KiB): IRAM
I (384) cpu_start: Pro cpu start user code
I (67) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (113) wifi: wifi driver task: 3ffc17b0, prio:23, stack:4096, core=0
I (113) wifi: wifi firmware version: 4fd6a2c
I (113) wifi: config NVS flash: enabled
I (113) wifi: config nano formating: disabled
I (123) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (133) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (153) wifi: Init dynamic tx buffer num: 32
I (153) wifi: Init data frame dynamic rx buffer num: 32
I (153) wifi: Init management frame dynamic rx buffer num: 32
I (163) wifi: Init static rx buffer size: 1600
I (163) wifi: Init static rx buffer num: 10
I (163) wifi: Init dynamic rx buffer num: 32
I (243) phy: phy_version: 3910, c0c45a3, May 21 2018, 18:07:06, 0, 0
I (243) wifi: mode : sta (30:ae:a4:15:20:9c)
I (243) scan: SYSTEM_EVENT_STA_START
I (2663) scan: SYSTEM_EVENT_STA_DISCONNECTED
I (5073) scan: SYSTEM_EVENT_STA_DISCONNECTED
I (7493) scan: SYSTEM_EVENT_STA_DISCONNECTED
I (9903) scan: SYSTEM_EVENT_STA_DISCONNECTED
 


  • ssid, passwd 지정한 겨우




I (0) cpu_start: App cpu up.
I (346) heap_init: Initializing. RAM available for dynamic allocation:
I (353) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (359) heap_init: At 3FFB9E08 len 000261F8 (152 KiB): DRAM
I (365) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (372) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (378) heap_init: At 400902A8 len 0000FD58 (63 KiB): IRAM
I (384) cpu_start: Pro cpu start user code
I (67) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (92) wifi: wifi driver task: 3ffc17b0, prio:23, stack:4096, core=0
I (92) wifi: wifi firmware version: 4fd6a2c
I (92) wifi: config NVS flash: enabled
I (92) wifi: config nano formating: disabled
I (102) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (112) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (132) wifi: Init dynamic tx buffer num: 32
I (132) wifi: Init data frame dynamic rx buffer num: 32
I (132) wifi: Init management frame dynamic rx buffer num: 32
I (132) wifi: Init static rx buffer size: 1600
I (142) wifi: Init static rx buffer num: 10
I (142) wifi: Init dynamic rx buffer num: 32
I (222) phy: phy_version: 3910, c0c45a3, May 21 2018, 18:07:06, 0, 0
I (222) wifi: mode : sta (30:ae:a4:15:20:9c)
I (222) scan: SYSTEM_EVENT_STA_START
I (2642) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
I (3622) wifi: state: init -> auth (b0)
I (3622) wifi: state: auth -> assoc (0)
I (3632) wifi: state: assoc -> run (10)
I (4102) wifi: connected with iptime, channel 1
I (4112) wifi: pm start, type: 1

I (5042) event: sta ip: 192.168.0.9, mask: 255.255.255.0, gw: 192.168.0.1
I (5042) scan: SYSTEM_EVENT_STA_GOT_IP
I (5042) scan: Got IP: 192.168.0.9
 



'ESP32' 카테고리의 다른 글

ESP32, make option  (0) 2018.08.20
ESP32, 리눅스 개발 환경 설정  (0) 2018.08.20
ESP32, Bluetooth, ble_ibeacon  (0) 2018.08.20
ESP32, UART, uart_nonblocking_select  (0) 2018.08.19
ESP32, UART, uart_queue_events  (0) 2018.08.19