|
|
SMS Server Tools 3 Community |
Welcome, Guest. The forum is currently read-only, but will open soon. |
Thu Mar 13, 2025 17:52 |
Page: 1
Keywords: Mode: All keywords (AND) |
Tue Apr 14, 2015 15:14
|
ajermaky: Update:
We accessed the phone directly and did the following commands:
AT+CPMS? ("MT","IM","OM","BM","DM"),("OM","DM"),("IM") OK
AT+CREG? +CREG: 0,1 OK
AT+CREG=? +CREG: (0- 1) OK
based on this, we set up our smsd.conf as follows:
##MTN
[GSM2]
##ensure device corresponds to serial port
device = /dev/ttyACM0
pre-init = CREG=1
incoming = yes
check_network = 0
check_memory_method = 31
memory_start = 0
primary_memory = MT
hangup_incoming_call = yes
##mobile phones do not need pins. unsure about modems
#pin = 1111
baudrate = 115200
##state the queue you wish to utilize
queues = mtn
The CME error 300 went away for primary memory, so thats a plus! However we are getting 500 errors still, and the pre-init string did not work. Is there a way we can set CREG=1 from the conf file?
|
Tue Apr 14, 2015 00:16
|
ajermaky: Here is our smsd.conf as a reference:
#GLOBAL SETTINGS
##state which devices you want to use
devices = GSM1, GSM2
logfile = /var/log/smsd.log
##if you run into errors, change from 4 to 7
loglevel = 7
##you no longer need checked; checked is for default. Only use
## if a modem does not have a queue assigned to it
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
outgoing = /var/spool/sms/outgoing
eventhandler = /var/www/ugandasms/textArtisan.sh
voicecall_hangup_ath = yes
hangup_incoming_call = yes
receive_before_send = yes
smart_logging = yes
delaytime = 1
errorsleeptime = 2
blocktime = 60
autosplit = 3
max_continuous_sending = 30
##create directories based on provider.
##e.g. airtel = /var/spool/sms/airtel
[queues]
airtel = /var/spool/sms/airtel
mtn = /var/spool/sms/mtn
##list the first few digits for each provider
[providers]
airtel = 25675, 25670, s132
mtn = 25677, s192
##if you want to catch all other phone numbers, below is the format
##you want.
#otherphonenumbers = 0,1,2,3,4,5,6,7,8,9,s
##Airtel
[GSM1]
##ensure device corresponds to serial port
device = /dev/ttyUSB0
init = AT
memory_start = 0
incoming = yes
report = yes
#pin =
baudrate = 115200
##state the queue you wish to utilize
queues = airtel
##MTN
[GSM2]
##ensure device corresponds to serial port
device = /dev/ttyACM0
#init = ATZ
#init = AT+CNM1=1,0,0,2,0
#init = ATQO V1 E1 SO=0 &CI &D2 +FCLASS=0
#init2 = AT+CPMS="SM","ME","ME"
incoming = yes
check_network = 0
check_memory_method = 31
memory_start = 0
primary_memory = SM
secondary_memory = ME
hangup_incoming_call = yes
##mobile phones do not need pins. unsure about modems
#pin = 1111
baudrate = 115200
##state the queue you wish to utilize
queues = mtn
|
Mon Apr 13, 2015 18:58
|
ajermaky: Operating system name and version: Ubuntu 12
Version of smsd: 3.1.15
Smsd installed from: sms3tools site=> compiled and installed on server
Name and model of a modem / phone: Motorola RAZR3, Huawei E3251
Interface: USB
Hello, we are currently making an sms application in Uganda using the Airtel and MTN mobile networks. When we run our application via Airtel, it goes smoothly, yet using the MTN networks seems to throw a bunch of errors. We have tried both the RAZR3 and the Huawei E3251, and yet the same errors persist. Based on the logs, it seems to be a memory issue:
GSM1=> Airtel
GSM2=>MTN
CMS ERROR 300:
2015-04-07 02:53:00,6, GSM2: Selecting PDU mode
2015-04-07 02:53:01,7, GSM2: -> AT+CMGF=0
2015-04-07 02:53:01,7, GSM2: Command is sent, waiting for the answer
2015-04-07 02:53:01,7, GSM2: <- OK
2015-04-07 02:53:01,7, GSM2: -> AT+CMMS=2;+CMGS=127
2015-04-07 02:53:01,7, GSM2: Command is sent, waiting for the answer
2015-04-07 02:53:01,7, GSM2: <- >
2015-04-07 02:53:02,7, GSM2: -> (PDU message was here)
2015-04-07 02:53:02,7, GSM2: Command is sent, waiting for the answer
2015-04-07 02:53:04,7, GSM2: <- +CMS ERROR: 300 (ME Failure)
2015-04-07 02:53:04,3, GSM2: The modem answer was not OK: +CMS ERROR: 300 (ME Failure)
2015-04-07 02:53:04,5, GSM2: Waiting 10 sec. before retrying
CMS Error 500
2015-04-07 02:53:38,6, GSM2: Selecting PDU mode
2015-04-07 02:53:38,7, GSM1: <- OK
2015-04-07 02:53:38,6, GSM1: Checking memory size
2015-04-07 02:53:38,7, GSM2: -> AT+CMGF=0
2015-04-07 02:53:38,7, GSM2: Command is sent, waiting for the answer
2015-04-07 02:53:38,7, GSM1: -> AT+CPMS?
2015-04-07 02:53:38,7, GSM1: Command is sent, waiting for the answer
2015-04-07 02:53:39,7, GSM2: <- OK
2015-04-07 02:53:39,7, GSM1: <- +CPMS: "SM",0,30,"SM",0,30,"SM",0,30 OK
2015-04-07 02:53:39,6, GSM1: Used memory is 0 of 30
2015-04-07 02:53:39,6, GSM1: No SMS received
2015-04-07 02:53:39,7, GSM2: -> AT+CMMS=2;+CMGS=138
2015-04-07 02:53:39,7, GSM2: Command is sent, waiting for the answer
2015-04-07 02:53:39,7, GSM2: <- >
2015-04-07 02:53:39,7, GSM2: -> (PDU message was here)
2015-04-07 02:53:39,7, GSM2: Command is sent, waiting for the answer
2015-04-07 02:53:41,7, GSM2: <- +CMS ERROR: 500 (Unknown error)
2015-04-07 02:53:41,3, GSM2: The modem answer was not OK: +CMS ERROR: 500 (Unknown error)
2015-04-07 02:53:41,5, GSM2: Waiting 10 sec. before retrying
CME Error 25:
2015-04-07 02:54:15,7, GSM2: -> AT
2015-04-07 02:54:15,7, GSM2: Command is sent, waiting for the answer
2015-04-07 02:54:16,7, GSM2: <- OK
2015-04-07 02:54:16,6, GSM2: Pre-initializing modem
2015-04-07 02:54:16,6, GSM1: Checking device for incoming SMS
2015-04-07 02:54:16,6, GSM1: Checking if modem is ready
2015-04-07 02:54:16,7, GSM2: -> ATE0+CMEE=1;+CREG=2
2015-04-07 02:54:16,7, GSM2: Command is sent, waiting for the answer
2015-04-07 02:54:16,7, GSM1: -> AT
2015-04-07 02:54:16,7, GSM1: Command is sent, waiting for the answer
2015-04-07 02:54:16,7, GSM2: <- +CME ERROR: 25 (invalid characters in text string)
2015-04-07 02:54:16,3, GSM2: Modem did not accept the pre-init string
CME Error 516:
2015-04-07 02:54:18,6, GSM2: Used memory is 0
2015-04-07 02:54:18,6, GSM2: Changing memory
2015-04-07 02:54:18,7, GSM1: -> AT+CMGF=0
2015-04-07 02:54:18,7, GSM1: Command is sent, waiting for the answer
2015-04-07 02:54:18,7, GSM2: -> AT+CPMS="ME"
2015-04-07 02:54:18,7, GSM2: Command is sent, waiting for the answer
2015-04-07 02:54:19,7, GSM1: <- OK
2015-04-07 02:54:19,6, GSM1: Checking memory size
2015-04-07 02:54:19,7, GSM2: <- +CMS ERROR: 516
2015-04-07 02:54:19,3, GSM2: The modem said ERROR while trying to change memory to ME
These are the four different errors we are seeing. I removed the PDU input for now.
Thanks
|
Page: 1
Time in this board is UTC.
|
|
|
 |
|
 |
|