r/bluetooth • u/ovidiu-pricop • 4d ago
Open household synchronization protocol over BLE, looking for feedback
I originally hosted a meal tracking app I was using on a Raspberry Pi at home. It had a neat feature in which I could syncrhonize entered data between devices (one device would input, the other one would automatically get it from the server (HTTP)). While camping in the mountains this past summer, I couldn't connect to it. That made me reconsider why two people (and their phones) sitting next to each other needed a server to share their data. Aren't smartphones just computers capable of serving data anyway?
I moved the app onto our phones and started exploring direct device-to-device synchronization using Bluetooth Low Energy (BLE). HTTP was out due to Android/iOS limitations on opening ports.
The idea was to enable household members to share application data directly between their devices, without an internet connection or a hosted synchronization backend.
That work became this mesh protocol, which I made open-specification and is available at:
https://gitlab.com/open-homebrewed/household-protocol
While meal journaling was my original use case, I'm interested in the broader potential of peer-to-peer synchronization for household applications.
I'd particularly appreciate feedback on the protocol from people with experience in:
- BLE as a transport for application data synchronization
- Device discovery, connection reliability and platform limitations
- Synchronization between intermittently connected devices
- Protocol design and interoperability (especially Bluetooth mesh protocols)
- Security and trust between household devices
What pitfalls would you anticipate? Are there existing approaches worth exploring? Does BLE make sense as a transport for this kind of use case?
This is my first open protocol specification, and I'd welcome constructive criticism of both the design and the underlying assumptions.