question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Retry mechanism on some BLE stack errors

See original GitHub issue

Summary

This is a proposed enhancement for discussion.

Today, RxAndroidBle does not support retry mechanism, meaning it has to be handled by upper layer from the application. An interesting enhancement would be to expose an interface that could be implemented by upper layer if some retry should be applied on conditions. This could be applied mostly for write operations, and especially long write. Example: It could be possible that on some tiny embedded devices, that incoming messages are not handled as fast as it is sent by the smartphone. Embedded device will then respond with a GATT_INSUF_RESOURCE 0x11 and instead of just failing the all payload, a simple retry would be good enough to have it working.

Library version

1.4.3

Actual result

Today, the request is canceled, and for a long write, you will have to retry and mostly facing the same issue next time. Thus, the payload can’t be sent.

Expected result

Upper layer implement a retry interface, and check if for example, BLE stack error code is worth a retry.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
uKLcommented, Mar 12, 2018

I suppose tomorrow 😃 We’re getting close to a release od RxJava2. FYI, we have gitter for chats 😃 https://gitter.im/RxBLELibraries/RxAndroidBle

1reaction
dariuszseweryncommented, Mar 12, 2018

It took some time but we have finally merged #357 — should be available in 1.5.0-SNAPSHOT already and in 1.5.0 in the upcoming days. 🎉 Thank you for your effort 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Retry mechanism on some BLE stack errors #352 - GitHub
Today, RxAndroidBle does not support retry mechanism, meaning it has to be handled by upper layer from the application.
Read more >
How the BLE stack handles retries in case of unstable ... - TI E2E
In case of BLE connection is not stable due to noise/interference, how the BLE stack in peripheral handles the connection? Let's say the ......
Read more >
Error codes - v2.13 - Bluetooth API Documentation Silicon Labs
Errors related to BGAPI protocol ; 0x0180, invalid_param, Command contained invalid parameter ; 0x0181, wrong_state, Device is in wrong state to receive command....
Read more >
GATTS Handle Value Indication - packet retry interval
Hi, What is the timing of the indication retry mechanism (SDK14.2, ... The Central's stack should ACQs (at GATT level?) the received message ......
Read more >
Three Simple Patterns for Retrying Jobs in Elixir - DockYard
Option #1: Simple Retry for Expected Errors. Sometimes a simple retry mechanism for retrying jobs a few times, after expected errors and then ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found