LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-09-2005, 03:37 AM   #1
philipvarghese
Member
 
Registered: Dec 2005
Posts: 36

Rep: Reputation: 21
Howto connect GPRS on linux


If anyone is interested in connecting GPRS mobile to a Linux box using serial cable,
well I have uploaded the instructions on Yahoo

http://www.geocities.com/tru2oxid/index.html

since I didnt know how to get it on google if this could help our GNU/Linux Fans.

Also If someone can help me in getting this page to be listed on the famous search engines please contact.

tru2oxid@yahoo.com

Last edited by philipvarghese; 12-09-2005 at 08:42 AM.
 
Old 12-10-2005, 04:39 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
How about submitting it to the Linux Tutorials section here..
 
Old 12-10-2005, 08:07 PM   #3
philipvarghese
Member
 
Registered: Dec 2005
Posts: 36

Original Poster
Rep: Reputation: 21
Thank you Mr.Peter Robb

I added a link to the page in Linux Tutorials section since I was not able to upload the page.

Thankyou
Philip.
 
Old 03-09-2006, 11:08 PM   #4
sandy_linux
LQ Newbie
 
Registered: Aug 2005
Posts: 13

Rep: Reputation: 0
I need a help. I have a board which has linux on flash chip,and which is connected to fargo gprs modem via serial link. I have written gprs connect script as well as peers file, which Igot from net. But I do not know the dns server ip of my ISP. so i used usepeerdns option in my file. But resolv.conf in /etc is empty only.
why didn't I get dns server ip from the network?
 
Old 03-17-2006, 01:17 AM   #5
philipvarghese
Member
 
Registered: Dec 2005
Posts: 36

Original Poster
Rep: Reputation: 21
Wink

Dear Sandy

http://www.taniwha.org.uk/gprs.html

maybe the above link could help you,

But you can try adding

local
ipcp-accept-local


to your /etc/ppp/options

which could give you the ip address in /etc/resolv.conf

I guess fargo modems are preloaded with settings as factory default.
 
Old 03-21-2006, 12:57 AM   #6
sandy_linux
LQ Newbie
 
Registered: Aug 2005
Posts: 13

Rep: Reputation: 0
no network protocols running..

#pppd call gprs
starting gprs connect script
reseting the modem
setting apn
Serial connection established.
using channel 2
Using interface ppp0
Connect: ppp0 /dev/rmodem
Warning - secret file /etc/ppp/pap-secrets has world and/or group access
sent [LCP ConfReq id=0x1 ]
rcvd [LCP ConfReq id=0x1 ]
sent [LCP ConfAck id=0x1 ]
rcvd [LCP ConfAck id=0x1 ]
sent [IPCP ConfReq id=0x1 ]
sent [CCP ConfReq id=0x1 ]
rcvd [IPCP ConfReq id=0x1 ]
sent [IPCP ConfRej id=0x1 ]
rcvd [CCP ConfReq id=0x1 ]
sent [CCP ConfAck id=0x1 ]
rcvd [IPCP ConfRej id=0x1 ]
sent [IPCP ConfReq id=0x2 ]
rcvd [CCP ConfAck id=0x1 ]
Deflate (15) compression enabled
rcvd [IPCP ConfReq id=0x2 ]
sent [IPCP ConfRej id=0x2 ]
rcvd [IPCP ConfRej id=0x2 ]
sent [IPCP ConfReq id=0x3]
rcvd [IPCP ConfReq id=0x3]
sent [IPCP ConfAck id=0x3]
rcvd [IPCP ConfAck id=0x3]
Could not determine local IP address
sent [IPCP TermReq id=0x4 "Could not determine local IP address"]
sent [IPCP TermReq id=0x5 "Could not determine local IP address"]
sent [LCP TermReq id=0x2 "No network protocols running"]
rcvd [LCP TermReq id=0x2 "No network protocols running"]
sent [LCP TermAck id=0x2]
rcvd [LCP TermAck id=0x2]
Connection terminated.
Connect time 0.1 minutes.
Sent 110 bytes, received 110 bytes.
Serial link disconnected.
 
Old 03-22-2006, 03:22 AM   #7
philipvarghese
Member
 
Registered: Dec 2005
Posts: 36

Original Poster
Rep: Reputation: 21
Sandy

You have not mentioned your distro
because each distros have their own style of configuring local machine address.

perhaps you should copy the complete "options" script mentioned in this url

http://www.geocities.com/tru2oxid/index.html

where you have provide lcp connect interval time locally to the pppd.
and also configure your systems with static address not dhcp.

Last edited by philipvarghese; 03-22-2006 at 03:23 AM.
 
Old 03-22-2006, 04:49 AM   #8
sandy_linux
LQ Newbie
 
