To: | |
---|---|
Subject: | [ts-7000] Re: COM Port Problem in PPPD |
From: | "odonovan_dan" <> |
Date: | Tue, 02 Dec 2008 10:58:51 -0000 |
Re: COM Port Problem in PPPD
Not quite. I just connected the modem back to itself for some of the --- In "ts7300" <> wrote: > > Hi, > What I got from this you have connected > DTR DCE > 1 CD <-------------------------------> CD > 2 rx<-----------------\ /-------------> RX > 3 TX< ---------------- / \-------------> TX > 4 dtr<--------------- ------------ ----> DTR > 5 gnd ---------------\-/-----------------> GND > 6 dsr --------------- / \ ---------------->DSR > 7 rts <-----------------\ /---------------->RTS > 8 cts <---------------- / \---------------->CTS > 9 ri <--------------------------------------->RI > > Its Means used Cross cable at DCE Device.Correct me if I am wrong. > > --- In p s.com, "odonovan_dan" danodonovan@ wrote: > > > > Just today, I decided to connect my external serial modem to ttyAM1 on > > my TS7260 (which has no control lines, only TX and RX). Up to now, > > I'd been using ttyAM0 (which has nearly all control lines). > > I hit a few problems when I did this. Here's what I learned, because > > it may be helpful in the problems you've been having: > > > > Firstly, I had to assert certain control lines to keep my modem happy. > > Note that this may be just a modem-specific issue. Anyway, I > > basically connected RTS and CTS together, and DTR and DSR, on the > > modem's (DCE) connection. > > > > Next, I had to change the AT init string that I was sending to the > > modem to instruct it to use xon/xoff software flow control. Check > > your modem's manual for the correct init string. Mine was AT&F 2 (US > > Robotics 56k modem). Make sure that all of your chat scripts are > > updated for this. For me, I use one chat script for dial-out > > connections from the TS7260, and then I also need to change mgetty's > > chat script (using the init-chat keyword in mgetty.config) for dial-in > > connections. > > > > For dial-out connections from the TS7260, I needed to use the > > following pppd options: > > local (NOT modem) > > default-asyncmap (NOT 'asyncmap 0' or 'asyncmap'. 'asyncmap a0000' > > also worked though) > > xonxoff > > nocrtsdts (not crtscts, cdtrcts, or anything else like that) > > > > > > For dial-in connections, I also had to recompile mgetty to use > > software flow control instead of hardware flow control (which it uses > > by default). Change policy.h to #define DATA_FLOW as FLOW_SOFT. > > > > Make sure BOTH sides of the ppp link are using an asyncmap which > > escapes control characters, since xon/xoff will introduce control > > characters into the data stream. (use 'default-asyncmap' or 'asyncmap > > a0000' on both sides of the link). > > > > I think that's everything I changed. It certainly wasn't as trivial > > as I thought it would be, but it all works now. > > I hope this helps. > > > > Regards, > > -Dan > > > > > > > > > > --- In "dinesh_lohan" <dinesh_lohan@> wrote: > > > > > > I had tried everything frrom my side added the options > > > xonoff,cdtrcts,nolock but nothing is working.Still strugling. > > > --- In "Eric Robishaw" <eric@> wrote: > > > > > > > > ; Try adding nolock to the options file. > > > > > > > > Eric > > > > > > > > On Mon, Nov 10, 2008 at 11:04 PM, dinesh_lohan <dinesh_lohan@>wrote: > > > > > > > > > Please show me the way how to tackle this problem. > > > > > URGENT. > > > > > > > > > > --- In <ts-7000%40yahoogroups.com>, > "ts7300" > > > > > <ts7300@> wrote: > > > > > > > > > > > > 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/chatscrip t /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 > > > &g t ; > > OK ATDT20 > > > > > > "" ATE0 > > > > > > CONNECT "" > > > > > > --- In <ts-7000%40yahoogroups.com>, > "Eric > > > > > Robishaw" <eric@> 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 > > & gt; > > > > > > > > > > > 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' < br>> > > > > > > > > > > > > > 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 / u sr/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 & g t; > > > > > > > > > > > > > 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. < br>> > > > > > > > > > > > > > #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 > > > > > > > > > > > > > > > > & g t; > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > REBOOT the system > > > > > > > > > > > > > > reboot > > > > > > > > > > > > > > > > > > > > > > > > > > > > COMMANDS: > > > > > > > > > > > > > > TO Connect > > > > > > > > > > > > > > pon tmobile ttts4 38400 > > > > > > > > > > > > > > TO Disconnect > > > > > > > > > > > > > > poff tmobile ttts4 > > > > > > > > > > > > > > To connect w/ debugging > > > > > > > & gt; > > > > > > 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 <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> > > > <ts-7000% > > > > > 40yahoogroups.com>, > > > > > > "odonovan_dan" > > &g t ; > > > > > <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><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. > > > > > > > > > & gt; ---------------------------------------- > > > > > > > > > > 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& g t; <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 o n com ttyAM1,ttyT8S0 etc. > > > > > > > > > > Please help me out from this. > > > > > > > > > > > > > > > > > > > > Thanx. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > __._,_.___
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> |
---|---|---|
|
Previous by Date: | [ts-7000] Re: COM Port Problem in PPPD, odonovan_dan |
---|---|
Next by Date: | [ts-7000] Re: COM Port Problem in PPPD, ts7300 |
Previous by Thread: | [ts-7000] Re: COM Port Problem in PPPD, odonovan_dan |
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