问题描述
我购买了FitBit拉链.该设备使用蓝牙4.0 LE.我想至少通过bluez连接到它.如果成功的话,我想看看有多少协议可以解决.
I purchased a FitBit zip. This device uses Bluetooth 4.0 LE. I would like to at least connect to it via bluez. If that is successful I want to see how much of the protocol I can figure out.
我使用的是Lenovo P500 Ideapad,它已集成了对蓝牙4.0的支持.似乎可行(类似)
I am using a Lenovo P500 Ideapad which has integrated support for Bluetooth 4.0. It seems to work (kind of)
当我这样做时:
hcitool lescan
我能够找到设备的蓝牙地址,尽管(可能不相关):CF:D9:24:DB:F4:7B
I am able to find the device's bluetooth address, which (though potentially irrelevant) is: CF:D9:24:DB:F4:7B
现在,我读了另一个问题: Bluetooth Low Energy :在linux中监听通知/指示,我可以监听通知和其他协议功能.我曾经使用过旧的蓝牙,但是没有使用蓝牙LE的经验.
Now, I read in another question: Bluetooth Low Energy: listening for notifications/indications in linux that I can listen for notifications and other protocol features. I've worked with old bluetooth, but I have no experience with bluetooth LE.
尝试使用hcitool lecc
或gatttool
连接到设备时,我陷入了困境.连接超时,并且似乎使Linux机器上的蓝牙处于不良状态.我可以通过重新加载与蓝牙相关的内核模块来解决此问题.
I am getting stuck trying to use hcitool lecc
or gatttool
to connect to the device. The connection times out and seems to leave bluetooth in a bad state on the Linux box. I am able to fix that by reloading bluetooth related kernel modules.
任何提示都值得赞赏.我正在尝试使用最新的bluez.
Any hints are appreciated. I'm trying with the latest bluez now.
推荐答案
看看 galileo项目,我们能够使用Fitbit加密狗(也是BluetoothLE连接器)连接到跟踪器(并使其同步).那里使用的字节应该可以帮助您找出所需的字节...
Have a look at the galileo project, we are able to connect to the tracker (and synchronise it) using the Fitbit dongle, which is also a BluetoothLE connector. The bytes used there should help you figure out the one you need ...
全面披露:我是该项目的维护者.
Full Disclosure: I am the maintainer of this project.
这篇关于如何使用bluez在Linux上的Bluetooth 4.0 LE上连接到FitBit Zip?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!