Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 09:32, 12 May 2008.

How to discover bluetooth device

From Forum Nokia Wiki


Python has good bluetooth support from the beginning. However, to discover another device, it requires you to interact with the app, choosing a device from the list.

PDIS has a library that help you list all devices silently (not 3rd edition).

# need to install these 2 modules from PDIS first
import aosocketnativenew
from aosocket.symbian.bt_device_discoverer import *
 
def callback(error, devices, cb_param=None):
    for address, name in devices:      
        print "Found: ", name, address
# You can get more data by importing socket and try 
# bt_discover(address) or bt_obex_discover(address)
# see details in official pys60 doc on socket module
 
lister = BtDeviceLister()
lister.discover_all(callback, None)

There's additional solution for 2nd and 3rd Edition : LightBlue library.

from lightblue import *
 
device=finddevices()
Related Discussions
Thread Thread Starter Forum Replies Last Post
question on BT programming hawlman Bluetooth Technology 10 2006-04-11 16:55
COnnecting to 7650 via Ambicom or BlueMonkey BT cards hamishm Bluetooth Technology 2 2003-04-11 11:26
N_Gage USB connectivity barbosaru General Discussion 2 2003-10-28 20:15
Change the bluetooth name Dipakbaviskar Symbian Networking & Messaging 1 2007-06-12 07:14
java bluetooth service discovery with 6600 jdevmo Bluetooth Technology 7 2006-05-26 16:08
 
Powered by MediaWiki