LinuxQuestions.org
Register a domain and help support LQ
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
 
Search this Thread
Old 03-18-2006, 09:09 AM   #1
ibibiking
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Rep: Reputation: 0
Help GPRS ppp Connection


Hi I'm Kwon
I work in Thai.
Now GPRS modem set is very hard.
below message is result.
I got IP but, 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?

Last edited by ibibiking; 03-18-2006 at 09:22 AM.
 
Old 03-19-2006, 01:02 AM   #2
otisthegbs
Member
 
Registered: May 2003
Location: Vancouver
Distribution: RH9
Posts: 100

Rep: Reputation: 15
try this:

<gprs-options>
hide-password
noauth
connect "/usr/sbin/chat -t3 -e -v -f /etc/ppp/gprs-connect"

/dev/tts/2
115200
defaultroute
noipdefault
user "user"
usepeerdns
persist
</grps-options>



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

this is the setup (almost) for my EVDO kyocera card, I live in Canada.

*note in the gprs-options i have noauth specified, this may or may not work for you. Try it the way it is and see what happens.

Also check out forum.stompboxnetworks.com for a great forum for gprs/evdo ppp cards.
 
Old 03-19-2006, 04:32 AM   #3
ibibiking
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Great !!
Thanks for your help..
 
Old 04-10-2006, 06:26 AM   #4
sandy_linux
LQ Newbie
 
Registered: Aug 2005
Posts: 13

Rep: Reputation: 0
simcom modem

Hi,
I'm using SIMCOM gprs modem which is connected to Linux system on serial port.I've written one server socket program on other system. Now on client side I connect to modem through modem and execute the following AT commands:
at?
OK
at+cgdcont=.....
OK
at+ciicr
OK
at+cifsr
OK
at+cipstart
OK
CONNECT OK
at+cipsend
>Hello cliebt here !
Send OK <- this comes when ctrl+z is pressed
at+cipshut
SHUT OK

Now I want to implement these steps in script(I'm using chat script).
But problem is:
after at+cipsend I need to read some text from a file and then Ctrl+z should be implemented so that that text data is sent to the server. How do I implement this?How to capture ctrl+z too?

Thanks,
sandy
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux GPRS ppp howto philipvarghese Linux - Newbie 0 12-09-2005 07:40 PM
GPRS connection problem maginotjr Linux - Networking 2 07-11-2005 04:03 AM
(yet another)GPRS connection prob bcalder01 Linux - Networking 1 12-05-2004 07:53 AM
ppp + gprs vampire Janus Linux - Networking 0 10-21-2004 06:06 AM
Slow GPRS connection Sullivan7531 Linux - Newbie 1 07-02-2004 05:34 PM


All times are GMT -5. The time now is 03:49 AM.

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