Reply
Thread Tools
frethop's Avatar
Posts: 283 | Thanked: 60 times | Joined on Nov 2005 @ It's dark in here. I hear laughing.
#1
I am running python 2.5.1 under OS2008 on an N810.

I have been trying to learn Python by writing an application to control a device through an Bluetooth connection. Under OS2007, I was making good progress. Now that I upgraded to OS2008, I can no longer discover devices. And when I attempt to connect directly to a BT address of a device I know is there, I get "Host is down" (i.e., not present) errors.

I can discover devices if I use the BT interface on the desktop.

I know there have benn changes to BT on OS2008. Can someone give me a clue how to do things different?

Thanks.

-- Mike
 
Posts: 393 | Thanked: 112 times | Joined on Jul 2007
#2
I had major issues trying to discover Bluetooth devices through HCI; same results as you - friendly name resolution and discovery couldn't be performed (though I could connect if I knew the address...) Sifting through the BlueZ documentation and many forum posts - the general consensus was that HCI had been deprecated in favour of DBUS methods.

Use D-BUS to communicate with BlueZ. It works!
 

The Following User Says Thank You to yabbas For This Useful Post:
frethop's Avatar
Posts: 283 | Thanked: 60 times | Joined on Nov 2005 @ It's dark in here. I hear laughing.
#3
Originally Posted by yabbas View Post
Use D-BUS to communicate with BlueZ. It works!
Is there a place I can find some examples? Or some documentation? (I'm good at programming, but a n00b with Python...)

Thanks.
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#4
http://wiki.bluez.org/ Almost every page there describing some funcionality has example in python
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 

The Following User Says Thank You to fanoush For This Useful Post:
frethop's Avatar
Posts: 283 | Thanked: 60 times | Joined on Nov 2005 @ It's dark in here. I hear laughing.
#5
Very cool. Looks like plenty of examples. Thanks to both yabbas and fanoush. I'm off to bluez.org.
 
Posts: 144 | Thanked: 45 times | Joined on Oct 2007 @ Detroit
#6
Originally Posted by frethop View Post
Very cool. Looks like plenty of examples. Thanks to both yabbas and fanoush. I'm off to bluez.org.
I have used python, bluez to connect to the wiimote using bluetooth. It worked in OS2008 too. https://garage.maemo.org/projects/pyaxelwii/
Check the source code in garage SVN
https://garage.maemo.org/plugins/scm...34&view=markup
__________________
~m~
Varghese
 
Reply


 
Forum Jump


All times are GMT. The time now is 17:51.