Re: Central and Peripheral at the same time?
Re: Central and Peripheral at the same time?
- Subject: Re: Central and Peripheral at the same time?
- From: Andras Kovi <email@hidden>
- Date: Fri, 11 Jan 2013 17:29:18 +0100
Some points you may need to consider:
- (as Etan also stated) slow scan in background
- not all advertisement data is sent in backgrounded mode from peripheral (at least this is my experience)
- duplicate filtering is always true for backgrounded scanning (you will have to restart the scan to sense returning devices)
There may be other issues but this is what comes into my mind at the moment.
Regards,
Andras
On 2013.01.11., at 17:14, Darren Jones <email@hidden> wrote:
> Thank you. I want to use non pairing so CoreBluetooth is the way.
> I'm glad it's possible. I wasn't sure if background scanning and advertising would be allowed.
>
>
> On 11 Jan 2013, at 16:02, Etan Kissling <email@hidden> wrote:
>
>> Darren,
>>
>> If you want to perform iPhone to iPhone communication only, I suggest using GameKit for it.
>> You will have an increased throughput, as classic Bluetooth is used as a transport, and don't have
>> to worry about specifying who is master and who is slave.
>>
>> If you want to stay with CoreBluetooth: at least from the Bluetooth Core Specification, a device is
>> allowed to scan and advertise at the same time. I have not yet tried it under iOS, but can tell for your
>> background requirement that scanning times are pretty slow while backgrounded (around 55x
>> advertisement interval). Also don't forget to stop scanning and advertising as soon as you establish
>> a connection.
>>
>> Etan
>>
>>
>> On 10.01.2013, at 23:59, Darren Jones <email@hidden> wrote:
>>
>>> Is it possible to use CBCentral scanning and CBPeripheral advertising at the same time? (Also in the background)
>>>
>>> If I wanted 2 random iPhones to communicate and both where set to Central or both to Peripheral they wouldn't see each other. I'd like to remove that they would both have to know which method to activate.
>>>
>>> Is that possible?
>>>
>>> Thanks
>>>
>>> Sent from my iPhone 5
>>> _______________________________________________
>>> 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
_______________________________________________
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