Skip to content

Commit

Permalink
minor cleanup and update of readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
sroemer committed Sep 11, 2024
1 parent 315e456 commit 18b6456
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,16 @@ There also seem to be some identical scales with a different branding on the mar
![scale](https://github.com/sroemer/scale-communication/blob/main/img/crenot_gofit_s2.jpg?raw=true)
![packaging](https://github.com/sroemer/scale-communication/blob/main/img/crenot_gofit_s2_box.jpg?raw=true)

## Status
## Status of the implementation

v0.1: The client is able to get the weight from the scale.

## Communication and data processing

1. Discover BLE devices
2. Connect to scale
3. Activate notifications/indications on characteristic 'FFB2'
4. Receive notifications for 'FFB2' and process data:
- update weight value from bytes 6-8 (18 lowest bits)
- if byte 4 is 2 stop updating the values (weight got stable) and exit

Currently the code only discovers available BLE devices and connects to a device
with the name "Crenot Gofit S2" (if available).
2 changes: 1 addition & 1 deletion src/crenot-gofit-s2.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async def run(self):

logging.info(f"Connection to scale '{name}' established")

await self.get_device_information()
# await self.get_device_information()
# await self.print_services()

await self.start_notification("FFB2")
Expand Down

0 comments on commit 18b6456

Please sign in to comment.