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. Sun Apr 11, 2021 12:34
SMSTools3 Community » Help and support Bottom

[answered] Probleme with smstools3

  This topic is locked

Page:  1

Author Post
Member
Registered:
Dec 2010
Location: Belgium
Operating system name and version: Crunch Bang 2.6.28-19-generic (Ubuntu) x86_64
Version of smsd: 3.1.14
Smsd installed from: Package (if i remember correctly)
Name and model of a modem / phone: Huawei Technologies Co., Ltd. E620 USB Modem (Vodaphone)
Interface: USB


Hello I keep getting this error :



Copy of the config:

devices = GSM* 1-8

#alarmhandler = filename
#alarmlevel = number
#blacklist = filename
date_filename = 2
decode_unicode_text = yes
delaytime = 1
#eventhandler = filename
errorsleeptime = 10
failed = /var/spool/sms/failed
filename_preview = 3
ic_purge_hours = 24
ic_purge_minutes = 0
ic_purge_read = no
ic_purge_interval = 5
#ingnore_exec_output = yes/no
ignore_outgoing_priority = yes
incoming = /var/spool/sms/incoming
incoming_utf8 = yes
internal_combine = yes
internal_combine_binary = yes
logfile = /var/log/smsd.log
#logfile = /var/sppol/sms/logs/smsd.log
loglevel = 5
max_continuous_sending = 10
outgoing = /var/spool/sms/outgoing
#priviledged_numbers = list of numbers
receive_before_send = yes
#regular_run = filename
#regulat_run_interval = number
report = /var/spool/sms/report
saved = /var/spool/sms/incomplete
sent = /var/spool/sms/sent
#shell = filename
smart_logging = yes
stats = /var/spool/sms/stats
stats_no_zeroes = no
status_interval = 60
#store_received_pdu = number
#user = andy
#group = smsd
umask = 006
#infofile = /var/spool/sms/run/smsd.working
#pidfile = /var/spool/sms/run/smsd.pid

[default]
check_network = 2
incoming = 2
baudrate = 115200
eventhandler = /var/spool/sms/scripts/./2xls
check_memory_method = 2
#cmgl_value = string "REC UNREAD"
#communication_delay = 50
#device_open_alarm_after = number
device_open_retries = -1
#keep_messaged = yes/no default = no
loglevel = 5
memory_start = 0
needs_wakeup_at = yes
outgoing = no
rtscts = yes

[GSM1]
device = /dev/ttyUSB0
logfile = /var/spool/sms/logs/GSM1.log
number = 476453959
pin = ignore
read_timeout = 15

[GSM2]
device = /dev/ttyUSB3
logfile = /var/spool/sms/logs/GSM2.log
number = 471835942
pin = ignore
read_timeout = 15

[GSM3]
device = /dev/ttyUSB6
logfile = /var/spool/sms/logs/GSM3.log
number = 471835941
pin = ignore
read_timeout = 15

[GSM4]
device = /dev/ttyUSB9
logfile = /var/spool/sms/logs/GSM4.log
number = 475508527
pin = ignore
read_timeout = 15

[GSM5]
device = /dev/ttyUSB12
logfile = /var/spool/sms/logs/GSM5.log
number = 476454086
pin = ignore
read_timeout = 15

[GSM6]
device = /dev/ttyUSB15
logfile = /var/spool/sms/logs/GSM6.log
number = 477090217
pin = ignore
read_timeout = 15

[GSM7]
device = /dev/ttyUSB18
logfile = /var/spool/sms/logs/GSM7.log
number = 471262086
pin = ignore
read_timeout = 15

[GSM8]
device = /dev/ttyUSB21
logfile = /var/spool/sms/logs/GSM8.log
number = 475508494
pin = ignore
read_timeout = 15
 
 
'smsdconf' Syntax Highlight powered by GeSHi


read_timeout was added lately in a desperate measure to solve this issue.
Other wise every things works fine, the modems keep on receiving sms but I am bothered with this random error on different modems (Not all of them)

Thank you for your help.

Best regards

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
A modem stops answering, but there is also "unexpected input: OK" presented once.

