GSM modems and AT commands. | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through July 28, 2010 ⬆ |
◄ ► |
Author | Message | |||
Alexandre New member Username: Alexd Post Number: 50 Registered: 01-2008 |
Hello! I had been studied a problem so-called "lags of modems" in practice it has appeared that modems do not hang and lose a network and at usual reboot the modem registers again SIM a card in a network. On which modem the network loses the reasons for me are not clear since at loss of a network he is obliged in an automatic mode to be re-registered, but there is a possibility to return the modem in normal operating conditions software restart. As it is known management of modems occurs by means of AT commands therefore I will result commands for definition of the status of registration of a network and software restart. AT+CREG? To the answer comes CREG=1 or 0 If 1 that the status "in a network" If 0 that the status "not in a network" Further if the answer "0" that we reboot the modem command AT+CFUN=1 Whether probably somehow through URL parametres in NowSMS to transfer AT commands to modems? Or it is necessary to develop the foreign program for sending AT of commands? But then there is a problem as NowSMS holds Serial ports the opened. What ways of the decision of this problem are? | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 2086 Registered: 08-2008 |
Hi Alexandre, That is an interesting thought to test the response for AT+CREG?, and use that as a trigger to reset the modem. NowSMS does do some periodic checking of responses to different AT commands to determine if the modem is responding OK, and if it is not, will automatically attempt to reset the modem. We could add a test for AT+CREG? -- +CREG: 0 ... as an additional trigger for performing a modem reset. I need to discuss this further with our engineering team. Note that at present, after 50 consecutive failed send attempts, NowSMS will automatically perform a modem reset. So this type of situation will be detected automatically, but it will take some time. -- Des NowSMS Support | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 7909 Registered: 10-2002 |
Hi Alexandre, We needed to implement an unrelated update for the NowSMS modem handler (http://support.nowsms.com/discus/messages/1/59734.html), so we decided to implement an AT+CREG? check, similar to what you described. The update is available for download at http://www.nowsms.com/download/nowsmsinterim.zip. Basically, NowSMS performs a modem check approximately every 3 minutes, and a "0" response will trigger a modem reset. -bn | |||
Alexandre Frequent Contributor Username: Alexd Post Number: 51 Registered: 01-2008 |
Thanks. I`ll test it. |