Re: [PATCH v2 3/7] client: Add set-advertise-{duration, timeout}

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Luiz,

Thank you for your help.
I hit this problem because my bluetooth.conf was old.

Regards,
Eramoto

On 11/10/2017 09:06 PM, Luiz Augusto von Dentz wrote:
> Hi Eramoto,
> 
> On Fri, Nov 10, 2017 at 8:40 AM, ERAMOTO Masaya
> <eramoto.masaya@xxxxxxxxxxxxxx> wrote:
>> Hi Luiz,
>>
>> With the latest bluez master branch, when sets a advertise timeout and
>> times out, bluetoothctl fails to run "advertise off" as below:
>>
>>   [bluetooth]# set-advertise-duration 4
>>   [bluetooth]# set-advertise-timeout 4
>>   [bluetooth]# advertise on
>>   [CHG] Controller 00:09:DD:40:CA:12 SupportedInstances: 0x04
>>   [CHG] Controller 00:09:DD:40:CA:12 ActiveInstances: 0x01
>>   Advertising object registered
>>   [CHG] Controller 00:09:DD:40:CA:12 SupportedInstances: 0x05
>>   [CHG] Controller 00:09:DD:40:CA:12 ActiveInstances: 0x00
>>   [bluetooth]# advertise off
>>   Failed to unregister advertisement: org.bluez.Error.DoesNotExist
> 
> In order for bluetoothd to call Release method you will need to update
> the bluetooth.conf D-Bus policy, without that the client has no idea
> when the its instance is removed due to timeout causing the problem
> above.
> 
>>
>> Regards,
>> Eramoto
>>
>> On 11/02/2017 11:43 PM, Luiz Augusto von Dentz wrote:
>>> From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
>>>
>>> This adds the following command which can be used to control the
>>> advertisement intervals:
>>>
>>> [bluetooth]# set-advertise-duration 4
>>> [bluetooth]# set-advertise-timeout 4
>>> [bluetooth]# advertise on
>>> [CHG] Controller B8:8A:60:D8:17:D7 SupportedInstances: 0x04
>>> [CHG] Controller B8:8A:60:D8:17:D7 ActiveInstances: 0x01
>>> Advertising object registered
>>> [CHG] Controller B8:8A:60:D8:17:D7 SupportedInstances: 0x05
>>> [CHG] Controller B8:8A:60:D8:17:D7 ActiveInstances: 0x00
>>> ---
>>>  client/advertising.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
>>>  client/advertising.h |  2 ++
>>>  client/main.c        | 42 ++++++++++++++++++++++++++++++++++++++++++
>>>  3 files changed, 94 insertions(+)
>>
> 
> 
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux