Python/Gtk2 test application for the new D-BUS interface
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
Marcel Holtmann
maintainerHi 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.gzNote 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
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
Marcel Holtmann
maintainerHi 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
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
Marcel Holtmann
maintainerHi 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