{"action":"closed","issue":{"url":"https://api.github.com/repos/espressif/esp-idf/issues/953","repository_url":"https://api.github.com/repos/espressif/esp-idf","labels_url":"https://api.github.com/repos/espressif/esp-idf/issues/953/labels{/name}","comments_url":"https://api.github.com/repos/espressif/esp-idf/issues/953/comments","events_url":"https://api.github.com/repos/espressif/esp-idf/issues/953/events","html_url":"https://github.com/espressif/esp-idf/issues/953","id":254796280,"number":953,"title":"[TW#15172] BLE advertising not working on the samples","user":{"login":"ddewaele","id":364310,"avatar_url":"https://avatars0.githubusercontent.com/u/364310?v=4","gravatar_id":"","url":"https://api.github.com/users/ddewaele","html_url":"https://github.com/ddewaele","followers_url":"https://api.github.com/users/ddewaele/followers","following_url":"https://api.github.com/users/ddewaele/following{/other_user}","gists_url":"https://api.github.com/users/ddewaele/gists{/gist_id}","starred_url":"https://api.github.com/users/ddewaele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddewaele/subscriptions","organizations_url":"https://api.github.com/users/ddewaele/orgs","repos_url":"https://api.github.com/users/ddewaele/repos","events_url":"https://api.github.com/users/ddewaele/events{/privacy}","received_events_url":"https://api.github.com/users/ddewaele/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-09-02T07:41:15Z","updated_at":"2017-09-06T02:48:28Z","closed_at":"2017-09-06T02:48:27Z","author_association":"NONE","body":"For some reason, on my Sparkfun ESP32 Thing device,  I cannot get any of the bluetooth samples to run. What I want to do for now is have my ESP32 show up as a device (beacon) in the Nrf Connect app. Once I get that up and running, I would like to start reading / writing from / to services.\r\n\r\nHowever, I'm currently stuck at the fact that none of my BLE scanning apps can see my ESP32 device. \r\n\r\nHere's what I tried so far : \r\n\r\n- See if there is a hardware issue. Don't think this is the case as the Arduino SimpleBleClient (that simply does advertising and allows the device to be picked up by nrf Connect for example) does work, and I can see my device\r\n- Tried esp-idf 2.1 and 3.0\r\n- Tried the toolchain on mac os X and windows\r\n- Tried different BLE scanning apps on both iOS and Android.\r\n\r\n\r\nI've tried the various samples like `ble_adv` that produce the output blow. I'm assuming here that running the sample should allow iOs / Android to find `ESP-BLE-HELLO` : \r\n```\r\n\b\u001B[0;32mI (31) boot: ESP-IDF v2.1-2-g7138fb0 2nd stage bootloader\u001B[0m\r\n\u001B[0;32mI (31) boot: compile time 06:08:26\u001B[0m\r\n\u001B[0;32mI (49) boot: Enabling RNG early entropy source...\u001B[0m\r\n\u001B[0;32mI (49) boot: SPI Speed      : 40MHz\u001B[0m\r\n\u001B[0;32mI (60) boot: SPI Mode       : DIO\u001B[0m\r\n\u001B[0;32mI (72) boot: SPI Flash Size : 4MB\u001B[0m\r\n\u001B[0;32mI (84) boot: Partition Table:\u001B[0m\r\n\u001B[0;32mI (95) boot: ## Label            Usage          Type ST Offset   Length\u001B[0m\r\n\u001B[0;32mI (118) boot:  0 nvs              WiFi data        01 02 00009000 00006000\u001B[0m\r\n\u001B[0;32mI (141) boot:  1 phy_init         RF data          01 01 0000f000 00001000\u001B[0m\r\n\u001B[0;32mI (164) boot:  2 factory          factory app      00 00 00010000 00100000\u001B[0m\r\n\u001B[0;32mI (188) boot: End of partition table\u001B[0m\r\n\u001B[0;32mI (201) boot: Disabling RNG early entropy source...\u001B[0m\r\n\u001B[0;32mI (218) boot: Loading app partition at offset 00010000\u001B[0m\r\n\u001B[0;32mI (632) boot: segment 0: paddr=0x00010018 vaddr=0x00000000 size=0x0ffe8 ( 65512) \u001B[0m\r\n\u001B[0;32mI (632) boot: segment 1: paddr=0x00020008 vaddr=0x3f400010 size=0x04a84 ( 19076) map\u001B[0m\r\n\u001B[0;32mI (648) boot: segment 2: paddr=0x00024a94 vaddr=0x3ffc0000 size=0x02238 (  8760) load\u001B[0m\r\n\u001B[0;32mI (678) boot: segment 3: paddr=0x00026cd4 vaddr=0x40080000 size=0x00400 (  1024) load\u001B[0m\r\n\u001B[0;32mI (701) boot: segment 4: paddr=0x000270dc vaddr=0x40080400 size=0x12c5c ( 76892) load\u001B[0m\r\n\u001B[0;32mI (763) boot: segment 5: paddr=0x00039d40 vaddr=0x400c0000 size=0x00000 (     0) load\u001B[0m\r\n\u001B[0;32mI (764) boot: segment 6: paddr=0x00039d48 vaddr=0x00000000 size=0x062c0 ( 25280) \u001B[0m\r\n\u001B[0;32mI (785) boot: segment 7: paddr=0x00040010 vaddr=0x400d0018 size=0x150b4 ( 86196) map\u001B[0m\r\n\u001B[0;32mI (811) cpu_start: Pro cpu up.\u001B[0m\r\n\u001B[0;32mI (822) cpu_start: Starting app cpu, entry point is 0x40080dac\u001B[0m\r\n\u001B[0;32mI (0) cpu_start: App cpu up.\u001B[0m\r\n\u001B[0;32mI (855) heap_alloc_caps: Initializing. RAM available for dynamic allocation:\u001B[0m\r\n\u001B[0;32mI (877) heap_alloc_caps: At 3FFAFF10 len 000000F0 (0 KiB): DRAM\u001B[0m\r\n\u001B[0;32mI (897) heap_alloc_caps: At 3FFC4058 len 0001BFA8 (111 KiB): DRAM\u001B[0m\r\n\u001B[0;32mI (918) heap_alloc_caps: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM\u001B[0m\r\n\u001B[0;32mI (939) heap_alloc_caps: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM\u001B[0m\r\n\u001B[0;32mI (960) heap_alloc_caps: At 4009305C len 0000CFA4 (51 KiB): IRAM\u001B[0m\r\n\u001B[0;32mI (981) cpu_start: Pro cpu start user code\u001B[0m\r\n\u001B[0;32mI (1038) cpu_start: Starting scheduler on PRO CPU.\u001B[0m\r\n\u001B[0;32mI (200) cpu_start: Starting scheduler on APP CPU.\u001B[0m\r\n\u001B[0;32mI (250) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE\u001B[0m\r\n\u001B[0;32mI (530) phy: phy_version: 355.1, 59464c5, Jun 14 2017, 20:25:06, 0, 0\u001B[0m\r\nBLE advt task start\r\nhost rcv pkt: 040e0405030c00\r\ncontroller rcv pkt ready\r\nBLE Advertise, flag_send_avail: 1, cmd_sent: 1\r\nhost rcv pkt: 040e0405062000\r\ncontroller rcv pkt ready\r\nBLE Advertise, flag_send_avail: 1, cmd_sent: 2\r\nhost rcv pkt: 040e0405082000\r\ncontroller rcv pkt ready\r\nBLE Advertise, flag_send_avail: 1, cmd_sent: 3\r\nhost rcv pkt: 040e04050a2000\r\ncontroller rcv pkt ready\r\nBLE Advertise, flag_send_avail: 1, cmd_sent: 4\r\nBLE Advertise, flag_send_avail: 1, cmd_sent: 4\r\nBLE Advertise, flag_send_avail: 1, cmd_sent: 4\r\n```\r\n\r\nand `gatt_server`. I'm  assuming here that a BLE scanning app should find `ESP_GATTS_DEMO`.\r\n```\r\n\u0011⸮\u0011⸮\u0019⸮\u0011KVi⸮\b⸮CH\u0011⸮\u0011⸮Y⸮QP⸮kD\u0011⸮F⸮V⸮\f`⸮\u0011⸮\u0019W⸮\b\u001B[0;32mI (31) boot: ESP-IDF v3.0-dev-394-ga4fe12c-dirty 2nd stage bootloader\u001B[0m\r\n\u001B[0;32mI (31) boot: compile time 09:18:35\u001B[0m\r\n\u001B[0;32mI (51) boot: Enabling RNG early entropy source...\u001B[0m\r\n\u001B[0;32mI (51) boot: SPI Speed      : 40MHz\u001B[0m\r\n\u001B[0;32mI (63) boot: SPI Mode       : DIO\u001B[0m\r\n\u001B[0;32mI (75) boot: SPI Flash Size : 4MB\u001B[0m\r\n\u001B[0;32mI (87) boot: Partition Table:\u001B[0m\r\n\u001B[0;32mI (99) boot: ## Label            Usage          Type ST Offset   Length\u001B[0m\r\n\u001B[0;32mI (121) boot:  0 nvs              WiFi data        01 02 00009000 00006000\u001B[0m\r\n\u001B[0;32mI (144) boot:  1 phy_init         RF data          01 01 0000f000 00001000\u001B[0m\r\n\u001B[0;32mI (167) boot:  2 factory          factory app      00 00 00010000 00100000\u001B[0m\r\n\u001B[0;32mI (191) boot: End of partition table\u001B[0m\r\n\u001B[0;32mI (204) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x2932c (168748) map\u001B[0m\r\n\u001B[0;32mI (411) esp_image: segment 1: paddr=0x00039354 vaddr=0x3ffc0000 size=0x02a3c ( 10812) load\u001B[0m\r\n\u001B[0;32mI (425) esp_image: segment 2: paddr=0x0003bd98 vaddr=0x40080000 size=0x00400 (  1024) load\u001B[0m\r\n\u001B[0;32mI (434) esp_image: segment 3: paddr=0x0003c1a0 vaddr=0x40080400 size=0x03e70 ( 15984) load\u001B[0m\r\n\u001B[0;32mI (480) esp_image: segment 4: paddr=0x00040018 vaddr=0x400d0018 size=0x629d0 (403920) map\u001B[0m\r\n\u001B[0;32mI (917) esp_image: segment 5: paddr=0x000a29f0 vaddr=0x40084270 size=0x0f69c ( 63132) load\u001B[0m\r\n\u001B[0;32mI (998) esp_image: segment 6: paddr=0x000b2094 vaddr=0x400c0000 size=0x00000 (     0) load\u001B[0m\r\n\u001B[0;32mI (1034) boot: Loaded app from partition at offset 0x10000\u001B[0m\r\n\u001B[0;32mI (1034) boot: Disabling RNG early entropy source...\u001B[0m\r\n\u001B[0;32mI (1036) cpu_start: Pro cpu up.\u001B[0m\r\n\u001B[0;32mI (1047) cpu_start: Starting app cpu, entry point is 0x40080ea4\u001B[0m\r\n\u001B[0;32mI (0) cpu_start: App cpu up.\u001B[0m\r\n\u001B[0;32mI (1080) heap_init: Initializing. RAM available for dynamic allocation:\u001B[0m\r\n\u001B[0;32mI (1101) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM\u001B[0m\r\n\u001B[0;32mI (1120) heap_init: At 3FFCB1F0 len 00014E10 (83 KiB): DRAM\u001B[0m\r\n\u001B[0;32mI (1139) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM\u001B[0m\r\n\u001B[0;32mI (1159) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM\u001B[0m\r\n\u001B[0;32mI (1179) heap_init: At 4009390C len 0000C6F4 (49 KiB): IRAM\u001B[0m\r\n\u001B[0;32mI (1198) cpu_start: Pro cpu start user code\u001B[0m\r\n\u001B[0;32mI (1257) cpu_start: Starting scheduler on PRO CPU.\u001B[0m\r\n\u001B[0;32mI (196) cpu_start: Starting scheduler on APP CPU.\u001B[0m\r\n\u001B[0;32mI (276) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE\u001B[0m\r\n\u001B[0;32mI (576) phy: phy_version: 357.0, a6bf95b, Jul 25 2017, 12:28:06, 0, 0\u001B[0m\r\n\u001B[0;32mI (616) GATTS_DEMO: REGISTER_APP_EVT, status 0, app_id 0\r\n\u001B[0m\r\n\u001B[0;32mI (626) GATTS_DEMO: CREATE_SERVICE_EVT___, status 0,  service_handle 40\r\n\u001B[0m\r\n\u001B[0;32mI (626) GATTS_DEMO: SERVICE_START_EVT, status 0, service_handle 40\r\n\u001B[0m\r\n\u001B[0;32mI (626) GATTS_DEMO: ADD_CHAR_EVT, status 0,  attr_handle 42, service_handle 40\r\n\u001B[0m\r\n\u001B[0;32mI (636) GATTS_DEMO: the gatts demo char length = 3\r\n\u001B[0m\r\n\u001B[0;32mI (646) GATTS_DEMO: prf_char[0] =11\r\n\u001B[0m\r\n\u001B[0;32mI (646) GATTS_DEMO: prf_char[1] =22\r\n\u001B[0m\r\n\u001B[0;32mI (646) GATTS_DEMO: prf_char[2] =33\r\n\u001B[0m\r\n\u001B[0;32mI (656) GATTS_DEMO: ADD_DESCR_EVT, status 0, attr_handle 43, service_handle 40\r\n\u001B[0m\r\n\u001B[0;32mI (666) GATTS_DEMO: REGISTER_APP_EVT, status 0, app_id 1\r\n\u001B[0m\r\n\u001B[0;32mI (666) GATTS_DEMO: CREATE_SERVICE_EVT, status 0,  service_handle 44\r\n\u001B[0m\r\n\u001B[0;32mI (676) GATTS_DEMO: SERVICE_START_EVT, status 0, service_handle 44\r\n\u001B[0m\r\n\u001B[0;32mI (686) GATTS_DEMO: ADD_CHAR_EVT, status 0,  attr_handle 46, service_handle 44\r\n\u001B[0m\r\n\u001B[0;32mI (696) GATTS_DEMO: ADD_DESCR_EVT, status 0, attr_handle 47, service_handle 44\r\n\u001B[0m\r\n\r\n```\r\nMy questions : \r\n\r\n- Any ideas what might be causing the fact that none of the bluetooth scanning apps pick up my device ?\r\n- Any way to debug this further ?\r\n- Assuming that the bluetooth examples work (and I assume they do), what other places can we look at ? (menuconfig / toolchain / other device settings that I can manipulate ?\r\n\r\n"}}
{"actor":{"display_login":"igrr"}}