11.1Schristos#!/bin/sh 21.1Schristoschat -t 100 -v '' 'ATZ' \ 31.1Schristos 'OK' 'AT+CPIN=XXXX' 41.1Schristos 51.1Schristos# Although the modem says ok, it takes a few seconds to negotiate the 61.1Schristos# pin. 71.1Schristossleep 10 81.1Schristos 91.1Schristoschat -t 100 -v '' 'AT+CGDCONT=1,"IP","internet"' \ 101.1Schristos 'OK' 'ATDT*99***1#' \ 111.1Schristos TIMEOUT 120 \ 121.1Schristos 'CONNECT' '\c' 131.1Schristos 141.1Schristos# 'AT+CPMS?' 151.1Schristos# '+CPMS: "ME",0,100,"ME",0,100,"ME",0,100' 161.1Schristos# Hardware handshake 171.1Schristos# 'OK' 'AT&F &D2 &C1" 181.1Schristos# No answer no timeout 191.1Schristos# 'OK' 'ATS7=60 S30=0 S0=0" 201.1Schristos# Report signal quality. 211.1Schristos# 'OK' 'AT+CSQ' 22