summaryrefslogtreecommitdiff
path: root/share/examples/pppd/cosmote3G.chat
blob: 5ac00d4626479259c294e514267b36c3bf1f042d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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'