Re: L2CAP Connection to MightyMouse
Re: L2CAP Connection to MightyMouse
- Subject: Re: L2CAP Connection to MightyMouse
- From: Marco Pontil <email@hidden>
- Date: Wed, 17 Jan 2007 08:57:41 -0800
Why do you want to connect to the MightyMouse ?
I am not certain, but my guess is that it is all because of speed,
the HID driver kext is designed to match on channel with PSM 0x11,
which means that as soon as that channel shows up the kext will try
to attach to it. Also an L2CAP channel (RFCOMM channels too) can have
only one client. So the first client to connect wins. Simply
openL2CAPChannelSync is faster than openL2CAPChannelAsync (since
openL2CAPChannelAsync is a notification from kernel to user space) so
with openL2CAPChannelSync you win with openL2CAPChannelAsync the kext
wins.
... Marco
On Jan 17, 2007, at 12:55 AM, Moritz Gmelin wrote:
Hi,
if I want to open a L2CAP connection to my MightyMouse on channel
0x11, it works if I call openL2CAPChannelSync however, if I try to
open the same connection using openL2CAPChannelAsync (Async instead
of Sync) my l2capChannelOpenComplete method of the listener gets
called with an error.
Can anyone explain why this happens ?
The same seems to apply to Wii remote control devices and possibly
all HDI devices.
Thanks
Moritz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
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