-
Notifications
You must be signed in to change notification settings - Fork 13
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
Using omblepy implementation for supporting OMRON devices in Gadgetbridge #32
Comments
Hi corrados, Gadgetbridge looks like nice project, but unfortunatelly I'm lacking the java skills and time to work on that. For win10 you really need to be fast with the pairing dialog confirmation. Do you get any kind of error from omblepy while trying to pair / connect? Did you already test with the esp32 bridge? Best, |
Hi Benjamin, sorry for my late response but I was not at home for several days and could not access my Omron device.
Same with me. I code in C++ but I do not have any java skills too, unfortunately...
That did the trick! :-) If I very quickly select the device from the list when trying to pair, it works. Now I am using the -m flag for reading data and it works perfectly. Thank you for your support. |
Yes I did but that did not work. Do you want me to try it again and give you more info on the error message? |
Nice that you get the windows version working. I also looked into the short timeout issue, but was unable to figure out where this goes wrong.
If you find the time for futher testing with esp32, it would be useful to know in which stage the error occurs. Thanks a lot. |
It's a bit hard for me to find out what goes wrong with the ESP32 connection. When I tried first, I did not see the device in the list: python3 omblepy_bridge.py -b /dev/ttyUSB0 -p -d HEM-7600T --loggerDebug +----+-----+------+------+ After rebooting the ESP32, it then found it: python3 omblepy_bridge.py -b /dev/ttyUSB0 -p -d HEM-7600T --loggerDebug +----+-------------------+-------------------------------+------+ Using my known MAC address, it says "communication started" but there is no file with values: python3 omblepy_bridge.py -b /dev/ttyUSB0 -d HEM-7600T --mac 00:5F:BF:x:x:x --loggerDebug Does this help? |
Not sure why it needs a restart of the esp32, but I can see that even the pairing process is not working. Enable the pairing mode of the omron device and send the esp32 the letter "S" in the Arduino IDE serial console, to check that it is visible. Then try to pair by sending 'p 00:5F:BF:xx:xx:xx'. Thanks. |
Here is what I get: rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) |
So the issue seems to be before writing to any bluetooth characteristic, in the bluetooth bonding phase with the esp32. omblepy/esp32bridge/esp32bridge.ino Lines 117 to 126 in 406f706
Here is some information on these settings: I will try to record the output for pairing with my 7322t, to have a better comparison. |
So this is how it does look like for my hem7322t for comparison: Arduino Log with Info
Arduino Log with Verbose
Maybe you can try verbose logging, |
I have a HEM-7600T but I am not able to readout data with omblepy. I tried it under Ubuntu, ESP32 and Windows 10. Today, I once could readout data with UBPM under Windows but cannot reproduce it anymore :-/. So, an alternative solution would be great.
As you already tried to get rid of OS restrictions with regard to bluetooth with your ESP32 implementation, another solution would be to integrate your work in Gadgetbridge which runs on Android. There is already an open issue at Gadgetbridge for it: https://codeberg.org/Freeyourgadget/Gadgetbridge/issues/3656
Would that be something you would consider supporting?
The text was updated successfully, but these errors were encountered: