This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Notification packet loss iOS/Android

From my understanding, notifications have guaranteed in-order delivery at the lower levels. I'm working on a small file transfer system out of an nrf52840, trying to decide if I can design the protocol for a lossless system. 

Is it possible for the BLE notification to be delivered to the App out-of-order? 

Is it possible for the notification to be received by the phone hardware but not delivered to my app on Android/iOS? 

Parents
  • Hello,

    So far we didn't have problems with this. On Android, the value of a characteristic is a shared resource for writing and reading/notifications, so make sure you don't reuse the same characteristic for writing and getting values. Otherwise you may receive what you have just send. Also, try to avoid setting another handler in connectGatt. All notifications will be received on the BLE handler without another delay/copying to your thread. On iOS there seem to be no issues.

Reply
  • Hello,

    So far we didn't have problems with this. On Android, the value of a characteristic is a shared resource for writing and reading/notifications, so make sure you don't reuse the same characteristic for writing and getting values. Otherwise you may receive what you have just send. Also, try to avoid setting another handler in connectGatt. All notifications will be received on the BLE handler without another delay/copying to your thread. On iOS there seem to be no issues.

Children
No Data
Related