From: Fabrizio Guglielmino <guglielmino@infitsrl.com>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] (no subject)
Date: Tue, 27 Nov 2007 11:56:36 +0100 [thread overview]
Message-ID: <474BF7E4.5050006@infitsrl.com> (raw)
In-Reply-To: <474BC3EC.30106@omepet.es>
jm ha scritto:
> Hi Fabrizio,
>
> I think connection attempts (pscan procedure) are serialized by the dongl=
e, =
> so maybe you should do the sdp queries sequentially and create the thread
> when the connection is ready. You can also try to reduce the page timeout =
> with "hciconfig pageto" to discard soon devices not in range at connection
> time.
>
> Someone please correct me if I'm wrong.
>
> Jos=E9 Miguel
>
>
> =
>> Hi all,
>> I made a simple software to send small pictures to all bluetooth =
>> devices in range (it's used by a museum ).
>> This software is made in C using bluez api, I've used two bluetooth =
>> dongles : one to make periodic inquiry (not with HCI periodic inquiry =
>> command by with a loop) and the other to make sdp query looking for =
>> obex push service and sending image.
>> My requirement was to use this software in some embedded linux based =
>> computer so I chose to limit external library, I made all using =
>> pthread so there is an infinite thread for inquiries and one thread =
>> to handle every sdp query and relative connection when devices are =
>> discovered. I've discarded also using python or other scripting =
>> languages for the platfom limitations.
>>
>> All works but I found it not so efficient, also with 6/7 devices it's =
>> really slow to identify and connect to devices, some times connection =
>> are unexpectedly closed and so on....
>>
>> Is it my approch to the problem wrong or bluetooth protocol is not =
>> suitable for this type of use?
>>
>> I'm using libs version 3.7-1 (on debian 4.0)
>>
>> Many thanks
>> Fabrizio
>> =
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2005.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Bluez-devel mailing list
>> Bluez-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>>
>> =
>> =
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>
>
> =
Thanks for suggestions, as You can read in my response to Marcel sdp =
query are already serialized but I find useful the use
of "pageto" to discard devices out of range. I'm also avaluating using =
inquiry with RSSI for this.
Thanks
Fabrizio
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2007-11-27 10:56 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-26 20:49 [Bluez-devel] (no subject) Fabrizio Guglielmino
2007-11-27 7:14 ` jm
2007-11-27 10:56 ` Fabrizio Guglielmino [this message]
2007-11-27 8:25 ` Marcel Holtmann
2007-11-27 10:51 ` [Bluez-devel] Scan and push images Fabrizio Guglielmino
2007-11-27 11:06 ` Marcel Holtmann
2007-11-27 11:13 ` Fabrizio Guglielmino
2007-11-27 11:47 ` Marcel Holtmann
2007-11-27 12:52 ` Fabrizio Guglielmino
2007-11-27 13:08 ` Manuel Naranjo
2007-11-27 13:25 ` Fabrizio Guglielmino
-- strict thread matches above, loose matches on Subject: below --
2006-06-23 19:01 Lan Zhang
2006-06-23 19:17 ` [Bluez-devel] (no subject) Marcel Holtmann
2005-12-19 12:27 stefan
2005-03-06 16:12 Vardhman Jain
2004-08-12 11:15 abhay b
2004-08-12 11:31 ` Marcel Holtmann
2004-08-16 12:12 ` Ville Tervo
2004-08-16 12:29 ` Marcel Holtmann
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=474BF7E4.5050006@infitsrl.com \
--to=guglielmino@infitsrl.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;
as well as URLs for NNTP newsgroup(s).