#!/bin/sh
chat -t 100 -v ''	'ATZ' \
      'OK'		'AT+CPIN=XXXX'

# Although the modem says ok, it takes a few seconds to negotiate the
# pin.
sleep 10

chat -t 100 -v ''	'AT+CGDCONT=1,"IP","internet"' \
      'OK' 		'ATDT*99***1#' \
      TIMEOUT		120 \
      'CONNECT'   	'\c'

# 'AT+CPMS?'
# '+CPMS: "ME",0,100,"ME",0,100,"ME",0,100'
# Hardware handshake
#      'OK'		'AT&F &D2 &C1"
# No answer no timeout
#      'OK'		'ATS7=60 S30=0 S0=0"
# Report signal quality.
#      'OK'		'AT+CSQ'
