Is it possible to connect Android Wear device with another BLE device directly without interaction of phone device?

▼魔方 西西 提交于 2019-11-30 03:07:51

问题


I am looking for an Advice to connect two BLE devices directly with each other without interference of phone device.I know that in normal scenario watch will connect with mobile device's Bluetooth and then it will work for normal data transmission process.

In my case I want this thing directly between two BLEs.I have One BLE device which is Android Watch(Sony,MOTO or ANY Android Wear) and the another is BLE belt or Strap. Now in current scenario thing are working fine if watch is paired with Mobile phone,Strap can pass data through it and watch will receive those data.

But is there anyway from that I can skip the mobile device pairing part and connect Android watch & strap directly with each other.

Your wisdom and ideas are more than welcome,thanks for reading!


回答1:


BLE protocol only allows the communication between a central and a peripheral device. The wristband surely is a peripheral device that advertises BLE packets and expose some services (for example the heart rate).

You need to figure out if the android watch support BLE in central mode. In that case you will be able to scan for advertisement packets coming from peripheral devices (wristband), and connect to them.




回答2:


Yes you can but you will have to write an android wear app for your watch unless your strap has one already:-

If you have a Bluetooth Smart accessory, open its app on your watch and follow the app's instructions to pair the accessory to your watch.

quote from here.



来源:https://stackoverflow.com/questions/36262863/is-it-possible-to-connect-android-wear-device-with-another-ble-device-directly-w

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