![]() |
Bluez + dbus-send problem (Error org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.bluez.Adapter" doesn't exist)
Hi,
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: Code:
dbus-send --system --type=method_call --print-reply --dest=org.bluez Code:
process 3926: arguments to dbus_message_new_method_call() were incorrect, assertion "_dbus_check_is_valid_path (path)" failed in file dbus-message.c line 1078. OK... I've found one stupid mistake in path ... I forgot "/" in front ... the current status is: Code:
dbus-send --system --dest=org.bluez --print-reply --type=method_call /org/bluez/hci0 org.bluez.Adapter.GetProperties I appreciate every advice. Br, Skomialek |
Re: Bluez + dbus-send problem
Hi,
the object path seems to be wrong, as it has to contain the pid of the bluetoothd. Do the following steps: 1. Figure out, which pid bluetoothd has: Code:
ps | grep bluetooth Code:
dbus-send --system --dest=org.bluez --print-reply --type=method_call /org/bluez/{pid}/hci0 org.bluez.Adapter.GetProperties Cheers Daniel |
Re: Bluez + dbus-send problem
Confirm, it's working on N900.
|
Re: Bluez + dbus-send problem
org.bluez.Manager.DefaultAdapter could (should?) also be used to discover the right object path, eg:
Code:
adapter=`dbus-send --print-reply --system --dest=org.bluez / \ |
Re: Bluez + dbus-send problem
thanks a lot guys :)
thank you for focus' my attention on Manager as a tool to get path to the adapter device. now the only thing I need to do is to translate thi to C... so you can expect mor posts from me in here :) br, Skomialek |
Re: Bluez + dbus-send problem
Hello All,
I am trying to turn on bluetooth via command line. The bluez wiki says to use SetMode, but maemo doesn't seem to like that command at all. Code:
adapter=`dbus-send --print-reply --system --dest=org.bluez Code:
adapter=`dbus-send --print-reply --system --dest=org.bluez Thanks in advance. |
Re: Bluez + dbus-send problem
Quote:
|
All times are GMT. The time now is 04:17. |
vBulletin® Version 3.8.8