Help with dbus unknownmethod error method "Connect" org.bluez_input
Yang Chengwei
chengwei.yang at intel.com
Mon Aug 5 19:06:25 PDT 2013
On Tue, Aug 06, 2013 at 09:58:54AM +0800, pritam munot wrote:
> Hi there,
>
> Thanks for your comments.
>
> Sorry it was a typo in earlier post the error is "org.bluez.Input" and not
> "org.bluez_Input".
>
> I ran the command you mentioned earlier and this is what I get =>
>
>
> root at TQMa28:/usr/share/doc/bluez/examples ./simple-agent 00:19:0E:11:B4:C6
> RequestConfirmation (/org/bluez/143/hci0/dev_00_19_0E_11_B4_C6, 619445)
> Confirm passkey (yes/no): yes
> Release
> New device (/org/bluez/143/hci0/dev_00_19_0E_11_B4_C6)
> root at TQMa28:/usr/share/doc/bluez/examples dbus [J-send --system --dest=
> org.bluez --
>
> print-repluy[J[Jy /org/bluez/143/hci0/dev_00_19_0E_11B4_C6_B4_C6[5DB4_C6
> org.freedesktop.DBus.Intro
>
> spectable.Introspect
> method return sender=:1.0 -> dest=:1.9 reply_serial=2
> string "<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object
> Introspection 1.0//EN"
> "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
> <node>
> <interface name="org.freedesktop.DBus.Introspectable">
> <method name="Introspect">
> <arg type="s" direction="out"/>
> </method>
> </interface>
> <interface name="org.bluez.Device">
> <method name="GetProperties">
> <arg type="a{sv}" direction="out"/>
> </method>
> <method name="SetProperty">
> <arg type="s" direction="in"/>
> <arg type="v" direction="in"/>
> </method>
> <method name="DiscoverServices">
> <arg type="s" direction="in"/>
> <arg type="a{us}" direction="out"/>
> </method>
> <method name="CancelDiscovery"/>
> <method name="Disconnect"/>
> <signal name="PropertyChanged">
> <arg type="s"/>
> <arg type="v"/>
> </signal>
> <signal name="DisconnectRequested"/>
> </interface>
> </node>
> "
>
> Just looking at this I dont see any method called connect I might be wrong. If
> there is no connect method then is there a way to add it?
Yes, ofcause. But I think if you're going to add a such method you may
on the wrong direction.
I'm totally know nothing about bluez, but I think there should a way to
connect with your device, you can refer to bluez API or ask for help in
its community.
--
Thanks,
Chengwei
>
> Cheers
> Tama
>
> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
> From: Yang Chengwei <chengwei.yang at intel.com>
> To: pritam munot <pkm_munot at yahoo.co.in>
> Cc: "dbus at lists.freedesktop.org" <dbus at lists.freedesktop.org>
> Sent: Monday, 5 August 2013 9:05 PM
> Subject: Re: Help with dbus unknownmethod error method "Connect"
> org.bluez_input
>
> On Mon, Aug 05, 2013 at 12:58:52PM +0800, pritam munot wrote:
> >
> > But when I try to connect using test-input connect xx:xx:xx:xx:xx I get
> error.
> > I even tried connecting manually using following command.
> > $dbus-send --system --dest=org.bluez --print-reply /org/bluez/148/hci0/
> > dev_00_19_0E_11_B4_DA org.bluez.Input.Connect
> >
> > Error org.freedesktop.DBus.Error.UnknownMethod: Method "Connect" with
> signature
> > "" on interface "org.bluez_Input" doesn't exist
>
> Is this the exactly error message? Should it be "org.bluez.Input"
> doesn't exist?
>
> >
> > What does this error mean?
>
> Most likely that method needs some input parameters, maybe you can check
> what the signature is like below
>
> $ dbus-send --system --dest=org.bluez --print-reply
> /org/bluez/148/hci0/dev_00_19_0E_11_B4_DA
> org.freedesktop.DBus.Introspectable.Introspect
>
> --
> Thanks,
> Chengwei
>
> >
> > In my system.conf for dbus I have added following lines to the policy.
> > <allow send_interface="org.bluez.Input"/>
> > <allow receive_interface="org.bluez.Input"/>
> > <allow send_destination="org.bluez.Input"/>
> > <allow receive_sender="org.bluez.Input"/>
> > <allow send_destination="org.bluez.Input.Connect"/>
> > <allow receive_sender="org.bluez.Input.Connect"/>
> >
> > Can some one please help in understanding what this error means in order to
> > debug the possible cause for it.
> >
> > Thanks in advance.
> > Tama
>
> > _______________________________________________
> > dbus mailing list
> > dbus at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/dbus
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20130806/d7af3db6/attachment.pgp>
More information about the dbus
mailing list