piBeacon: presence monitoring plugin discussions

User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

There were a few error messages but Xcode was able to fix everything on its own.

I now have GemTotforiOS on my phone.

BTW, the project is also available from: https://github.com/gemtot/iBeacon
It is not clear if they plan on updating this for iOS 9, but it seems to run just fine.

CAVEAT: I have not tried this with anything. YMMV significantly.

And, vielen Dank Karl for your work on this and a plethora of other great contributions.
berkinet: do I need to be a registered developer to compile and run it = donate $99 to apple?

I tried with my apple id, which gets me to "security failure" when I try to run the app.


Karl
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

http://stackoverflow.com/questions/2582 ... d-security

this fixes the security issues for the app running on your iPhone , read the whole thing!

Karl

set trust in:
Go to your iPhone > Settings > General > Profile > "[email protected]" > Trust
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

Aso with this solution the BLE mac number changes every time BLE gets turn off/on

looks like not so easy solution if THE key for identifying the device changes..

Karl
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

random Mac addresses on iPhones:
http://appleinsider.com/articles/14/06/ ... provements

looks like this is by design for security purposes!

that makes MANY many things much more difficult!!


Karl
Japple55
Posts: 243
Joined: Sat Sep 26, 2015 2:54 pm
Location: NE Tennessee

Re: piBeacon: presence monitoring plugin discussions

Post by Japple55 »

Hi Karl,
Thanks for your contributions! This seems like an ideal solution for me since my home is located one street over from a busy road on which I travel frequently, causing undesired geofence entries and exits when I'm not actually leaving or going home. And every location-based solution seems to drain my battery.

