From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] How to handle multiple L2cap Connection
Date: Mon, 18 Sep 2006 08:07:16 +0200 [thread overview]
Message-ID: <1158559636.30486.7.camel@localhost> (raw)
In-Reply-To: <3f5a9ba20609172100s5446aa0co42cbd0101fc488e2@mail.gmail.com>
Hi,
> Problem:
> My program's logic:
> (1) have 1 thread named sensor to discover other bluetooth devices
> (2) have at most 7 threads named workers, each worker will push a
> file to the scheduled device.
> (3) have 1 thread to scheduler the found deivces to the workers.
>
> the problem is,
> Each worker,
> first to search the obex service in its target device. (use
> sdp_connect to create a connection, in fact a l2cap connect)
> if obex service found, then push the file by OPENOBEX. (use
> Bt_TransportConnect to create a connection)
>
> For the coccurent workers, the l2cap connections are created
> coccurently.
> So there is some error occurs such like errcode 103, errorcode 113,
> errcode 16,timeout
>
> In the former discusstion in the maillist, sem_t could be used
> to sync the call of connect
>
> so, I use a sem_t conn_sem to sync, but I found that no improvement.
>
> Who can give me a nice suggestion?
the baseband page can't be done simultaneously. Run "hcidump -X -V" to
see what error will show up.
Regards
Marcel
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
prev parent reply other threads:[~2006-09-18 6:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-18 4:00 [Bluez-devel] How to handle multiple L2cap Connection Mingfan.Lu
2006-09-18 6:07 ` Marcel Holtmann [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=1158559636.30486.7.camel@localhost \
--to=marcel@holtmann.org \
--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