2008-12-01 01:41:54

by WanYan, Uranus

[permalink] [raw]
Subject: [Bluez-devel] StartDiscovery doesn't exist

Hello Every Developer;

I am appreciating for your answer my question about "What's the
API different between inadapter-api.txt and dbus-api.txt in
bluez-utils-3.36.tar.gz".

Now I develop application with Bluez 4.x. But something happens
abnormally.
When I call function StartDiscovery over python-dbus, the system raise a
error:

File "/usr/lib/python2.5/site-packages/dbus/connection.py", line 607, in
call_blocking message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod:
Method "StartDiscovery" with signature "" on interface
"org.bluez.Adapter" doesn't exist

But the SetProperty, GetProperty are all right(These functions all come
from bluez4.x/doc/adapter-api.txt ).

So I think maybe there are some librarys or other things version
too old.

OS version: Suse linux 11, 2.6.25.5-1.1-pae
Daemon name: hcid

So what's the problem? (Need I change the daemon hcid to
bluetoothd? If I need, how to do)

Thank you very much!

Uranus

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2008-12-12 01:54:03

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] StartDiscovery doesn't exist

Hi,

> I am appreciating for your answer my question about "What's the
> API different between inadapter-api.txt and dbus-api.txt in
> bluez-utils-3.36.tar.gz".
>
> Now I develop application with Bluez 4.x. But something happens
> abnormally.
> When I call function StartDiscovery over python-dbus, the system raise a
> error:
>
> File "/usr/lib/python2.5/site-packages/dbus/connection.py", line 607, in
> call_blocking message, timeout)
> dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod:
> Method "StartDiscovery" with signature "" on interface
> "org.bluez.Adapter" doesn't exist
>
> But the SetProperty, GetProperty are all right(These functions all come
> from bluez4.x/doc/adapter-api.txt ).
>
> So I think maybe there are some librarys or other things version
> too old.
>
> OS version: Suse linux 11, 2.6.25.5-1.1-pae
> Daemon name: hcid
>
> So what's the problem? (Need I change the daemon hcid to
> bluetoothd? If I need, how to do)

if you develop against bluez-4.x, then please re-read the *-api.txt
documents since some method names changed for the final 4.x releases.

Regards

Marcel



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel