Skip to contentSkip to conversation

Input service usage

Bluez-devel Frederic Danis 2 participants 2 messages Apr 19, 2007 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hello,

I am trying to use the new "input" service.

When I use new Service interface, all works fine :
~ # dbus-send --system --print-reply --dest='org.bluez' /org/bluez
org.bluez.Manager.ListServices
method return sender=:1.48 -> dest=:1.55

     array [
        string "/org/bluez/service_input"
     ]

~ # dbus-send --system --print-reply --dest='org.bluez'
/org/bluez/service_input org.bluez.Service.GetName
method return sender=:1.48 -> dest=:1.54
string "Input service"

But, I can not access to the input service :
~ # dbus-send --system --print-reply --dest='org.bluez.input'
/org/bluez/input org.bluez.input.Manager.ListDevices
Error org.freedesktop.DBus.Error.ServiceUnknown: The name
org.bluez.input was not provided by any .service files

~ # dbus-send --system --print-reply --dest='org.bluez'
/org/bluez/input org.bluez.input.Manager.ListDevices
Error org.bluez.Error.UnknownMethod: Method "ListDevices" with
signature "" on interface "org.bluez.input.Manager" doesn't exist

Did I made a mistake ?

Thanks

Fred

Signature · 18 lines
-----------------------------------------------
It is not by improving the oil lamp that one invents the electric bulb!
-----------------------------------------------
Danis Frederic                   Access Company
Software engineer
Mail : mailto:[email protected]
-----------------------------------------------


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
#1 lore raw
Quoted 33 lines · Frederic Danis

Hello,

I am trying to use the new "input" service.

When I use new Service interface, all works fine :
~ # dbus-send --system --print-reply --dest='org.bluez' /org/bluez
org.bluez.Manager.ListServices
method return sender=:1.48 -> dest=:1.55

     array [
        string "/org/bluez/service_input"
     ]

~ # dbus-send --system --print-reply --dest='org.bluez'
/org/bluez/service_input org.bluez.Service.GetName
method return sender=:1.48 -> dest=:1.54
string "Input service"

But, I can not access to the input service :
~ # dbus-send --system --print-reply --dest='org.bluez.input'
/org/bluez/input org.bluez.input.Manager.ListDevices
Error org.freedesktop.DBus.Error.ServiceUnknown: The name
org.bluez.input was not provided by any .service files

~ # dbus-send --system --print-reply --dest='org.bluez'
/org/bluez/input org.bluez.input.Manager.ListDevices
Error org.bluez.Error.UnknownMethod: Method "ListDevices" with
signature "" on interface "org.bluez.input.Manager" doesn't exist

Did I made a mistake ?

Thanks

Fred

Quoted 10 lines

--
-----------------------------------------------
It is not by improving the oil lamp that one invents the electric bulb!
-----------------------------------------------
Danis Frederic Access Company
Software engineer
Mail : mailto:[email protected]
-----------------------------------------------

Hi Frederic,

Services don' t have a well known name, you can' t send a message to 'org.bluez.input'. You have to call ActivateService to get the Bus id and send the message to that address.

'org.bluez' doesn't implement input paths or interfaces. I will try update the BlueZ wiki to explain how the input service works. Give me some hours.
http://wiki.bluez.org/wiki/Input

btw, the network service has a similar behavior and its documentation is more complete. Check the wiki: http://wiki.bluez.org/wiki/Network

BR,

Signature · 13 lines
---------------------------------------------------------
Claudio Takahasi
Instituto Nokia de Tecnologia - INdT

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel