BLE广播连接之后找不到服务

ChiShaoJun
Posts: 32
Joined: Mon Sep 17, 2018 3:24 am

BLE广播连接之后找不到服务

Postby ChiShaoJun » Tue Dec 11, 2018 4:38 am

例程为:gatt_server_service_table
手机为:honor 7x
现象:见截图
关键日志为:
  1. root@ubuntu:~/esp/gatt_server_service_table# make monitor
  2. Toolchain path: /home/kyle/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
  3. Toolchain version: crosstool-ng-1.22.0-80-g6c4433a
  4. Compiler version: 5.2.0
  5. Python requirements from /home/kyle/esp/esp-idf/requirements.txt are satisfied.
  6. MONITOR
  7. --- idf_monitor on /dev/ttyUSB0 115200 ---
  8. --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
  9. ets Jun  8 2016 00:22:57
  10.  
  11. rst:0x1 (POWERON_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
  12. configsip: 0, SPIWP:0xee
  13. clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
  14. mode:DIO, clock div:2
  15. load:0x3fff0018,len:4
  16. load:0x3fff001c,len:6160
  17. ho 0 tail 12 room 4
  18. load:0x40078000,len:10168
  19. ho 0 tail 12 room 4
  20. load:0x40080400,len:6552
  21. entry 0x40080764
  22. I (32) boot: ESP-IDF v3.3-dev-270-g6f8e2b018 2nd stage bootloader
  23. I (32) boot: compile time 11:37:06
  24. I (32) boot: Enabling RNG early entropy source...
  25. I (38) boot: SPI Speed      : 40MHz
  26. I (42) boot: SPI Mode       : DIO
  27. I (46) boot: SPI Flash Size : 4MB
  28. I (50) boot: Partition Table:
  29. I (54) boot: ## Label            Usage          Type ST Offset   Length
  30. I (61) boot:  0 nvs              WiFi data        01 02 00009000 00006000
  31. I (69) boot:  1 phy_init         RF data          01 01 0000f000 00001000
  32. I (76) boot:  2 factory          factory app      00 00 00010000 00100000
  33. I (84) boot: End of partition table
  34. I (88) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x230b4 (143540) map
  35. I (147) esp_image: segment 1: paddr=0x000330dc vaddr=0x3ff80000 size=0x00000 (     0) load
  36. I (147) esp_image: segment 2: paddr=0x000330e4 vaddr=0x3ff80000 size=0x00000 (     0) load
  37. I (154) esp_image: segment 3: paddr=0x000330ec vaddr=0x3ffbdb60 size=0x02db0 ( 11696) load
  38. I (167) esp_image: segment 4: paddr=0x00035ea4 vaddr=0x3ffc0910 size=0x00000 (     0) load
  39. I (172) esp_image: segment 5: paddr=0x00035eac vaddr=0x40080000 size=0x00400 (  1024) load
  40. 0x40080000: _WindowOverflow4 at /home/kyle/esp/esp-idf/components/freertos/xtensa_vectors.S:1685
  41.  
  42. I (181) esp_image: segment 6: paddr=0x000362b4 vaddr=0x40080400 size=0x09d5c ( 40284) load
  43. I (206) esp_image: segment 7: paddr=0x00040018 vaddr=0x400d0018 size=0x7cbf4 (510964) map
  44. 0x400d0018: _flash_cache_start at ??:?
  45.  
  46. I (385) esp_image: segment 8: paddr=0x000bcc14 vaddr=0x4008a15c size=0x07b38 ( 31544) load
  47. 0x4008a15c: coex_arbit_clean_overtime_until at ??:?
  48.  
  49. I (399) esp_image: segment 9: paddr=0x000c4754 vaddr=0x400c0000 size=0x00000 (     0) load
  50. I (399) esp_image: segment 10: paddr=0x000c475c vaddr=0x50000000 size=0x00000 (     0) load
  51. I (406) esp_image: segment 11: paddr=0x000c4764 vaddr=0x50000000 size=0x00000 (     0) load
  52. I (425) boot: Loaded app from partition at offset 0x10000
  53. I (425) boot: Disabling RNG early entropy source...
  54. I (426) cpu_start: Pro cpu up.
  55. I (430) cpu_start: Starting app cpu, entry point is 0x400811d8
  56. 0x400811d8: call_start_cpu1 at /home/kyle/esp/esp-idf/components/esp32/cpu_start.c:246
  57.  
  58. I (0) cpu_start: App cpu up.
  59. I (440) heap_init: Initializing. RAM available for dynamic allocation:
  60. I (447) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
  61. I (453) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
  62. I (459) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
  63. I (465) heap_init: At 3FFBDB5C len 00000004 (0 KiB): DRAM
  64. I (472) heap_init: At 3FFC9A58 len 000165A8 (89 KiB): DRAM
  65. I (478) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
  66. I (484) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
  67. I (491) heap_init: At 40091C94 len 0000E36C (56 KiB): IRAM
  68. I (497) cpu_start: Pro cpu start user code
  69. I (179) cpu_start: Starting scheduler on PRO CPU.
  70. I (0) cpu_start: Starting scheduler on APP CPU.
  71. I (222) BTDM_INIT: BT controller compile version [6eb4acf]
  72. I (222) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
  73. I (312) phy: phy_version: 4000, b6198fa, Sep  3 2018, 15:11:06, 0, 0
  74. I (682) GATTS_TABLE_DEMO: create attribute table successfully, the number handle = 8
  75.  
  76. I (682) GATTS_TABLE_DEMO: SERVICE_START_EVT, status 0, service_handle 40
  77. I (692) GATTS_TABLE_DEMO: advertising start successfully
  78. I (11652) GATTS_TABLE_DEMO: ESP_GATTS_CONNECT_EVT, conn_id = 0
  79. I (11652) GATTS_TABLE_DEMO: 74 88 6b cb 09 cf
  80. I (12152) GATTS_TABLE_DEMO: update connection params status = 0, min_int = 16, max_int = 32,conn_int = 32,latency = 0, timeout = 400
  81. I (17352) GATTS_TABLE_DEMO: ESP_GATTS_DISCONNECT_EVT, reason = 0x13
  82. I (17362) GATTS_TABLE_DEMO: advertising start successfully
  83. I (36582) GATTS_TABLE_DEMO: ESP_GATTS_CONNECT_EVT, conn_id = 0
  84. I (36582) GATTS_TABLE_DEMO: 74 88 6b cb 09 cf
  85. I (37032) GATTS_TABLE_DEMO: update connection params status = 0, min_int = 16, max_int = 32,conn_int = 32,latency = 0, timeout = 400
  86. I (1687362) GATTS_TABLE_DEMO: ESP_GATTS_DISCONNECT_EVT, reason = 0x13
  87. I (1687372) GATTS_TABLE_DEMO: advertising start successfully
  88. I (1688782) GATTS_TABLE_DEMO: ESP_GATTS_CONNECT_EVT, conn_id = 0
  89. I (1688782) GATTS_TABLE_DEMO: 69 d0 d9 4c 2c ac
  90. I (1689282) GATTS_TABLE_DEMO: update connection params status = 0, min_int = 16, max_int = 32,conn_int = 32,latency = 0, timeout = 400
  91. I (1693882) GATTS_TABLE_DEMO: ESP_GATTS_DISCONNECT_EVT, reason = 0x13
  92. I (1693892) GATTS_TABLE_DEMO: advertising start successfully
  93. I (1813452) GATTS_TABLE_DEMO: ESP_GATTS_CONNECT_EVT, conn_id = 0
  94. I (1813462) GATTS_TABLE_DEMO: 5f cb c1 f0 1b 15
  95. I (1813912) GATTS_TABLE_DEMO: update connection params status = 0, min_int = 16, max_int = 32,conn_int = 32,latency = 0, timeout = 400
  96. I (1817192) GATTS_TABLE_DEMO: ESP_GATTS_DISCONNECT_EVT, reason = 0x13
  97. I (1817202) GATTS_TABLE_DEMO: advertising start successfully
  98. I (2105192) GATTS_TABLE_DEMO: ESP_GATTS_CONNECT_EVT, conn_id = 0
  99. I (2105192) GATTS_TABLE_DEMO: 5f cb c1 f0 1b 15
  100. I (2105642) GATTS_TABLE_DEMO: update connection params status = 0, min_int = 16, max_int = 32,conn_int = 32,latency = 0, timeout = 400
  101.  
Attachments
2018121101.jpg
2018121101.jpg (90.45 KiB) Viewed 7921 times

Weijian-Espressif
Posts: 29
Joined: Wed Aug 09, 2017 6:16 am

Re: BLE广播连接之后找不到服务

Postby Weijian-Espressif » Tue Dec 11, 2018 9:57 am

gatt_server demo 测试正常吗? 能看到service吗? 或者换个APP试试?

ChiShaoJun
Posts: 32
Joined: Mon Sep 17, 2018 3:24 am

Re: BLE广播连接之后找不到服务

Postby ChiShaoJun » Thu Dec 13, 2018 2:20 am

换了个蓝牙调试助手搜到服务了。

Weijian-Espressif
Posts: 29
Joined: Wed Aug 09, 2017 6:16 am

Re: BLE广播连接之后找不到服务

Postby Weijian-Espressif » Thu Dec 13, 2018 8:03 am

👌

Who is online

Users browsing this forum: No registered users and 182 guests