Re: HCI & L2CAP Access
Re: HCI & L2CAP Access
- Subject: Re: HCI & L2CAP Access
- From: Eric Brown <email@hidden>
- Date: Thu, 20 Jun 2002 13:17:40 -0700
On Thursday, June 20, 2002, at 05:59 AM, Matthias Ringwald wrote:
Hello there,
I'm a PhD student in Switzerland and I need to communicate between my macs and some selfmade microcontroller based bluetooth nodes.
For this to work, I'd like to be able to send and receive HCI packets as well as use L2CAP connection to one of those devices.
I just browsed through the SDK documentation and I found out:
- I can't access HCI layer directly
The HCI API is not public. We have attempted to abstract all of the important HCI commands into higher-level APIs to make it easier to develop Bluetooth software and to allow us to more closely manage the state of the Bluetooth hardware.
- it looks like I can't establish an L2CAP connection with a device that doesn't provide SDP services (which is the case with my devices)
You can do this very easily. There is an API on IOBluetoothDevice to open an L2CAP channel. That API takes a PSM:
-[IOBluetoothDevice openL2CAPChannel...]
... or...
IOBluetoothDeviceOpenL2CAPChannel()
- For a L2CAP connection I need a user interaction. I don't want to have to. :)
No user interaction is necessary. That API will return you a new IOBluetoothL2CAPChannel object that you can use to send data to your remote device.
Am I missing some bits ?
Is it possible to get the sources of the stack already ?
We currently have no plans to release the source to the stack.
- Eric
_______________________________________________
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.