Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Add cosmote examples.



details:   https://anonhg.NetBSD.org/src/rev/43599cc67b46
branches:  trunk
changeset: 756923:43599cc67b46
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Aug 07 20:47:27 2010 +0000

description:
Add cosmote examples.

diffstat:

 distrib/sets/lists/misc/mi         |   4 +++-
 share/examples/pppd/Makefile       |   3 ++-
 share/examples/pppd/cosmote3G      |  31 +++++++++++++++++++++++++++++++
 share/examples/pppd/cosmote3G.chat |  21 +++++++++++++++++++++
 4 files changed, 57 insertions(+), 2 deletions(-)

diffs (95 lines):

diff -r 7602d473abe9 -r 43599cc67b46 distrib/sets/lists/misc/mi
--- a/distrib/sets/lists/misc/mi        Sat Aug 07 20:43:46 2010 +0000
+++ b/distrib/sets/lists/misc/mi        Sat Aug 07 20:47:27 2010 +0000
@@ -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
diff -r 7602d473abe9 -r 43599cc67b46 share/examples/pppd/Makefile
--- a/share/examples/pppd/Makefile      Sat Aug 07 20:43:46 2010 +0000
+++ b/share/examples/pppd/Makefile      Sat Aug 07 20:47:27 2010 +0000
@@ -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 @@
 
 .if ${MKSHARE} != "no"
 FILES= cingular3G cingular3G.chat
+FILES+=        cosmote3G cosmote3G.chat
 FILES+=        telus telus.chat
 FILESDIR=/usr/share/examples/pppd
 .endif
diff -r 7602d473abe9 -r 43599cc67b46 share/examples/pppd/cosmote3G
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/share/examples/pppd/cosmote3G     Sat Aug 07 20:47:27 2010 +0000
@@ -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
diff -r 7602d473abe9 -r 43599cc67b46 share/examples/pppd/cosmote3G.chat
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/share/examples/pppd/cosmote3G.chat        Sat Aug 07 20:47:27 2010 +0000
@@ -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'



Home | Main Index | Thread Index | Old Index