2009-05-12 12:14:30

by Balaji Palaniswami

[permalink] [raw]
Subject: Help me to test top of tree bluetooth subsystem

Hi All ,

I have upgraded the ubuntu 8.04 kernel to 2.6.30-rc5 and bluez 4.39. I did pairing with Jabra headset using below pyhton script. I got below error message. This issue is related with ubuntu application dbus. so please advise me which distribution , setup procedure would be suitable to test top tree of bluetooth subsystem.

Thanks,
Balaji.P


Traceback (most recent call last):
File "./bthstereoheadset.py", line 25, in <module>
path = audio.CreateDevice(headsetAddress)
File "/var/lib/python-support/python2.5/dbus/proxies.py", line 68, in __call__
return self._proxy_method(*args, **keywords)
File "/var/lib/python-support/python2.5/dbus/proxies.py", line 140, in __call__
**keywords)
File "/var/lib/python-support/python2.5/dbus/connection.py", line 607, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.bluez.Error.ConnectionAttemptFailed: Host is down


Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! Edition http://downloads.yahoo.com/in/firefox/?fr=om_email_firefox


Attachments:
bthstereoheadset.py (1.40 kB)

2009-05-12 14:24:32

by Vinicius Costa Gomes

[permalink] [raw]
Subject: Re: Help me to test top of tree bluetooth subsystem

Hi Balaji,

On Tue, May 12, 2009 at 9:14 AM, balaji palaniswami
<[email protected]> wrote:
> Hi All ,
>
> I have upgraded the ubuntu 8.04 kernel to 2.6.30-rc5 and bluez 4.39. I did pairing with Jabra headset using below pyhton script. I got below error message. This issue is related with ubuntu application dbus. so please advise me which distribution , setup procedure  would be suitable to test top tree of bluetooth subsystem.
>

There is an audio devices howto at the wiki[1], which has been updated
recently (thanks Zygo!),
it covers pretty much everything.

Taking a look at the traceback and the script you have provided it
seems that you still are running
a daemon from the old 3.x series. The dbus interface has changed,
please take a look at the *-api.txt
files in the doc directory in a more recent version.

> Thanks,
> Balaji.P
>
>
> Traceback (most recent call last):
>  File "./bthstereoheadset.py", line 25, in <module>
>    path = audio.CreateDevice(headsetAddress)
>  File "/var/lib/python-support/python2.5/dbus/proxies.py", line 68, in __call__
>    return self._proxy_method(*args, **keywords)
>  File "/var/lib/python-support/python2.5/dbus/proxies.py", line 140, in __call__
>    **keywords)
>  File "/var/lib/python-support/python2.5/dbus/connection.py", line 607, in call_blocking
>    message, timeout)
> dbus.exceptions.DBusException: org.bluez.Error.ConnectionAttemptFailed: Host is down
>
>
>      Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! Edition http://downloads.yahoo.com/in/firefox/?fr=om_email_firefox


Cheers,
--
Vinicius Gomes
INdT - Instituto Nokia de Tecnologia

[1] http://wiki.bluez.org/wiki/HOWTO/AudioDevices