Skip to contentSkip to conversation

Python/Gtk2 test application for the new D-BUS interface

Bluez-devel Johan Hedberg 3 participants 6 messages Oct 14, 2005 – Oct 16, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi,

In case someone is interested, I started developing a pygtk based test application for the new D-BUS interface which we are working on. You can get the first version here:
http://www.iki.fi/~jhedberg/bluez-python.tar.gz

Note that the code is in a very early stage. Currently it supports the inquiry, periodic inquiry and remote name method calls and signals.

To execute the application, run bluez-python/btdbus.py

Johan

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi Johan,

Quoted 9 lines

In case someone is interested, I started developing a pygtk based test application for the new D-BUS interface which we are working on. You can get the first version here:
http://www.iki.fi/~jhedberg/bluez-python.tar.gz

Note that the code is in a very early stage. Currently it supports the inquiry, periodic inquiry and remote name method calls and signals.

To execute the application, run bluez-python/btdbus.py

it crashes with the name resolve on AMD64, but it is a great starting point.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#2 lore raw
Quoted 2 lines · Marcel Holtmann

it crashes with the name resolve on AMD64, but it is a great starting point.

There are some small changes to how name resolving is done in the latest version (0.2) available here:
http://www.iki.fi/~jhedberg/bluez-python/

If you still get the crash, could you perhaps send a backtrace of it? (I don't have a 64bit machine to reproduce it on).

Johan

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#3 lore raw

Hi Johan,

Quoted 9 lines
Quoted 2 lines

it crashes with the name resolve on AMD64, but it is a great starting point.

There are some small changes to how name resolving is done in the latest version (0.2) available here:
http://www.iki.fi/~jhedberg/bluez-python/

If you still get the crash, could you perhaps send a backtrace of it? (I don't have a 64bit machine to reproduce it on).

it is still crashing. It also happens with the start of periodic inquiry and both are producing a segmentation fault. If I start the program and then call 'hcitool scan' the name resolving seems to work flawless.

So how do I create a backtrace with Python for you?

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#4 lore raw

Hi Marcel,

Quoted 1 line · Marcel Holtmann

So how do I create a backtrace with Python for you?

I was thinking of the several lines of "traceback" information that python usually prints when the code does something bad. If the program is segfaulting without producing any other output I don't really have any expecrience in debugging that kind of problems. In the case that we have found a bug in the python D-BUS bindings debugging could be even harder.

Johan

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#5 lore raw

Hi Johan,

Quoted 8 lines
Quoted 1 line

So how do I create a backtrace with Python for you?

I was thinking of the several lines of "traceback" information that python usually prints when the code does something bad. If the program is segfaulting without producing any other output I don't really have any expecrience in debugging that kind of problems. In the case that we have found a bug in the python D-BUS bindings debugging could be even harder.

I tested it on two machines running Ubuntu and both are crashing. One was amd64 and one i386 based. So basically I think that the D-Bus is at fault here. And there is no debugging output from Python. The only thing I saw is an segmentation fault.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel