Help with dbus unknownmethod error method "Connect" org.bluez_input

pritam munot pkm_munot at yahoo.co.in
Mon Aug 5 18:58:54 PDT 2013


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?

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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20130806/fd572925/attachment.html>


More information about the dbus mailing list