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
Add support for chipsea / OKOK 2.0 scales #706
Conversation
For now only handles weight, impedance is read, but not used for anything, algorithms not known. The scale does not indicate whether it is sending the weight in kg or in lbs, always assuming kg.
thanks for your work but could rewrite your code that you don't overwrite connect/disconnect and onDiscoveredPeripheral. You can put the logic in onNextStep and onBluetoothNotify |
I didn't figure out a way to get the advertisement data any other way, am I missing something? |
You need to turn on the notification in onNextStep with:
Then you will receive any weight advertisement in onBluetoothNotify. The WEIGHT_MEASUREMENT_SERVICE and WEIGHT_MEASUREMENT_SERVICE could be different but the default values are:
|
The device is a pure broadcaster and does not advertise any GATT services (nor characteristics). All the data is simply in a manufacturer specific data field in the advertisement. The fields present in the advertisement are:
As far as I understand, this data would only be received in the Still, this is the only way I've perceived this kind of broadcaster-listener can be implemented without altering |
that would be really strange, could you do step 2 from https://github.com/oliexdev/openScale/wiki/How-to-reverse-engineer-a-Bluetooth-4.x-scale and post the results here? |
openScale_2021-03-04_09-57.txt When I click on the scale, it pops up a never ending spinner. |
you are using an old version of openScale? But if its not work please use the BLE scanner app. |
ok that would be the first scale without an Bluetooth service but if its works I will merge it. Do you have maybe a photo of the scale for out gallery (same camera angle like the other ones)? I can't use the official one due copyright reasons. And thanks for your work. 🥇 |
For now only handles weight, impedance is read, but not used for
anything, algorithms not known.
The scale does not indicate whether it is sending the weight in kg or in
lbs, always assuming kg.
Based on findings from #496