• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Services empty when didDiscoverServices triggered
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Services empty when didDiscoverServices triggered


  • Subject: Re: Services empty when didDiscoverServices triggered
  • From: András Kövi <email@hidden>
  • Date: Mon, 16 Sep 2013 12:10:09 +0200

I guess you mixed up the method signatures a little bit. :)

I haven't seen this issue yet but core bluetooth's internal state or the peripheral's misbehavior can either be the source. Based on what you described this is undecidable.

You should prepare a small example project that can be used to reproduce the issue. Describe the exact way you test and include detailed the logs. You should submit a bug report to get more attention from Apple's engineers (who will most probably ask you to do just what I described).

Regards,
Andras


2013/9/16 Chen, Liang (IS) <email@hidden>
This issue happens on iOS  6 and iOS7.
Usually when services of peripheral are discovered, the method:

- (void)discoverCharacteristics:(NSArray *)characteristicUUIDs
forService:(CBService *)service

will get called.

Then we call the
- (void)peripheral:(CBPeripheral *)peripheral didDiscoverServices:(NSError
*)error
method to discover the characteristics.

But in my app, the peripheral.services is sometimes empty(This happens
occasionally, but it's bothering since the characteristics cannot be
found).
The worse part is that when the peripheral is in this state, it's services
keeps empty until I kill the peripheral app(an iOS app too) and restart
the app again.

From the aspect of usability, we shouldn't tell the user that "You should
kill the app and restart it and try again" right?

Has anyone seen this issue when you develop a central app?
And I'm not sure if it's a iOS issue or my app's issue.

Any engineer from Apple can answer my question? I'll be really appreciated.




 _______________________________________________
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

References: 
 >Services empty when didDiscoverServices triggered (From: "Chen, Liang (IS)" <email@hidden>)

  • Prev by Date: Services empty when didDiscoverServices triggered
  • Next by Date: Stability issues with BLE?
  • Previous by thread: Services empty when didDiscoverServices triggered
  • Next by thread: Stability issues with BLE?
  • Index(es):
    • Date
    • Thread