public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] Major slowdown when service discovery+opening a service happens on two systems trying to talk to each other
@ 2004-02-15  1:20 Marc-Andre Laverdiere-Papineau
  2004-02-15 14:31 ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: Marc-Andre Laverdiere-Papineau @ 2004-02-15  1:20 UTC (permalink / raw)
  To: jawbt, bluez-users

Hello all!

I'm working on an application where every Bluetooth device is trying to
scan for every other one around, and check if it runs my custom service.
At the same time, said service is running in another thread, waiting to be
connected to.

I am using Rococo with Bluez. Kernel RH2.4.28, latest version of BlueZ.
Belkin FT003 dongles.

When I have one computer having the service opened+performing the scan,
while the other just performs the scan, things go fine. The scans are
timely and I can send a message.

However, then I have both computers running the service+the service scan,
things slow down to a crawl. Actually, it depends on its mood.
 It can take a full minute to have a device scan and a service scan
completing, or less than 20 seconds! Sometimes, computer a  will be able
to detect computer b, while B still shows no sign of life.

On top of things, if I manage to get it to send a message to its peer, the
peer will get an Exception :( I was able to fix this by preventing the
application from doing a service scan at the moment it would send, but
that didn't fix the weird behaviour on service discovery. This hackaround
is not sturdy and I don't like it as a general thing.

Has such thing ever happened to any of you? What can I do to fix it?

It looks like Bluetooth won't let me open a connection while doing a
service scan. Is there limitations on what can be running simultaneously?
It looks like service scan + opening connections is no good. Should I
know other ones like that?

Thanks

MA



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-02-20 23:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-15  1:20 [Bluez-users] Major slowdown when service discovery+opening a service happens on two systems trying to talk to each other Marc-Andre Laverdiere-Papineau
2004-02-15 14:31 ` Marcel Holtmann
     [not found]   ` <1076900027.403030bbba48f@alcor.concordia.ca>
2004-02-16  8:58     ` Marcel Holtmann
2004-02-16 20:17       ` Marc-Andre Laverdiere-Papineau
2004-02-17 12:52         ` Marcel Holtmann
     [not found]           ` <1077033023.4032383f0b3d3@alcor.concordia.ca>
2004-02-17 16:10             ` Marcel Holtmann
2004-02-20 20:42               ` Marc-André Laverdière
2004-02-20 23:14                 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox