From: Sergey Krivov <krivov@yahoo.com>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: [Bluez-devel] two concurrent a2dp connections
Date: Wed, 29 Nov 2006 02:50:56 -0800 (PST) [thread overview]
Message-ID: <600808.9254.qm@web31014.mail.mud.yahoo.com> (raw)
In-Reply-To: <1164791561.5071.5.camel@aeonflux.holtmann.net>
Hi,
i am trying to work with two a2dp streams at the same
time. if i do it in the following way it works.
first way (schematically,):
lacp=[] # list of ACP
stream1=connect(addr1)
lacp.append(stream1)
stream2=connect(addr2)
lacp.append(stream)
if i do it in a different way it does not.
here i advertise a2dp just to get the address
of the units. if i have more than two units the sound
is destroyed completely.
second way (schematically):
lacp=[]
while true:
sock2,addr,port=advertise_a2dp()
avdtp_discover_abort(sock2)
sock2.close()
lacp.append(connect(addr))
using hcidump i found that in the first case the media
packets are send more or less synchronously:
grep of hcidump output gives:
L2CAP(d): cid 0x0041 len 621 [psm 0]
L2CAP(d): cid 0x0041 len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x0041 len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x0041 len 621 [psm 0]
L2CAP(d): cid 0x0041 len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x0041 len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x0041 len 621 [psm 0]
L2CAP(d): cid 0x0041 len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x0041 len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x0041 len 621 [psm 0]
L2CAP(d): cid 0x0041 len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x0041 len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
for the second case i get:
L2CAP(d): cid 0x0042 len 621 [psm 0]
L2CAP(d): cid 0x0042 len 621 [psm 0]
L2CAP(d): cid 0x0042 len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x0042 len 621 [psm 0]
L2CAP(d): cid 0x0042 len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x0042 len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x0042 len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x0042 len 621 [psm 0]
L2CAP(d): cid 0x0042 len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x0042 len 621 [psm 0]
L2CAP(d): cid 0x0042 len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x0042 len 621 [psm 0]
L2CAP(d): cid 0x006b len 621 [psm 0]
L2CAP(d): cid 0x0042 len 621 [psm 0]
L2CAP(d): cid 0x0042 len 621 [psm 0]
L2CAP(d): cid 0x0042 len 621 [psm 0]
what might be the difference between the two cases.
Didnt i set up some socket options?
Any help is appreciated!
____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
prev parent reply other threads:[~2006-11-29 10:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-26 20:41 [Bluez-devel] BECI Andreas Merkle
2006-11-28 4:24 ` Marcel Holtmann
2006-11-28 7:14 ` Juergen Wichmann
2006-11-28 17:53 ` Marcel Holtmann
2006-11-28 22:32 ` Andreas Merkle
2006-11-29 8:16 ` Chafik Moalem
2006-11-29 9:12 ` Marcel Holtmann
2006-11-29 10:50 ` Sergey Krivov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=600808.9254.qm@web31014.mail.mud.yahoo.com \
--to=krivov@yahoo.com \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox