Ble multiple connection

2019-02-17 10:16发布

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?

2条回答
Deceive 欺骗
2楼-- · 2019-02-17 10:46

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

查看更多
太酷不给撩
3楼-- · 2019-02-17 10:55

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.

查看更多
登录 后发表回答