• 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
How to find an existing RFCommChannel on device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to find an existing RFCommChannel on device


  • Subject: How to find an existing RFCommChannel on device
  • From: Peter Sichel <email@hidden>
  • Date: Thu, 13 Aug 2009 10:55:16 -0400

I'm working on a program which connects to Bluetooth phones following Apple's sample code.
Sometimes, when I attempt to open an RFCommChannel, I get the following error


Error - open sequence failed. ioResult=e00002c5 ***
Aug 13 10:16:45 Zippy PhoneAmego[20543]: kIOReturnExclusiveAccess - exclusive access and device already open


because the channel is already open by a previous instance of my own program but I no longer have the IOBluetoothRFCOMMChannel object.

My question is how to recover the IOBluetoothRFCOMMChannel object if the channel is already open?
Should I close the connection to the device and start over, or is there some other way to recover
an existing RFCommChannel given the service record or channelID?


Thanks for any insight,

- Peter Sichel
 Sustainable Softworks
_______________________________________________
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: Cancelling an OBEXFileTransferServices session before transfer has begun
  • Next by Date: List of connected devices.
  • Previous by thread: Cancelling an OBEXFileTransferServices session before transfer has begun
  • Next by thread: List of connected devices.
  • Index(es):
    • Date
    • Thread