31st
Bluetooth programming in Python
I have been tinkering with my bluetooth dongle and Nokia N70 phone trying to make a connection between them in Python. N70 is a S60 phone and supports PyS60 a limited version of python (but cool).
I tried to setup Bluetooth stack on Windows XP, but my bluetooth dongle driver is BlueSoliel and the latest version is being sold at a price. The BlueSoleil SDK has C++ and C examples which I don’t understand much. Python modules for bluetooth on Windows is PyBluez. But it supports only the Microsoft Bluetooth stack and the Widcomm stack. So I booted my Kubuntu and used the PyBluez on it. It worked fine and detected my bluetooth dongle. I am now also able to discover devices. I also tried lightblue, which depends on PyBluez, OBEXopen and Bluez. But lightblue seems to have a problem with the lightblue.advertise() function which enables to advertise devices on the open network.
Just noted that the kbluetooth tool must not be running to get the connections working. I just tried to make connections and it used to fail. Even now I’ve not got a connection right, but I just moved a step forward. I now get the usual password box on my phone. I’m using the Nokia N70 phone as a server(listening to a port) and my computer as a client to push data.
My Bookmarks