linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem with StopDiscovery() via dbus-send
@ 2018-08-24  1:58 Проклов Александр Валерьевич
  2018-08-24  8:19 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 22+ messages in thread
From: Проклов Александр Валерьевич @ 2018-08-24  1:58 UTC (permalink / raw)
  To: linux-bluetooth

  Hello All,

Thanks for your work. Since version bluez-5.50 start-stop discovery work 
from command line and scripts:
#bluetoothctl scan on
#bluetoothctl scan off
(see mail-list "Problem with StopDiscovery() via dbus-send")

--------------------------------------------

My next task is to do pair with device from bash script. I tried several 
ways:
1. #bluetoothctl pair 11:22:33:44:55:66 does not work because the agent 
is not created.
2. Make  agent via Dbus:
#dbus-send --system --print-reply --type=method_call --dest=org.bluez 
/org/bluez org.bluez.AgentManager1.RegisterAgent 
objpath:/org/bluez/agent1 string:KeyboardOnly
the command works, but I do not see in Dbus /org/bluez/agent1 created.
3. Make agent via bluetoothctl:
[bluetooth]#agent on
the command works, but I do not see in Dbus agent path!.

May be possible to set a default pin code via /etc/bluetooth/main.conf
if it is available, do not make a request for a pin from the command 
line? I think that then #bluetoothctl pair 11:22:33:44:55:66 will be 
able to work fine.

---------------------
Best regards,
Aleksandr Proklov

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Problem with StopDiscovery() via dbus-send
@ 2017-09-15  3:25 Проклов Александр Валерьевич
  2017-09-15  6:27 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 22+ messages in thread
From: Проклов Александр Валерьевич @ 2017-09-15  3:25 UTC (permalink / raw)
  To: linux-bluetooth

  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


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

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Problem with StopDiscovery() via dbus-send
@ 2017-07-25 23:51 Проклов Александр Валерьевич
  2017-07-26  8:05 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 22+ messages in thread
From: Проклов Александр Валерьевич @ 2017-07-25 23:51 UTC (permalink / raw)
  To: linux-bluetooth

  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

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

"Discovering" status true.

Bluez version 5.45

---------------------
Best regards,
Aleksandr Proklov

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2018-11-01  2:44 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-24  1:58 Problem with StopDiscovery() via dbus-send Проклов Александр Валерьевич
2018-08-24  8:19 ` Luiz Augusto von Dentz
2018-08-24 14:36   ` Luiz Augusto von Dentz
2018-08-26 23:58   ` Проклов Александр Валерьевич
2018-08-27  7:24     ` Luiz Augusto von Dentz
2018-08-28  2:41       ` Проклов Александр Валерьевич
2018-09-06  0:43   ` Проклов Александр Валерьевич
2018-10-29  5:47   ` Non intheractive request pin-code Проклов Александр Валерьевич
2018-11-01  3:44   ` Serial communication over BT using the DBus API Проклов Александр Валерьевич
  -- strict thread matches above, loose matches on Subject: below --
2017-09-15  3:25 Problem with StopDiscovery() via dbus-send Проклов Александр Валерьевич
2017-09-15  6:27 ` Luiz Augusto von Dentz
2017-09-15  8:35   ` Проклов Александр Валерьевич
2017-09-15  8:46     ` Luiz Augusto von Dentz
2017-09-18  2:50       ` Проклов Александр Валерьевич
2017-09-18  6:53         ` Luiz Augusto von Dentz
2017-09-18  8:59           ` Проклов Александр Валерьевич
2017-09-19 23:58           ` Проклов Александр Валерьевич
2017-09-25  1:26           ` Проклов Александр Валерьевич
2017-07-25 23:51 Проклов Александр Валерьевич
2017-07-26  8:05 ` Luiz Augusto von Dentz
2017-07-27  0:50   ` Проклов Александр Валерьевич
2017-07-27 11:33     ` 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;
as well as URLs for NNTP newsgroup(s).