How flip-dots/solixble works
SolixBLE is a Python library for discovering, monitoring, and controlling Anker Solix/Prime devices over Bluetooth. Its user-facing workflow is scanning for devices, selecting a supported model, connecting and negotiating a session, then exchanging telemetry and control commands. Device-specific modules define model behavior; shared packet structures and protocol implementations support the runtime. The README documents the capabilities and BLE workflow, but several implementation links are omitted because the supplied excerpts do not show their call sites.
Main entry points: device.py Device connection · factory.py Device factory · utilities.py BLE scanning · devices Supported models
Components 15
Discovery and selection
- BLE scanning
SolixBLE/utilities.py - Advertisement parsing
SolixBLE/advertisement.py - Device factory
SolixBLE/factory.py
Device runtime
- Device connection
SolixBLE/device.py - Prime behavior
SolixBLE/prime_device.py - BLE transport
SolixBLE/transport.py
Device models
- Supported models
SolixBLE/devices - Telemetry states
SolixBLE/states.py
Protocol and encoding
- Protocol constants
SolixBLE/const.py - Packet encoding
SolixBLE/constructs.py - Negotiated session
SolixBLE/protocols/session.py - ECDH key exchange
SolixBLE/protocols/ecdh.py - Outer protocol
SolixBLE/protocols/outer.py
Other components
- Library user
- Bleak Bluetooth
Connections 9
- Library user → BLE scanning: scans for
README.md - BLE scanning → Bleak Bluetooth: uses scanner
SolixBLE/utilities.py - Device factory → Advertisement parsing: parses records
SolixBLE/factory.py - Device factory → Supported models: selects models
SolixBLE/factory.py - Supported models → Device connection: specializes
SolixBLE/devices/c1000.py - Prime behavior → Device connection: specializes
SolixBLE/prime_device.py - Device connection → Packet encoding: builds packets
SolixBLE/device.py - Negotiated session → Device connection: sends negotiation
SolixBLE/protocols/session.py - ECDH key exchange → Negotiated session: advances stages
SolixBLE/protocols/ecdh.py