Comments (4)
Added timeout for mqtt connection and return to mainLoop
from gw.
Testing overnight (mainDebug=1, sleep=18000, motion=4(=default)):
Probably motion=4 is too sensitive and is triggered by the odd fly in my office, trying motion=63 later
- Disconnect power (and ignition), gw running on battery:
AppMain: IgnitionWakeup && gpio7 && qSize
AppMain: powerDown @ Wed Aug 20 22:42:48 UTC 2014
AppMain: powerDown setting wakeup call for Thu Aug 21 03:42:48 UTC 2014
^SHUTDOWN
- Reason for SYSSTART?
^SYSSTART
Running 0.6.2 @ Wed Aug 20 23:48:22 UTC 2014
AppMain: wakeupMode is MotionWakeup
>AppMain: MotionWakeup && dateLastFix && qSize
AppMain: powerDown @ Wed Aug 20 23:48:59 UTC 2014
AppMain: powerDown setting wakeup call for Thu Aug 21 04:48:59 UTC 2014
^SHUTDOWN
- Reason for SYSSTART?
^SYSSTART
Running 0.6.2 @ Thu Aug 21 00:34:37 UTC 2014
AppMain: wakeupMode is MotionWakeup
>AppMain: MotionWakeup && dateLastFix && qSize
AppMain: powerDown @ Thu Aug 21 00:35:16 UTC 2014
^SHUTDOWN
- Reason for SYSSTART?
^SYSSTART
Running 0.6.2 @ Thu Aug 21 01:18:27 UTC 2014
AppMain: wakeupMode is MotionWakeup
>AppMain: MotionWakeup && dateLastFix && qSize
AppMain: powerDown @ Thu Aug 21 01:19:05 UTC 2014
AppMain: powerDown setting wakeup call for Thu Aug 21 06:19:05 UTC 2014
^SHUTDOWN
- Reason for SYSSTART?
^SYSSTART
Running 0.6.2 @ Thu Aug 21 04:25:27 UTC 2014
AppMain: wakeupMode is MotionWakeup
>AppMain: MotionWakeup && dateLastFix && qSize
AppMain: powerDown @ Thu Aug 21 04:27:06 UTC 2014
AppMain: powerDown setting wakeup call for Thu Aug 21 09:27:06 UTC 2014
^SHUTDOWN
from gw.
Maybe CGATT is still too early - not sure if it is related to the problem anyhow as the mqtt connection works later on:
AppMain: SWITCH ON RADIO PART of the module...
commandResponse: AT+CREG=1
OK
commandResponse: AT+CGREG=1
OK
commandResponse: at^smong
GPRS Monitor
BCCH G PBCCH PAT MCC MNC NOM TA RAC # Cell #
65535 1 - - 000 000 1 00 00
OK
commandResponse: at+cgatt=1
ERROR
ATListenerEvents: (12) +CREG: 5
ATListenerEvents: (13) +CGREG: 2
ATListenerEvents: (13) +CGREG: 5
commandResponse: AT+COPS?
+COPS: 0,0,"E-Plus"
OK
from gw.
solved. gw was stuck in a loop during shutdown in offline. Now watches grps- and mqttTimeouts.
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.