oliexdev / openScale

Open-source weight and body metrics tracker, with support for Bluetooth scales
GNU General Public License v3.0
1.66k stars 290 forks source link

Initial support for icomon BleBroadcastScales #1041

Closed Duncaen closed 3 months ago

Duncaen commented 4 months ago

This adds support for scales as described in https://github.com/oliexdev/openScale/issues/593.

The model I have is a "Foryond FG263LB", with the device name "AAA002", for which I added the support, other models described in the linked issue probably work too if their name is added.

I'm not very familiar with android or java so this is pretty basic and hacked together. I had to somehow get the BluetoothConnection class to not be connection orientated, so I added an empty constuctor and overwrote the connect and disconnect methods to instead just scan for bluetooth le advertisement messages from the know mac address.

The other ignored bluetooth packet contains the impedance measurement, but without the full algorithms its useless

BroadcastScale is named after the internal name in the original app, couldn't come up with anything better, since there are a lot of different brandings for this OEM.

nanomad commented 3 months ago

Confirmed working with device name AAA007, nice job!

oliexdev commented 3 months ago

Thanks I merged it into the repository.