I have a couple of (noob) questions:
1. This only works in conjunction with Fingscan, correct? (#7 of your instructions) IOW, not standalone?
2. If I leave a beacon in a vehicle, do you know if the BLE signal is strong enough to penetrate a metal garage door. My use case would be to place the Pi either in the garage, or a front-facing window to detect my vehicle's arrival. Ideally it would sense the beacon as I drive in or out of the driveway.
Thanks,
Jim
2025 MacMini M4, 16gig RAM, 250 GB SSD
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

1. This only works in conjunction with Fingscan, correct? (#7 of your instructions) IOW, not standalone?
2. If I leave a beacon in a vehicle, do you know if the BLE signal is strong enough to penetrate a metal garage door. My use case would be to place the Pi either in the garage, or a front-facing window to detect my vehicle's arrival. Ideally it would sense the beacon as I drive in or out of the driveway.
1. no, you can simply trigger on device state="up". Fingscan just enables you to combine devices for a trigger (AND for away, OR for home) and mange some timers.
2. have not tested metal walls. But as I have 10 pi in my house and I have placed the Pis in windows I don't have that problem, but I will test.

May I suggest to use at least 2 Pi? I will be tested the Pi zero this week. should work too. It works actually well with the old Pis ($20)


Karl
Japple55
Posts: 243
Joined: Sat Sep 26, 2015 2:54 pm
Location: NE Tennessee

Re: piBeacon: presence monitoring plugin discussions

Post by Japple55 »

Excellent Karl, thanks for the info. Looks I'll be grabbing a couple of Pi devices. Look forward to your review of the Pi Zero.
Jim
2025 MacMini M4, 16gig RAM, 250 GB SSD
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

the pi0 was $36! You have to buy all the stuff you don't need in order to get your hands on one..
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

the pi0 was dead on arrival.. no led blinking no nothing nada zip zilch.. ($41 with shipping .. , lets see if adafruit will send replacement)

I guess we will need to wait a bit more until the pi0 is mature..

Karl
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

correction: (was bad connection) :oops:

the pi0 is alive.. does not run on old Raspian, need latest version.

Next step: I can't get 2 USB connections working... this is much more work than I thought and it does not look less expensive!!
need micro to usb female $4+ powered HUB +10 that adds $15 to pi cost.. it is getting closer to pi1

looks like we need to wait until these stupid cables don't cost $$$ anymore.

Karl
Japple55
Posts: 243
Joined: Sat Sep 26, 2015 2:54 pm
Location: NE Tennessee

Re: piBeacon: presence monitoring plugin discussions

Post by Japple55 »

Thanks for your review work, Karl. I took your advice and bought the Pi2 and other recommended hardware. Looking forward to getting this set up.
Jim
2025 MacMini M4, 16gig RAM, 250 GB SSD
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

Jim,
let me when you run into issues.
Karl
Japple55
Posts: 243
Joined: Sat Sep 26, 2015 2:54 pm
Location: NE Tennessee

Re: piBeacon: presence monitoring plugin discussions

Post by Japple55 »

Thanks Karl, but I prefer to think "IF" I run into issues. :wink:
Jim
2025 MacMini M4, 16gig RAM, 250 GB SSD
yassi
Posts: 498
Joined: Sun Sep 06, 2015 7:14 am
Location: Germany

Re: piBeacon: presence monitoring plugin discussions

Post by yassi »

Karl, first of all thanks for your great work!

I've installed one Pi and wanted to test it until my ordered Radius beacons are coming.
But I have some questions some things are not right clear for me.

As I see, I have to set up the coordinates of the Pi.
How can I do this?
I think that's the reason it doesn't shows up.

Second, I've tried to test the Pi and the plugin with the App "Locate" from Radius, on my iPad.
There are four buttons. If I go to "Locate Beacons" I can see a beacon, I think it's the Pi.
But how can I configure the iPad as a beacon? What to select from the list (see screenshot). Do I have to select the same network (Radius Networks 2F234454)?

Thanks in advance!

yassi
Attachments
iBeacon Transmitter
iBeacon Transmitter
iBeacon Transmitter.jpg (84.2 KiB) Viewed 6317 times
Locate iBeacons
Locate iBeacons
Locate iBeacons.jpg (42.31 KiB) Viewed 6317 times
rPi settings
rPi settings
rPi Settings.jpg (80.37 KiB) Viewed 6317 times
Pi Log
Pi Log
Pi Log.jpg (83.7 KiB) Viewed 6317 times
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: piBeacon: presence monitoring plugin discussions

Post by kw123 »

Yassi,

to your questions:

1. iphone and ipads etc are not easily configured as iBeacons, see discussion in this thread.
2. you need a REAL iBeacon (i.e. radius, xy, ..) to see it in the plugin, see the list of good and not so good iBeacon in the iBeacon thread. The rPi will NOT list non iBeacon devices (= other BLE devices = mouse, keyboards, iPhones, etc), I am look at that, but not so trivial to do.
3. it seems that your rPi is not setup properly,. Did you do "setup pi" in the menu? configure DEVICE MUST be done AFTER the rPi shows up as a device in the folder iBeacon. The plugin must create it first. It will do so once the rPi is sending messages to the indigo server.
4. the iPhone iBeacon scanner will likely show the rPi as a beacon (type radius), and it behaves like a iBeacon transmitter as well as scanner.

In your print config it does not show ANY pi or beacon devices setup.

so here is what your should be doing:
1. menu/piBeacon/setup Pi servers: select rPi#=0 , confirm, enter IP number, enable rPi, ... confirm.. (get the rPi ip number from FINGSCAN or your router)
2. menu/piBeacon/send config to piBeacon: select rPi#0 (should be already done automatically in #1, just do it again.)
3. menu/piBeacon/restartPiServer: re-start rPi#0
4. you then should see changes (after ~ 1 minute) in variable: piBeacon/pi_IN_0:
{"pi_IN_":"0","mac":"5C:F3:70:6D:DA:7A","msgs":[["F1:4C:CE:08:E4:80",1,"0-0-0",-71.2,-2.0,9],["5C:F3:70:6D:D8:E9",1,"0-0-0",-82.4,-59.0,137],["D4:DA:48:4A:C9:F7",1,"0-0-0",-68.0,-2.0,10],["5C:F3:70:6D:D9:6E",1,"0-0-0",-92.6,-59.0,110],["00:EA:23:0B:E2:54",1,"0-0-0",-70.8,-60.0,13],["D4:D4:36:86:9B:60",1,"0-0-0",-67.4,88.0,123]],"secsCol":"17"}
( less than this as I have many beacons and rPis)
5. you then could turn off login in the event log with: menu/piBeacon/Replace Indigo Webserver ... That will add a filter to the default web server to suppress the MANY messages you will be receiving from your rPis


hope that helps

Karl
Post Reply

Return to “piBeacon”