In my case PPP connection is working on Com Port ttyAM0 But fails on
rest all Com port of the board.What I think some thing I missing in
options.
Below are options file.
CONNECT "/usr/sbin/chat -S -s -v -f /etc/chatscript/pap2 -T 20"
dev/ttyT8S0
115200
-detach
xonxoff
mru 552
mtu 552
debug
asyncmap
persist
cdtrcts
nomagic
passive
dump
10.10.20.1:10.10.20.2
Connect SCRIPT:
ABORT BUSY
ABORT VOICE
ABORT "NO CARRIER:
ABORT "NO DIAL TONE"
ABORT "NO DIALTONE"
"" AT
OK ATDT20
"" ATE0
CONNECT ""
--- In "Eric Robishaw" <> wrote:
>
> 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:
>
> Type:
>
> pico /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:
>
> TO Connect
>
> pon tmobile ttts4 38400
>
> TO Disconnect
>
> poff tmobile ttts4
>
> To connect w/ debugging
>
> Pon tmobile ttts4 38400 updetach
>
>
>
>
>
> Once a good connection is made:
>
> "Ifconfig ppp0" should return values.
>
>
>
>
> On Wed, Nov 5, 2008 at 11:16 PM, ts7300 <> wrote:
>
> > First of all Thanx for Reply.
> > Below are the ppp options:
> > -detach
> > xonxoff
> > mru 552
> > mtu 552
> > debug
> > asyncmap
> > persist
> > cdtrcts
> > nomagic
> > passive
> > dump
> > 10.10.20.1:10.10.20.2
> >
> > I have tried with XONXOFF otions in PPP options file but still same
> > problem come.
> > --- In <ts-7000%40yahoogroups.com>,
"odonovan_dan"
> > <danodonovan@> wrote:
> > >
> > > Could it be an issue with flow control settings?
> > > ttyAM0 has all of the hardware flow control lines hooked up, whereas
> > > ttyAM1 doesn't so I think you would need to be using either software
> > > (XON/XOFF) or no flow control with that port (and configure the
device
> > > on the other end of the connection to use the same). RTS/CTS flow
> > > control would only work on ttyAM0 I think.
> > >
> > >
> > > --- In <ts-7000%40yahoogroups.com>, "ts7300"
> > <ts7300@> wrote:
> > > >
> > > > Hi,
> > > > I am using TS-7300 Board for PPPD dial up connection and PPPD
> > > > connection is sucessful working when I am using ttyAM0 port
but once I
> > > > switched to other com port i.e. ttyAM1,ttyT8S0,ttyT8S1 etc I am
> > > > getting Problem in LCP Nego. packets.
> > > > ----------------------------------------
> > > > Using Interface ppp0
> > > > Connect :ppp0 <--> /dev/ttyT8S1
> > > > sent [LCP Config id=0X4 <mru 552> <asyncamp 0x0> <accomp>]
> > > > sent [LCP Config id=0X4 <mru 552> <asyncamp 0x0> <accomp>]
> > > > sent [LCP Config id=0X4 <mru 552> <asyncamp 0x0> <accomp>]
> > > > sent [LCP Config id=0X4 <mru 552> <asyncamp 0x0> <accomp>]
> > > > sent [LCP Config id=0X4 <mru 552> <asyncamp 0x0> <accomp>]
> > > > sent [LCP Config id=0X4 <mru 552> <asyncamp 0x0> <accomp>]
> > > > sent [LCP Config id=0X4 <mru 552> <asyncamp 0x0> <accomp>]
> > > > sent [LCP Config id=0X4 <mru 552> <asyncamp 0x0> <accomp>]
> > > > LCP:timeout sending config-requests
> > > > connection terminated
> > > > ----------------------------------------------------------
> > > > I am really stuck up at this problem why its not working other
than
> > > > tyyAM0 ports.Can somebody suggets me something is their any more
> > > > setting is require on com ttyAM1,ttyT8S0 etc.
> > > > Please help me out from this.
> > > >
> > > > Thanx.
> > > >
> > >
> >
> >
> >
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|