Giter Club home page Giter Club logo

Comments (4)

ckrey avatar ckrey commented on September 26, 2024

Added timeout for mqtt connection and return to mainLoop

from gw.

ckrey avatar ckrey commented on September 26, 2024

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.

ckrey avatar ckrey commented on September 26, 2024

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.

ckrey avatar ckrey commented on September 26, 2024

solved. gw was stuck in a loop during shutdown in offline. Now watches grps- and mqttTimeouts.

from gw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.