Re: BLE disconnect on heavy WiFi
Re: BLE disconnect on heavy WiFi
- Subject: Re: BLE disconnect on heavy WiFi
- From: Etan Kissling <email@hidden>
- Date: Fri, 20 Dec 2013 09:01:31 +0000
- Thread-topic: BLE disconnect on heavy WiFi
Rick,
you can set the connection parameters from both sides.
If you are the master, issue a "connection parameters update indication".
If you are the slave, send a "connection parameters update request" and wait for it to be accepted. New connection parameters take a certain amount of time to become effective.
Please consult the "Bluetooth Accessory Design Guidelines for Apple products" for the parameter ranges that iOS accepts.
Note that from an iOS device you don't have APIs for changing connection parameters freely. The only API is on the CBPeripheralManager and allows to set the slave latency in 3 stages (high / mid / low).
Etan
> On 20.12.2013, at 07:13, "Rick Mann" <email@hidden> wrote:
>
>
>> On Dec 19, 2013, at 21:53 , Spero Koulouras <email@hidden> wrote:
>>
>> 3.1s of heavy WiFi could push you over the supervision timeout of your link layer. Time to get that USB Dongle and the TI packet sniffer going :). If you have access to the code, check and see what the connection supervision timeout is set to.
>
> You're probably right about that :-)
>
> I have access to both the iOS code, and the code on the peripheral side. Who sets the link supervisory timeout for a connection? I don't see any way to set that in iOS.
>
> On our peripheral, BLE and Wi-Fi are two separate devices (Wi-Fi is a USB dongle, BLE is connected to the processor via serial). We don't do any special coordination between the two, although most of the time BLE is just maintaining the connection.
>
> (Our real problem is that our Wi-Fi connection is dropping frequently, in the the peripheral stops responding to the iPad app, or to other tools; BLE is not really expected to be a culprit in this case).
>
> Anyway, how do I set the connection parameters? The Master or the Slave?
>
> Thanks,
>
>>
>> Spero Koulouras (408) 874-6331
>>
>>
>> On Thu, Dec 19, 2013 at 9:40 PM, Rick Mann <email@hidden> wrote:
>> I'm noticing pretty regularly that my BLE connection disconnects with 'Error Domain=CBErrorDomain Code=6 "The connection has timed out unexpectedly."' right after I transfer about 10 MB from my peripheral over Wi-Fi, which takes about 3.1 s to do.
>>
>> Is this the kind of interference behaviors others have been seeing?
>>
>>
>> --
>> Rick
>>
>>
>>
>>
>> _______________________________________________
>> 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
>>
>> _______________________________________________
>> 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
>
>
> --
> Rick
>
>
>
> _______________________________________________
> 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
_______________________________________________
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