Re: [Bluez-devel] AVDTP socket?

Marcel Holtmann
2004-11-10T08:47:10Z

Hi Brad,

> > I think you should start with a simple test implementation in user space
> > that fulfils your purpose. I haven't understand the AVDTP enough to move
> > any part of it into the kernel at the moment.
>
> The avdtp document is almost 150 pages long and very terse! It looks to
> me like I start with sdp to find the avdtp psm, open it with raw l2cap,
> then do stream endpoint discovery and get capabilities, set stream
> config, open the l2cap stream psm and send the stream. I am planning to
> write an app that sends one of the reference sbc streams.

no need to search for the PSM via a SDP request. It is always PSM 25, so
you can simply skip this like we do for RFCOMM. Open it with a raw L2CAP
socket is wrong, because this gives you only access to the L2CAP signal
channel. Simply open it with SOCK_SEQPACKET and send the AVDTP commands
on it. Before you start streaming you must open another L2CAP channel on
PSM 25. There are no different PSMs like for HID or HCRP. It took me
some time to understand this and actually at that time I never realized
that this is even possible, but we already support it ;)

> What should the sdp search look like? The more promising sdptool options
> I found didn't work flawlessly... I'm assuming 0x110d is A2DP and 0x19
> is AVDTP (http://www.bluetooth.org/assigned-numbers.htm redirects to
> http://www.bluetoothsig.org/assigned-numbers/ which won't resolve). What
> is the uint16 under AVDTP trying to tell us?

The CVS version of sdptool should be able to decode everything A2DP and
AVDTP related. I think the uint16 for AVDTP shouldn't be there. It is a
bug as far as I know. However you don't need this, because it is always
PSM 25 and my sender device simply only looks if a A2DP sink is present
or not.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net