Wednesday, September 8th 2010, 2:52am UTC+2

You are not logged in.

  • Login
  • Register

tr0nic7

Intermediate

Posts: 149

Occupation: IT-Systemelektroniker / IT Systems Administrator / Nagios Admin / Backup-SAN Junior Admin

Number of Nagios server: 1

Nagios Versions: 3.2.0 Core

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 120

Number of services: 446

OS: Debian Lenny / HP G3 Raid 5 (Nagios Server), AIX, Win2003,

Plugin Versions: 1.4.14

NagVis Version: 1.4.5

NDO Version: 1.4b9

Other Addons: NagVis, PNP4Nagios, NDO, NagTrap, SNMPTT

1

Wednesday, July 28th 2010, 5:55pm

[gelöst] Teltonica GSM Modem - SMSTOOLS3 Konfiguration

Hallo,

Ich habe eine Frage zu der Konfiguration des Teltonica GSM ModemUSB/G10. Ich habe auf ttp://smstools3.kekekasvi.com/ die smstools3 gezogen und kompiliert. Dann habe ich die /etc/smsd.conf so bearbeitet wie es bei http://shop.netways.de/faq/faq-teltonika-falcom.html (wo wir das Ding bestellt haben) beschrieben ist.
/etc/smsd.conf:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
devices = GSM1
logfile = /var/log/smsd.log
loglevel = 7

[GSM1]
init=ATZ
device = /dev/ttyUSB0
incoming = no
cs_convert = yes
pin = 1111
report=no
rtscts = no


dann "/etc/init.d/sms3 restart" und sendsms +491721234567 'Hello, how are you'

cat /var/log/smsd.log sagt folgendes:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2010-07-28 17:41:22,6, GSM1: Checking if Modem is registered to the network
2010-07-28 17:41:23,7, GSM1: -> AT+CREG?
2010-07-28 17:41:23,7, GSM1: Command is sent, waiting for the answer
2010-07-28 17:41:23,7, GSM1: <- AT+CREG? +CREG: 0,1 OK
2010-07-28 17:41:23,6, GSM1: Modem is registered to the network
2010-07-28 17:41:23,6, GSM1: Selecting PDU mode
2010-07-28 17:41:23,7, GSM1: -> AT+CMGF=0
2010-07-28 17:41:23,7, GSM1: Command is sent, waiting for the answer
2010-07-28 17:41:23,7, GSM1: <- AT+CMGF=0 OK
2010-07-28 17:41:24,7, GSM1: -> AT+CMGS=18
2010-07-28 17:41:24,7, GSM1: Command is sent, waiting for the answer
2010-07-28 17:41:24,7, GSM1: <- AT+CMGS=18 >
2010-07-28 17:41:24,7, GSM1: -> 0011000B911097215481F30000FF04D4F29C0E
2010-07-28 17:41:24,7, GSM1: Command is sent, waiting for the answer
2010-07-28 17:41:28,7, GSM1: <- 0011000B911097215481F30000FF04D4F29C0E +CMS ERROR: 21  (Short message transfer rejected)
2010-07-28 17:41:28,3, GSM1: The modem answer was not OK: 0011000B911097215481F30000FF04D4F29C0E+CMS ERROR: 21 (Short message transfer rejected)
2010-07-28 17:41:28,4, GSM1: Sending SMS to 0179123456 failed
2010-07-28 17:41:28,6, GSM1: Deleted file /var/spool/sms/checked/send_cBGNWJ


Habt ihr eine Idee warum die SMS nicht rausgeht?

Edit:

Genauer betrachtet liegt der Fehler wohl genau hier:

Source code

1
2
3
2010-07-28 17:41:28,3, GSM1: The modem answer was not OK: 
0011000B911097215481F30000FF04D4F29C0E+CMS ERROR: 21 (Short message 
transfer rejected)


Ich habe enmal nach dem Fehler gesucht und folgendes gefunden:

Quoted

CMS ERROR 21
"Short message transfer rejected" This cause indicates that the
equipment sending this cause does not wish to accept this short message,
although it could have accepted the short message since the equipment
sending this cause is neither busy nor incompatible.
Das Modem will die SMS von smstools3 nicht akzeptieren. Also muss es wohl an der Konfiguration von smstools3 liegen, denn das Gerät hat an einem Windows PC beim Test funktioniert und SMS gesendet...

Danke

This post has been edited 3 times, last edit by "tr0nic7" (Jul 29th 2010, 1:43pm)


tr0nic7

Intermediate

Posts: 149

Occupation: IT-Systemelektroniker / IT Systems Administrator / Nagios Admin / Backup-SAN Junior Admin

Number of Nagios server: 1

Nagios Versions: 3.2.0 Core

Distributed monitoring: Nein

Redundant monitoring: Nein

Number of hosts: 120

Number of services: 446

OS: Debian Lenny / HP G3 Raid 5 (Nagios Server), AIX, Win2003,

Plugin Versions: 1.4.14

NagVis Version: 1.4.5

NDO Version: 1.4b9

Other Addons: NagVis, PNP4Nagios, NDO, NagTrap, SNMPTT

2

Thursday, July 29th 2010, 1:42pm

Ich hab die Lösung gefunden. Die Telefonnummer muss im internationalen Format angegeben werden.

Also:

Source code

1
sendsms +49179123456


Problem gelöst!