2007-04-19 16:11:18

by Frederic Danis

[permalink] [raw]
Subject: [Bluez-devel] Input service usage

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

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


2007-04-19 16:35:20

by Claudio Takahasi

[permalink] [raw]
Subject: Re: [Bluez-devel] Input service usage

On 4/19/07, Frederic Danis <[email protected]> wrote:
> 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
>
> --
> -----------------------------------------------
> 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,
--
---------------------------------------------------------
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