Re: [Bluez-devel] AVDTP socket?

Marcel Holtmann
2004-11-14T15:29:32Z

Hi Brad,

> Argh... I'm stuck again. the avdtp_set_configuration command goes out
> but reading the response just blocks. I'm not sure what is wrong... I send:
>
> 00 -> header = request
> 03 -> AVDTP_SET_CONFIGURATION
> 04 -> acp_seid = 1
> 04 -> int_seid = 1 (how should I choose the int_seid?)
> 01 -> service category = media transport
> 00 -> length of service capabilities = 0
> 07 -> capability type = media codec
> 06 -> bytes remaining? not sure if this is right.
> 00 -> media type = audio media type
> 00 -> media codec type = SBC
> 22 -> 44.1khz stereo
> 15 -> 16-byte blocks, 8 subbands, "loudness" allocation
> 02 -> min bitpool
> fa -> max bitpool

I think you really need to fill in the transaction number in the header
byte. So it should be 0x00, 0x10, 0x20, 0x30 etc.

The bytes remaining value is right.

>>From sniffing the connection between the sender and receiver of my
Aiptek devices I see that they use 0x22 0x46 for the SBC setting. And
this is 44.1kHz, stereo, blocklen 64, 8 subbands, SNR if I decoded it
correct.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net