Add cosmote examples.

This commit is contained in:
christos 2010-08-07 20:47:27 +00:00
parent 825647fecd
commit 11e43416a1
4 changed files with 57 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: mi,v 1.165 2010/01/14 12:05:37 wiz Exp $
# $NetBSD: mi,v 1.166 2010/08/07 20:48:54 christos Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@ -822,6 +822,8 @@
./usr/share/examples/pppd misc-pppd-examples
./usr/share/examples/pppd/cingular3G misc-pppd-examples share
./usr/share/examples/pppd/cingular3G.chat misc-pppd-examples share
./usr/share/examples/pppd/cosmote3G misc-pppd-examples share
./usr/share/examples/pppd/cosmote3G.chat misc-pppd-examples share
./usr/share/examples/pppd/telus misc-pppd-examples share
./usr/share/examples/pppd/telus.chat misc-pppd-examples share
./usr/share/examples/racoon/FAQ misc-netutil-examples crypto,share

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2008/10/29 12:47:08 jmcneill Exp $
# $NetBSD: Makefile,v 1.3 2010/08/07 20:47:27 christos Exp $
NOOBJ= # defined
@ -6,6 +6,7 @@ NOOBJ= # defined
.if ${MKSHARE} != "no"
FILES= cingular3G cingular3G.chat
FILES+= cosmote3G cosmote3G.chat
FILES+= telus telus.chat
FILESDIR=/usr/share/examples/pppd
.endif

View File

@ -0,0 +1,31 @@
# $NetBSD: cosmote3G,v 1.1 2010/08/07 20:47:27 christos Exp $
# Script to connect to Cosmote-3G's service.
# This gets to the point of connected, but never gets to negotiate LCP.
# I see nothing from the modem. It is here for reference.
#
#kdebug 100
#debug 10000
/dev/ttyU1 460800
holdoff 10
noipv6
#-vj
#idle 600
demand
#active-filter-out "icmp or (udp and not udp port route) or (tcp and not tcp port ntp)"
#active-filter-in "icmp or (udp and not udp port route) or (tcp and not tcp port ntp)"
#pass-filter-in "tcp or (udp and not udp port route) or icmp"
#pass-filter-out "tcp or (udp and not udp port route) or icmp"
#netmask 0xffffff00
ipcp-accept-local
lcp-echo-failure 0
lcp-echo-interval 0
mtu 296
defaultroute
crtscts
modem
lock
connect /etc/ppp/connect/cosmote3G.chat
noauth
user ""
password ""
usepeerdns

View File

@ -0,0 +1,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'