|
|
SMS Server Tools 3 Community |
Welcome, Guest. The forum is currently read-only, but will open soon. |
Sun Jun 01, 2025 12:39 |
Page: 1
Keywords: Mode: All keywords (AND) |
Thu Jan 27, 2011 11:51
|
madf78: OK I will install smstools under windows and try it.
Will keep you updated.
|
Tue Jan 25, 2011 23:25
|
madf78: an example under ubuntu:
2011-01-26 00:20:32,3, GSM3: write_to_modem: error 5: Input/output error
2011-01-26 00:20:43,3, GSM3: Couldn't open serial port /dev/ttyUSB6, error: No such file or directory, waiting 30 sec.
2011-01-26 00:21:13,3, GSM3: Unexpected input: ^BOOT:37089464,0,0,0,77 ^RSSI:11 ^SMMEMFULL:"SM" ^MODE:3,2
2011-01-26 00:21:16,3, GSM3: Unexpected input: ^RSSI:16
2011-01-26 00:21:16,5, GSM3: SMS received, From:...
...
2011-01-26 00:21:19,3, GSM3: Unexpected input: ^RSSI:12
2011-01-26 00:21:39,5, GSM3: SMS received, From: ....
2011-01-26 00:21:40,3, GSM3: Unexpected input: ^RSSI:9
....
2011-01-26 00:23:01,3, GSM3: Unexpected input: ^RSSI:10
2011-01-26 00:23:12,3, GSM3: Modem did not accept the pre-init string
2011-01-26 00:23:12,3, GSM3: write_to_modem: error 5: Input/output error
|
Tue Jan 25, 2011 20:57
|
madf78: I got the problem again
Here is the log:
I will install Ubuntu unless you got a different OS to suggest.
GSM log
, GSM1: Checking device for incoming SMS
2011-01-22 09:37:33,6, GSM1: Checking if modem is ready
2011-01-22 09:37:33,7, GSM1: -> AT
2011-01-22 09:37:33,3, GSM1: write_to_modem: error 5: Input/output error
2011-01-22 09:37:44,7, GSM1: -> AT
2011-01-22 09:37:44,3, GSM1: write_to_modem: error 5: Input/output error
2011-01-22 09:37:54,7, GSM1: -> .
2011-01-22 09:37:54,3, GSM1: write_to_modem: error 5: Input/output error
2011-01-22 09:38:04,7, GSM1: -> AT
2011-01-22 09:38:04,3, GSM1: write_to_modem: error 5: Input/output error
2011-01-22 09:38:14,7, GSM1: -> .
2011-01-22 09:38:14,3, GSM1: write_to_modem: error 5: Input/output error
2011-01-22 09:38:25,7, GSM1: -> AT
2011-01-22 09:38:25,3, GSM1: write_to_modem: error 5: Input/output error
2011-01-22 09:38:35,7, GSM1: -> .
2011-01-22 09:38:35,3, GSM1: write_to_modem: error 5: Input/output error
2011-01-22 09:38:45,7, GSM1: -> AT
2011-01-22 09:38:45,3, GSM1: write_to_modem: error 5: Input/output error
2011-01-22 09:38:55,7, GSM1: -> .
2011-01-22 09:38:55,3, GSM1: write_to_modem: error 5: Input/output error
2011-01-22 09:39:05,7, GSM1: -> AT
2011-01-22 09:39:05,3, GSM1: write_to_modem: error 5: Input/output error
2011-01-22 09:39:16,7, GSM1: -> .
2011-01-22 09:39:16,3, GSM1: write_to_modem: error 5: Input/output error
2011-01-22 09:39:27,3, GSM1: Couldn't open serial port /dev/ttyUSB0, error: No such file or directory, waiting 30 sec.
2011-01-22 09:39:57,6, GSM1: Couldn't open serial port /dev/ttyUSB0, error: No such file or directory, waiting 30 sec.
2011-01-22 09:40:27,6, GSM1: Couldn't open serial port /dev/ttyUSB0, error: No such file or directory, waiting 30 sec.
2011-01-22 09:40:57,6, GSM1: Couldn't open serial port /dev/ttyUSB0, error: No such file or directory, waiting 30 sec.
.....
2011-01-22 18:21:40,3, GSM1: Cannot open serial port /dev/ttyUSB0, error: No such file or directory
2011-01-22 18:21:40,3, GSM1: Modem is not ready to answer commands (Timeouts: 0)
2011-01-22 18:21:40,5, GSM1: Everything ok now.
smsd log
2011-01-17 17:50:27,2, smsd: Smsd v3.1.14 started.
2011-01-17 17:50:27,2, smsd: Running as root:root.
2011-01-17 17:50:28,4, smsd: File mode creation mask: 06 (0660, rw-rw----).
2011-01-17 17:50:28,5, smsd: Outgoing file checker has started. PID: 9738.
2011-01-22 18:21:40,2, smsd: Smsd mainprocess is awaiting the termination of all modem handlers. PID: 9738.
2011-01-22 18:21:40,2, smsd: Smsd mainprocess terminated. PID 9738, was started 11-01-17 17:50:28.
Please advise
|
Thu Jan 20, 2011 20:53
|
madf78: Hmm, ok
by hardware what you mean? modems? hubs? PC...
Which of them you think needs to be replaced?
|
Thu Jan 20, 2011 12:07
|
madf78: 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.
|
Wed Jan 19, 2011 23:55
|
madf78: 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
|
Mon Jan 17, 2011 12:10
|
madf78: 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.
|
Sun Jan 16, 2011 21:35
|
madf78: 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 :
Checking device for incoming SMS
2011-01-16 22:19:48,6, GSM8: Checking if modem is ready
2011-01-16 22:19:49,3, GSM8: Unexpected input: OK
2011-01-16 22:19:49,7, GSM8: -> AT
2011-01-16 22:19:49,7, GSM8: Command is sent
2011-01-16 22:19:53,5, GSM8: Everything ok now.
2011-01-16 22:26:55,7, GSM8: -> AT
2011-01-16 22:26:55,7, GSM8: Command is sent, waiting for the answer
2011-01-16 22:27:10,7, GSM8: put_command expected (OK)|(ERROR), timeout occurred. 1.
2011-01-16 22:27:10,7, GSM8: <-
2011-01-16 22:27:10,7, GSM8: -> .
2011-01-16 22:27:10,7, GSM8: Command is sent, waiting for the answer
2011-01-16 22:27:25,7, GSM8: put_command expected (OK)|(ERROR), timeout occurred. 2.
2011-01-16 22:27:25,7, GSM8: <-
2011-01-16 22:27:25,7, GSM8: -> AT
2011-01-16 22:27:25,7, GSM8: Command is sent, waiting for the answer
2011-01-16 22:27:40,7, GSM8: put_command expected (OK)|(ERROR), timeout occurred. 3.
2011-01-16 22:27:40,7, GSM8: <-
2011-01-16 22:27:41,7, GSM8: -> .
2011-01-16 22:27:41,7, GSM8: Command is sent, waiting for the answer
2011-01-16 22:27:56,7, GSM8: put_command expected (OK)|(ERROR), timeout occurred. 4.
2011-01-16 22:27:56,7, GSM8: <-
2011-01-16 22:27:56,7, GSM8: -> AT
2011-01-16 22:27:56,7, GSM8: Command is sent, waiting for the answer
2011-01-16 22:28:11,7, GSM8: put_command expected (OK)|(ERROR), timeout occurred. 5.
2011-01-16 22:28:11,7, GSM8: <-
2011-01-16 22:28:11,7, GSM8: -> .
2011-01-16 22:28:11,7, GSM8: Command is sent, waiting for the answer
2011-01-16 22:28:26,7, GSM8: put_command expected (OK)|(ERROR), timeout occurred. 6.
2011-01-16 22:28:26,7, GSM8: <-
2011-01-16 22:28:26,7, GSM8: -> AT
2011-01-16 22:28:26,7, GSM8: Command is sent, waiting for the answer
2011-01-16 22:28:41,7, GSM8: put_command expected (OK)|(ERROR), timeout occurred. 7.
2011-01-16 22:28:41,7, GSM8: <-
2011-01-16 22:28:41,7, GSM8: -> .
2011-01-16 22:28:41,7, GSM8: Command is sent, waiting for the answer
2011-01-16 22:28:56,7, GSM8: put_command expected (OK)|(ERROR), timeout occurred. 8.
2011-01-16 22:28:56,7, GSM8: <-
2011-01-16 22:28:57,7, GSM8: -> AT
2011-01-16 22:28:57,7, GSM8: Command is sent, waiting for the answer
2011-01-16 22:29:12,7, GSM8: put_command expected (OK)|(ERROR), timeout occurred. 9.
2011-01-16 22:29:12,7, GSM8: <-
2011-01-16 22:29:12,7, GSM8: -> .
2011-01-16 22:29:12,7, GSM8: Command is sent, waiting for the answer
2011-01-16 22:29:27,7, GSM8: put_command expected (OK)|(ERROR), timeout occurred. 10.
2011-01-16 22:29:27,7, GSM8: <-
2011-01-16 22:29:28,3, GSM8: Unexpected input: OK
2011-01-16 22:29:28,7, GSM8: -> AT
2011-01-16 22:29:28,7, GSM8: Command is sent, waiting for the answer
2011-01-16 22:29:43,7, GSM8: put_command expected (OK)|(ERROR), timeout occurred. 1.
2011-01-16 22:29:43,7, GSM8: <-
2011-01-16 22:29:44,7, GSM8: -> .
2011-01-16 22:29:44,7, GSM8: Command is sent, waiting for the answer
2011-01-16 22:29:59,7, GSM8: put_command expected (OK)|(ERROR), timeout occurred. 2.
2011-01-16 22:29:59,7, GSM8: <-
2011-01-16 22:30:02,5, GSM8: Everything ok now.
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
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
|
Sun Dec 05, 2010 15:41
|
madf78: Hello Keke,
I have solved the problem.
One of the modems was defected, in fact I was able to communicate with it using at command, and even sometimes receives sms, but it was random.
So this was the problem.
I replaced the defected modem, got a new better hub, placed the modems away from each other and now it is working.
Thank you again for the support.
You can consider this post as solved.
Best regards.
|
Fri Dec 03, 2010 13:43
|
madf78: I just would like to know if the is something in the config I could modify/add/remove?
Other wise, has some one experienced smsd with more than 2 modems? and would it possible to post a copy or overview of his/her settings please?
Thank you.
|
Fri Dec 03, 2010 11:47
|
madf78: Now I am sure that it is not a powering problem, or at least I think.
Modems where connected on 3 different hubs with external powers :(
|
Fri Dec 03, 2010 11:01
|
madf78: Hello Keke,
I tried it with 2 different hubs,
one without external power and the second with a 5v 0.8A external power.
Always the same problem.
I am wondering if the 0.8A are enough to power the 3 cards, since as I read each card needs 0.5mA
But electronics is not my major so i am trying my best to figure it out.
|
Fri Dec 03, 2010 10:05
|
madf78: I am still trying to understand the issue with no luck.
Any one got an idea or have faced a similar situation?
Thank you
|
Thu Dec 02, 2010 23:43
|
madf78: Operating system name and version: Linux 2.6.28-19-generic Gecko/20101013 Ubuntu/9.04 (jaunty) x86_64 GNU/Linux
Version of smsd: 3.1.14
Smsd installed from: sources
Name and model of a modem / phone: 3x Huawei Technologies Co., Ltd. E620 USB Modem (VODAFONE MODEM)
Interface: USB
Hello,
I am new to smsd and trying to make it work with the above 3 modems just for receiving sms
The problem is that I can only receive sms on 2 of the 3 modems regardless of the configuration/connections.
I tried to change the connections, switch the modems around, connect them to a hub, or directly to the PC or a combination of both.
I switched the SIM cards, and even went on checking if the cards are receiving the proper Voltage/Amperage...
In other words I tried everything I can think of.
The modem that receives the sms are not always the same ones and not always the ones I connect first so sometimes it is modem connected on /dev/ttyUSB0 and USB6 or USB3 and USBt6 or 1 and 6 ...
Any way it seems that I am unable to understand the problem.
I also tried different baudrate...And dont remember what else I also tried, it has been a week now :(
here is a copy of the smsd.conf (I am surely missing something) and a part of one of the logs "GSM1_trouble.log" where an error was reported after receiving an sms, same error was reported on the second modem (though this error is casual)
Dose any one got any suggestion or can help?
Thank you in advance.
Best regards.
devices = GSM* 1-3
#alarmhandler = filename
#alarmlevel = number
#blacklist = filename
date_filename = 2
decode_unicode_text = yes
delaytime = 10
#eventhandler = filename
failed = /var/spool/sms/failed
filename_preview = 3
ic_purge_hours = 4
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 = no
logfile = /var/log/smsd.log
loglevel = 6
max_continuous_sending = 1
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
sent = /var/spool/sms/sent
#shell = filename
smart_logging = yes
stats = /var/spool/sms/stats
stats_no_zeroes = yes
#status_interval = number
#store_received_pdu = number
#user = madf
#group = dialout
[default]
check_network = 2
incoming = 2
baudrate = 19200
#check_memory_method = number
#cmgl_value = string "REC UNREAD"
#communication_delay = number in ml sec
#device_open_alarm_after = number
#device_open_retries = number
#keep_messaged = yes/no default = no
loglevel = 6
memory_start = 0
#need_wakeup_at = yes/no default = no
outgoing = no
[GSM1]
device = /dev/ttyUSB0
#eventhandler = filename
#init = modem command
#init2 = modem command
logfile = /var/spool/sms/logs/GSM1.log
pin = ignore
#primary_memory = memory name
#secondary_memory = memory name "ME"
#secondary_memory_max = number
#rtscts = yes/no
#send_delay = number in relation with baud rate and rtscts (handshake)
#socket_connection_...
#voicecall_...
[GSM2]
device = /dev/ttyUSB3
logfile = /var/spool/sms/logs/GSM2.log
pin = ignore
[GSM3]
device = /dev/ttyUSB6
logfile = /var/spool/sms/logs/GSM3.log
pin = ignore
GSM1_trouble.log
2010-12-03 00:20:00,7, GSM1: -> AT
2010-12-03 00:20:00,7, GSM1: Command is sent, waiting for the answer
2010-12-03 00:20:05,7, GSM1: put_command expected (OK)|(ERROR), timeout occurred. 1.
2010-12-03 00:20:05,7, GSM1: <-
2010-12-03 00:20:05,7, GSM1: -> .
|
Page: 1
Time in this board is UTC.
|
|
|
 |
|
 |
|