Re: sms_modem config question
Michael Huettig <[email protected]> Fri, 25 Jun 2004 16:18:16 +0200
| Newsgroups | gmane.comp.mobile.sms.tsms |
|---|---|
| Organization | Medien Systempartner GmbH |
| Message-ID | <[email protected]> |
Hi Andrew,
thanks for your advice.
i think, there is a problem with modem init-strings from sms_modem. I´ve copied init-strings from yaps.rc, which works fine.
I also tried with minicom, there is no problem in manual connect.
With sms-client i got the following:
...
Created Lockfile '/var/spool/locks/LCK..ttyI0'
MODEM: Toggle DTR 1000000 Microseconds
MODEM: Toggle DTR 1000000 Microseconds
MDM_send: Drain required.
WARNING: read() Timeout
Written String: +<CR>+
Written String: +<CR>+
Written String: +ATE0<CR>+
Received String: +<CR><CR>ATE0<CR><CR><LF>+
Received String: +OK<CR><LF>+
MODEM: Setting Local Modem Echo to OFF
Written String: +AT<CR>+
Received String: +<CR><LF>+
MODEM: Modem echo is set to OFF
Received String: +OK<CR><LF>+
MODEM: Sending Initialization string ATZ<CR> <OK AT&E0 <CR> <OK<CR> to modem
Written String: +ATZ<CR> <OK AT&E0 <CR> <OK<CR>+
MODEM: Waiting for Initialization to complete...
Received String: +<CR><LF>+
Received String: +OK<CR><LF>+
MODEM: Initialization complete
MODEM: Pause before dialing
MODEM: Sleeping for 1000000 Microseconds...
MODEM: Dialing 01712521001
MODEM: Sending dial string ATDT001712521001<CR> to modem
Written String: +ATDT001712521001<CR>+
MODEM: Waiting for Connection...
Received String: + <OK AT&E0 <CR><CR><LF>+
Received String: +OK<CR><LF>+
MODEM: Expecting CONNECT response - OK
Removing Lockfile '/var/spool/locks/LCK..ttyI0'
Process completed for service 'd1'
Total Elapsed Time: 7 Seconds
Removing Lockfile '/var/lock/smslock'
Here is my sms_modem for use with AVM-B1 (active ISDN-Controller), please could you have a look for it.
nagtest:/etc/sms # cat sms_modem
# --------------------------------------------------------------------
# SMS Modem Configuration file
# --------------------------------------------------------------------
{
# ------------------------------------------------------------
MDM_lock_dir = "/var/spool/locks" # Lock directory
MDM_device = "ttyI0" # Modem Device Name
# 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_command_prefix = "AT"
MDM_init_command = "Z\r <OK AT&E0 \r <OK"
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
# ------------------------------------------------------------
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.
}
# --------------------------------------------------------------------
Am Freitag, 25. Juni 2004 05:10 schrieb Andrew Lowe:
> Michael,
> It looks like your modem is resetting (ATZ), expecting ok? (<OK)- not
> sure if that is ok and then disabling error correction (AT&E).
>
> Check your initialization string in sms_modem file... I would expect
> that it should just say: MDM_init_command = "Z"
> However you may need more in there... but try that.
>
> What do you get after the "Received String: ....." line, or does it stop
> there?
>
> Andrew Lowe
>
> Michael Huettig wrote:
> >Hi everybody,
> >i´m trying to install sms_client 2.0.8y with AVM B1 (ttyI0) for use with
> > german telecom. After Dialing i receive the following error:
> >
> >test:~ # sms_client -l4 017xyyyyyyy blabla
> >...
> >Created Lockfile '/var/spool/locks//LCK..ttyI0'
> >MODEM: Toggle DTR 2000000 Microseconds
> >MODEM: Toggle DTR 2000000 Microseconds
> >MDM_send: Drain required.
> >WARNING: read() Timeout
> >MODEM: Sending Initialization string ATZ<CR> <OK AT&E0<CR> to modem
> >Written String: +ATZ<CR> <OK AT&E0<CR>+
> >Received String: +ATZ<CR><CR><LF>OK<CR><LF> <OK +
> >
> >Could anybody give me a hint, whats wrong with my config?
> >I´m trying to modify different item´s in /etc/sms/sms_modem but nothing
> > helps ...
> >
> >Regards
> >Michael
> >
> >
**********************************************************************
Diese E-Mail wurde auf Viren ueberprueft.
www.mimesweeper.com
**********************************************************************
--
-----------------------------------------------------------------------