Thread (6 messages) flat view 6 messages, 4 authors, 2008-09-22

Re: [Bluez-devel] What happens with bluetooth when connection is interrupted

From: Reto Bachmann <hidden>
Date: 2008-09-22 06:08:34

Hi Patryk,

i see the problems and I will change it. I now made some tests and i found
out that the library waits for a specific time until it sends the signal. I
suppose that in this time it tries to repair the connection.

Is it possible to manage this time period with compiling flags or something?

Thanks,
Reto

2008/9/19 Patryk Zawadzki [off-list ref]
On Fri, Sep 19, 2008 at 8:56 AM, Reto Bachmann [off-list ref]
wrote:
quoted
So I need to connect the D-Bus signal RemoteDeviceDisconnected to find
out
quoted
that I am not connected anymore?

Why shouldn't I poll for a status? Is it just because a signal is sent
either way or is the status i ask for not the true status?
Because polling is the worst strategy both CPU- and power-wise. It
causes frequent wakeups that waste power and prevent CPUs from
entering a deep idle state. They also generate unnecessary traffic for
the IPC mechanism so if every program decided to poll for something
once a second, services like DBus would likely get hosed.

--
Patryk Zawadzki

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help