# Sending Bulk SMS

**URL:** <https://www.ruby-forum.com/t/sending-bulk-sms/166961>\
**Category:** Rails\
**Created:** [May 1, 2009, 2:18pm UTC](https://www.ruby-forum.com/t/sending-bulk-sms/166961 "2009-05-01T14:18:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dinesh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a8b319/32.png) [@dinesh](https://www.ruby-forum.com/u/dinesh)\
**Post date:** [May 1, 2009, 2:18pm UTC](https://www.ruby-forum.com/t/sending-bulk-sms/166961/1 "2009-05-01T14:18:01Z")

</div>

Hi,  
I am trying to send bulk sms using sms\_client using GSM/GPRS  
ANALOGIC MODEM .

Below is the log file

* * *

## MODEM: Toggle DTR 1000000 Microseconds MODEM: Toggle DTR 1000000 Microseconds MDM\_send: Drain required. WARNING: read() Timeout Written String: ++ Written String: ++ Written String: +ATE0+ WARNING: read() Timeout ERROR: Timeout: searching for ++ failed after 10 seconds Received String: +EETa+ ERROR: MODEM: Setting Local echo Failed

and also SMS\_MODEM Config

```
 MDM_lock_dir = "/var/lock" # Lock directory
    MDM_device = "ttyS2" # Modem Device Name

    # Modem Device Name Examples:
    #
    # ssscxzvbnmmuoliytreDM_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_command_prefix = "AT"
    MDM_init_command = "Z"
    MDM_dial_command = "DT"
    MDM_number_prefix = "0" # 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

```
    # -------------------

```

## vvvvvvvxxxxxxxxxxxxxxxxxx

```
    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"
    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.

## }

can somebody help me out why its failing at time of receving string.

\*\*I dont know even this is right group for discuss this topic.Because  
on [odir.com](http://odir.com) I search lot from where we start new thread
