Re: [BTLE] Sending (a lot of) data to a Peripheral
Re: [BTLE] Sending (a lot of) data to a Peripheral
- Subject: Re: [BTLE] Sending (a lot of) data to a Peripheral
- From: Roland King <email@hidden>
- Date: Sat, 05 Jan 2013 12:03:02 +0800
On 5 Jan, 2013, at 11:30 AM, Anders Grunnet-Jepsen < email@hidden> wrote: What we do is insert delays between sends. So between every packet we would insert delays so that the effective maximum rate would not exceed that which the system supports (20x4 bytes per connection interval). As a check that we don't lose data packet we would assign the very first byte to be an incrementing index. Note that you can't just insert a sleep command but you should program it as a timer so the iOS actually exits the runtime thread and waits between sends.
Why did we go to all this trouble? We found that if we sent data with the flag set for guaranteed transmission, then the data rate would go down to an unacceptable rate. If we sent it without delays then we would start losing packets.
What is the flag for guaranteed transmission? I was searching the header files and couldn't find it.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden