[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Forcing modem connection to 57600 bps



After using my dial-up connecton with speed reporting I wanted to force
my modem up to it's maximum speed. It works from windows side, so, it's
just up to configuring it also to Linux. Windows doesn't help, there is
just one box where to check as "[] use always this speed", no AT 
commands found there (was that really a suprise?).

By the way it's internal ISA modem named
  SupraExpress 56i SP Intl

So, I went to look modem's AT manual and edited /etc/chatscripts/
I added AT+MS= part just before number dialing.
I don't know do I use wrong AT command, or are parameters wrong, 
anyway it calls, but not connect.
By commenting that out, everything works like earlier - giving usually
48000 or 46667 connects.

Any ideas where to look next?

/etc/chatscript/<script> is here
# This chatfile was generated by pppconfig 2.0.5.
# Please do not delete any of the comments.  Pppconfig needs them.
#
# ispauth pap
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER'
REPORT CONNECT
# modeminit
'' ATZ
# reports connection speed (jin)
OK ATW2
# forcing modem speed to maximum (jin)
OK AT+MS=,0,56000,56000,,,
# ispnumber
OK-AT-OK ATDT<my-isp>
# ispconnect
CONNECT \d\c
# prelogin
# ispname
# isppassword
# postlogin
'' \d\c
# end of pppconfig stuff

/var/log/ppp.log looks like that
Jan 16 13:50:00 jin pppd[360]: pppd 2.4.0 started by root, uid 0
Jan 16 13:50:01 jin chat[364]: abort on (BUSY)
Jan 16 13:50:01 jin chat[364]: abort on (NO CARRIER)
Jan 16 13:50:01 jin chat[364]: abort on (VOICE)
Jan 16 13:50:01 jin chat[364]: abort on (NO DIALTONE)
Jan 16 13:50:01 jin chat[364]: abort on (NO DIAL TONE)
Jan 16 13:50:01 jin chat[364]: abort on (NO ANSWER)
Jan 16 13:50:01 jin chat[364]: report (CONNECT)
Jan 16 13:50:01 jin chat[364]: send (ATZ^M)
Jan 16 13:50:01 jin chat[364]: expect (OK)
Jan 16 13:50:01 jin chat[364]: ATZ^M^M
Jan 16 13:50:01 jin chat[364]: OK
Jan 16 13:50:01 jin chat[364]:  -- got it
Jan 16 13:50:01 jin chat[364]: send (ATW2^M)
Jan 16 13:50:02 jin chat[364]: expect (OK)
Jan 16 13:50:02 jin chat[364]: ^M
Jan 16 13:50:02 jin chat[364]: ATW2^M^M
Jan 16 13:50:02 jin chat[364]: OK
Jan 16 13:50:02 jin chat[364]:  -- got it
Jan 16 13:50:02 jin chat[364]: send (AT+MS=,0,56000,56000,,,^M)
Jan 16 13:50:02 jin chat[364]: expect (OK)
Jan 16 13:50:02 jin chat[364]: ^M
Jan 16 13:50:02 jin chat[364]: AT+MS=,0,56000,56000,,,^M^M
Jan 16 13:50:02 jin chat[364]: OK
Jan 16 13:50:02 jin chat[364]:  -- got it
Jan 16 13:50:02 jin chat[364]: send (ATDT<my-isp>^M)
Jan 16 13:50:02 jin chat[364]: expect (CONNECT)
Jan 16 13:50:02 jin chat[364]: ^M
Jan 16 13:50:47 jin chat[364]: alarm
Jan 16 13:50:47 jin chat[364]: Failed
Jan 16 13:50:47 jin pppd[360]: Connect script failed
Jan 16 13:50:48 jin pppd[360]: Exit.

-- 
Jarkko Niemi            Oh Dear!  Said Pooh-bear, and deleted Windows
 jin@sci.fi   ----====(  finger jin@sci.fi or http://www.sci.fi/~jin  )====----



Reply to: