views:

31

answers:

0

I'm looking into making a Python app that utilizes the PyBluez module to scan for devices and log their MAC address and signal strength.

From looking at (code.google.com/p/pybluez/source/browse/trunk/examples/simple/asynchronous-inquiry.py), it seems very easy to scan for the devices and get their MAC address. What I can't find how to do is measure the signal strength.

Is this possible to do? If there isn't some built in function that does this for me, is there some kind of 'ping' function that will allow me to detect the 'lag' so I can create my own 'signal strength' meter?

I've been looking through the API documentation and, as a last resort, it seems I could just send a small data string and then have my application wait for a response (assuming the Bluetooth device will respond to a random string)