Skip to content
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

BLE improvements #80

Merged
merged 5 commits into from Oct 12, 2019
Merged

BLE improvements #80

merged 5 commits into from Oct 12, 2019

Conversation

arsab
Copy link
Contributor

@arsab arsab commented Oct 3, 2019

Code Inspection fixes:

  • Discovering new device means we could find New valid device/service (couple validity check with search) so changes to ServiceInterface, BleSensorSDK18, CscService, HeartRateService, BatteryService.

  • When we buffer messages send to sensor, try to keep order: use FIFO rather than LIFO so changes to Executer

Ease operation:

  • Try to reconnect while riding with click or on disconnect (get far and comme back...) so changes to CockpitActivity, CockpitView, SensorService , AppBroadcaster, Connector

Improve new sensor discovery:

  • Make selective scan to reduce sensor list to sort: so changes to BleScannerSDK21
  • speed up new service association during scann: so changes to BleSensorsSDK18, SensorItemState

This improve significantly BLE discovery and keep connection, it would be worth in future to decouple "configuration" vs run time states


In relation with challanges highlighted in issues:
#78
#61

few improvements, few discovery and association challenges remains,
decouple configuration states and run time states.
e.g. do we need to space messages?

sorry for confusion it is simply change:
b087bdd

arsab and others added 5 commits October 3, 2019 00:19
Code Inspection fixes:
- Discovering new device means we could find New valid device/service (couple validity check with search) so changes to ServiceInterface, BleSensorSDK18, CscService, HeartRateService, BatteryService.

- When we buffer messages send to sensor, try to keep order: use FIFO  rather than LIFO so changes to Executer

Try to reconnect while riding with click or on disconnect (get far and comme back...) so changes to CockpitActivity, CockpitView, SensorService , AppBroadcaster, Connector

Improve new sensor discovery:
- Make selective scan to reduce sensor list to sort: so changes to BleScannerSDK21
- speed up new service association during scann: so changes to BleSensorsSDK18, SensorItemState

This improve significantly BLE discovery and keep connection, it would be worth in future to decouple "configuration" vs run time states
@bailuk bailuk changed the base branch from master to ble October 12, 2019 05:34
@bailuk
Copy link
Owner

bailuk commented Oct 12, 2019

Thank you for this contribution.
I merge this into a separate branch for testing. It will go into master as soon (hopefully after this weekend).

@bailuk bailuk merged commit 4b259a6 into bailuk:ble Oct 12, 2019
bailuk added a commit that referenced this pull request Oct 19, 2019
…), display message to user when reconnecting
bailuk added a commit that referenced this pull request Oct 19, 2019
…is with SensorStateButton in MainActivity
bailuk added a commit that referenced this pull request Oct 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants