Skip to content
This repository has been archived by the owner on Nov 20, 2021. It is now read-only.

Switch to BT SPP instead of BLE #1

Open
3 of 4 tasks
Xasin opened this issue Nov 9, 2018 · 1 comment
Open
3 of 4 tasks

Switch to BT SPP instead of BLE #1

Xasin opened this issue Nov 9, 2018 · 1 comment
Assignees

Comments

@Xasin
Copy link
Owner

Xasin commented Nov 9, 2018

As the ESP BT Library decided to be a pain to work with, and sadly does not provide Low Energy (due to a APB Max Freq Lock), it does not provide any benefits over classic BT in SPP mode.

As such, a DIY protocol should be created to utilize BT SPP in regular "burst" exchanges, to save energy and be easy to use.
The following criteria should be met:

  • "EOT" Signal code when all values are up-to-date
  • Sending of arbitrary data with arbitrary length, grouped by a 16-bit packet ID. Maybe Base64 encoding for better security and newline separation?
  • "Overwrite" and "Stream" characteristics, which either provide a single, "current" value, or a stream of data (battery mV versus command stream)
  • Seamless use of "write" functions regardless of connection status (i.e. immediate update push or buffer until reconnected)
@Xasin
Copy link
Owner Author

Xasin commented Nov 29, 2018

Only the EOT signal and auto-reconnect remain now - looking good!

@Xasin Xasin self-assigned this Nov 29, 2018
@Xasin Xasin added this to the First functionality milestone Nov 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant