Bluetooth LE Advertising
Posted: Wed Aug 30, 2017 10:01 pm
I'm trying to run the ble_adv sample from ESP-IDF and get my Sparkfun ESP32 Thing to show up on my Nordic NR Connect app on my iPhone but it doesn't show up in my list of beacons.
I did manage to see my ESP32 when I was using the Adruino Simple BLE example, so the board / bluetooth stack / iPhone setup is working but I am wondering why the esp-idf samples aren't working
This is the output I'm getting :
In other posts / videos, I noticed that the bluetooth hardware address was logged during boot (BTDM CONTROLLER VERSION AND DR address). Something I'm not seeing in my logs.
The Bluetooth module is enabled from the menuconfig (otherwise the sample doesn't compile).
Is there anything else I need to setup in the toolchain ? Should this simple BLE advertising sample work out of the box ?
Thx.
I did manage to see my ESP32 when I was using the Adruino Simple BLE example, so the board / bluetooth stack / iPhone setup is working but I am wondering why the esp-idf samples aren't working
This is the output I'm getting :
Code: Select all
[0;32mI (29) boot: ESP-IDF v3.0-dev-394-ga4fe12c 2nd stage bootloader[0m
[0;32mI (29) boot: compile time 20:18:08[0m
[0;32mI (47) boot: Enabling RNG early entropy source...[0m
[0;32mI (47) boot: SPI Speed : 40MHz[0m
[0;32mI (59) boot: SPI Mode : DIO[0m
[0;32mI (71) boot: SPI Flash Size : 4MB[0m
[0;32mI (84) boot: Partition Table:[0m
[0;32mI (95) boot: ## Label Usage Type ST Offset Length[0m
[0;32mI (117) boot: 0 nvs WiFi data 01 02 00009000 00006000[0m
[0;32mI (141) boot: 1 phy_init RF data 01 01 0000f000 00001000[0m
[0;32mI (164) boot: 2 factory factory app 00 00 00010000 00100000[0m
[0;32mI (187) boot: End of partition table[0m
[0;32mI (200) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x05624 ( 22052) map[0m
[0;32mI (252) esp_image: segment 1: paddr=0x0001564c vaddr=0x3ffc0000 size=0x0283c ( 10300) load[0m
[0;32mI (268) esp_image: segment 2: paddr=0x00017e90 vaddr=0x40080000 size=0x00400 ( 1024) load[0m
[0;32mI (284) esp_image: segment 3: paddr=0x00018298 vaddr=0x40080400 size=0x07d78 ( 32120) load[0m
[0;32mI (351) esp_image: segment 4: paddr=0x00020018 vaddr=0x400d0018 size=0x161b0 ( 90544) map[0m
[0;32mI (448) esp_image: segment 5: paddr=0x000361d0 vaddr=0x40088178 size=0x0b5f8 ( 46584) load[0m
[0;32mI (508) esp_image: segment 6: paddr=0x000417d0 vaddr=0x400c0000 size=0x00000 ( 0) load[0m
[0;32mI (543) boot: Loaded app from partition at offset 0x10000[0m
[0;32mI (544) boot: Disabling RNG early entropy source...[0m
[0;32mI (545) cpu_start: Pro cpu up.[0m
[0;32mI (556) cpu_start: Starting app cpu, entry point is 0x40080de4[0m
[0;32mI (0) cpu_start: App cpu up.[0m
[0;32mI (589) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (609) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM[0m
[0;32mI (628) heap_init: At 3FFC45B8 len 0001BA48 (110 KiB): DRAM[0m
[0;32mI (647) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM[0m
[0;32mI (667) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM[0m
[0;32mI (686) heap_init: At 40093770 len 0000C890 (50 KiB): IRAM[0m
[0;32mI (706) cpu_start: Pro cpu start user code[0m
[0;32mI (764) cpu_start: Starting scheduler on PRO CPU.[0m
[0;32mI (194) cpu_start: Starting scheduler on APP CPU.[0m
[0;32mI (264) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE[0m
[0;32mI (554) phy: phy_version: 357.0, a6bf95b, Jul 25 2017, 12:28:06, 0, 0[0m
BLE advt task start
host rcv pkt: 040e0405030c00
controller rcv pkt ready
BLE Advertise, flag_send_avail: 1, cmd_sent: 1
host rcv pkt: 040e0405062000
controller rcv pkt ready
BLE Advertise, flag_send_avail: 1, cmd_sent: 2
host rcv pkt: 040e0405082000
controller rcv pkt ready
BLE Advertise, flag_send_avail: 1, cmd_sent: 3
host rcv pkt: 040e04050a2000
controller rcv pkt ready
BLE Advertise, flag_send_avail: 1, cmd_sent: 4
BLE Advertise, flag_send_avail: 1, cmd_sent: 4
In other posts / videos, I noticed that the bluetooth hardware address was logged during boot (BTDM CONTROLLER VERSION AND DR address). Something I'm not seeing in my logs.
The Bluetooth module is enabled from the menuconfig (otherwise the sample doesn't compile).
Is there anything else I need to setup in the toolchain ? Should this simple BLE advertising sample work out of the box ?
Thx.