How sroemer/scale-communication works
This repository is a Python BLE client for reverse-engineering the Crénot Gofit S2 scale protocol. The main workflow discovers and connects to the scale, subscribes to its measurement characteristics, waits for a stable weight and BIA message, then checks that the reported weights match. Optional device/service diagnostics are included. The Rust and Zig files are not mapped: the README describes the Python implementation, and their runtime behavior was not sampled.
Main entry points: crenot-gofit-s2.py Workflow runner
Components 14
Python client
- CLI entry
python/src/crenot-gofit-s2.py - Workflow runner
python/src/crenot-gofit-s2.py - BLE discovery
python/src/crenot-gofit-s2.py - BLE connection
python/src/crenot-gofit-s2.py - Device diagnostics
python/src/crenot-gofit-s2.py - Characteristic subscriptions
python/src/crenot-gofit-s2.py
Measurement protocol
- Stable-weight wait
python/src/crenot-gofit-s2.py - FFB2 weight parser
python/src/crenot-gofit-s2.py - BIA wait
python/src/crenot-gofit-s2.py - FFB3 weight parser
python/src/crenot-gofit-s2.py - Weight comparison
python/src/crenot-gofit-s2.py
External devices
- Bleak BLE library
- Gofit S2 scale
Other components
- CLI user
Connections 21
- CLI user → CLI entry: runs
python/src/crenot-gofit-s2.py - CLI entry → Workflow runner: starts
python/src/crenot-gofit-s2.py - Workflow runner → BLE discovery: discovers via
python/src/crenot-gofit-s2.py - BLE discovery → Bleak BLE library: scans with
python/src/crenot-gofit-s2.py - Workflow runner → BLE connection: connects via
python/src/crenot-gofit-s2.py - BLE connection → Bleak BLE library: connects with
python/src/crenot-gofit-s2.py - Bleak BLE library → Gofit S2 scale: connects to
README.md - Workflow runner → Device diagnostics: optionally calls
python/src/crenot-gofit-s2.py - Device diagnostics → Bleak BLE library: reads GATT
python/src/crenot-gofit-s2.py - Workflow runner → Characteristic subscriptions: starts
python/src/crenot-gofit-s2.py - Characteristic subscriptions → Bleak BLE library: enables notifications
python/src/crenot-gofit-s2.py - Bleak BLE library → Gofit S2 scale: receives messages
README.md - Workflow runner → Stable-weight wait: waits for
python/src/crenot-gofit-s2.py - Characteristic subscriptions → FFB2 weight parser: dispatches FFB2
python/src/crenot-gofit-s2.py - FFB2 weight parser → Stable-weight wait: updates weight
python/src/crenot-gofit-s2.py - Workflow runner → BIA wait: waits for
python/src/crenot-gofit-s2.py - Characteristic subscriptions → FFB3 weight parser: dispatches FFB3
python/src/crenot-gofit-s2.py - FFB3 weight parser → BIA wait: sets BIA weight
python/src/crenot-gofit-s2.py - Workflow runner → Weight comparison: compares weights
python/src/crenot-gofit-s2.py - Stable-weight wait → Weight comparison: provides stable weight
python/src/crenot-gofit-s2.py - BIA wait → Weight comparison: provides BIA weight
python/src/crenot-gofit-s2.py