Re: 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" <rmann@latencyzero.com> wrote:
On Dec 19, 2013, at 21:53 , Spero Koulouras <spero@koulouras.com> 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 <rmann@latencyzero.com> 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 (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/spero%40koulouras.com
This email sent to spero@koulouras.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/rmann%40latencyzero.co...
This email sent to rmann@latencyzero.com
-- Rick
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/kissling%40oberon.ch
This email sent to kissling@oberon.ch
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Etan Kissling