Closed zhuibo66 closed 2 years ago
Judging from your backtrace, the problem lies somewhere between your OS and the Bluetooth client that my code is using - I’m afraid that there is not much that I can do about it:
Judging from your backtrace, the problem lies somewhere between your OS and the Bluetooth client that my code is using - I’m afraid that there is not much that I can do about it:
Judging from your backtrace, the problem lies somewhere between your OS and the Bluetooth client that my code is using - I’m afraid that there is not much that I can do about it:
It’s okay. I really feel that your reply is taking up your time. I currently want to create a Wechat Mini Program through which I can read the data of the bracelet (such as steps, battery).
But I don’t know how to communicate with the bracelet after connection. I currently know that after the initial BLE scan and GATT read, these bytes are written, 5a000b0001010100020003000400f13b
Then, return to some messages, but it is not clear how to decrypt it.
If you need any information there, I can provide them all, thank you.
There is a new mistake
characteristics_result.Status, ""
bleak.exc.BleakDotNetTaskError: Could not get GATT characteristics for Windows.Devices.Bluetooth.GenericAttributeProfile.GattDeviceService: AccessDenied
Hi @zhuibo66, sorry that it's taken me so long to get back to you.
Unfortunately, since I've written this code, Huawei has changed the authentication scheme several times and the current code only supports old bands with no firmware updates applied.
However, a few days a kind soul has backported the newly reversed auth sequences from GB and submitted a PR: #8. Please check whether this works for you, I have made my changes to it and intend to merge it to master as soon as someone has tested it.
Thank you!
Here is the error message:
My idea is that you can directly get the data like the number of steps today and the cell phone battery through Bluetooth