Sync Open Channel fails...
Sync Open Channel fails...
- Subject: Sync Open Channel fails...
- From: Joseph Kelly <email@hidden>
- Date: Mon, 24 Oct 2005 17:07:17 -0700
My Bluetooth module is working under most circumstances,
unfortunately, when I call
openRFCOMMChannelSync:withChannelID:delegate:, I usually get
kIOReturnNotOpen (0xE00002CD).
I call openConnection: (also sync) on the device prior to opening the
channel, and it returns no error.
I'm building 2 test clients for my module (a bundle): one is Mach0,
and one is CFM/WNE (ugh!). Both load the module as needed via
CFBundle. The Mach0 client connects successfully to the device about
60% of the time. The CFM version, however, connects less than 5% of
the time.
The async methods seem to work okay (i.e.
openRFCOMMChannelAsync:withChannelID:delegate: works about 90% of the
time.)
I also have a Mach0 app that includes the code directly, and the sync
commands succeed 80% of the time.
Any ideas here? Is there anything about the process/user space that
would impede the timing of sync operations? The CFM/WNE app does have
a bunch of timers on the run loop. It also uses MPTasks as the basis
for its threading, but those are really just pthreads.
I hope this is the last of my Bluetooth questions for a while ; )
joe
_______________________________________________
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