chat -- AT command
I want my modem to show the real connecion speed. I found in the modem's
docs that AT\V0 does this. If I use minicom it works perfectly. I send:
ATZ
get OK
AT\V0
get OK
ATDTthe_number
...and the proper connection speed (CONNECT 33600)
However if I try the same in my chatsript it just doesn't work. I put in
there this:
'' ATZ
OK AT\\V0
# ispnumber
OK-AT-OK ATDT0202122
The connections is succesful but I only get CONNECT (not: CONNECT speed)
in /var/log/messages:
May 9 13:21:27 dioptria chat[2983]: ATZ^M^M
May 9 13:21:27 dioptria chat[2983]: OK
May 9 13:21:27 dioptria chat[2983]: -- got it
May 9 13:21:27 dioptria chat[2983]: send (AT\\V0^M)
May 9 13:21:27 dioptria chat[2983]: expect (OK)
May 9 13:21:27 dioptria chat[2983]: ^M
May 9 13:21:27 dioptria chat[2983]: AT\V0^M^M
May 9 13:21:27 dioptria chat[2983]: OK
May 9 13:21:27 dioptria chat[2983]: -- got it
May 9 13:21:27 dioptria chat[2983]: send (ATDT0202122^M)
May 9 13:21:27 dioptria chat[2983]: expect (CONNECT)
May 9 13:21:27 dioptria chat[2983]: ^M
May 9 13:21:49 dioptria chat[2983]: ATDT0202122^M^M
May 9 13:21:49 dioptria chat[2983]: CONNECT
May 9 13:21:49 dioptria chat[2983]: -- got it
May 9 13:21:49 dioptria chat[2983]: send (\d)
Has anybody had a similar problem?
--
Tomasz Olszewski | caster@from.pl
"Niektóre kobiety nazwywają dyskrecją powtarzanie sekretów i tajemnic,
szeptem." -- Gilbert Cesbron
Reply to: