作者johnpaladin (小弟)
看板AndroidDev
标题[问题] ble get service不完全
时间Wed Jun 21 16:10:31 2017
想请问一下... 不知道有没有人遇过抓取ble device的services的时後,
有时候会抓不完整的状况,但还是会进入onServiceDiscovered().
用Log印出如下: (1)抓取完整时:
Connected to GATT server.
Attempting to start service discovery:true
Service UUID Found: 00001801-0000-1000-8000-00805f9b34fb
Service UUID Found: 00001800-0000-1000-8000-00805f9b34fb
Service UUID Found: 0000180f-0000-1000-8000-00805f9b34fb
Service UUID Found: 0000fd00-0000-1000-8000-00805f9b34fb
Service UUID Found: 0000fa00-0000-1000-8000-00805f9b34fb
Service UUID Found: 0000fc00-0000-1000-8000-00805f9b34fb
Service UUID Found: 0000fb00-0000-1000-8000-00805f9b34fb
(2)抓取不完整时:(少抓到fb00这个service)
Connected to GATT server.
Attempting to start service discovery:true
Service UUID Found: 00001801-0000-1000-8000-00805f9b34fb
Service UUID Found: 00001800-0000-1000-8000-00805f9b34fb
Service UUID Found: 0000180f-0000-1000-8000-00805f9b34fb
Service UUID Found: 0000fd00-0000-1000-8000-00805f9b34fb
Service UUID Found: 0000fa00-0000-1000-8000-00805f9b34fb
Service UUID Found: 0000fc00-0000-1000-8000-00805f9b34fb
不知道是哪里出了问题? 请板上神人解答..
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 118.163.2.234
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/AndroidDev/M.1498032635.A.EBE.html
1F:→ johnpaladin: 目前的做法是只要他搜不完全就一直重新discover ... 06/21 17:46
2F:→ codehard: 装Nordic的工具试试看是不是也这样 06/23 10:10
3F:→ codehard: 不然换支手机试试 我有试过mtk的跟Q的就是不一样 06/23 10:11
4F:→ johnpaladin: 目前这个状况只发生在htc的某个手机上 @@"" 06/25 23:34
5F:→ codehard: 哪就再discovery一次吧 应该是没影响 06/27 19:02