Re: Problem with StopDiscovery() via dbus-send

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

 



Hi Aleksandr,

On Wed, Jul 26, 2017 at 2:51 AM, Проклов Александр Валерьевич
<ProklovAV@xxxxxxxxxxxxxxxx> wrote:
>  Hello All,
>
> I'm trying to manage Bluetooth using dbus-send command,
>
> I send command for start discovery:
> dbus-send --system --reply-timeout=5000 --type=method_call --dest=org.bluez
> /org/bluez/hci0 org.bluez.Adapter1.StartDiscovery

dbus-send exists so that would stop the discovery is there is no other
process discovering.

> I see that the scan started, the status is true:
> dbus-send --system --print-reply --dest=org.bluez --type=method_call
> /org/bluez/hci0 org.freedesktop.DBus.Properties.Get
> string:org.bluez.Adapter1 string:Discovering
>
> But I can not stop scanning by a command:
> dbus-send --system --reply-timeout=5000 --type=method_call --dest=org.bluez
> /org/bluez/hci0 org.bluez.Adapter1.StopDiscovery

It probably has been stopped already since the connection used for
StartDiscovery has been terminated. Btw, there are better tools to
test this, for instance bluetoothctl> scan [on/off]

> "Discovering" status true.
>
> Bluez version 5.45
>
> ---------------------
> Best regards,
> Aleksandr Proklov
> --
> 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



-- 
Luiz Augusto von Dentz
--
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