Comments (16)
We may leave the Indicator in to see if the device is on external power or running on battery.
Suggestion "p":"", where is E or B.
from gw.
OK. (I'll modify documentation)
from gw.
Call it pow
, please.
from gw.
Maybe vehicle batt level makes sense instead?
Stefano Costa
R&D, Managing Director
M. +39 335 6565749
Skype stefanocosta.bluewind
Twitter @stefanobluewind
www.bluewind.it
Il giorno 02/ago/2014, alle ore 08:38, JP Mens [email protected] ha scritto:
Should we remove the batt level from the JSON payload for GW devices? It's mostly the same value, and if the battery does die (it happened to my first device) the device probably won't do much anyway ... Saves a few bytes, in particular as the information doesn't seem really valuable.
—
Reply to this email directly or view it on GitHub.
from gw.
This proves to be very useful on similar applications, telling what's wrong under strange situations
Stefano Costa
R&D, Managing Director
M. +39 335 6565749
Skype stefanocosta.bluewind
Twitter @stefanobluewind
www.bluewind.it
Il giorno 02/ago/2014, alle ore 08:52, Christoph Krey [email protected] ha scritto:
We may leave the Indicator in to see if the device is on external power or running on battery.
Suggestion "p":"", where is E or B.—
Reply to this email directly or view it on GitHub.
from gw.
The value we're getting isn't vehicle battery level; it's the battery level of the Greenwich. I think we'd need CAN BUS for the former, but that's a feature which is far away ... ;-)
from gw.
AT+SBV -> (e.g. 4.4V
) indicates the supply voltage of the module a.k.a. the voltage suppled by the vehicle or battery.
Once we start using deferred shutdowns or alerts, we may find it helpful to have this.
AFAIK vehicle battery voltage is not available w/o CAN BUS
Currently the power indication is hardcoded in the app as "E", so it wouldn't help
We may use the info provided by
AT+SBC which is currently not monitored by the app except the undervoltage warning
from gw.
Might be possible using an AD converter (just an additional cabling on the connector) but @Matteo knows if this is supported, I'm not sure.
from gw.
If Greenwich is connected to the vehicle battery, you can read the voltage using "getVIN()" or "getDoubleVIN". See PowerManager class in the Choral library.
These methods read the Greenwich power line voltage.
from gw.
"batt"
(optional, see $set fields=) now contains external voltage, e.g. "batt":"12.2V"
.
from gw.
I'd like to revisit and discuss this again. We now have vehicle battery voltage in the JSON payload, but is this really useful? Isn't a vehicles battery pretty constant at 12/24V?
As I was telling you yesterday, JSON with the Greenwich' battery level (e.g. 3.7V) was a lifesaver for me in determining why a few devices stopped reporting (I saw their battery drain, thus proving they weren't attached to power).
If you all think vehicle voltage is better; fine, otherwise I'd like to get back to Greenwich battery, if possible.
from gw.
Let me comment on this. Based on our experience both values are relevant under different situations, and would help having them available. Maybe less often than position, or at request.
I agree that vehicle battery voltage is constant with IGN on and engine running; but can reveal issues if dropping too fast when stopped, and an interesting feature is giving its value once every 16/24 hours while being parked (trucks, trailers) being an expensive piece of equipment.
from gw.
Maybe we could publish both battery levels at the "t":"T" type (e.g. maxTime) as Stefano recommends? It probably is overkill to publish battery levels at each location change, but could we publish them periodically and/or when levels change? {"battv": "12.2V", "battg" : "3.9V" } ? (v = vehicle, g = greenwich)
from gw.
I think publishing retained messages to
.../batt/v 12.4
.../batt/g 3.7
would probably make more sense in this case, and it matches what we do with .../gpio
and .../sw
.
from gw.
I had the same idea
owntracks/gw/356612027383852/voltage/batt 4.4V
owntracks/gw/356612027383852/voltage/ext 12.2V
Will be updated as soon as voltage changes significantly (currently hard-coded 0.1V)
from gw.
Documented here.
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.