As you are running multiple USB modems, this may be a problem with power. Have you connected those modems using USB hub with an external power supply which has enough capacity? Also some cheap and thin extension cable may cause this kind of troubles.

If you run your system with less modems, do you still have those errors?

Member
Registered:
Dec 2010
Location: Belgium
Topic owner
Hello keke,

Well I have been trying to solve this issue since a while ago.
I have tried multiple combination.
In brief, the application ran with 7 modems, for 72 straight hours once with absolutely no issues. It may run longer but I have never tested it.
The external hub is self powered.
Usb cables came with the modems (original vodaphone).
I have tried to switch the keys, 4 x 2 different hub, but I guess one on the hub had problem any way I did not work plenty of error and smsd stopped functioning.
Since I would like to run 32 modems later on, I am wondering what should I do?

Once you told me that my configuration is ok..is it still the case, I just made some minor changes since (while trying to solve the current issue)?
Would it be the PC (A new acquired Acer desktop, only for this server purpose) ?
Is it the Vodaphone USB modems?
Or is it the self powered hub (10xUSB input) ?

In each case what different alternative do I have?

please advise.

Thank you again.

Best regards.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Are you sure that any modem is not defected this time?

I cannot guess what causes the problem. If your system with 7 modems runs without any errors for three days, there may be some interferences which cause failures. Probably you should create some supervisor system, which detects failures and creates an alarm.

When the failure happens, what do you do get the modem working again? Do you need to disconnect and re-connect it?

Member
Registered:
Dec 2010
Location: Belgium
Topic owner
Hello and sorry for the late reply

After thorough testing I came up with the following results:

All modems are individually working though under heavy load I get the error.
If the application in under heavy stress (200+ sms/day) smsd stop working and I have to restart it.
Under normal working condition I keep receiving the error randomly but smsd keep working.
So I guess it is a problem of power consumption (maybe)
It might be the hub, or the PC USB outputs.

Can any one suggest some professional hubs make or models I can use?

Thank you again for your support.

Cheers

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
madf78 wrote
If the application in under heavy stress (200+ sms/day) smsd stop working and I have to restart it.

200+ is not a heavy stress, it's something about 40 minutes of sending, or about 8 SMS per hour. But "smsd stop working" ??? :o Do you really mean that smsd stops, or is the issue the same as before when modem stops answering? And restarting smsd helps, without needing to do anything to the modem?

Member
Registered:
Dec 2010
Location: Belgium
Topic owner
no smsd stop
in fact when I enter the following command :

ps -ef | grep smsd

some instances of smsd are "Defunct" sometime all of them and I get some errors in smsd.log (but do no remember what)

Then I have to reboot the machine, remove all modems, re-insert them in a certain order, then restart the daemon.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
madf78 wrote
some instances of smsd are "Defunct" sometime all of them and I get some errors in smsd.log (but do no remember what)

The log would be usefull, but...

I think that the modem(s) stop responding, and after several retries smsd tries to close the port and re-open it. Opening fails, probably because there is no port anymore, and retrying stops. Next time when smsd will check if the port is open / can be opened, opening fails again and smsd stops because this is a permanent failure. When a modem process stops, it is shown as "defunct" in the process list. This is meant to be like that, because from the process list it can be seen if some device is broken.

As your system loses sometimes all ports, you really need a new hardware. But I cannot recommend anything...

Member
Registered:
Dec 2010
Location: Belgium
Topic owner
Hmm, ok
by hardware what you mean? modems? hubs? PC...
Which of them you think needs to be replaced?

Member
Registered:
Dec 2010
Location: Belgium
Topic owner
I got the problem again
Here is the log:
I will install Ubuntu unless you got a different OS to suggest.

GSM log


smsd log


Please advise

Member
Registered:
Dec 2010
Location: Belgium
Topic owner
an example under ubuntu:



Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
madf78 wrote
by hardware what you mean? modems? hubs? PC...
Which of them you think needs to be replaced?

Bad to say anything for sure.... :(

Ports are lost during the communication, this can be seen from the log. You may have bad cables in the noisy environment, or anything...

Member
Registered:
Dec 2010
Location: Belgium
Topic owner
OK I will install smstools under windows and try it.

Will keep you updated.

  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.