Re: Connect issue, didDisconnect(Time out) and CoreBluetooth[WARNING]
Re: Connect issue, didDisconnect(Time out) and CoreBluetooth[WARNING]
- Subject: Re: Connect issue, didDisconnect(Time out) and CoreBluetooth[WARNING]
- From: Long LI <email@hidden>
- Date: Thu, 06 Dec 2012 09:20:38 +0900
The warning is spam and missed connect again.
thanks again.
Long LI
On Thu, Dec 6, 2012 at 1:59 AM, Etan Kissling <email@hidden> wrote:
> Which of the remarks did help you? :-)
>
> Etan
>
> On 05.12.2012, at 17:30, Long LI <email@hidden> wrote:
>
>> Done.
>>
>> Thank you very much, Etan (y)
>>
>> Best Regards
>> Long LI
>>
>> On Thu, Dec 6, 2012 at 12:55 AM, Etan Kissling <email@hidden> wrote:
>>> Long,
>>>
>>> first concern I have is that you don't seem to stop scanning prior to connecting.
>>> This can lead to very long connect times.
>>>
>>> Regarding your warnings:
>>> 1. the didDisconnectPeripheral message makes sense and describes in the error
>>> parameter that you took your power off.
>>>
>>> 2. the warnings that are spammed seem to occur when you try to access a device
>>> that is not connected anymore. To find out where this occurs, you should log every
>>> call to your CBPeripheral. As soon as the didDisconnectPeripheral message
>>> arrives, you should refrain from accessing your CBPeripheral again.
>>>
>>> 3. In order to reconnect, it is necessary to issue another connect request. Reconnection
>>> does not happen automatically.
>>>
>>>
>>> Hoping that this can help you.
>>> Etan
>>>
>>> On 05.12.2012, at 16:32, Long LI <email@hidden>
>>> wrote:
>>>
>>>> Hi
>>>>
>>>> I am testing Connect and Reconnect issue, using iPhone5 ios6.0.1 and
>>>> TI CC2540 BLE Kit. I need some help.
>>>>
>>>> Here is my program sequences:
>>>>
>>>> scan - didDiscover - connect - didConnect - discoverServices - POWER
>>>> OFF - didDisconnect(Time out) - CoreBluetooth[WARNING] (many times) -
>>>> POWER ON - didDiscover - CoreBluetooth[WARNING] (many times)
>>>>
>>>> When I power off BLE Kit, a timeout error raised, then power on, the
>>>> peripheral was discovered, but I can't connect it again. the
>>>> CoreBluetooth[WARNING] show many times in log. I can't catch this
>>>> exception.
>>>> Any Suggest?
>>>>
>>>> The Log:
>>>>
>>>> [LeDiscovery centralManager:didDisconnectPeripheral:error:] [Line 316]
>>>> Error Domain=CBErrorDomain Code=6 "The connection has timed out
>>>> unexpectedly." UserInfo=0x1ed7f2b0 {NSLocalizedDescription=The
>>>> connection has timed out unexpectedly.}
>>>>
>>>> CoreBluetooth[WARNING] <CBConcretePeripheral: 0x1f891ec0 UUID =
>>>> <CFUUID 0x1f892000> F99A1955-E2C2-A81F-6727-CF247135A263, Name = "",
>>>> IsConnected = NO> is not connected
>>>>
>>>> Best Regards.
>>>> Long LI
>>>> _______________________________________________
>>>> 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