SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Mon Mar 01, 2021 07:49
SMSTools3 Community » Help and support Bottom

[answered] Increase Waiting time when modem is not registered

  This topic is locked

Page:  1

Author Post
Member
Registered:
Aug 2010
Location: United Kingdom
Operating system name and version: CentOS 5.5
Version of smsd: 3.1.14
Smsd installed from: sources
Name and model of a modem: Wavecom Fast GO Plus
Interface: serial

Hi!

Sometimes when the modem loses network I get this in the logs:

2011-02-10 11:42:20,5, WAVECOM: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 64. TIME
2011-02-10 11:42:22,5, WAVECOM: Signal Strength Indicator: not present of not measurable, Bit Error Rate: not known or not detectable

How can I control the WAITING 1 SEC time? I've tried errorsleeptime and delaytime but neither seem to work. I'd like to increase it to say 10s.

Thanks,

Matt

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
As the loss of registration is a serious problem, smsd tries to get back to the network as soon as possible. There is no setting for increase the waiting time. I probably have to add this setting to the next version.

You can avoid those messages with a modem setting log_not_registered_after. For example value 64 causes that messages are logged using debug level, and after the 64th try level is changed to notice and alarmhandler is called.

As you have installed smsd from sources, you might make a small change to the sources. In the file smstools3/src/modeminit.c, locate the following and add highlighted line:

// Return value:
// -2 = terminated
// -1 = modem is not registered
// >= 0 = number of retries, modem is registered
int wait_network_registration(int waitnetwork_errorsleeptime, int retry_count)
{
  char answer[500];
  int success = 0;
  int retries = 0;
  int registration_denied = 0;
  static int registration_ok = 0;
  char *p;
  // 3.1.14:
  static char prev_lac[32] = "";
  static char prev_ci[32] = "";
  char lac[32];
  char ci[32];

  waitnetwork_errorsleeptime = 10;

  writelogfile(LOG_INFO, 0, "Checking if Modem is registered to the network");
 
'c' Syntax Highlight powered by GeSHi


Then in the smstools3/src directory, run make. After the compilation is done, replace the executable with cp -p smsd $(which smsd)

Member
Registered:
Aug 2010
Location: United Kingdom
Topic owner
Thanks Keke!

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.