Trying to figure this out for a while but gave it a rest due to failed attempts. Still I think it is possible for a n00b like me.
Goal: Activate relay when phone is out of range (I need to be able to tell arduino(nano) that when a connection like Wi-Fi or BT is lost a a relay is activated)
I came across this (http://www.fritz-hut.com/2012/08/26/bluetooth-presence-detection/) which was little to no help to me since it did not work for me. (Followed exact instructions and even bought the same hardware) Besides, the power consumption of the proximity detector needs to be as low as possible. So an arduino Mega isn't an option.
Is it possible to achieve my goal with an arduino nano and a cheap BT receiver like this one, or do I need to stop right now and look in another direction like different hardware, different technology eg Wi-Fi?
Hope you could help me out. I just need a push in the right direction
arduibot007:
since it did not work for me.
...SNIP...
Is it possible to achieve my goal with an arduino nano and a cheap BT receiver
You need to tell us exactly what was happening when it did not work - including how the phone was set up.
How can we tell that you were not doing exactly the same as you (or anyone else) would do with the Hc05. And I suspect it should work just as well with a Bluesmirf device as a HC05.
You also have to tell us what sort of phone. AFAIK the Hc05 does not work with Apple phones wheras the Bluesmirf does.
I did manage to get some of it working (the scanning part for a minute or 2), but only with another phone since I did not know the full id of the phone I intented to use. I was unable to find the full details required to identify my HTC One (M7)
What I really want to know is: Is it possible, since I have my bluetooth on all the time, to somehow identify my phone when it is in range or out of range, or does it need to be in discovery mode all the time?
arduibot007:
What I really want to know is: Is it possible, since I have my bluetooth on all the time, to somehow identify my phone when it is in range or out of range, or does it need to be in discovery mode all the time?
I simply don't know. I have never tried that. It sounds like something that could be resolved with a few simple experiments.
I don't have a HC05 - only the much more limited HC06 - and I believe the HC05 has a extra functionality that can tell you about its environment. Perhaps time for RTFM ?
Read it, but it's all gibberish to me. I was hoping someone already had some experience with this module and implemented it somehow like I would like to do.
Supprisingly, not many people tried this or it's simply not possible because of limitations on the cell phone
I don't think you take this topic very seriously. As I said, I'm a n00b (but eager to learn). You on the other hand provide little to no help. Here's your manual mate.
Won't having the phone paired up all the drain its battery pretty good? I know it does a number on mine. I leave it in Airplane mode when I can't get connected otherwise it self drains trying to find something to connect to.
arduibot007:
I don't think you take this topic very seriously.
I can't take it seriously without the relevant data. And it is hard to be enthusiastic about helping someone who says "Here's your manual mate". However I will give it one more try.
I'm pretty sure I have seen a more comprehensive HC05 datasheet that includes all of the AT commands that the HC05 responds to. And I think some of them have to do with the detection of devices.
As I said earlier I only have a HC06.
If you can provide a link to the datasheet with all the commands I will look at it.