Giter Site home page Giter Site logo

Comments (4)

emilsedgh avatar emilsedgh commented on July 1, 2024

Use something like the following code to see if the modem port is opened and still operational:

function checkModem() {
  var c = modem.execute('AT', function() {
    console.log('AT Test response', arguments);
  });

  c.on('timeout', function() {
    console.log('AT Test timed out');
  });
}
setInverval(checkModem, 120000);

from modem.

alexislg2 avatar alexislg2 commented on July 1, 2024

Thanks!
Have you ever experienced this problem? If so, do you know what is the cause of this?
By the way, what can I do when I detect a timeout to reload the modem?

from modem.

alexislg2 avatar alexislg2 commented on July 1, 2024

I found out why this happened. It's because the modem seems to 'forget' that we have registered for sms notifications
I need to put this in a regular interval to fix this problem
this.execute('AT+CNMI=2,1,0,2,0');

from modem.

emilsedgh avatar emilsedgh commented on July 1, 2024

This is weird. Never had such issue.
Glad to see your problem fixed :)

from modem.

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.