ts-7000
[Top] [All Lists]

[ts-7000] PPP on TS7000

To:
Subject: [ts-7000] PPP on TS7000
From: "eric.robishaw" <>
Date: Thu, 31 Jul 2008 19:00:48 -0000
I've seen several posts on how to setup PPP via a GPRS modem on
TS-7000 products.

I've finally succeeded in doing so and wanted to share my results.

Parts of the following are specific to a MultiTech GPRS modem (MTCBA-G-F4) connecting to TMobile network...
But much of it will be the same regardless of the modem and network.

LOOK FOR HIGHLIGHTED Items: these are items you'll probably need to change for your setup.


*******************************************************************

If you want to use COM2 header you must first:
Disable Console Redirection on COM2 (ttyS2):

    * Backup the config  file: cp /etc/inittab /etc/inittab.bak
    * Edit the file /etc/initab
    * comment out the line (Add a # in front)
    T1:23:respawn:/sb in/getty -L ttyS1 115200 vt100
    
*******************************************************************

SETUP PPP MODULES:
Add the following lines to /etc/modules
    ppp_generic
    ppp_async
    pppoe
    pppox

*******************************************************************
    
Create file /etc/modutils/ppp:
        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

/dev/ttts4              #this is the modem (com3 header)
#/dev/ttyS1            #for com2 header instead, see above
9600                            #baud rate. On com3 seems like only 9600 works!
#Use 57600 for ttyS1

#lock 

#lock or NOT the modem.   If you lock it, may become u n usable in a failed ppp

nolock
    
user E      #anything here is fine
password P  #again, anything
    
#LOGIN  SCRIPTS
connect '/usr/sbin/chat -v -s -f /etc/chatscripts/tmobile-connect'
disconnect '/usr/sbin/chat -v -s -f /etc/chatscripts/tmobile-disconnect'
    
    
#following should appear here instead of OPTIONS b/c of priv. status
#auth
noauth


*******************************************************************
    
Create file: /etc/chatscripts/tmobile-connect
    TIMEOUT 10
    #ECHO ON
    ABORT "NO ANSWER"
    ABORT "NO CARRIER"
    SAY "Starting GPRS Connection\n\n"
    ABORT "ERROR"
    "" ATZ
    OK ATE1
    
   &nbs p ;#Make sure we have a good cell connection
    #The following will check for cell connection on Multitech modem

    OK AT+CPIN?          #If your modem doesn't support this, replace the "READY" below with "OK" and delete this line.
    
    #SET THE APN
    READY AT+CGDCONT=1,"IP","m2m.t-mobile.com"

#REPLACE "m2m.t-mobile.com" with the APN specific to your provider
    
    #DIAL INTO THE NETWORK
    OK ATD*99***1#
    
    CONNECT 'c'
    
*******************************************************************

Create file: /etc/chatscripts/tmobil e -disconnect
    "" +++ATH0
    SAY "GPRS DISCONNECTED"
    
*******************************************************************

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
  & nbsp;  
    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

********************************************************* * *********


TO CONNECT: pon tmobile
TO DISCONNECT: poff tmobile


NOTE:
I found that for some reason I get much more debug information displayed when starting / stopping via the COM1 redirect, instead of
using Telnet over RJ45.

NOTE:
If you find that you connect and then immediately disconnect it's very likely an invalid APN. __._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
  • [ts-7000] PPP on TS7000, eric.robishaw <=
Admin

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