-
Notifications
You must be signed in to change notification settings - Fork 1.2k
improve the speed of storage syncs via BLE #3511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -296,7 +296,7 @@ void storage_write(void) | |
| write_to_gatt(conn); | ||
|
|
||
| heartbeat_count = (heartbeat_count + 1) % (MAX_HEARTBEAT_FRAMES + 1); | ||
| k_msleep(100); | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. By removing A more power-efficient approach would be to use an event-driven mechanism. For instance, you could use |
||
| transport_started = 0; | ||
| if (remaining_length == 0) { | ||
| if (stop_started) { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reducing the connection interval to 7.5ms will significantly increase data throughput, but it will also substantially increase power consumption. Furthermore, requesting a fixed and very short connection interval might cause issues with some central devices (e.g., smartphones) that may not be able to sustain such a fast interval, potentially leading to connection instability. Consider using a slightly larger range for MIN and MAX intervals to give the central device more flexibility.