Tho*_*nan 24 linux reverse-engineering fitbit bluez
我买了一个FitBit拉链.此设备使用蓝牙4.0 LE.我想至少通过bluez连接到它.如果成功,我想知道我能找出多少协议.
我使用的是联想P500 Ideapad,它集成了对蓝牙4.0的支持.它似乎工作(种类)
当我做:
hcitool lescan
Run Code Online (Sandbox Code Playgroud)
我能够找到设备的蓝牙地址,虽然可能无关紧要,但是:CF:D9:24:DB:F4:7B
现在,我在另一个问题中读到:蓝牙低功耗:在linux中监听通知/指示我可以收听通知和其他协议功能.我曾经使用旧蓝牙,但我没有使用蓝牙LE的经验.
我试图使用hcitool lecc
或gatttool
连接到设备时遇到困难.连接超时并且似乎在Linux机器上使蓝牙处于不良状态.我能够通过重新加载蓝牙相关的内核模块来解决这个问题.
任何提示都表示赞赏.我现在正在尝试最新的bluez.
Tim*_*all 11
我记得做过类似于你所描述的事情并能够很好地连接.但是,没有列出任何指示/通知的特征,因此除了真正基本的元数据(设备类型,设备名称等)之外,我无法从设备获取任何数据.
我今天只是尝试做同样的事情,直到我告诉它使用随机类型的地址,我似乎根本无法建立连接.
这是我之前上班时记录的结果:
# gatttool -b EB:47:1D:11:11:11 --addr-type=random --primary
attr handle = 0x0001, end grp handle = 0x0007 uuid: 00001800-0000-1000-8000-00805f9b34fb
attr handle = 0x0008, end grp handle = 0x0008 uuid: 00001801-0000-1000-8000-00805f9b34fb
attr handle = 0x0009, end grp handle = 0x000e uuid: adabfb00-6e7d-4601-bda2-bffaa68956ba
attr handle = 0x000f, end grp handle = 0xffff uuid: 0000180a-0000-1000-8000-00805f9b34fb
# gatttool -b EB:47:1D:11:11:11 --addr-type=random --characteristics
handle = 0x0002, char properties = 0x02, char value handle = 0x0003, uuid = 00002a00-0000-1000-8000-00805f9b34fb
handle = 0x0004, char properties = 0x02, char value handle = 0x0005, uuid = 00002a01-0000-1000-8000-00805f9b34fb
handle = 0x0006, char properties = 0x02, char value handle = 0x0007, uuid = 00002a04-0000-1000-8000-00805f9b34fb
handle = 0x000a, char properties = 0x12, char value handle = 0x000b, uuid = adabfb01-6e7d-4601-bda2-bffaa68956ba
handle = 0x000d, char properties = 0x06, char value handle = 0x000e, uuid = adabfb02-6e7d-4601-bda2-bffaa68956ba
handle = 0x0010, char properties = 0x02, char value handle = 0x0011, uuid = 00002a29-0000-1000-8000-00805f9b34fb
handle = 0x0013, char properties = 0x02, char value handle = 0x0014, uuid = 0000fb00-0000-1000-8000-00805f9b34fb
Run Code Online (Sandbox Code Playgroud)
您可能必须配对设备才能获得实际有用的数据......不确定如何操作.