This is for the archives.

'' 'ATE1'               

Turns out this is neither needed to debug the chat script nor needed in the final script:


TIMEOUT 30
'' AT+CFUN=1\r\d\c      # wait until the modem echoes '+PACSP0'
'+PACSP0'               # chat(8) says '/d' '/c' not valid for 'expect'

Here is a better way to work around this:

TIMEOUT 5
ABORT 'NO CARRIER' ABORT ERROR ABORT 'NO DIALTONE' ABORT BUSY ABORT 'NO ANSWER'
TIMEOUT 30
'' AT+CFUN=1 T+CFUN=1           # just "eat up" all 'expect'
'' OK                           # ''
'' '+PACSP0'                    # ''
'AT+CGDCONT=1,"IP","isp.cingular"'
OK\r\n 'ATDT*99***1#'           #  straight from chat(8)
\r\n    \c                      #  ''
CONNECT \c                      #  ''

Reply via email to