To: | |
---|---|
Subject: | Re: [ts-7000] Re: COM Port Problem in PPPD |
From: | "Eric Robishaw" <> |
Date: | Thu, 6 Nov 2008 00:51:59 -0600 |
Below is everything I did to get PPP working on the 7800. Some specifics will not apply to you, as they are specific to using a GPRS modem over Tmobile, but you should be able to figure it out. NOTE especially the options file and the nolock option. hope this helps. Add the following lines to /etc/modules ppp_generic ppp_async pppoe pppox
Create file /etc/modutils/ppp:
Paste the following and save: alias /dev/ppp ppp_generic alias char-major-108 ppp_generic alias ttt-ldisc-3 ppp_async alias tty-ldisc-14 ppp_synctty alias ppp-compress-21 bsd_comp alias ppp-compress-24 ppp_deflate alias ppp-compress-26 ppp_deflate
Create file: /etc/ppp/peers/tmobile nolock user E password P connect '/usr/sbin/chat -v -s -f /etc/chatscripts/tmobile-connect' disconnect '/usr/sbin/chat -v -s -f /etc/chatscripts/tmobile-disconnect'
#the following must appear HERE instead of OPTIONS b/c of priv. status noauth
Create file: /etc/chatscripts/tmobile-connect TIMEOUT 15 ECHO OFF ABORT "NO ANSWER" ABORT "NO CARRIER" ABORT "Connection terminated." SAY "Starting GPRS Connection\n\n" ABORT "ERROR" "" ATZ OK ATE0
#TURN OFF MODEM ECHO OK ATE1 #OK "ATE0V1" #"" 'ATE1' OK AT+CPIN? READY AT+CGDCONT=1,"IP","m2m.t-mobile.com" ECHO ON OK AT+CSQ SAY "****************** SIGNAL STRENGTH *************************:\n" ECHO OFF OK ATD*99***1# CONNECT 'c'
Create file: /etc/chatscripts/tmobile-disconnect "" +++ATH0 SAY "GPRS DISCONNECTED"
Create (or modify) file: /etc/ppp/ip-up.local (this is executed upon a good ppp connection) exec /usr/local/bin/pppconnection
Create file: /etc/ppp/ip-down.local exec /usr/local/bin/pppconnection 1
Make the above 2 files executible: chmod 700 /etc/ppp/ip-up.local chmod 700 /etc/ppp/ip-down.local
Copy file /etc/ppp/options to the following: cp /etc/ppp/options /etc/ppp/options.bak
Modify file /etc/ppp/options to the following: debug #nodetach stay running #updetach #to detach once connected. For debugging purposes only.
asyncmap 0 usepeerdns
#hardware flow control #crtscts cdtrcts #if no hardware flow control is available persist #re-connect upon a failed connect
#nomagic
nopcomp nobsdcomp nodeflate noauth
defaultroute #use this if you want this device to be the main internet connection. #You would not use this if you were for somereason using ppp AND wired internet. replacedefaultroute #replaces the wired route. Replaces back when done. #add a new default route in which the peer is the gaetway
Set the Serial Port to the desire bit rate (recommended: 38400): setserial /dev/ttts4 baud_base 38400
REBOOT the system reboot
COMMANDS:
Once a good connection is made: "Ifconfig ppp0" should return values.
On Wed, Nov 5, 2008 at 11:16 PM, ts7300 <> wrote:
|
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | [ts-7000] Re: COM Port Problem in PPPD, ts7300 |
---|---|
Next by Date: | [ts-7000] Re: COM Port Problem in PPPD, ts7300 |
Previous by Thread: | [ts-7000] Re: COM Port Problem in PPPD, ts7300 |
Next by Thread: | [ts-7000] Re: COM Port Problem in PPPD, ts7300 |
Indexes: | [Date] [Thread] [Top] [All Lists] |
Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU