Page 1 of 1

piBeacon:15- device type CAR

PostPosted: Thu Jan 12, 2017 10:28 pm
by kw123
starting with v 7-37-37 the plugin supports a device type = CAR

1. create a device plugin = pibeacon, type = CAR, eg Volvo or Moms car ...
2. select
(A) a battery type beacon (i.e. with AAA battery), place that beacon in the CAR (fixed)
(B) a USB powered beacon put into USB output in CAR
(C) 0-3 beacons attached to your car keys (eg xy)
Screen Shot 2017-01-15 at 22.43.36.png
Screen Shot 2017-01-15 at 22.43.36.png (98.22 KiB) Viewed 9757 times

The CAR device will have 3 states with the following values:
(a) LOCATION= HOME/ AWAY
(b) ENGINE = ON/OFF/""
(c) MOVING = STOP/LEAVING/LEFT/ARRIVING
Screen Shot 2017-01-15 at 22.36.27.png
Screen Shot 2017-01-15 at 22.36.27.png (53.88 KiB) Viewed 9757 times
Screen Shot 2017-01-15 at 22.34.33.png
Screen Shot 2017-01-15 at 22.34.33.png (52.97 KiB) Viewed 9757 times

Conditions for the states:
LOCATION:
-HOME: if Beacons A or B or all C are UP (at least one of the beacon is how so the car must be home)
-AWAY: if Beacons A and B and one of C are down (none of the beacons is home)

ENGINE:
ON if beacon B is on
OFF if beacon B is off
"" if STATUS =AWAY

Moving:
- STOP if home and Beacon B = off (HOME and car is off = must be home standing)
- LEAVING if HOME and Beacon B = ON ( car is home and battery beacon or key is on and USB key comes on. = home starting engine --> must be leaving)
- LEFT if AWAY (no beacon visible so car must be gone)
- ARRIVING if AWAY and any beacon on (was away, have detected at least one beacon so it must come home)


the state "status can be set to show either one or 2/3 of the states described above.

This can be used to detect your CAR(s) home/ away, coming home, leaving ..

It utilizes "fastDown" option for the beacons: if a beacon does not send a signal for x seconds the RPI will send a "fastDown" message to the plugin. for the status to go down ALL RPI must send the fastDown signal.
This is in contrast to not sending anything to the plugin and the plugin will set the beacon status to Down after seconds expiration time.
This will allow a faster reaction time. The fastDownTime used here is 15 seconds. You can manually adjust it for each beacon in beacon device edit. Increase if you have just one RPI, or you could go down to 10 seconds if you have 10 beacons. But you might get some false positives.


Karl

Re: piBeacon:15- device type CAR

PostPosted: Fri Jan 13, 2017 11:13 am
by kw123
One item i need to improve:
sequence of beacon coming on/ off line. They might be just a second apart: eg
battery beacon comes online first then the USB that would result in a state HOEM, then "leaving" not "arriving" the other way around would it work fine..

Need to add short timers and controls to make sure that these things are handled correctly.

In other words not just current state but also last state has to be taken into account.

will take a day or so.

Karl

Re: piBeacon:15- device type CAR

PostPosted: Sun Jan 15, 2017 10:48 pm
by kw123
posted v 7-37-40.
improved the flow and timing of the states, added state indicators etc to the layout. And have removed the "beta"


Karl

Re: piBeacon:15- device type CAR

PostPosted: Tue Jan 17, 2017 3:40 pm
by kw123
This is how the data looks when leaving and when arriving

Code: Select all
 id  |             ts             | engine |  motion  |      status          | location
-----+----------------------------+--------+----------+----------------------+----------
 134 | 2017-01-16 21:46:35.244983 | off    | stop     | home/off/stop        |
 135 | 2017-01-17 14:03:49.225078 | on     | leaving  | home/on/leaving      |
 136 | 2017-01-17 14:04:35.525524 |        | left     | away//left           | away
 137 | 2017-01-17 15:01:56.764415 | off    | arriving | home/off/arriving    | home
 138 | 2017-01-17 15:01:56.939498 | on     |          | home/on/arriving     |
 139 | 2017-01-17 15:02:39.540619 | off    | stop     | home/off/stop        |

Re: piBeacon:15- device type CAR

PostPosted: Thu Jan 07, 2021 6:23 am
by siclark
Hi Karl, Which USB beacons work for (B)? I have a ZUS that lives in the car and is charged on USB, but as it has a battery that is recharged, I am not sure it will change behaviour with engine on or off?

Thanks
simon.

Re: piBeacon:15- device type CAR

PostPosted: Thu Jan 07, 2021 4:20 pm
by kw123
you need one w/o battery to detect motor on/off and put it into a usb port that switches of when the keys are out.

do menu/basic setup help.
it gives you an overview of ... and beacons tested and ... ( several pages)

the feasy USB has an antenna ~ 3time distance reach, and the simplest is the radius USB beacon for that purpose.

Karl

Re: piBeacon:15- device type CAR

PostPosted: Sun Jan 10, 2021 9:40 am
by siclark
This plugin just gets better and better. Got a feasy USB beacon and a feasy white triangle now in the car (Zus been repurposed) and this works great.

Re: piBeacon:15- device type CAR

PostPosted: Sun Jan 10, 2021 9:59 am
by kw123
I use one if the beacons that come with 3 /4 aaa batteries- instead of the feasy triangle. Those beacons last for MANY years (>4 right now, still plenty of juice left)
Though they are large
The signal strength is the same though
Karl
Is and thanks for the nice feedback. Feels good


Sent from my iPhone using Tapatalk

Re: piBeacon:15- device type CAR

PostPosted: Sun Jan 10, 2021 10:34 am
by siclark
kw123 wrote:
I use one if the beacons that come with 3 /4 aaa batteries- instead of the feasy triangle. Those beacons last for MANY years (>4 right now, still plenty of juice left)
Though they are large
The signal strength is the same though
Karl
Is and thanks for the nice feedback. Feels good


Sent from my iPhone using Tapatalk
I couldn’t find one of those in UK Amazon. Will look harder.

Re: piBeacon:15- device type CAR

PostPosted: Sun Jan 10, 2021 10:38 am
by kw123
I bought one from a Uk dealer Beaconzone


Sent from my iPhone using Tapatalk

Re: piBeacon:15- device type CAR

PostPosted: Sun Jan 10, 2021 3:53 pm
by siclark
Cheers. They say they only supply to businesses

Re: piBeacon:15- device type CAR

PostPosted: Sun Jan 10, 2021 4:00 pm
by kw123
You do have a business ?!


Sent from my iPhone using Tapatalk

Re: piBeacon:15- device type CAR

PostPosted: Sun Jan 10, 2021 4:32 pm
by kw123
And you can try

RadBeacon E4

Also do menu print help.
That gives you a list of tested beacons w battery size

Karl


Sent from my iPhone using Tapatalk

piBeacon:15- device type CAR

PostPosted: Sun Jan 10, 2021 10:05 pm
by kw123
And your business name is clark-motion ;)


Sent from my iPhone using Tapatalk

Re: piBeacon:15- device type CAR

PostPosted: Mon Jan 11, 2021 2:48 am
by siclark
True... however for now I will see how I go with the Feasy triangle.