The Following User Says Thank You to skomialek For This Useful Post: | ||
![]() |
2009-11-23
, 08:23
|
Posts: 432 |
Thanked: 645 times |
Joined on Mar 2009
|
#2
|
ps | grep bluetooth
dbus-send --system --dest=org.bluez --print-reply --type=method_call /org/bluez/{pid}/hci0 org.bluez.Adapter.GetProperties
![]() |
2009-11-23
, 08:47
|
|
Posts: 516 |
Thanked: 643 times |
Joined on Oct 2009
@ Denmark/Poland
|
#3
|
![]() |
2009-11-23
, 09:29
|
Posts: 2,802 |
Thanked: 4,491 times |
Joined on Nov 2007
|
#4
|
adapter=`dbus-send --print-reply --system --dest=org.bluez / \ org.bluez.Manager.DefaultAdapter | awk -F\" '/bluez/ { print $2 }'` dbus-send --system --dest=org.bluez --print-reply --type=method_call \ $adapter org.bluez.Adapter.GetProperties
![]() |
2009-11-23
, 11:41
|
Posts: 13 |
Thanked: 5 times |
Joined on Oct 2009
|
#5
|
![]() |
2010-01-25
, 18:47
|
Posts: 1 |
Thanked: 0 times |
Joined on Jan 2010
|
#6
|
adapter=`dbus-send --print-reply --system --dest=org.bluez org.bluez.Manager.DefaultAdapter | awk -F\" '/bluez/ { print $2 }'` dbus-send --system --dest=org.bluez --print-reply --type=method_call $adapter org.bluez.Adapter.GetMode
adapter=`dbus-send --print-reply --system --dest=org.bluez org.bluez.Manager.DefaultAdapter | awk -F\" '/bluez/ { print $2 }'` dbus-send --system --dest=org.bluez --print-reply --type=method_call $adapter org.bluez.Adapter.SetMode string:connectable
![]() |
2010-01-25
, 23:38
|
Posts: 462 |
Thanked: 550 times |
Joined on Sep 2008
@ Moscow
|
#7
|
The Following User Says Thank You to 412b For This Useful Post: | ||
I'm completely new to linux/maemo systems and I need some help.
I try to use the Bluez API in my app but first I wanted to check how this works in terminal.
I'm try' to call the simplest GetProperties method so I type in:
OK... I've found one stupid mistake in path ... I forgot "/" in front ... the current status is:
I appreciate every advice.
Br,
Skomialek
Last edited by skomialek; 2009-11-22 at 23:20.