SMS

Mad Unix madunix at gmail.com
Sun Jan 6 12:59:59 CST 2008


I am trying to connect 2N Analog GSM Modem Gateway to my Linux Server
PE2950/RHEL5 in order to send SMS messages to
my admins through nagios tools


Am trying to send an sms through smstools my GSM modem connected via serial
port COM

sendsms  0777488xxxxx 'lord2'

2008-01-06 11:01:01,6, GSM1: Modem is registered to the network
2008-01-06 11:01:01,6, GSM1: Selecting PDU mode
2008-01-06 11:01:01,7, GSM1: -> AT+CMGF=0
2008-01-06 11:01:01,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:02,7, GSM1: <- AT+CMGF=0
OK
2008-01-06 11:01:02,6, GSM1: Checking memory size
2008-01-06 11:01:02,7, GSM1: -> AT+CPMS?
2008-01-06 11:01:02,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:02,7, GSM1: <- AT+CPMS?
+CPMS: "MT",0,65,"MT",0,65,"MT",0,65
OK
2008-01-06 11:01:02,6, GSM1: Used memory is 0 of 65
2008-01-06 11:01:02,6, GSM1: No SMS received
2008-01-06 11:01:10,6, smsd: Moved file /var/spool/sms/outgoing/send_JD7682
to /var/spool/sms/checked
2008-01-06 11:01:13,6, smsd: I have to send 1 short message for
/var/spool/sms/checked/send_JD7682
2008-01-06 11:01:13,6, GSM1: Sending SMS from  to 0777xxxxxxx
2008-01-06 11:01:13,6, GSM1: Checking if modem is ready
2008-01-06 11:01:13,7, GSM1: -> AT
2008-01-06 11:01:13,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:13,7, GSM1: <- AT
OK
2008-01-06 11:01:13,6, GSM1: Checking if Modem is registered to the network
2008-01-06 11:01:13,7, GSM1: -> AT+CREG?
2008-01-06 11:01:13,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:14,7, GSM1: <- AT+CREG?
+CREG: 0,1
OK
2008-01-06 11:01:14,6, GSM1: Modem is registered to the network
2008-01-06 11:01:14,6, GSM1: Selecting PDU mode
2008-01-06 11:01:14,7, GSM1: -> AT+CMGF=0
2008-01-06 11:01:14,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:14,7, GSM1: <- AT+CMGF=0
OK
2008-01-06 11:01:14,7, GSM1: -> AT+CMGS=18
2008-01-06 11:01:14,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:14,7, GSM1: <- AT+CMGS=18
>
2008-01-06 11:01:14,7, GSM1: ->
0011000A9.........................F05ECB79C2C03
2008-01-06 11:01:14,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:18,7, GSM1: <-
0011000A9..........................F1FF05ECB79C2C03
ERROR
2008-01-06 11:01:18,3, GSM1: The modem said ERROR or did not answer.
2008-01-06 11:01:18,5, GSM1: Waiting 10 sec. before retrying
2008-01-06 11:01:28,6, GSM1: Checking if modem is ready
2008-01-06 11:01:28,7, GSM1: -> AT
2008-01-06 11:01:28,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:28,7, GSM1: <- AT
OK
2008-01-06 11:01:28,6, GSM1: Checking if Modem is registered to the network
2008-01-06 11:01:28,7, GSM1: -> AT+CREG?
2008-01-06 11:01:28,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:29,7, GSM1: <- AT+CREG?
+CREG: 0,1
OK
2008-01-06 11:01:29,6, GSM1: Modem is registered to the network
2008-01-06 11:01:29,6, GSM1: Selecting PDU mode
2008-01-06 11:01:29,7, GSM1: -> AT+CMGF=0
2008-01-06 11:01:29,7, GSM1: Command is sent, waiting for the answer
2008-01-06 11:01:29,7, GSM1: <- AT+CMGF=0
OK
2008-01-06 11:01:29,7, GSM1: -> AT+CMGS=18

[root at linux2 ~]#


my config


# Example smsd.conf. Read the manual for a description

devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
sent = /var/spool/sms/sent
incoming = /var/spool/sms/incoming
logfile = /var/log/smsd.log
loglevel = 7

[GSM1]
device = /dev/ttyS0
incoming = yes
#baudrate = 115200
#cs_convert = yes
#pin = 0000
#mode = nw
#baudrate = 115200
#rtscts = yes
#pin = 1111


what could be wrong? I checked the bios and dmesg all shows that the 2
serial ports are avialble


-- 
madunix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.us.dell.com/pipermail/linux-poweredge/attachments/20080106/141882d6/attachment.htm 


More information about the Linux-PowerEdge mailing list