LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 03-20-2006, 12:00 PM   #1
ibibiking
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Rep: Reputation: 0
GPRS PPP problem HELP


Hi I'm Kwon
I work in Thai.
Now GPRS modem set is very hard.
I remaind this question, but I don't find solution.
Anyone HELP me.
below message is result.
I receive IP with LCP terminated by peer message,
And script is excute again.

daemon.info pppd[88]: Serial connection established.
daemon.info pppd[88]: Using interface ppp0
daemon.notice pppd[88]: Connect: ppp0 <--> /dev/tts/2
daemon.warn pppd[88]: Warning - secret file
/etc/ppp/pap-secrets has world and/or group access
daemon.warn pppd[88]: Warning - secret file
/etc/ppp/pap-secrets has world and/or group access

daemon.info pppd[88]: Remote message: Welcome!
daemon.notice pppd[88]: PAP authentication succeeded
daemon.err pppd[88]: not replacing existing default
route to eth1 [192.168.10.1]

daemon.notice pppd[88]: local IP address 192.168.111.112
daemon.notice pppd[88]: remote IP address 192.168.111.111
................................................
daemon.info pppd[88]: LCP terminated by peer
................................................
daemon.info pppd[88]: Connect time 0.0 minutes.
daemon.info pppd[88]: Sent 0 bytes, received 0 bytes.
daemon.notice pppd[88]: Connection terminated.
local2.info chat[99]: timeout set to 60 seconds
local2.info chat[99]: abort on (BUSY)
local2.info chat[99]: abort on (ERROR)
local2.info chat[99]: abort on (NO CARRIER)
local2.info chat[99]: send (AT^M)
local2.info chat[99]: expect (OK)
local2.info chat[99]: AT^M^M
local2.info chat[99]: OK
local2.info chat[99]: -- got it
local2.info chat[99]: send (AT+CGDCONT=1"IP","dtac.co.th","0.0.0.0",0,0^M)

local2.info chat[99]: expect (OK)
local2.info chat[99]: ^M
local2.info chat[99]: AT+CGDCONT=1,"IP","dtac.co.th","0.0.0.0",0,0^M^M

