蓝牙测试ESP32-ble_adv_scan_combined

烧录--一直按住boot在按rst 在松开boot 此时可以烧写进去

成功以后 一直攻击PC 容易PC蓝屏死机

PS D:\A-ESP-IDF\examples\bluetooth\hci\ble_adv_scan_combined> idf.py -p COM12 flash

单独供电 看到有蓝牙

测试几次就不行了  

放弃USB 不要用电脑和充电宝

NodeMCU-32S 核心开发板 | 安信可科技

对角线和PI电风扇一样 5V-GND上去

手机APP不能连接成功

现在接线如图

PI供电 3个TTL

看到同时在广播和scan

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:6924
ho 0 tail 12 room 4
load:0x40078000,len:14308
load:0x40080400,len:3716
entry 0x40080680
[0;32mI (28) boot: ESP-IDF v4.3-373-g605c1b16f 2nd stage bootloader[0m
[0;32mI (29) boot: compile time 09:03:10[0m
[0;32mI (29) boot: chip revision: 1[0m
[0;32mI (32) boot_comm: chip revision: 1, min. bootloader chip revision: 0[0m
[0;32mI (40) boot.esp32: SPI Speed      : 40MHz[0m
[0;32mI (44) boot.esp32: SPI Mode       : DIO[0m
[0;32mI (49) boot.esp32: SPI Flash Size : 2MB[0m
[0;32mI (53) boot: Enabling RNG early entropy source...[0m
[0;32mI (59) boot: Partition Table:[0m
[0;32mI (62) boot: ## Label            Usage          Type ST Offset   Length[0m
[0;32mI (70) boot:  0 nvs              WiFi data        01 02 00009000 00006000[0m
[0;32mI (77) boot:  1 phy_init         RF data          01 01 0000f000 00001000[0m
[0;32mI (84) boot:  2 factory          factory app      00 00 00010000 00100000[0m
[0;32mI (92) boot: End of partition table[0m
[0;32mI (96) boot_comm: chip revision: 1, min. application chip revision: 0[0m
[0;32mI (103) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=0a360h ( 41824) map[0m
[0;32mI (127) esp_image: segment 1: paddr=0001a388 vaddr=3ffbdb60 size=03d40h ( 15680) load[0m
[0;32mI (133) esp_image: segment 2: paddr=0001e0d0 vaddr=40080000 size=01f48h (  8008) load[0m
[0;32mI (137) esp_image: segment 3: paddr=00020020 vaddr=400d0020 size=340e4h (213220) map[0m
[0;32mI (218) esp_image: segment 4: paddr=0005410c vaddr=40081f48 size=14c9ch ( 85148) load[0m
[0;32mI (254) esp_image: segment 5: paddr=00068db0 vaddr=50000000 size=00010h (    16) load[0m
[0;32mI (265) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (265) boot: Disabling RNG early entropy source...[0m
[0;32mI (277) cpu_start: Pro cpu up.[0m
[0;32mI (277) cpu_start: Starting app cpu, entry point is 0x400811d8[0m
[0;32mI (0) cpu_start: App cpu up.[0m
[0;32mI (291) cpu_start: Pro cpu start user code[0m
[0;32mI (291) cpu_start: cpu freq: 160000000[0m
[0;32mI (291) cpu_start: Application information:[0m
[0;32mI (295) cpu_start: Project name:     ble_adv_scan[0m
[0;32mI (301) cpu_start: App version:      v4.3-373-g605c1b16f[0m
[0;32mI (307) cpu_start: Compile time:     Oct 10 2021 09:01:50[0m
[0;32mI (313) cpu_start: ELF file SHA256:  7934c76ad5d49f98...[0m
[0;32mI (319) cpu_start: ESP-IDF:          v4.3-373-g605c1b16f[0m
[0;32mI (325) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (332) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM[0m
[0;32mI (338) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM[0m
[0;32mI (344) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM[0m
[0;32mI (350) heap_init: At 3FFC30B8 len 0001CF48 (115 KiB): DRAM[0m
[0;32mI (357) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM[0m
[0;32mI (363) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM[0m
[0;32mI (369) heap_init: At 40096BE4 len 0000941C (37 KiB): IRAM[0m
[0;32mI (377) spi_flash: detected chip: generic[0m
[0;32mI (380) spi_flash: flash io: dio[0m
[0;33mW (384) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.[0m
[0;32mI (399) cpu_start: Starting scheduler on PRO CPU.[0m
[0;32mI (0) cpu_start: Starting scheduler on APP CPU.[0m
[0;32mI (431) BTDM_INIT: BT controller compile version [bfbbe1e][0m
[0;32mI (431) system_api: Base MAC address is not set[0m
[0;32mI (431) system_api: read default base MAC address from EFUSE[0m
[0;32mI (441) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07[0m
[0;32mI (791) BLE_ADV_SCAN: Event opcode 0x03 success.[0m
[0;32mI (791) BLE_ADV_SCAN: controller rcv pkt ready[0m
[0;32mI (791) BLE_ADV_SCAN: BLE Advertise, cmd_sent: 1[0m
[0;32mI (1801) BLE_ADV_SCAN: Event opcode 0x01 success.[0m
[0;32mI (1801) BLE_ADV_SCAN: controller rcv pkt ready[0m
[0;32mI (1801) BLE_ADV_SCAN: BLE Advertise, cmd_sent: 2[0m
[0;32mI (2801) BLE_ADV_SCAN: Event opcode 0x06 success.[0m
[0;32mI (2801) BLE_ADV_SCAN: controller rcv pkt ready[0m
[0;32mI (2801) BLE_ADV_SCAN: BLE Advertise, cmd_sent: 3[0m
[0;32mI (3801) BLE_ADV_SCAN: Event opcode 0x08 success.[0m
[0;32mI (3801) BLE_ADV_SCAN: controller rcv pkt ready[0m
[0;32mI (3801) BLE_ADV_SCAN: Starting BLE advertising with name "ESP-BLE-1"[0m
[0;32mI (3801) BLE_ADV_SCAN: BLE Advertise, cmd_sent: 4[0m
[0;32mI (4811) BLE_ADV_SCAN: Event opcode 0x0a success.[0m
[0;32mI (4811) BLE_ADV_SCAN: controller rcv pkt ready[0m
[0;32mI (4811) BLE_ADV_SCAN: BLE Advertising started..[0m
[0;32mI (4811) BLE_ADV_SCAN: BLE Advertise, cmd_sent: 5[0m
[0;32mI (5421) BLE_ADV_SCAN: Number of received advertising reports: 0[0m
[0;32mI (5821) BLE_ADV_SCAN: Event opcode 0x0b success.[0m
[0;32mI (5821) BLE_ADV_SCAN: controller rcv pkt ready[0m
[0;32mI (5821) BLE_ADV_SCAN: BLE Advertise, cmd_sent: 6[0m
[0;32mI (6821) BLE_ADV_SCAN: Event opcode 0x0c success.[0m
[0;32mI (6821) BLE_ADV_SCAN: controller rcv pkt ready[0m
[0;32mI (6821) BLE_ADV_SCAN: BLE Scanning started..[0m
[0;32mI (6821) BLE_ADV_SCAN: BLE Advertise, cmd_sent: 7[0m
[0;32mI (7831) BLE_ADV_SCAN: BLE Advertise, cmd_sent: 7[0m
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: ba:03:8c:7e:18:c2
Data length: 7
Advertisement Name: MSi5
RSSI: -78dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -46dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: ba:03:8c:7e:18:c2
Data length: 7
Advertisement Name: MSi5
RSSI: -80dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -46dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -52dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -47dB
[0;32mI (10421) BLE_ADV_SCAN: Number of received advertising reports: 40[0m
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -47dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -53dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -48dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -48dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -48dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -48dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: ba:03:8c:7e:18:c2
Data length: 7
Advertisement Name: MSi5
RSSI: -78dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -47dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: ba:03:8c:7e:18:c2
Data length: 7
Advertisement Name: MSi5
RSSI: -77dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -47dB
[0;32mI (15421) BLE_ADV_SCAN: Number of received advertising reports: 124[0m
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -47dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: ba:03:8c:7e:18:c2
Data length: 7
Advertisement Name: MSi5
RSSI: -79dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -46dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -51dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: ba:03:8c:7e:18:c2
Data length: 7
Advertisement Name: MSi5
RSSI: -76dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -52dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: ba:03:8c:7e:18:c2
Data length: 7
Advertisement Name: MSi5
RSSI: -76dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -54dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -46dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: ba:03:8c:7e:18:c2
Data length: 7
Advertisement Name: MSi5
RSSI: -75dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -47dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -45dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -47dB
[0;32mI (20421) BLE_ADV_SCAN: Number of received advertising reports: 221[0m
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -61dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 80:ea:20:00:02:75
Data length: 10
Advertisement Name: SFMP1613
RSSI: -79dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 80:ea:20:00:02:2f
Data length: 10
Advertisement Name: SFMP1613
RSSI: -81dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 80:ea:20:00:02:75
Data length: 10
Advertisement Name: SFMP1613
RSSI: -79dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: ba:03:8c:7e:18:c2
Data length: 7
Advertisement Name: MSi5
RSSI: -79dB
[0;32mI (25421) BLE_ADV_SCAN: Number of received advertising reports: 301[0m
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 80:ea:20:00:02:2f
Data length: 10
Advertisement Name: SFMP1613
RSSI: -82dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: 74:22:bb:45:02:38
Data length: 21
Advertisement Name: HONOR Band 6-238
RSSI: -45dB
******** Response 1/1 ********
Event type: 04
Address type: 00
Address: ba:03:8c:7e:18:c2
Data length: 7
Advertisement Name: MSi5
RSSI: -82dB

原理说明

不需要linux的主机连接 是独立运行的

他模拟的一个发消息

周期性去执行函数

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值