Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Opening L2CAP PSM channels
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Opening L2CAP PSM channels



Hi All,

I have spent a number of days working with the bluetooth stack on the
Mac OSX. Its been particularly hard because the packet-decoder is not
available.

My issue is that while i can open any RFCOMM channel I want. I have
trouble with L2CAP. My application is a modification of the sample
Server RFCOMM program twisted to open connections with L2CAP. I simply
wanted to experiment working with L2CAP.

I can open an L2CAP channel with PSM on 1 & 3, but all others fail with
a 0xe00002cd error. (This is from either Obj_C or C++). The error is
described as
#define kIOReturnNotOpen iokit_common_err(0x2cd) // device not
open

However, I have a device open command preceding the call. Another issue
is that the client (or the server application) does not even notice a
notification request.

The only problem I can think of is something is some how blocking all
access on ports other then 1 & 3.

Does any one have any experience with this problem? Is there something
I am missing?

General structure of the app.
Setup the server.
Define an SPD
Start the server.
Define the listening notification

Start client.
Connect to server.
See failure.

Rinse repeat.

And Happy Holidays all!

Alex

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
bluetooth-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.