• 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
Using the iPhone as a Peripheral
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using the iPhone as a Peripheral


  • Subject: Using the iPhone as a Peripheral
  • From: Denis Ogun <email@hidden>
  • Date: Fri, 20 Jul 2012 09:21:38 +0000
  • Thread-topic: Using the iPhone as a Peripheral

Hi,

 

Has anyone managed to get the simulator working as a peripheral? I’ve done the following and can connect to it, just most of the CBPeripheralManagerDelegate methods don’t seem to get called:

 

1.       Create the services and characteristics tree

2.       Start advertising the data with the advertising packet containing a single service and the peripheral name.

3.       Used a development board and a CLI to it in order to connect. This connects fine and I’m able to see all the services and characteristics currently running on the device. Trying to read a characteristic value fails though, presumably because I the didReceiveReadRequest method is never called.

4.       Used a packet sniffer to verify that the simulator is advertising fine and that the CONNECT_REQ is being sent. I also see that a connection is established as I can read the characteristic values off the device. I can also issue a bonding request and this happens fine.

 

However, at no point during are any of the following methods called:

 

centralDidConnect

centralDidDisconnect

didReceiveReadRequest

didReceiveWriteRequests

 

I do know that the I’ve implemented the delegate correctly as the following methods are called:

 

didAddService

peripheralmanagerDidStartAdvertising

 

Any advice because I’ve hit a brick wall!

 

Thanks,

Denis

 



Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
 _______________________________________________
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

  • Prev by Date: Alert BLE while a phone call is coming
  • Next by Date: Central manager callback didDiscoverPeripheral twice
  • Previous by thread: Alert BLE while a phone call is coming
  • Next by thread: Central manager callback didDiscoverPeripheral twice
  • Index(es):
    • Date
    • Thread