Registered: Aug 2005
Posts: 13

Rep: Reputation: 0
could not ping..

Hi Philip,
Thanks for your help. The ppp0 interface is up now. But I could not ping to any ip. Here is the log:

.....
using channel 2
Using interface ppp0
Connect: ppp0 <--> /dev/rmodem
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <mru 1500> <asyncmap 0x0> <pcomp> <accomp> <auth pap>]
sent [LCP ConfAck id=0x1 <mru 1500> <asyncmap 0x0> <pcomp> <accomp> <auth pap>]
sent [PAP AuthReq id=0x1 user="9819289111" password=<hidden>]
sent [PAP AuthReq id=0x2 user="9819289111" password=<hidden>]
rcvd [PAP AuthAck id=0x1 "Welcome!"]
Remote message: Welcome!
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <addr 10.15.0.1>]
sent [IPCP ConfAck id=0x1 <addr 10.15.0.1>]
rcvd [IPCP ConfNak id=0x1 <addr 10.15.1.147> <ms-dns1 10.11.206.51> <ms-dns3 10.
sent [IPCP ConfReq id=0x2 <addr 10.15.1.147> <ms-dns1 10.11.206.51> <ms-dns3 10.
rcvd [IPCP ConfAck id=0x2 <addr 10.15.1.147> <ms-dns1 10.11.206.51> <ms-dns3 10.
local IP address 10.15.1.147
remote IP address 10.15.0.1
primary DNS address 10.11.206.51
secondary DNS address 10.11.206.50
Script /etc/ppp/ip-up started (pid 71)
Script /etc/ppp/ip-up finished (pid 54), status = 0x0

#iconfig
ppp0 Link encap:Point-Point Protocol
inet addr:10.15.4.57 P-t-P:10.15.0.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:54 (54.0 B) TX bytes:54 (54.0 B)

#route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.15.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
0.0.0.0 10.15.0.1 0.0.0.0 UG 0 0 0 ppp0

Is this looks ok?I even could not ping to the server.(10.15.0.1)

Sandeep.
 
Old 03-23-2006, 09:56 AM   #9
philipvarghese
Member
 
Registered: Dec 2005
Posts: 36

Original Poster
Rep: Reputation: 21
Dear Sandeep,

Your ifconfig result and route -n results are perfect.
You are connected.

You cannot ping to 10.15.0.1 because its a virtual server address.

try ping 10.11.206.51 0r 10.11.206.50

Also please check your firewall settings.
and user permissions.

Philip

Last edited by philipvarghese; 03-23-2006 at 10:31 AM.
 
Old 04-07-2006, 02:39 AM   #10
sandy_linux
LQ Newbie
 
Registered: Aug 2005
Posts: 13

Rep: Reputation: 0
SIMCOM GPRS Modem

I've got a new SIMCOM GPRS modem. Following is the sceenshot at the client PC in hyperterminal/Minicom:
at+cgdcont=1,"IP","APN"
OK
at+ciicr
OK
at+cifsr
OK
at+cipstart="tcp","remote server ip address","port no"
OK
CONNECT OK
at+cipsend
>I'm sending this data from the client
SEND OK

This is demo showed by Modem provider. He first ran the server.exe on the server which had external ip. After ruuning that exe a GUI appears which will have its ip address and tcp port on one side and a window where u can type some text to send to the client, also one more window for the data that is received from the client.

Now see this server program must be socket program. I have few questions:
1.Does this at+cipstart opens the tcp socket like we do in our socket program using socket command?
2.after issuing at+cipsend I get a promt '>' where I can type text and then I need to press ctrl+z which will send this data to the server. How do I write these sequence of commands in a file or a scipt in Linux?
3.Don't we need to use GPRS commands(like atd*99***1#,etc here?). Also even though we have not established PPP link we could able to send data to the server. How?
4.Do server needs to have external static IP?

Please do reply ASAP. Thanks

Sandeep
 
Old 04-13-2009, 07:51 AM   #11
webrsk
LQ Newbie
 
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
If still problem persists

Refer the Simcomm manual AT commands set.

-Rsk
 
  


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
Fedora core3 - gprs connect with usb cable on c380 motorola -HELP veedee Linux - Newbie 0 08-27-2005 09:02 PM
using a gprs cell phone to connect to the internet cwahoyes Linux - Newbie 3 10-03-2004 07:07 AM
How can I connect GPRS network with Nokia d211 card prad Linux - Wireless Networking 1 04-25-2004 06:34 PM
GPRS doesn't connect fransemail Linux - Networking 2 04-22-2004 04:48 AM
using gprs on linux machine??? farhan Linux - General 0 03-14-2003 04:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:59 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration