简体   繁体   English

找到Ble Device GATT服务建议

[英]Locate Ble Device GATT service recommend

im pretty new to android programming but I'd like to know if its possible to implement a location service to locate ble devices discovered on our app. 我是android编程的新手,但我想知道是否有可能实施定位服务来定位在我们的应用中发现的ble设备。

Im having trouble understanding the different specs for bluetooth and all examples are using the Heart Rate monitor. 我无法理解蓝牙的不同规格,所有示例都在使用心率监视器。 Its quite overwhelming considering the wide range of service and characterististics to choose from. 考虑到广泛的服务和特性可供选择,这是非常压倒性的。 Any suggestions ? 有什么建议么 ?

Also, are there any other examples that could help me with coding the profile ? 另外,还有其他示例可以帮助我对配置文件进行编码吗? Specifically showing the location of the discovered ble device if its possible. 如果可能,具体显示发现的ble设备的位置。

Please do help me understand better. 请帮助我更好地理解。 Thanks in advance 提前致谢

I am quite new to this topic, too, so please don't count on my answer. 我对这个话题也很陌生,所以请不要指望我的答案。

As I understand the whole topic, you can make your peripheral BLE device send its position to the client. 据我了解的整个主题,您可以使外围BLE设备将其位置发送给客户端。 Therefore you might need to programm the peripheral device so that it has the Location Service enabled. 因此,您可能需要对外围设备进行编程,以使其启用定位服务。 Therefore you need the matching UUID I think. 因此,您需要我认为匹配的UUID。 Then you can "Advertise" the location of your peripheral to the client (your smartphone). 然后,您可以将外围设备的位置“广告”到客户端(您的智能手机)。 I still don't know though, how to do this exactly. 我仍然不知道如何准确地做到这一点。 Do you know about this ? 你知道这个 It is a starter kit with software examples and explaining texts, maybe this helps. 这是一个入门套件,包含软件示例和说明文字,也许有帮助。

If you found out how to deal with your problem, I would be happy to hear, even if this thread seems to be forgotten by everyone. 如果您找到了解决问题的方法,即使每个人似乎都忘记了这个话题,我也会很高兴听到。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM