Comments (7)
What do we want?:
- save bandwith if not necessary
- get accurate and up to date locations
- receive a ping even if vehicle is stationary
- Stationary Mode:
detect: no movement greater than minDistance
publish: every pingInterval seconds - Slow Mode
detect: movement > minDistance and speed > minSpeed
publish: every slowInterval seconds - Fast mode
detect: movement >minDistance and speed > fastSpeef
publish: every maxInterval seconds
always publish when changing mode
thougths?
from gw.
We want to save bandwidth and get accurate locations.
StationaryMode sounds good, and I think "quietTime" should be in there as well, to further reduce publishes during, say, night times.
SlowMode also sounds good.
For FastMode, I think minDistance needs to be higher than for SlowMode, which is what I meant by "dynamic adjustment".
I don't think an explicit pub on mode change is required really, because this will happen automatically?
In any case we have to think about this carefully.
from gw.
@jpmens it is possible to use Ignition line (green line connected to fuse) as key.
If you disconnect green cable from fuse and you connect it to vehicle key, when you'll disconnect the key, Greenwich enter in stand-by mode and it will not send messages.
from gw.
@ckrey would this be something for status=-1 ?
from gw.
yes, I haven't tested yet but should be already the case: Ignition off, java goes to intended close and sends a status=-1 messages
from gw.
- When stationary, GW will publish after
minInterval
seconds. Typical value is once per hour. - When GW moves, it will publish after
maxInterval
seconds. Typical value is once per minute. - Detection of move is by evaluation of current speed and distance from the last published location. Threshold speed is given by
minSpeed
with a default of 5 km/h and threshold distance byminDistance
with a default of 100 m. - Stationary publishes are marked as triggered with
"t":"T"
, moving publishes with"t":"t"
. - Trigger values
"d"
for distance and"s"
for speed are obsolete.
from gw.
- When transitioning from
move
tostationary
and additional publish is sent marked with trigger "p" (park)
from gw.
Related Issues (20)
- Seems to hangup when queue gets full HOT 3
- Restart when no connection possible HOT 1
- Restart App if GPRS, MQTT or FIX times out
- Persist last location to calculate trip distance to first fix
- Log triggers before performing reboot
- A message may get lost when gw looses connection to broker HOT 1
- NullPointerException - MQTTHandler problem or $reconnect artefact? HOT 2
- Implement persistent trip counter HOT 1
- change defaults
- Omit login via MQTT? HOT 1
- Disconnect cleanly on $upgrade and $reboot HOT 1
- Multiple versionchecks being performed HOT 4
- GPIO3 fires without reason HOT 2
- RecordStore operations very slow - sometimes HOT 3
- Avoid versioncheck on low battery? HOT 1
- Reduce CSV payload size by using Mapcode HOT 5
- offUntil must cause device to go silent HOT 6
- Is offUntil preventing setting date? HOT 3
- Possible overflow in trip HOT 1
- $log del does not delete log file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gw.