-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BP653 / HEM-6321T-Z #23
Comments
Hi James, from experience getting the pairing to work can be a bit tricky, though is easier on windows. Bluez or the bluetooth library I use (bleak) seems to have some problem with pairing on certain bluez versions. My tool only has very little control over the pairing process, this is all done in the library / os level. Here is the entirety of code related to the bluetooth pairing: Lines 362 to 364 in 1f43fef
On thing you could try is to lower the protection level to 1 or 0 .
When I trace back the error returned from bleak on windows according to the microsoft documentation it resolves to:
Maybe you need to give windows more time for the previous connection attempt to timeout. I would have some additional questions regarding your testing on win11:
From your Do you have another windows device you could test on? Best, |
Hi Benjamin,
Yes, I start with the device unpaired. After selecting my bpm in omblepy, I get the pairing pop-up in windows and "HEM-6321T-Z Connection succeeded" dialog. I have tried variations on pairing first and without -p option, but still no success.
Unfortunately I don't have access to another windows device for now. I am able to connect to the BPM (on ubuntu) with bettercap to get some info on device BLE attributes, log attached. Thanks, |
Hi James, sorry it took so long. I have created a bootable win11 usb stick and tested on my pc with an ax200 intel bluetooth card.
My second test was using python 3.10.11 and the most recent versions of bleak and terminaltables. After multiple attempts I got it working by instantly clicking the system pairing notification and clicking accept. The timeout for this is extremely short, if you see "unpair and disconnect" in the terminal you are already too late.
Also having the bluetooth menu already open, decreases the time for the accept dialog to show up. Interestingly this seems to only work every second time. The next attempt returned error 15 again, and I had to remove the device from the "Other devices" list in the Bluetooth system settings for the next attempt to work again. I will ask the developers of bleak if they have any idea what could cause this behavior. Best, |
FYI hbldh/bleak#1528 |
Hi Benjamin, Thanks! It's took me a number of sessions and many attempts, but encouraged by your message I persevered and eventually succeeded.
Many thanks, |
Hi James, so the windows 11 bluetooth pairing behavior really was the problem. If you want to have a driver for reading the data of the hem-6321t, we could also discuss that. Not sure if an existing driver might work for this model or if some modifications are required. Regards, |
Hi Benjamin, Encouraged by success on win11, I was also able to get the pairing working on ubuntu 23.10. I think the combination of my HEM-6321T and bluez has some issues, which I only resolved with restarting ubuntu before each try with omblepy. (Just restarting bluetooth service and clearing the bluetooth cache was not enough). Yes, it would be awesome to have a driver to read the data from my HEM-6321T. How can I help with that? Thanks, |
Hi James, please check out https://github.com/userx14/omblepy/tree/hem-6321t-testing for a prototype file for the device driver. Best, |
Hi, I get exception trying to pair with Omron BP653 / HEM-6321T-Z;
On Ubuntu 22.04 I get this:
On win11 I get this:
I have tried the troubleshooting steps without success.
My BT info:
Thanks,
James
The text was updated successfully, but these errors were encountered: