smstools 3 MC75

Проблемы с установкой, настройкой и работой системных и сетевых программ.

Модераторы: GRooVE, alexco

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
_Om_
проходил мимо

smstools 3 MC75

Непрочитанное сообщение _Om_ » 2011-09-14 11:08:43

Здравствуйте
Имеем такую железяку
Manufacturer : SIEMENS
Model : MC75
Product name : MC75
Revision : REVISION 03.010
ОS: 2.6.18-238.12.1.el5.028stab091.1 #1 SMP Wed Jun 1 13:20:25 MSD 2011 x86_64 GNU/Linux

при установки опции autosplit = 3 модем не отправляет большие смски :(
вот вывод лога

Код: Выделить всё

2011-09-14 10:40:17,6, GSM1: Checking device for incoming SMS
2011-09-14 10:40:17,6, GSM1: Checking if modem is ready
2011-09-14 10:40:18,7, GSM1: -> AT
2011-09-14 10:40:18,7, GSM1: Command is sent, waiting for the answer
2011-09-14 10:40:18,7, GSM1: <- AT OK
2011-09-14 10:40:18,6, GSM1: Pre-initializing modem
2011-09-14 10:40:18,7, GSM1: -> ATE0+CMEE=1
2011-09-14 10:40:18,7, GSM1: Command is sent, waiting for the answer
2011-09-14 10:40:18,7, GSM1: <- ATE0+CMEE=1 OK
2011-09-14 10:40:18,6, GSM1: Initializing modem
2011-09-14 10:40:19,7, GSM1: -> ATZ
2011-09-14 10:40:19,7, GSM1: Command is sent, waiting for the answer
2011-09-14 10:40:19,7, GSM1: <- O
2011-09-14 10:40:19,7, GSM1: -> ATZ
2011-09-14 10:40:19,7, GSM1: Command is sent, waiting for the answer
2011-09-14 10:40:20,7, GSM1: <- ATZ OK
2011-09-14 10:40:20,7, GSM1: -> AT+CPMS="MT","MT","MT"
2011-09-14 10:40:20,7, GSM1: Command is sent, waiting for the answer
2011-09-14 10:40:21,7, GSM1: <- AT+CPMS="MT","MT","MT" +CPMS: 0,35,0,35,0,35 OK
2011-09-14 10:40:21,7, GSM1: -> AT+CSQ
2011-09-14 10:40:21,7, GSM1: Command is sent, waiting for the answer
2011-09-14 10:40:21,7, GSM1: <- AT+CSQ +CSQ: 31,0 OK
2011-09-14 10:40:21,6, GSM1: Checking if Modem is registered to the network
2011-09-14 10:40:21,7, GSM1: -> AT+CREG?
2011-09-14 10:40:21,7, GSM1: Command is sent, waiting for the answer
2011-09-14 10:40:22,7, GSM1: <- AT+CREG? +CREG: 0,1 OK
2011-09-14 10:40:22,6, GSM1: Modem is registered to the network
2011-09-14 10:40:22,6, GSM1: Selecting PDU mode
2011-09-14 10:40:22,7, GSM1: -> AT+CMGF=0
2011-09-14 10:40:22,7, GSM1: Command is sent, waiting for the answer
2011-09-14 10:40:22,7, GSM1: <- AT+CMGF=0 OK
2011-09-14 10:40:22,6, GSM1: Checking memory size
2011-09-14 10:40:23,7, GSM1: -> AT+CPMS?
2011-09-14 10:40:23,7, GSM1: Command is sent, waiting for the answer
2011-09-14 10:40:23,7, GSM1: <- AT+CPMS? +CPMS: "MT",0,35,"MT",0,35,"MT",0,35 OK
2011-09-14 10:40:23,6, GSM1: Used memory is 0 of 35
2011-09-14 10:40:23,6, GSM1: No SMS received
2011-09-14 10:40:44,6, GSM1: Splitting this message into 3 parts of max 67 characters (unicode).
2011-09-14 10:40:44,6, GSM1: I have to send 3 short message for /var/spool/sms/checked/sms-3032093672
2011-09-14 10:40:44,6, GSM1: Sending SMS (part 1/3) from to 380672340711
2011-09-14 10:40:44,6, GSM1: Checking if modem is ready
2011-09-14 10:40:44,2, smsd: Smsd mainprocess is awaiting the termination of all modem handlers. PID: 17421.
2011-09-14 10:40:44,7, GSM1: -> AT
2011-09-14 10:40:44,7, GSM1: Command is sent, waiting for the answer
2011-09-14 10:40:44,7, GSM1: <- AT OK
2011-09-14 10:40:44,6, GSM1: Pre-initializing modem
2011-09-14 10:40:45,7, GSM1: -> ATE0+CMEE=1
2011-09-14 10:40:45,7, GSM1: Command is sent, waiting for the answer
2011-09-14 10:40:45,7, GSM1: <- ATE0+CMEE=1 OK
2011-09-14 10:40:45,6, GSM1: Initializing modem
2011-09-14 10:40:45,7, GSM1: -> ATZ
2011-09-14 10:40:45,7, GSM1: Command is sent, waiting for the answer
2011-09-14 10:40:46,7, GSM1: <- O
2011-09-14 10:40:46,7, GSM1: -> ATZ
2011-09-14 10:40:46,7, GSM1: Command is sent, waiting for the answer
2011-09-14 10:40:46,7, GSM1: <- ATZ OK
2011-09-14 10:40:47,7, GSM1: -> AT+CPMS="MT","MT","MT"
2011-09-14 10:40:47,7, GSM1: Command is sent, waiting for the answer
2011-09-14 10:40:47,7, GSM1: <- AT+CPMS="MT","MT","MT" +CPMS: 0,35,0,35,0,35 OK
2011-09-14 10:40:47,7, GSM1: -> AT+CSQ
2011-09-14 10:40:48,7, GSM1: Command is sent, waiting for the answer
2011-09-14 10:40:48,7, GSM1: <- AT+CSQ +CSQ: 31,0 OK
2011-09-14 10:40:48,6, GSM1: Checking if Modem is registered to the network
2011-09-14 10:40:48,7, GSM1: -> AT+CREG?
2011-09-14 10:40:48,7, GSM1: Command is sent, waiting for the answer
2011-09-14 10:40:48,7, GSM1: <- AT+CREG? +CREG: 0,1 OK
2011-09-14 10:40:48,6, GSM1: Modem is registered to the network
2011-09-14 10:40:48,6, GSM1: Selecting PDU mode
2011-09-14 10:40:49,7, GSM1: -> AT+CMGF=0
2011-09-14 10:40:49,7, GSM1: Command is sent, waiting for the answer
2011-09-14 10:40:49,7, GSM1: <- AT+CMGF=0 OK
2011-09-14 10:40:49,7, GSM1: -> AT+CMGS=154
2011-09-14 10:40:49,7, GSM1: Command is sent, waiting for the answer
2011-09-14 10:40:50,7, GSM1: <- AT+CMGS=154 >
2011-09-14 10:40:50,7, GSM1: -> 0051000C918360274370110008908C0500035903111004400610074006100470072006F00750070003A0020041200200039003A0031003400200443043F0430043B0020004400570044004D0020043B0438043D043A00200425043504400441043E043D0020002D0020041A0430043B0430043D04470430043A002C00200410044204400430043A043E043C002004300432043004400438044E0020
2011-09-14 10:40:53,7, GSM1: Command is sent, waiting for the answer
2011-09-14 10:40:54,7, GSM1: <- 0051000C918360274370110008908C0500035903111004400610074006100470072006F00750070003A0020041200200039003A0031003400200443043F0430043B0020004400570044004D0020043B0438043D043A00200425043504400441043E043D0020002D0020041A0430043B0430043D04470430043A002C00200410044204400430043A043E043C002004300432043004400438044E0020 ERROR
2011-09-14 10:40:54,3, GSM1: The modem answer was not OK: 0051000C918360274370110008908C0500035903111004400610074006100470072006F00750070003A0020041200200039003A0031003400200443043F0430043B0020004400570044004D0020043B0438043D043A00200425043504400441043E043D0020002D0020041A0430043B0430043D04470430043A002C00200410044204400430043A043E043C002004300432043004400438044E0020ERROR
2011-09-14 10:40:54,5, GSM1: Waiting 60 sec. before retrying
2011-09-14 10:40:54,4, GSM1: Sending SMS (part 1/3) to 380672340711 failed
2011-09-14 10:40:54,6, GSM1: Moved file /var/spool/sms/checked/sms-3032093672 to /var/spool/sms/failed/sms-3032093672
2011-09-14 10:40:54,2, GSM1: Modem handler 0 terminated. PID: 17422, was started 11-09-08 09:52:37.
2011-09-14 10:40:54,2, smsd: Smsd mainprocess terminated. PID 17421, was started 11-09-08 09:52:37.
2011-09-14 10:40:54,2, smsd: Smsd v3.1.6 started.
2011-09-14 10:40:54,2, smsd: Running as smsd:dialout
конфиг

Код: Выделить всё

devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
logfile = /var/log/smstools/smsd.log
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
stats = /var/log/smstools/smsd_stats
loglevel = 9
delaytime = 20
errorsleeptime = 60
#blocktime = 3600
stats_interval = 3600
stats_no_zeroes = no
checkhandler = /home/sms/send.sh
receive_before_send = no
user = sms
group = sms
#incoming_utf8 = yes
# autosplit 0=no 1=yes 2=with text numbers 3=concatenated
autosplit = 2
# store_received_pdu 0=no, 1=unsupported, 2=unsupported and 8bit, 3=all
#store_received_pdu = 3
validity = 144
#decode_unicode_text = yes
#internal_combine = yes
# You can specify here an external program that is started whenever an alarm occurs.
# alarmhandler = /path/to/an/alarmhandler/script
# Specifies what levels start an alarmhandler. You can use value between 2 and 5.
# alarmlevel = 4
# eventhandler = @EVENTHANDLER@
#blacklist = /etc/smstools/blacklist
#whitelist = /etc/smstools/whitelist
#decode_unicode_text = yes
# Commented lines are examples for germany
# D1 = /var/spool/sms/D1
# D2 = /var/spool/sms/D2
# O2 = /var/spool/sms/O2
# EPLUS = /var/spool/sms/EPLUS
# QUAM = /var/sppol/sms/QUAM
# MOBILCOM = /var/spool/sms/MOBILCOM
#OTHER = /var/spool/sms/OTHER

#[provider]
# Commented lines are examples for germany
# D1 = 49160, 49170, 49171, 49175, 49151
# D2 = 491520, 49162, 49172, 49173, 49174
# O2 = 49176, 49179, 49159
# EPLUS = 49163, 49177, 49178, 49157
# QUAM = 49150
# MOBILCOM = 49156
#OTHER = 0,1,2,3,4,5,6,7,8,9

[GSM1]
device = /dev/ttyACM0
#init = ATE0+CPMS="SM"+CNMI=2,0,0,2,1
init = ATZ
init2 = AT+CPMS="MT","MT","MT"
#init = AT+CGSMS=2
#pin = 3992 # -- был на карточке этот пин
#init = AT+CPMS="ME","ME","ME"
#init2 = AT+CNMI=1,1,0,2
mode = new
incoming = yes
send_delay = 10
rtscts = yes
baudrate = 19200
Не помножите в решении данной проблемки если кто сталкивался

Спасибо

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

_Om_
проходил мимо

Re: smstools 3 MC75

Непрочитанное сообщение _Om_ » 2011-09-14 16:20:59

решение
необходимо обновиться до 3.1.9 или выше

Код: Выделить всё

With 64bit Linux you need to upgrade smsd to 3.1.9 or later, because there is a bug (misusage of strcpy function) in the earlier versions of smstools3.
при проблеме

Код: Выделить всё

2011-09-14 15:46:08,7, GSM1: -> AT+CREG?
2011-09-14 15:46:08,7, GSM1: Command is sent, waiting for the answer
2011-09-14 15:46:08,7, GSM1: <- AT+CREG? +CREG: 0,1 OK
2011-09-14 15:46:08,5, GSM1: MODEM IS NOT REGISTERED, WAITING 1 SEC. BEFORE RETRYING 12. TIME
2011-09-14 15:46:09,7, GSM1: -> AT+CSQ
2011-09-14 15:46:09,7, GSM1: Command is sent, waiting for the answer
2011-09-14 15:46:10,7, GSM1: <- AT+CSQ +CSQ: 31,7 OK
2011-09-14 15:46:10,5, GSM1: Signal Strength Indicator: (31,7) -51 dBm (Excellent), Bit Error Rate: more than 12.8 %
необходимо
Your configuration has "echo" enabled, probably you have init = ATE1 or something like that. Please disable "echo". If unsure, show your smsd.conf here and from the log show how the modem is initialized.

я добавил в smsd.conf

Код: Выделить всё

init = AT+CNMI=2,0,0,2,1
init2 = AT^SSMSS=1
все завелось
:smile: