LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 11-04-2009, 01:37 AM   #1
c_parapat
LQ Newbie
 
Registered: Sep 2009
Location: Indonesia
Distribution: Centos, OpenSuSE, and MAC OS X
Posts: 6

Rep: Reputation: 0
Thumbs up sms_client - Cannot send sms with my GSM Modem


Hello
I Want to send a sms alert which use in nagios.
But, when i try to send sms from "sms_client", I got the error message.
Here is what was i do
host:/etc/sms # sms_client mynumber "Test"
And here is the error messages :
Dialing SMSC 0855xxxxxx...
WARNING: read() Timeout
WARNING: read() Timeout
ERROR: Timeout: searching for +<CR><LF>+ failed after 10 seconds
ERROR: MODEM: Setting Local echo Failed
Total Elapsed Time: 16 Seconds
and here is configuration in "sms_modem" file ;

[SIZE="3"][SIZE="2"][SIZE="1"]# --------------------------------------------------------------------
# SMS Modem Configuration file
# --------------------------------------------------------------------
{
# ------------------------------------------------------------

MDM_lock_dir = "/var/lock" # Lock directory
# MDM_device = "modem" # Modem Device Name
# MDM_device = "ttyS0"
# Modem Device Name Examples:
#
# MDM_device = "term/00m" # UNIXWARE
MDM_device = "ttyS0" # Linux COM1
# MDM_device = "ttyS1" # Linux COM2
#
# MDM_device = "cua/a" # SOLARIS
# MDM_lock_platform = "SOLARIS" # Set this so that we generate
# Solaris compatible lock file
# names
# ------------------------------------------------------------
# MDM_pause_after_connect = 3000000# Pause after the connection
# string for 3 seconds
# MDM_pause_on_DELAYED = 60 # Pause when dial fails with
# DELAYED condition, in secs.
# ------------------------------------------------------------

MDM_command_prefix = "AT"
# MDM_init_command = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
MDM_init_command = "Z"
MDM_dial_command = "DT" # Default unmark
MDM_number_prefix = "" # Number to dial to get an
# external line.

MDM_set_local_echo_off = "E0"
MDM_disable_echo_test = NO # Test and Set local echo
# YES/NO
# ------------------------------------------------------------
MDM_dtr_hangup_sleep = 3000000 # How many microseconds should
MDM_dtr_init_sleep = 1000000 # I lower DTR during
# init/hangup
# MDM_max_rings = 7 # default = 4
# ------------------------------------------------------------
MDM_command_suffix = "\r"
MDM_response_prefix = "\r\n"
MDM_response_suffix = "\r\n"
# ------------------------------------------------------------
MDM_flow_control = "Hardware" # Software or Hardware
# ------------------------------------------------------------
MDM_hangup_command = "H" # Default unmark
# MDM_hangup_command = "H0"
# MDM_attention_command = "+++"
MDM_soft_hangup_retries = 0 # Number of times I should
# continue sending hangup code
# If 0 then don't bother
# and rely on lowering DTR
MDM_guard_time = 1750000 # Microsecond delay before and
# After transmitting
# attention command
MDM_esc_time = 125000 # Microsecond delay between each
# character of the attention command

# ------------------------------------------------------------

MDM_lock_action = "BLOCK"
MDM_lock_retry_delay = 5000000 # Microsecond delay to wait before
# retrying for modem lock.
}

# --------------------------------------------------------------------

I use Wavecom Fastrack wm20392 as my GSM Modem with serial cable connectivity.
Can someone help me solving this problem ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to send command per SMS (gsm / mobile) to LINUX machine? frenchn00b Linux - General 2 08-24-2009 05:24 PM
Bluetooth device+Gsm mobile+text base SMS lasantha Linux - General 1 10-02-2008 07:24 AM
There is any way to send SMS from Linux? DoME69 Programming 1 05-15-2008 03:31 PM
How to send sms with sms-pl ? frenchn00b Linux - Software 0 10-01-2007 03:10 PM
Connect GSM cell to Linux to recieve SMS dlublink Linux - Hardware 2 09-27-2005 12:51 PM


All times are GMT -5. The time now is 07:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration