* DiscoverableTimeout not working as expected
@ 2010-02-25 12:19 Ross Burton
2010-02-26 9:24 ` Luiz Augusto von Dentz
0 siblings, 1 reply; 4+ messages in thread
From: Ross Burton @ 2010-02-25 12:19 UTC (permalink / raw)
To: linux-bluetooth
[-- Attachment #1: Type: text/plain, Size: 962 bytes --]
Hi,
My client calls SetProperty(DiscoverTimeout, 20) then
SetProperty(Discoverable, True) on my adaptor, but I don't get the
expected behaviour:
signal sender=:1.2 -> dest=(null destination) serial=847 path=/org/bluez/1564/hci0; interface=org.bluez.Adapter; member=PropertyChanged
string "DiscoverableTimeout"
variant uint32 20
signal sender=:1.2 -> dest=(null destination) serial=850 path=/org/bluez/1564/hci0; interface=org.bluez.Adapter; member=PropertyChanged
string "Discoverable"
variant boolean true
signal sender=:1.2 -> dest=(null destination) serial=852 path=/org/bluez/1564/hci0; interface=org.bluez.Adapter; member=PropertyChanged
string "DiscoverableTimeout"
variant uint32 0
As the timeout is now 0, discoverable never resets itself to false.
Am I doing something stupid, or is setting the discovery timeout broken?
Ross
--
Intel Open Source Technology Centre
http://oss.intel.com/
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DiscoverableTimeout not working as expected
2010-02-25 12:19 DiscoverableTimeout not working as expected Ross Burton
@ 2010-02-26 9:24 ` Luiz Augusto von Dentz
2010-02-26 10:29 ` Ross Burton
0 siblings, 1 reply; 4+ messages in thread
From: Luiz Augusto von Dentz @ 2010-02-26 9:24 UTC (permalink / raw)
To: Ross Burton; +Cc: linux-bluetooth
Hi Ross,
On Thu, Feb 25, 2010 at 2:19 PM, Ross Burton <ross@linux.intel.com> wrote:
> Hi,
>
> My client calls SetProperty(DiscoverTimeout, 20) then
> SetProperty(Discoverable, True) on my adaptor, but I don't get the
> expected behaviour:
>
> signal sender=:1.2 -> dest=(null destination) serial=847 path=/org/bluez/1564/hci0; interface=org.bluez.Adapter; member=PropertyChanged
> string "DiscoverableTimeout"
> variant uint32 20
> signal sender=:1.2 -> dest=(null destination) serial=850 path=/org/bluez/1564/hci0; interface=org.bluez.Adapter; member=PropertyChanged
> string "Discoverable"
> variant boolean true
> signal sender=:1.2 -> dest=(null destination) serial=852 path=/org/bluez/1564/hci0; interface=org.bluez.Adapter; member=PropertyChanged
> string "DiscoverableTimeout"
> variant uint32 0
I got a different behavior (using git tree and testtest-adapter):
signal sender=:1.65 -> dest=(null destination) serial=151
path=/org/bluez/3359/hci0; interface=org.bluez.Adapter;
member=PropertyChanged
string "DiscoverableTimeout"
variant uint32 10
signal sender=:1.65 -> dest=(null destination) serial=160
path=/org/bluez/3359/hci0; interface=org.bluez.Adapter;
member=PropertyChanged
string "Discoverable"
variant boolean true
signal sender=:1.65 -> dest=(null destination) serial=161
path=/org/bluez/3359/hci0; interface=org.bluez.Adapter;
member=PropertyChanged
string "Class"
variant uint32 6430988
signal sender=:1.65 -> dest=(null destination) serial=162
path=/org/bluez/3359/hci0; interface=org.bluez.Adapter;
member=PropertyChanged
string "Discoverable"
variant boolean false
signal sender=:1.65 -> dest=(null destination) serial=163
path=/org/bluez/3359/hci0; interface=org.bluez.Adapter;
member=PropertyChanged
string "Class"
variant uint32 6422796
> As the timeout is now 0, discoverable never resets itself to false.
Basically the timeout is persistent so once set it will be triggered
every time you switch the adapter to discoverable, in other words it
wont change to 0 automatically anymore, I guess this was an old
behavior but it has been changed long time ago.
> Am I doing something stupid, or is setting the discovery timeout broken?
I guess what you need is to update your bluez version then it should work.
--
Luiz Augusto von Dentz
Computer Engineer
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DiscoverableTimeout not working as expected
2010-02-26 9:24 ` Luiz Augusto von Dentz
@ 2010-02-26 10:29 ` Ross Burton
2010-02-26 11:58 ` Luiz Augusto von Dentz
0 siblings, 1 reply; 4+ messages in thread
From: Ross Burton @ 2010-02-26 10:29 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
[-- Attachment #1: Type: text/plain, Size: 1392 bytes --]
On Fri, 2010-02-26 at 11:24 +0200, Luiz Augusto von Dentz wrote:
> I got a different behavior (using git tree and testtest-adapter):
>
> signal sender=:1.65 -> dest=(null destination) serial=151
> path=/org/bluez/3359/hci0; interface=org.bluez.Adapter;
> member=PropertyChanged
> string "DiscoverableTimeout"
> variant uint32 10
> signal sender=:1.65 -> dest=(null destination) serial=160
> path=/org/bluez/3359/hci0; interface=org.bluez.Adapter;
> member=PropertyChanged
> string "Discoverable"
> variant boolean true
> signal sender=:1.65 -> dest=(null destination) serial=161
> path=/org/bluez/3359/hci0; interface=org.bluez.Adapter;
> member=PropertyChanged
> string "Class"
> variant uint32 6430988
> signal sender=:1.65 -> dest=(null destination) serial=162
> path=/org/bluez/3359/hci0; interface=org.bluez.Adapter;
> member=PropertyChanged
> string "Discoverable"
> variant boolean false
> signal sender=:1.65 -> dest=(null destination) serial=163
> path=/org/bluez/3359/hci0; interface=org.bluez.Adapter;
> member=PropertyChanged
> string "Class"
> variant uint32 6422796
Interesting. Using test-adaptor and bluez 4.60 (debian sid), I don't
see that behaviour. I also can't see anything relevant in the git
log. :(
Ross
--
Intel Open Source Technology Centre
http://oss.intel.com/
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: DiscoverableTimeout not working as expected
2010-02-26 10:29 ` Ross Burton
@ 2010-02-26 11:58 ` Luiz Augusto von Dentz
0 siblings, 0 replies; 4+ messages in thread
From: Luiz Augusto von Dentz @ 2010-02-26 11:58 UTC (permalink / raw)
To: Ross Burton; +Cc: linux-bluetooth
Hi Ross,
On Fri, Feb 26, 2010 at 12:29 PM, Ross Burton <ross@linux.intel.com> wrote:
> On Fri, 2010-02-26 at 11:24 +0200, Luiz Augusto von Dentz wrote:
>> I got a different behavior (using git tree and testtest-adapter):
>>
>> signal sender=:1.65 -> dest=(null destination) serial=151
>> path=/org/bluez/3359/hci0; interface=org.bluez.Adapter;
>> member=PropertyChanged
>> string "DiscoverableTimeout"
>> variant uint32 10
>> signal sender=:1.65 -> dest=(null destination) serial=160
>> path=/org/bluez/3359/hci0; interface=org.bluez.Adapter;
>> member=PropertyChanged
>> string "Discoverable"
>> variant boolean true
>> signal sender=:1.65 -> dest=(null destination) serial=161
>> path=/org/bluez/3359/hci0; interface=org.bluez.Adapter;
>> member=PropertyChanged
>> string "Class"
>> variant uint32 6430988
>> signal sender=:1.65 -> dest=(null destination) serial=162
>> path=/org/bluez/3359/hci0; interface=org.bluez.Adapter;
>> member=PropertyChanged
>> string "Discoverable"
>> variant boolean false
>> signal sender=:1.65 -> dest=(null destination) serial=163
>> path=/org/bluez/3359/hci0; interface=org.bluez.Adapter;
>> member=PropertyChanged
>> string "Class"
>> variant uint32 6422796
>
> Interesting. Using test-adaptor and bluez 4.60 (debian sid), I don't
> see that behaviour. I also can't see anything relevant in the git
> log. :(
Please check if someone isn't sending
SetProperty("DiscoverableTimeout", 0), that will cancel the timeout
which seems the exact behavior that you are seeing with your
application, bluetooth-applet on ubuntu does that when I select Make
computer discoverable it set the timeout to 0.
--
Luiz Augusto von Dentz
Computer Engineer
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-26 11:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-25 12:19 DiscoverableTimeout not working as expected Ross Burton
2010-02-26 9:24 ` Luiz Augusto von Dentz
2010-02-26 10:29 ` Ross Burton
2010-02-26 11:58 ` Luiz Augusto von Dentz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox