Ble multiple connection

痞子三分冷 提交于 2019-12-19 06:58:03

问题


is it possible to connect multiple sensor tags via Bluetooth low energy? In the app provided by TI, the sensor tag is the server, and app is client. So, it is possible for a single client to connect multiple servers?


回答1:


YES, it is possible to connect from one application to multiple BLE devices

On the other side, at at the moment, Android BLE stack (BlueDroid) seems to have synchronous nature (may be it is inspired by Samsung stack from 4.2 devices , where this behaviour was documented as discuseed here Has native Android BLE GATT implementation synchronous nature?).

This mean, that if one operation is in progress, othes are ignored, so you have to implement e.g., queue of requests to be sure that just one characteristic read/write is in progress.

More over, Andorid BLE stack is at the moment quite unstable, as discussed in many threads, e.g, here Android 4.3 Bluetooth Low Energy unstable

Hope this helps




回答2:


You're terminology doesn't seem to be quite correct, but if you're trying to ask whether it's possible to connect multiple senrors or similar to one phone, the answer to that should be yes.

I'd recommend you to take a look at this and this, to better understand the roles in BLE.



来源:https://stackoverflow.com/questions/20214862/ble-multiple-connection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!