local2.info chat[99]: OK
local2.info chat[99]: -- got it
local2.info chat[99]: send (ATD*99***1#^M)
local2.info chat[99]: expect (CONNECT)
local2.info chat[99]: ^M
local2.info chat[99]: ATD*99***1#^M^M
local2.info chat[99]: CONNECT
local2.info chat[99]: -- got it
local2.info chat[99]: send (^M)
daemon.info pppd[88]: Serial connection established.
daemon.info pppd[88]: Using interface ppp0
daemon.notice pppd[88]: Connect: ppp0 <--> /dev/tts/2
daemon.warn pppd[88]: tcflush failed: Bad file escriptor
daemon.warn pppd[88]: tcsetattr: Invalid argument (line 1001)

daemon.info pppd[88]: Exit.


script is...
1. ppp-start
2. gprs-options
3. gprs-connect
4. pap-secrets


1. ppp-start is...
/usr/sbin/pppd file /etc/ppp/gprs-options


2. gprs-options is...
/dev/tts/2
115200
user "user"
crtscts
defaultroute
connect "/usr/sbin/chat -e -v -f /etc/ppp/gprs-connect"


3. gprs-connect is...
TIMEOUT 60
ABORT 'BUSY'
ABORT 'ERROR'
ABORT 'NO CARRIER'
'' 'AT'
OK AT+CGDCONT=1,"IP","dtac.co.th","0.0.0.0",0,0
OK ATD*99***1#
CONNECT ''


4. pap-secrets is...
'user' * 'pass' *

Why This script is repeat?
And How do I way slutioin?
 
Old 03-20-2006, 03:46 PM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,684

Rep: Reputation: 54
The script seems to work
don't know why it fails then:
Quote:
daemon.warn pppd[88]: tcflush failed: Bad file escriptor
daemon.warn pppd[88]: tcsetattr: Invalid argument (line 1001)
look at the systems log-files for more info

add "debug" to /etc/ppp/options
if there is no useful info to be found in the logs

add te option "noauth" to /etc/ppp/options
because your provider will very likely not authenticate itself to you...

Or: use wvdial (set up "stupid mode") to connect

my script ( /etc/wvdial.conf ) looks like this:

Code:
[Dialer Defaults]
Modem = /dev/rfcomm0
Stupid Mode = 1

DialCommand = ATDT
Init1 = AT&FE0V1&D2&C1S0=0
Init2 = AT+CGDCONT=1,"IP","internet.eplus.de"
Phone = *99***1#
Username = eplus
Password = gprs
adapt to your device
(I'm using /dev/rfcomm0 because I connect using bluetooth...),
your modem-init-string ( the Init1 )
and provider ( the Init2 ) as well as username and password.
 
Old 03-20-2006, 11:16 PM   #3
ibibiking
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Original Poster
Rep: Reputation: 0
script is...
1. ppp-start
2. gprs-options
3. gprs-connect
4. pap-secrets


1. ppp-start is...
usr/sbin/pppd file /etc/ppp/gprs-options


2. gprs-options is...
connect "/usr/sbin/chat -t3 -e -v -f /etc/ppp/gprs-connect"

/dev/tts/2
115200
crtscts
noauth
defaultroute
noipdefault
usepeerdns
persist
debug

3. gprs-connect is...
TIMEOUT 20
ABORT 'BUSY'
ABORT 'NO CARRIER'
ABORT 'NO ANSWER'
'' 'ATZ'
'OK' 'AT&F0'
'OK' 'ATE0v1'
'' 'AT+CSQ'
'OK' 'ATDT*99***1#'
'CONNECT'

4. pap-secrets is...
* * "" *

daemon.info pppd[120]: Serial connection established.
daemon.debug pppd[120]: using channel 3
daemon.info pppd[120]: Using interface ppp0
daemon.notice pppd[120]: Connect: ppp0 <--> /dev/tts/2
daemon.warn pppd[120]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access
daemon.debug pppd[120]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x684dc35> <pcomp> <accomp>]
daemon.debug pppd[120]: rcvd [LCP ConfRej id=0x1 <magic 0x684dc35>]
daemon.debug pppd[120]: sent [LCP ConfReq id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
daemon.debug pppd[120]: rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <pcomp> <accomp>]
daemon.debug pppd[120]: rcvd [LCP ConfReq id=0x1 <mru 1500> <asyncmap 0x0> <pcomp> <accomp> <auth pap>]
daemon.debug pppd[120]: sent [LCP ConfAck id=0x1 <mru 1500> <asyncmap 0x0> <pcomp> <accomp> <auth pap>]
daemon.warn pppd[120]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access
daemon.debug pppd[120]: sent [PAP AuthReq id=0x1 user="203.238.120.10" password=<hidden>]
daemon.debug pppd[120]: rcvd [PAP AuthAck id=0x1 "Welcome!"]
daemon.info pppd[120]: Remote message: Welcome!
daemon.notice pppd[120]: PAP authentication succeeded
daemon.debug pppd[120]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
daemon.debug pppd[120]: rcvd [IPCP ConfReq id=0x1 <addr 192.168.111.111>]
daemon.debug pppd[120]: sent [IPCP ConfAck id=0x1 <addr 192.168.111.111>]
daemon.debug pppd[120]: rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
daemon.debug pppd[120]: sent [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
daemon.debug pppd[120]: rcvd [IPCP ConfRej id=0x2 <ms-dns1 0.0.0.0>]
daemon.debug pppd[120]: sent [IPCP ConfReq id=0x3 <addr 0.0.0.0> <ms-dns3 0.0.0.0>]
daemon.debug pppd[120]: rcvd [IPCP ConfRej id=0x3 <ms-dns3 0.0.0.0>]
daemon.debug pppd[120]: sent [IPCP ConfReq id=0x4 <addr 0.0.0.0>]
daemon.debug pppd[120]: rcvd [IPCP ConfNak id=0x4 <addr 192.168.111.112>]
daemon.debug pppd[120]: sent [IPCP ConfReq id=0x5 <addr 192.168.111.112>]
daemon.debug pppd[120]: rcvd [IPCP ConfAck id=0x5 <addr 192.168.111.112>]
daemon.err pppd[120]: not replacing existing default route to eth0 [203.238.120.1]
daemon.notice pppd[120]: local IP address 192.168.111.112
daemon.notice pppd[120]: remote IP address 192.168.111.111
daemon.debug pppd[120]: rcvd [LCP TermReq id=0x2]
daemon.info pppd[120]: LCP terminated by peer

Error Messages is...
1. Warning - secret file /etc/ppp/pap-secrets has world and/or group access
2. not replacing existing default route to eth0 [203.238.120.1]
3. LCP terminated by peer

I think this messages couse problem.
How do I modify script?
And wvdial.conf is only make at /etc?

Last edited by ibibiking; 03-20-2006 at 11:18 PM.
 
Old 03-21-2006, 03:30 AM   #4
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,684

Rep: Reputation: 54
wvdial is a different program to do the same task you try to accomplish with pppd and scripts here.
In my opinion it is easier to set up...

As for your error - check the systems log files or the ppp error log
They are in /var/log/... probably.
You might just have a bad connection - the line gets dropped by your provider - not by you or by pppd (that is what I see here).
Quote:
daemon.debug pppd[120]: rcvd [LCP TermReq id=0x2]
daemon.info pppd[120]: LCP terminated by peer
 
Old 04-30-2006, 02:11 PM   #5
Freeman-Jo
Member
 
Registered: Apr 2004
Location: Internet
Distribution: Gentoo
Posts: 30

Rep: Reputation: 15
Hey, on unrelated note, I'm Thai also, but in the US. And I'm heading to Thailand in a couple of week for a little vaction. How are the weather/politic/traffic overthere ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help GPRS ppp Connection ibibiking Linux - Wireless Networking 3 04-10-2006 06:26 AM
Linux GPRS ppp howto philipvarghese Linux - Newbie 0 12-09-2005 07:40 PM
Help: GPRS problem on TI platform huang_gao Linux - Wireless Networking 0 09-27-2005 08:43 AM
GPRS connection problem maginotjr Linux - Networking 2 07-11-2005 04:03 AM
ppp + gprs vampire Janus Linux - Networking 0 10-21-2004 06:06 AM


All times are GMT -5. The time now is 04:15 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration