![]() |
BLUEZ: How to determine if known device is reachable
Hi,
I'm trying to use bluetooth to determine what devices are around me (context awareness). For this purpose I use bluez api in a way that I turn bt on, start device scanning and than I catch signals DeviceFound. The problem is that this signal is emitted only if devices are not paired. If for example I have my computer which has been paired with my phone I won't get signal that this device has been found. The question is: how can I determine if known devices are in range (in a nice way :) ) - any ideas? My first idea was to try to connect to every possible known device and catch errors but this is not the thing... Thank you for your answers, Best regards, Skomialek |
Re: BLUEZ: How to determine if known device is reachable
Quote:
|
Re: BLUEZ: How to determine if known device is reachable
Quote:
|
Re: BLUEZ: How to determine if known device is reachable
I suppose you could look at BlueProximity ...
|
Re: BLUEZ: How to determine if known device is reachable
Quote:
|
Re: BLUEZ: How to determine if known device is reachable
You can simply do a bluetooth scan ... which will give you a list of device at promity with their mac address ... store this and compare.
|
Re: BLUEZ: How to determine if known device is reachable
Quote:
Since non-discoverable devices will only respond to direct requests, the only way to see them is with direct requests such as L2CAP echo requests (aka bluetooth ping.) Sure, this is polling, but repeated scans are also a form of polling. |
Re: BLUEZ: How to determine if known device is reachable
Quote:
|
Re: BLUEZ: How to determine if known device is reachable
Quote:
sorry for bothering you... problem solved (actually it's never existed..) Best regards, Skomialek |
Re: BLUEZ: How to determine if known device is reachable
Quote:
It seems to establish an rfcomm connection to the known device, in order to get the signal strength (RSSI) and make an estimation of the distance to the device. |
All times are GMT. The time now is 11:17. |
vBulletin® Version 3.8.8