Multiple bluetooth connections for RSSI
Multiple bluetooth connections for RSSI
- Subject: Multiple bluetooth connections for RSSI
- From: Steven M Castano <email@hidden>
- Date: Mon, 14 Oct 2013 17:33:31 -0400
I'm working on a bluetooth proximity application with a few Raspberry
Pi's and some USB bluetooth dongles. The idea so far is that I've create
a set of python scripts that will measure the signal strength via the
"hcitool rssi aa:bb:cc:11:22:33" command to get the current RSSI value.
If that value is of a strong enough strength, I mark that iPhone as
"near" the proximity marker.
My idea is to have a few of these around the house capable of "changing
the way certain apps" behave. For instance, I'm using XBMC as my media
center software and Logitech's Harmony Ultimate remotes and iPhone apps
to control other home theater devices. I'd like to not have to switch
rooms... so when the iPhone is in the living room and you up the XBMC
Remote app, it will control the XBMC in the same room.... so as you walk
from room to room, it will move the controls with you.
This also can be used from a web page in my "automated home" portal to
locate a phone. Very similar to the "Find my iPhone" app, except this
one will actually tell you which room of the house its in!
The problem I'm having is I can't seem to get very stable consistent
connections. I've got one up and running with no problems at all... it
gets RSSI values at a rate of almost 4 - 6 per second. Then I've got 2
more that I'm trying to add and I seem to be having tons of problems. It
seems like a second and third device connect, stay connected and work
for a while, but once I move from room to room, after a while the
connects drop off and don't come back.
Running an hcidump on the connection shows "access denied", "connection
rejected", even "memory limit exceeded" and some "page timeout" errors
also. Anyone have any idea on how I can track down what's wrong? Is this
just me sitting the limit of what the iPhone 5 can track? Any ideas on
how to "lighten" the load? Would spacing apart the checks work better?
Is there a better way to check this? How about making a "baseband"
connection vs the "rfcomm" connections that I'm using now?
Thanks in advance!
*SMC
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden