是否可以检测MiBand 2中的触摸? [英] Is possible to detect touches in MiBand 2?

查看:79
本文介绍了是否可以检测MiBand 2中的触摸?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Github中查看了许多非官方的MiBand SDK. (例如 https://github.com/Freeyourgadget/Gadgetbridge )没有包含检测何时触摸按钮的信息,但是我已经查看过应用程序以检测此功能. 例如Mi Band 2 Func Button.

I have viewed many unofficial MiBand SDKs in Github. (e.g. https://github.com/Freeyourgadget/Gadgetbridge) None includes detect when button touching, but I have viewed apps to detect this feature. For example Mi Band 2 Func Button.

我还尝试了嗅探蓝牙数据痕迹,但是只是显示数据,因为移动设备没有植根并且我也没有植根. 有什么办法可以检测到miband按钮的触摸? 非常感谢!

Also I have tried sniffing bluetooth data traces, but just show data because mobile device is not rooted and I haven't rooted. Is there any way I can detect the touch of a miband button? Thanks a lot!

推荐答案

如果Mi Band设备上发生任何触摸事件,您可以收听.

You can listen if there is any touches event on the Mi Band device.

假设该应用程序已通过身份验证...

Assuming that the app authenticated...

开始通知UUID_CHARACTERISTIC_DEVICEEVENT特性(在我的情况下是"00000010-0000-3512-2118-0009af100700")

Start notification to UUID_CHARACTERISTIC_DEVICEEVENT characteristic (In my case it's "00000010-0000-3512-2118-0009af100700")

如果触摸设备,您将收到'\ x04'.

and you shall receive '\x04' if the device touched.

这篇关于是否可以检测MiBand 2中的触摸?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