Closed meko0917 closed 9 months ago
Thank you for reporting the issue; I will check it.
I tested using the version you provided, with one instance in the sender role and another in the receiver role. In the sender role, the sender calls the esp_ble_gap_start_advertising API for broadcasting, while in the receiver role, it uses the esp_ble_gap_start_scanning API for scanning.
The test results indicate that the receiver successfully received the data, which is as expected.
Could you please check if there is no sender role nearby on your end?
log: I (31) boot: ESP-IDF v5.1.1-700-ge20f68d773-dirty 2nd stage bootloader I (31) boot: compile time Nov 28 2023 16:25:29 I (33) boot: Multicore bootloader I (37) boot: chip revision: v3.1 I (41) boot.esp32: SPI Speed : 40MHz I (46) boot.esp32: SPI Mode : DIO I (50) boot.esp32: SPI Flash Size : 2MB I (55) boot: Enabling RNG early entropy source... I (60) boot: Partition Table: I (64) boot: ## Label Usage Type ST Offset Length I (71) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (79) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (86) boot: 2 factory factory app 00 00 00010000 00100000 I (94) boot: End of partition table I (98) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=1fd74h (130420) map I (153) esp_image: segment 1: paddr=0002fd9c vaddr=3ffbdb60 size=0027ch ( 636) load I (154) esp_image: segment 2: paddr=00030020 vaddr=400d0020 size=80700h (526080) map I (349) esp_image: segment 3: paddr=000b0728 vaddr=3ffbdddc size=045b0h ( 17840) load I (356) esp_image: segment 4: paddr=000b4ce0 vaddr=40080000 size=187c0h (100288) load I (411) boot: Loaded app from partition at offset 0x10000 I (411) boot: Disabling RNG early entropy source... I (422) cpu_start: Multicore app I (422) cpu_start: Pro cpu up. I (423) cpu_start: Starting app cpu, entry point is 0x4008137c 0x4008137c: call_start_cpu1 at /home/zhanghaipeng/esp/esp-idf/components/esp_system/port/cpu_start.c:157
I (0) cpu_start: App cpu up. I (440) cpu_start: Pro cpu start user code I (440) cpu_start: cpu freq: 160000000 Hz I (440) cpu_start: Application information: I (445) cpu_start: Project name: ble_ibeacon_demo I (451) cpu_start: App version: qa-test-v5.1.2-20231020-22-ge20 I (458) cpu_start: Compile time: Nov 28 2023 16:25:27 I (464) cpu_start: ELF file SHA256: f09aa1e1fdb083e1... I (470) cpu_start: ESP-IDF: v5.1.1-700-ge20f68d773-dirty I (477) cpu_start: Min chip rev: v0.0 I (481) cpu_start: Max chip rev: v3.99 I (486) cpu_start: Chip rev: v3.1 I (491) heap_init: Initializing. RAM available for dynamic allocation: I (498) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM I (504) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM I (510) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM I (517) heap_init: At 3FFC6EC8 len 00019138 (100 KiB): DRAM I (523) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM I (529) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (536) heap_init: At 400987C0 len 00007840 (30 KiB): IRAM I (543) spi_flash: detected chip: generic I (546) spi_flash: flash io: dio W (550) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header. I (564) coexist: coex firmware version: b6d5e8c I (569) app_start: Starting scheduler on CPU0 I (574) app_start: Starting scheduler on CPU1 mI (574) main_task: Started on CPU0 I (584) main_task: Calling app_main() I (604) BTDM_INIT: BT controller compile version [ec4ac65] I (604) BTDM_INIT: Bluetooth MAC: 08:3a:8d:0d:9c:62 I (604) phy_init: phy_version 4780,16b31a7,Sep 22 2023,20:42:16 W (614) phy_init: failed to load RF calibration data (0xffffffff), falling back to full calibration I (994) IBEACON_DEMO: register callback I (994) main_task: Returned from app_main() I (1044) IBEACON_DEMO: ----------iBeacon Found---------- I (1044) IBEACON_DEMO: Device address:: 30 ae a4 80 56 0e I (1044) IBEACON_DEMO: Proximity UUID:: fd a5 06 93 a4 e2 4f b1 af cf c6 eb 07 64 78 25 I (1054) IBEACON_DEMO: Major: 0x27b7 (10167) I (1054) IBEACON_DEMO: Minor: 0xf206 (61958) I (1064) IBEACON_DEMO: Measured power (RSSI at a 1m distance):-59 dbm I (1064) IBEACON_DEMO: RSSI of packet:-19 dbm I (1094) IBEACON_DEMO: ----------iBeacon Found---------- I (1094) IBEACON_DEMO: Device address:: 30 ae a4 80 56 0e I (1094) IBEACON_DEMO: Proximity UUID:: fd a5 06 93 a4 e2 4f b1 af cf c6 eb 07 64 78 25 I (1104) IBEACON_DEMO: Major: 0x27b7 (10167) I (1104) IBEACON_DEMO: Minor: 0xf206 (61958) I (1104) IBEACON_DEMO: Measured power (RSSI at a 1m distance):-59 dbm I (1114) IBEACON_DEMO: RSSI of packet:-19 dbm I (1144) IBEACON_DEMO: ----------iBeacon Found---------- I (1144) IBEACON_DEMO: Device address:: 30 ae a4 80 56 0e I (1144) IBEACON_DEMO: Proximity UUID:: fd a5 06 93 a4 e2 4f b1 af cf c6 eb 07 64 78 25 I (1154) IBEACON_DEMO: Major: 0x27b7 (10167) I (1154) IBEACON_DEMO: Minor: 0xf206 (61958) I (1154) IBEACON_DEMO: Measured power (RSSI at a 1m distance):-59 dbm I (1164) IBEACON_DEMO: RSSI of packet:-14 dbm I (1184) IBEACON_DEMO: ----------iBeacon Found---------- I (1194) IBEACON_DEMO: Device address:: 30 ae a4 80 56 0e I (1194) IBEACON_DEMO: Proximity UUID:: fd a5 06 93 a4 e2 4f b1 af cf c6 eb 07 64 78 25 I (1204) IBEACON_DEMO: Major: 0x27b7 (10167) I (1204) IBEACON_DEMO: Minor: 0xf206 (61958) I (1204) IBEACON_DEMO: Measured power (RSSI at a 1m distance):-59 dbm I (1214) IBEACON_DEMO: RSSI of packet:-19 dbm I (1244) IBEACON_DEMO: ----------iBeacon Found---------- I (1244) IBEACON_DEMO: Device address:: 30 ae a4 80 56 0e I (1244) IBEACON_DEMO: Proximity UUID:: fd a5 06 93 a4 e2 4f b1 af cf c6 eb 07 64 78 25 I (1254) IBEACON_DEMO: Major: 0x27b7 (10167) I (1254) IBEACON_DEMO: Minor: 0xf206 (61958) I (1254) IBEACON_DEMO: Measured power (RSSI at a 1m distance):-59 dbm I (1264) IBEACON_DEMO: RSSI of packet:-19 dbm I (1284) IBEACON_DEMO: ----------iBeacon Found---------- I (1294) IBEACON_DEMO: Device address:: 30 ae a4 80 56 0e I (1294) IBEACON_DEMO: Proximity UUID:: fd a5 06 93 a4 e2 4f b1 af cf c6 eb 07 64 78 25 I (1304) IBEACON_DEMO: Major: 0x27b7 (10167) I (1304) IBEACON_DEMO: Minor: 0xf206 (61958) I (1304) IBEACON_DEMO: Measured power (RSSI at a 1m distance):-59 dbm I (1314) IBEACON_DEMO: RSSI of packet:-15 dbm I (1344) IBEACON_DEMO: ----------iBeacon Found---------- I (1344) IBEACON_DEMO: Device address:: 30 ae a4 80 56 0e I (1344) IBEACON_DEMO: Proximity UUID:: fd a5 06 93 a4 e2 4f b1 af cf c6 eb 07 64 78 25 I (1354) IBEACON_DEMO: Major: 0x27b7 (10167) I (1354) IBEACON_DEMO: Minor: 0xf206 (61958) I (1354) IBEACON_DEMO: Measured power (RSSI at a 1m distance):-59 dbm I (1364) IBEACON_DEMO: RSSI of packet:-19 dbm I (1644) IBEACON_DEMO: ----------iBeacon Found---------- I (1644) IBEACON_DEMO: Device address:: 30 ae a4 80 56 0e I (1644) IBEACON_DEMO: Proximity UUID:: fd a5 06 93 a4 e2 4f b1 af cf c6 eb 07 64 78 25 I (1654) IBEACON_DEMO: Major: 0x27b7 (10167) I (1654) IBEACON_DEMO: Minor: 0xf206 (61958) I (1664) IBEACON_DEMO: Measured power (RSSI at a 1m distance):-59 dbm I (1664) IBEACON_DEMO: RSSI of packet:-19 dbm I (1694) IBEACON_DEMO: ----------iBeacon Found---------- I (1694) IBEACON_DEMO: Device address:: 30 ae a4 80 56 0e I (1694) IBEACON_DEMO: Proximity UUID:: fd a5 06 93 a4 e2 4f b1 af cf c6 eb 07 64 78 25 I (1704) IBEACON_DEMO: Major: 0x27b7 (10167) I (1704) IBEACON_DEMO: Minor: 0xf206 (61958) I (1714) IBEACON_DEMO: Measured power (RSSI at a 1m distance):-59 dbm I (1714) IBEACON_DEMO: RSSI of packet:-19 dbm I (1744) IBEACON_DEMO: ----------iBeacon Found---------- I (1744) IBEACON_DEMO: Device address:: 30 ae a4 80 56 0e I (1744) IBEACON_DEMO: Proximity UUID:: fd a5 06 93 a4 e2 4f b1 af cf c6 eb 07 64 78 25 I (1754) IBEACON_DEMO: Major: 0x27b7 (10167) I (1754) IBEACON_DEMO: Minor: 0xf206 (61958) I (1754) IBEACON_DEMO: Measured power (RSSI at a 1m distance):-59 dbm I (1764) IBEACON_DEMO: RSSI of packet:-14 dbm I (1794) IBEACON_DEMO: ----------iBeacon Found---------- I (1794) IBEACON_DEMO: Device address:: 30 ae a4 80 56 0e I (1794) IBEACON_DEMO: Proximity UUID:: fd a5 06 93 a4 e2 4f b1 af cf c6 eb 07 64 78 25 I (1804) IBEACON_DEMO: Major: 0x27b7 (10167) I (1804) IBEACON_DEMO: Minor: 0xf206 (61958) I (1804) IBEACON_DEMO: Measured power (RSSI at a 1m distance):-59 dbm I (1814) IBEACON_DEMO: RSSI of packet:-19 dbm I (1844) IBEACON_DEMO: ----------iBeacon Found---------- I (1844) IBEACON_DEMO: Device address:: 30 ae a4 80 56 0e I (1844) IBEACON_DEMO: Proximity UUID:: fd a5 06 93 a4 e2 4f b1 af cf c6 eb 07 64 78 25 I (1854) IBEACON_DEMO: Major: 0x27b7 (10167) I (1854) IBEACON_DEMO: Minor: 0xf206 (61958) I (1854) IBEACON_DEMO: Measured power (RSSI at a 1m distance):-59 dbm I (1864) IBEACON_DEMO: RSSI of packet:-19 dbm I (1894) IBEACON_DEMO: ----------iBeacon Found----------
I tested again on the other PC, the result is same as yours. I guess It was the problem by the PC environment. Sorry and thanks.
Thanks for reporting, feel free to reopen.
Answers checklist.
IDF version.
v5.1.2
Espressif SoC revision.
ESP32
Operating System used.
Windows
How did you build your project?
Command line with Make
If you are using Windows, please specify command line type.
PowerShell
Development Kit.
ESP32-WROOM-32E-N8
Power Supply used.
USB
What is the expected behavior?
I have tested ble_ibeacon example for the first time of using ESP32-WROOM-32E with ESP-IDF v5.1.2 newly installation. I expected the result as described in that example's git page. I (384) boot: Loaded app from partition at offset 0x10000 I (384) boot: Disabling RNG early entropy source... I (385) cpu_start: Pro cpu up.\0x1b[0m I (389) cpu_start: Starting app cpu, entry point is 0x40081010 I (0) cpu_start: App cpu up. I (400) heap_init: Initializing. RAM available for dynamic allocation: I (406) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM I (412) heap_init: At 3FFCCC88 len 00013378 (76 KiB): DRAM I (418) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM I (425) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (431) heap_init: At 40090E58 len 0000F1A8 (60 KiB): IRAM I (437) cpu_start: Pro cpu start user code\0x1b[0m I (120) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (243) BTDM_INIT: BT controller compile version [44d04c1]
I (243) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (633) phy: phy_version: 3910, c0c45a3, May 21 2018, 18:07:06, 0, 0 I (663) IBEACON_DEMO: register callback I (329203) IBEACON_DEMO: ----------iBeacon Found----------
What is the actual behavior?
I (409) boot: Loaded app from partition at offset 0x10000 I (409) boot: Disabling RNG early entropy source... I (420) cpu_start: Multicore app I (420) cpu_start: Pro cpu up. I (421) cpu_start: Starting app cpu, entry point is 0x4008137c 0x4008137c: call_start_cpu1 at C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_system/port/cpu_start.c:157
I (0) cpu_start: App cpu up. I (438) cpu_start: Pro cpu start user code I (438) cpu_start: cpu freq: 160000000 Hz I (439) cpu_start: Application information: I (443) cpu_start: Project name: ble_ibeacon_demo I (449) cpu_start: App version: 1 I (453) cpu_start: Compile time: Nov 26 2023 22:37:37 I (459) cpu_start: ELF file SHA256: 48b755f8185c093e... I (465) cpu_start: ESP-IDF: v5.1.2 I (470) cpu_start: Min chip rev: v0.0 I (475) cpu_start: Max chip rev: v3.99 I (480) cpu_start: Chip rev: v3.1 I (485) heap_init: Initializing. RAM available for dynamic allocation: I (492) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM I (498) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM I (504) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM I (510) heap_init: At 3FFC6E88 len 00019178 (100 KiB): DRAM I (516) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM I (523) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM I (529) heap_init: At 400987C0 len 00007840 (30 KiB): IRAM I (537) spi_flash: detected chip: gd I (539) spi_flash: flash io: dio I (544) coexist: coex firmware version: b6d5e8c I (549) app_start: Starting scheduler on CPU0 I (554) app_start: Starting scheduler on CPU1 I (554) main_task: Started on CPU0 I (564) main_task: Calling app_main() I (584) BTDM_INIT: BT controller compile version [ec4ac65] I (584) BTDM_INIT: Bluetooth MAC: 64:b7:08:d5:14:46 I (594) phy_init: phy_version 4780,16b31a7,Sep 22 2023,20:42:16 I (984) IBEACON_DEMO: register callback I (984) main_task: Returned from app_main()
Steps to reproduce.
My procedures are belows
Debug Logs.
More Information.
No response