完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
PS D:ESP32_IDFblufi> D:ESP32_IDF.espressifpython_envidf4.4_py3.8_envScriptspython.exe d:ESP32_IDFesp-idftoolsidf.py -p COM8 monitor
Executing action: monitor Running idf_monitor in directory d:esp32_idfblufi Executing "D:ESP32_IDF.espressifpython_envidf4.4_py3.8_envScriptspython.exe d:ESP32_IDFesp-idftools/idf_monitor.py -p COM8 -b 115200 --toolchain-prefix xtensa-esp32-elf- d:esp32_idfblufibuildblufi_demo.elf -m 'D:ESP32_IDF.espressifpython_envidf4.4_py3.8_envScriptspython.exe' 'd:ESP32_IDFesp-idftoolsidf.py' '-p' 'COM8'"... --- WARNING: GDB cannot open serial ports accessed as COMx --- Using \.COM8 instead... --- idf_monitor on \.COM8 115200 --- --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- ets Jun 8 2016 00:22:57 rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0030,len:6704 load:0x40078000,len:14224 load:0x40080400,len:3688 0x40080400: _init at ??:? entry 0x40080678 I (27) boot: ESP-IDF v4.4-dev-744-g1cb31e5094 2nd stage bootloader I (27) boot: compile time 11:22:03 I (27) boot: chip revision: 1 I (31) boot_comm: chip revision: 1, min. bootloader chip revision: 0 I (39) boot.esp32: SPI Speed : 40MHz I (43) boot.esp32: SPI Mode : DIO I (48) boot.esp32: SPI Flash Size : 4MB I (52) boot: Enabling RNG early entropy source... I (58) boot: Partition Table: I (61) boot: ## Label Usage Type ST Offset Length I (69) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (76) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (83) boot: 2 factory factory app 00 00 00010000 00100000 I (91) boot: End of partition table I (95) boot_comm: chip revision: 1, min. application chip revision: 0 I (102) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=242b8h (148152) map I (167) esp_image: segment 1: paddr=000342e0 vaddr=3ffbdb60 size=04d60h ( 19808) load I (175) esp_image: segment 2: paddr=00039048 vaddr=40080000 size=06fd0h ( 28624) load I (187) esp_image: segment 3: paddr=00040020 vaddr=400d0020 size=ad790h (710544) map I (456) esp_image: segment 4: paddr=000ed7b8 vaddr=40086fd0 size=16d70h ( 93552) load I (496) esp_image: segment 5: paddr=00104530 vaddr=50000000 size=00010h ( 16) load I (512) boot: Loaded app from partition at offset 0x10000 I (512) boot: Disabling RNG early entropy source... I (524) cpu_start: Pro cpu up. I (524) cpu_start: Starting app cpu, entry point is 0x40081334 0x40081334: call_start_cpu1 at D:/ESP32_IDF/esp-idf/components/esp_system/port/cpu_start.c:158 I (0) cpu_start: App cpu up. I (540) cpu_start: Pro cpu start user code I (540) cpu_start: cpu freq: 160000000 I (541) cpu_start: Application information: I (545) cpu_start: Project name: blufi_demo I (550) cpu_start: App version: 1 I (555) cpu_start: Compile time: Apr 12 2021 11:21:00 I (561) cpu_start: ELF file SHA256: 04e69aaa382b36eb... I (567) cpu_start: ESP-IDF: v4.4-dev-744-g1cb31e5094 I (573) heap_init: Initializing. RAM available for dynamic allocation: I (580) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM I (586) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM I (592) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM I (599) heap_init: At 3FFC9640 len 000169C0 (90 KiB): DRAM I (605) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM I (611) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (618) heap_init: At 4009DD40 len 000022C0 (8 KiB): IRAM I (625) spi_flash: detected chip: generic I (628) spi_flash: flash io: dio I (634) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (729) wifi:wifi driver task: 3ffcf598, prio:23, stack:6656, core=0 I (729) system_api: Base MAC address is not set I (729) system_api: read default base MAC address from EFUSE I (749) wifi:wifi firmware version: 4809a2e I (749) wifi:wifi certification version: v7.0 I (749) wifi:config NVS flash: enabled I (749) wifi:config nano formating: disabled I (759) wifi:Init data frame dynamic rx buffer num: 32 I (759) wifi:Init management frame dynamic rx buffer num: 32 I (769) wifi:Init management short buffer num: 32 I (769) wifi:Init dynamic tx buffer num: 32 I (779) wifi:Init static rx buffer size: 1600 I (779) wifi:Init static rx buffer num: 10 I (779) wifi:Init dynamic rx buffer num: 32 I (789) wifi_init: rx ba win: 6 I (789) wifi_init: tcpip mbox: 32 I (799) wifi_init: udp mbox: 6 I (799) wifi_init: tcp mbox: 6 I (799) wifi_init: tcp tx win: 5744 I (809) wifi_init: tcp rx win: 5744 I (809) wifi_init: tcp mss: 1440 I (819) wifi_init: WiFi IRAM OP enabled I (819) wifi_init: WiFi RX IRAM OP enabled I (829) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07 I (939) wifi:mode : sta (24:6f:28:ad:c7:48) I (939) wifi:enable tsf I (939) BTDM_INIT: BT controller compile version [bc2e043] I (949) wifi<2,1>, old:<1,0>, ap:<255,255>, sta:<2,1>, prof:1 I (949) wifi:state: init -> auth (b0) I (969) wifi:state: auth -> assoc (0) I (1019) wifi:state: assoc -> run (10) I (1199) wifi:connected with DaYan2019, aid = 11, channel 2, 40U, bssid = fc:7c:02:b3:a1:9e I (1199) wifi:security: WPA2-PSK, phy: bgn, rssi: -41 I (1209) wifi:pm start, type: 1 I (1219) wifi:AP's beacon interval = 102400 us, DTIM period = 1 I (1269) BLUFI_EXAMPLE: BD ADDR: 24:6f:28:ad:c7:4a I (1269) BLUFI_EXAMPLE: BLUFI VERSION 0102 I (1269) BLUFI_EXAMPLE: BLUFI init finish I (2219) esp_netif_handlers: sta ip: 192.168.0.56, mask: 255.255.255.0, gw: 192.168.0.1 I (2219) BLUFI_EXAMPLE: BLUFI BLE is not connected yet W (3579) wifi:idx:0 (ifx:0, fc:7c:02:b3:a1:9e), tid:0, ssn:0, winSize:64 I (7499) BLUFI_EXAMPLE: BLUFI ble connect I (37469) BLUFI_EXAMPLE: BLUFI ble disconnect I (44309) BLUFI_EXAMPLE: BLUFI ble connect I (74339) BLUFI_EXAMPLE: BLUFI ble disconnect I (109349) BLUFI_EXAMPLE: BLUFI ble connect I (139349) BLUFI_EXAMPLE: BLUFI ble disconnect I (139429) BLUFI_EXAMPLE: BLUFI ble connect I (169459) BLUFI_EXAMPLE: BLUFI ble disconnect I (169539) BLUFI_EXAMPLE: BLUFI ble connect I (199509) BLUFI_EXAMPLE: BLUFI ble disconnect I (200569) BLUFI_EXAMPLE: BLUFI ble connect I (230689) BLUFI_EXAMPLE: BLUFI ble disconnect I (233729) BLUFI_EXAMPLE: BLUFI ble connect I (263699) BLUFI_EXAMPLE: BLUFI ble disconnect I (263759) BLUFI_EXAMPLE: BLUFI ble connect I (293879) BLUFI_EXAMPLE: BLUFI ble disconnect I (293949) BLUFI_EXAMPLE: BLUFI ble connect I (323979) BLUFI_EXAMPLE: BLUFI ble disconnect |
|
相关推荐
1个回答
|
|
从您提供的信息来看,您正在尝试使用ESP32-IDF的BLUFI(Bluetooth Low Energy Fast Initial Provisioning)例程进行设备配网。但是,您遇到了设备一直连接和断开的问题。为了解决这个问题,我们可以从以下几个方面进行排查:
1. **硬件连接**:确保您的ESP32模块与计算机之间的连接是稳定的。检查USB线是否完好,以及ESP32模块的电源是否稳定。 2. **串口波特率**:您在命令行中使用的波特率是115200。请确保您的ESP32模块的波特率设置与此相匹配。如果波特率不匹配,可能会导致通信问题。 3. **ESP32固件**:确保您的ESP32模块上运行的是正确的固件。如果固件有损坏或不兼容,可能会导致连接问题。 4. **BLUFI配置**:检查您的BLUFI配置是否正确。例如,确保您的WiFi SSID和密码是正确的,以及您的ESP32模块是否已经正确配置为STA(Station)模式。 5. **ESP32-IDF版本**:您使用的ESP32-IDF版本可能存在已知的问题。尝试升级到最新版本的ESP32-IDF,看看问题是否得到解决。 6. **环境问题**:有时候,操作系统或Python环境的问题也可能导致连接问题。尝试在不同的计算机或操作系统上运行您的代码,看看问题是否仍然存在。 7. **代码问题**:检查您的代码是否有逻辑错误或配置错误。例如,确保您的BLUFI初始化和事件处理函数是正确的。 8. **监视器工具**:您使用的监视器工具(idf_monitor.py)可能存在问题。尝试使用其他工具,如PuTTY或Minicom,看看问题是否仍然存在。 9. **蓝牙干扰**:如果您的设备周围有其他蓝牙设备,可能会造成干扰。尝试将ESP32模块移动到一个干扰较小的地方。 10. **固件烧录**:如果上述步骤都无法解决问题,您可以尝试重新烧录固件到ESP32模块。 如果问题仍然存在,您可能需要提供更多的信息,例如错误消息或日志输出,以便更准确地诊断问题。 |
|
|
|
只有小组成员才能发言,加入小组>>
541浏览 6评论
454浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
434浏览 5评论
436浏览 4评论
409浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-19 03:26 , Processed in 0.864177 second(s), Total 82, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号