Re: Problem with StopDiscovery() via dbus-send

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

 



15.09.2017 14:27, Luiz Augusto von Dentz пишет:
Hi Aleksandr,

On Fri, Sep 15, 2017 at 6:25 AM, Проклов Александр Валерьевич
<ProklovAV@xxxxxxxxxxxxxxxx> wrote:
  Hello All,

Maybe it's a bug?

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 disconnects from the bus so the discovery is stopped because
there is no client to report the devices found.


Discovery not stopped, see my log from btmgmt. I not start discovery via "btmgmt find". Command "btmgmt stop-find" not help me.

Now i add to code for stop discovery process:
btmgmt power off
sleep 2
btmgmt power on



Discovery process NOT stop!!! in btmgmt i see:
hci0 type 7 discovering off
hci0 type 7 discovering on
hci0 type 7 discovering off
hci0 type 7 discovering on
hci0 type 7 discovering off
hci0 type 7 discovering on

and it goes on continuously!
How can I stop the search process? "StopDiscovery" not work from dbus-send
command.


---------------------
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




--
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