Rules | Recent posts | topic RSS | Search | Register  | Log in

GPRS and PPP
Goto page 1, 2  Next
 
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing
Author Message
mrcube_ns



Joined: 10 Apr 2002
Posts: 416
Helped: 10
Location: Dark side of the Moon


Post13 Dec 2003 0:06   GPRS and PPP

I try to connect mcu to GPRS with MC35 (Siemens GSM terminal).

When I try it with my PC and hyper terminal, untill conection is established I use AT command, but after conection is establish PPP protocol starting.

Does someone can help me? Does someone has PPP code in C or something like that?

Thanks in advance.

Mr.Cube
Back to top
artem



Joined: 22 May 2003
Posts: 1638
Helped: 90
Location: Turan


Post15 Dec 2003 10:04   

There is book in ebooks section dedicated to PPP . For sure there are many free PPP implentations as well . Check sourceforge and FreeBSD or Linux projects .
Back to top
meshmesh



Joined: 09 Dec 2003
Posts: 29


Post15 Dec 2003 13:21   Re: GPRS and PPP

Hi there,

I am welling to do the same thing but I can not establish the GPRS attach .. Sad
could you please help me with some guide .. ?

regards
Back to top
mrcube_ns



Joined: 10 Apr 2002
Posts: 416
Helped: 10
Location: Dark side of the Moon


Post19 Dec 2003 15:20   Re: GPRS and PPP

MC35 SIEMENS
for connection to gprs you have to do this:

AT+CGDCONT=1,IP,156.090.123.076 (ENTER)

ATD*99#

After this connection is established, but PPP starting (that's problem).

If you have some problems I can sent you siemens manual for gprs connecting.

Mr.Cube
Back to top
artem



Joined: 22 May 2003
Posts: 1638
Helped: 90
Location: Turan


Post19 Dec 2003 17:50   

If PPP has started that means your attach has already been done and PDCH has allocated to you on air interface .

For PPP implementation there are 2 ways :
- you have to write your own code
- or h(at)ck other's code
There are plenty of PPP implementation on Linux and FreeBSD . All of them have open source code . Why you do not like to use it ??? If there are other reasons preventing you from doing that - could you pleae be more detailed .
Back to top
meshmesh



Joined: 09 Dec 2003
Posts: 29


Post21 Dec 2003 8:24   Re: GPRS and PPP

mrcube_ns wrote:
MC35 SIEMENS
for connection to gprs you have to do this:

AT+CGDCONT=1,IP,156.090.123.076 (ENTER)

ATD*99#

After this connection is established, but PPP starting (that's problem).

If you have some problems I can sent you siemens manual for gprs connecting.

Mr.Cube

Yes sir, I need this manual ...

regards,
meshmesh ...
Back to top
meshmesh



Joined: 09 Dec 2003
Posts: 29


Post21 Dec 2003 8:29   

artem wrote:
If PPP has started that means your attach has already been done and PDCH has allocated to you on air interface .

For PPP implementation there are 2 ways :
- you have to write your own code
- or h(at)ck other's code
There are plenty of PPP implementation on Linux and FreeBSD . All of them have open source code . Why you do not like to use it ??? If there are other reasons preventing you from doing that - could you pleae be more detailed .


One a day, I succeeded to make a ppp connection but for normal GSM network ( not GPRS ) ... I used a ppp connection script on a Linux OS ( It was redhat 7.3 ) .. it was very simple on gsm .. i think that it will be harder with gprs .. i remember that there are a lot of parameters i couldn't understand for gprs connections ...

regards ...
meshmesh
Back to top
mrcube_ns



Joined: 10 Apr 2002
Posts: 416
Helped: 10
Location: Dark side of the Moon


Post21 Dec 2003 22:05   Re: GPRS and PPP

artem wrote:
If PPP has started that means your attach has already been done and PDCH has allocated to you on air interface .

For PPP implementation there are 2 ways :
- you have to write your own code
- or h(at)ck other's code
There are plenty of PPP implementation on Linux and FreeBSD . All of them have open source code . Why you do not like to use it ??? If there are other reasons preventing you from doing that - could you pleae be more detailed .


Here is what I want to do.
I have to connect two distant device (from one hand PC and the other mcu). I need to transmit some commands (serial RS232 protokol) to mcu. GPRS (with 2 MC35 one for PC and other for mcu) is just channel to have serial comunication on both side of connection. So, PC and mcu will think that they are conected with wire link, but they are not.

Any ideas?

Tnx.

Mr.Cube

PS. What is PDCH?
Back to top
mrcube_ns



Joined: 10 Apr 2002
Posts: 416
Helped: 10
Location: Dark side of the Moon


Post22 Dec 2003 8:45   Re: GPRS and PPP

Here are GPRS documents for MC35


Sorry, but you need login in to view this attachment

Back to top
artem



Joined: 22 May 2003
Posts: 1638
Helped: 90
Location: Turan


Post22 Dec 2003 12:36   

Acctually GPRS is just GSM and 3G feature . In your case access is provided by GSM . DIfference between 3G and GSM is just 3G has more bandwidth than GSM .

For you problem there are 2 choices :
- use circuit switched call to GSM located modem pool which is not the GPRS . You can have both Internet connection (if call to access server within GSM or outside to normal ISP)PPP will be needed , or 2 way connection between your PC and destination mobile - no need for PPP .
- use packet switched calls GPRS . As far as everyting is TCP/IP , you have to have both TCP/IP server and clients on your mcu and PC .
To make connection you will need Internet IP addresses which will be dynamically assigned to mobiles when they attached (dhcp alike )- how are you going to exchnage those IP addreses before onnection will be done ? From other side , due to security consideration your operator can block most of the TCP/IP ports at the fireewall connected GSN nodes to Internet, so any connection request towards mobile will be blocked there (our local operator does that ).If you can achieve to have fixed Internet IP addres on your PC - this problem will be fixed . Or there could be 3 tier system implementation wehre both PC and mobile module have to be connected to server with fixed IP address on internet and signalling will flow through this server . May be some workaround could be done like
after GPRS attach (if you PC and modile module)
have GSM Modem - IP address will be known and it could be exchanged via SMS .

Regarding PPP there is a book
http://www.elektroda.pl/eboard/searchtopic59236-ppp.html

Let me know if you have more questions .
Back to top
xczms



Joined: 20 Feb 2004
Posts: 31
Location: hangzhou, china


Post28 May 2004 10:21   GPRS and PPP

do someone have experience in GPRS internet access with MCU ARM7TDMI?
Back to top
hifni_g



Joined: 17 Dec 2003
Posts: 7


Post31 May 2004 5:13   Re: GPRS and PPP

Please.. does anyone can give me an explanations or any resources about differences between GPRS and WAP?
Back to top
klchan



Joined: 25 Sep 2002
Posts: 19


Post09 Jul 2004 18:27   Re: GPRS and PPP

I have worked with Ubicom's IP2022 with SonyEricsson's GM47, for the GPRS application.

Please note that when working with GPRS, you need not to handle the PPP.

PPP is basically a protocol for login a system for charging only. But in GPRS world, you are already billed with your SIM card information, just as you make a call with your mobile.

For the configuration of the GPRS, you need to consult with your mobile operation for the setting, as there maybe different on this.

Once your system has been connected with GPRS, it is connected with internet world, you can send all IP packet directly. Simplify speaking, the MCU or system should looking as the connected GPRS module as a ethernet card.

Hope this can help.
Back to top
mrcube_ns



Joined: 10 Apr 2002
Posts: 416
Helped: 10
Location: Dark side of the Moon


Post12 Jul 2004 7:21   Re: GPRS and PPP

klchan basicly youre right, but not completly.

First, when you try to connect there are PPP for establish connection (login - PAP or CHAP and other things), but when you establish connection you have IP packets.

I resolve problem, I pick up Enfora insted of MC35. Enfora have PPP/IP to serial converter so everythingworks OK.

10x on your answer.


Best regards,

Mr.Cube[/quote]
Back to top
mitesh



Joined: 13 May 2002
Posts: 288
Helped: 6


Post12 Jul 2004 17:59   Re: GPRS and PPP

HI,

Please any body help me for connecting CDMA terminal to internet by dailing it with PPP mode
Back to top
mrcube_ns



Joined: 10 Apr 2002
Posts: 416
Helped: 10
Location: Dark side of the Moon


Post13 Jul 2004 7:19   Re: GPRS and PPP

What is CDMA terminal?
Back to top
mitesh



Joined: 13 May 2002
Posts: 288
Helped: 6


Post13 Jul 2004 16:55   Re: GPRS and PPP

Hi ,

CDMA Terminal is nothing but Fixed wireless Terminal. Which has CDMA module.
Can any body support me for connecting Modem to Microcontroller.

I want source code for communicating and installising modem drivers in microcontrller and dailling ISP provider (#777).

Please help me for it
Back to top
patacom



Joined: 22 Jul 2004
Posts: 3


Post22 Jul 2004 23:24   Re: GPRS and PPP

I worked whit AnyData iPort, you must set pwd an usr info and don't dial #777 just 111 (any 3 numbers but don't start whit 777)
Back to top
xczms



Joined: 20 Feb 2004
Posts: 31
Location: hangzhou, china


Post03 Aug 2004 10:24   Re: GPRS and PPP

i try to connect MC35i to GPRS , i login as root in linuxOS,then excute the following command in shell:
# pppd /dev/ttyS0 debug 9600 connect 'chat -v -f /home/chat1'&
# cat /var/log/message

Aug 3 16:36:04 localhost pppd[3069]: pppd 2.4.1 started by root, uid 0
Aug 3 16:36:05 localhost chat[3070]: abort on (ERROR)
Aug 3 16:36:05 localhost chat[3070]: send (AT^M)
Aug 3 16:36:05 localhost chat[3070]: timeout set to 50 seconds
Aug 3 16:36:05 localhost chat[3070]: expect (OK)
Aug 3 16:36:05 localhost chat[3070]: AT^M^M
Aug 3 16:36:05 localhost chat[3070]: OK
Aug 3 16:36:05 localhost chat[3070]: -- got it
Aug 3 16:36:05 localhost chat[3070]: send (CONNECT^M)
Aug 3 16:36:05 localhost chat[3070]: send (ATD*99***1#^M)
Aug 3 16:36:06 localhost pppd[3069]: Serial connection established.
Aug 3 16:36:06 localhost pppd[3069]: Hangup (SIGHUP)
Aug 3 16:36:06 localhost pppd[3069]: Couldn't get channel number: Input/output error
Aug 3 16:36:07 localhost pppd[3069]: Exit.

why? how to solve this problem? could someone give some tips? thanks
Back to top
Boardstiff



Joined: 25 Aug 2001
Posts: 34


Post03 Aug 2004 12:08   Re: GPRS and PPP

looks as if your not setting the ppp id & password or the access point for your gprs service

for example for vodaphone uk
id "web";
password "web";

"AT+CGDCONT=1,\"IP\",\"pp.vodafone.co.uk\"\n"; // vodaphones Access Point Name

"ATD*99***1#\n";

which service provider are you using ?

you may find this link useful

https://rip.psg.com/~randy/gprs-ppp.html
Back to top
xczms



Joined: 20 Feb 2004
Posts: 31
Location: hangzhou, china


Post03 Aug 2004 15:14   Re: GPRS and PPP

i use china mobile communication.
i have excute the AT command as follows in the minicom:

AT+CGDCONT=1,"IP","CMNET"
OK
ATD*99***1#
CONNECT
~ }#?}!}#} }9}"}&} }*} } }'}"}(}"}%}&}>_}#}%?}%骡~~ }#?}!}#} }9}"}&} }*} }
}'}"}(}"}%}&}>_}#}%?}%骡~~ }#?}!}#} }9}"}&} }*} } }'}"}(}"}%}&}>_}#}%?}%骡
~~ }#?}!}#} }9}"}&} }*} } }'}"}(}"}%}&}>_}#}%?}%骡~~ }#?}!}#} }9}"}&} }*} }
}'}"}(}"}%}&}>_}#}%?}%骡~~ }#?}!}#} }9}"}&} }*} } }'}"}(}"}%}&}>_}#}%?}%
骡~~ }#?}!}#} }9}"}&} }*} } }'}"}(}"}%}&}>_}#}%?}%骡~~ }#?}!}#} }9}"}&} }*}
} }'}"}(}"}%}&}>_}#}%?}%骡~~ }#?}!}#} }9}"}&} }*} } }'}"}(}"}%}&}>_}#}%?
}%骡~~ }#?}!}#} }9}"}&} }*} } }'}"}(}"}%}&}>_}#}%?}%骡~
NO CARRIER

NO CARRIER why?
Back to top
pisoiu



Joined: 31 Dec 2002
Posts: 889
Helped: 24
Location: Romania


Post23 Aug 2004 8:58   Re: GPRS and PPP

xczms wrote:
i use china mobile communication.
i have excute the AT command as follows in the minicom:

AT+CGDCONT=1,"IP","CMNET"
OK
ATD*99***1#
CONNECT
~ }#?}!}#} }9}"}&} }*} } }'}"}(}"}%}&}>_}#}%?}%骡~~ }#?}!}#} }9}"}&} }*} }
}'}"}(}"}%}&}>_}#}%?}%骡~~ }#?}!}#} }9}"}&} }*} } }'}"}(}"}%}&}>_}#}%?}%骡
~~ }#?}!}#} }9}"}&} }*} } }'}"}(}"}%}&}>_}#}%?}%骡~~ }#?}!}#} }9}"}&} }*} }
}'}"}(}"}%}&}>_}#}%?}%骡~~ }#?}!}#} }9}"}&} }*} } }'}"}(}"}%}&}>_}#}%?}%
骡~~ }#?}!}#} }9}"}&} }*} } }'}"}(}"}%}&}>_}#}%?}%骡~~ }#?}!}#} }9}"}&} }*}
} }'}"}(}"}%}&}>_}#}%?}%骡~~ }#?}!}#} }9}"}&} }*} } }'}"}(}"}%}&}>_}#}%?
}%骡~~ }#?}!}#} }9}"}&} }*} } }'}"}(}"}%}&}>_}#}%?}%骡~
NO CARRIER

NO CARRIER why?


This worm is the PPP initalisation sequence for LCP phase. If you do not respond to it within the PPP timeout constraints, the modem will detach and close the connection, this is why you have "NO CARRIER". You need to respond to it with proper LCP closing sequences, after that you need to perform authentication by one of several available protocols (PAP, CHAP, etc...), then IPCP phase to establish an IP transport layer, and only after this you can transfer TCP or UDP packets.
The TELIT GM862 GPRS modules have a custom subset of AT commands, called EASY GPRS, which allow to perform data transfer without taking care about PPP layer. You just have to setup GPRS with AT+CGDCONT, after this define the desired connection parameters (protocol type TCP or UDP, remote port, peer IP or peer name), and request socket opening. After this you transfer the data, and the module takes care about all network protocols without user intervention.

/pisoiu
Back to top
xczms



Joined: 20 Feb 2004
Posts: 31
Location: hangzhou, china


Post24 Aug 2004 7:49   Re: GPRS and PPP

/home/chat1:

ABORT "BUSY"
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "ERROR"
'' AT
OK AT+CGDCONT=1,"IP","CMNET"
OK ATD*99***1#
CONNECT ""


/etc/ppp/option:
lock
nocrtscts
noauth
local
defaultroute



i execute the following command in shell
#pppd /dev/ttyS0 9600 debug connect '/usr/sbin/chat -v -f /home/chat1'


^[[AAug 24 14:37:21 localhost pppd[3193]: pppd 2.4.1 started by root
, uid 0
Aug 24 14:37:22 localhost chat[3194]: abort on (BUSY)
Aug 24 14:37:22 localhost chat[3194]: abort on (NO CARRIER)
Aug 24 14:37:22 localhost chat[3194]: abort on (NO DIALTONE)
Aug 24 14:37:22 localhost chat[3194]: abort on (ERROR)
Aug 24 14:37:22 localhost chat[3194]: send (AT^M)
Aug 24 14:37:22 localhost chat[3194]: expect (OK)
Aug 24 14:37:22 localhost chat[3194]: AT^M^M
Aug 24 14:37:22 localhost chat[3194]: OK
Aug 24 14:37:22 localhost chat[3194]: -- got it
Aug 24 14:37:22 localhost chat[3194]: send (AT+CGDCONT=1,"IP","CMNET
"^M)
Aug 24 14:37:22 localhost chat[3194]: expect (OK)
Aug 24 14:37:22 localhost chat[3194]: ^M
Aug 24 14:37:22 localhost chat[3194]: AT+CGDCONT=1,"IP","CMNET"^M^M
Aug 24 14:37:22 localhost chat[3194]: OK
Aug 24 14:37:22 localhost chat[3194]: -- got it
Aug 24 14:37:22 localhost chat[3194]: send (ATD*99***1#^M)
Aug 24 14:37:23 localhost chat[3194]: expect (CONNECT)
Aug 24 14:37:23 localhost chat[3194]: ^M
Aug 24 14:37:23 localhost chat[3194]: ATD*99***1#^M^M
Aug 24 14:37:23 localhost chat[3194]: CONNECT
Aug 24 14:37:23 localhost chat[3194]: -- got it
Aug 24 14:37:23 localhost chat[3194]: send (^M)
Aug 24 14:37:23 localhost chat[3194]: expect (^M)
Aug 24 14:37:23 localhost chat[3194]: ^M
Aug 24 14:37:23 localhost chat[3194]: -- got it
Aug 24 14:37:23 localhost chat[3194]: send (^M^M)
Aug 24 14:37:23 localhost chat[3194]: expect (^M)
Aug 24 14:37:23 localhost chat[3194]:
Aug 24 14:37:26 localhost chat[3194]: ~^?}#@!}!}#} }9}"}&} }*} } }'}
"}(}"}%}&''7-}#}%B#}%}>A~~^?}#@!}!}#} }9}"}&} }*} }
Aug 24 14:37:29 localhost chat[3194]: }'}"}(}"}%}&''7-}#}%B#}%}>A~~^
?}#@!}!}#} }9}"}&} }*} } }'}"}(}"}%}&''7-}#}%B#}%}>
Aug 24 14:37:35 localhost chat[3194]: A~~^?}#@!}!}#} }9}"}&} }*} } }
'}"}(}"}%}&''7-}#}%B#}%}>A~~^?}#@!}!}#} }9}"}&} }*}
Aug 24 14:37:38 localhost chat[3194]: } }'}"}(}"}%}&''7-}#}%B#}%}>A~
~^?}#@!}!}#} }9}"}&} }*} } }'}"}(}"}%}&''7-}#}%B#}%
Aug 24 14:37:44 localhost chat[3194]: }>A~~^?}#@!}!}#} }9}"}&} }*} }
}'}"}(}"}%}&''7-}#}%B#}%}>A~~^?}#@!}!}#} }9}"}&} }*
Aug 24 14:37:47 localhost chat[3194]: } } }'}"}(}"}%}&''7-}#}%B#}%}>
A~~^?}#@!}!}#} }9}"}&} }*} } }'}"}(}"}%}&''7-}#}%B#
Aug 24 14:37:53 localhost chat[3194]: }%}>A~~^?}#@!}!}#} }9}"}&} }*}
} }'}"}(}"}%}&''7-}#}%B#}%}>A~^M
Aug 24 14:37:53 localhost chat[3194]: -- got it
Aug 24 14:37:53 localhost pppd[3193]: Serial connection established.
Aug 24 14:37:53 localhost pppd[3193]: using channel 1
Aug 24 14:37:53 localhost pppd[3193]: Using interface ppp0
Aug 24 14:37:53 localhost pppd[3193]: Connect: ppp0 <--> /dev/ttyS0
Aug 24 14:37:53 localhost /etc/hotplug/net.agent: assuming ppp0 is a
lready up
Aug 24 14:37:54 localhost pppd[3193]: sent [LCP ConfReq id=0x1 <asyn
cmap 0x0> <magic 0xdba7262e> <pcomp> <accomp>]
Aug 24 14:37:54 localhost pppd[3193]: Hangup (SIGHUP)
Aug 24 14:37:54 localhost pppd[3193]: Modem hangup
Aug 24 14:37:54 localhost pppd[3193]: Connection terminated.
Aug 24 14:37:54 localhost /etc/hotplug/net.agent: NET unregister eve
nt not supported
Aug 24 14:37:55 localhost pppd[3193]: Exit.

what the Hangup(SIGHUP) mean? which cause it? what should i do? thanks
Back to top
eduardorrodrigues



Joined: 16 Feb 2005
Posts: 1


Post16 Feb 2005 18:25   GPRS and PPP

Hi friends. I usinge the siemens MC35i for one application that use one microcontroler, therefore I use serial comands. As I already saw other peaple that problems like me. Dont connect (NO CARRIER). Need send some specifc command?
This Is PPP?
How can I make that?
Where do I find as setting up strings PPP?

Help me please...
Back to top
kimo



Joined: 17 Apr 2005
Posts: 1


Post17 Apr 2005 22:40   Re: GPRS and PPP

THIS IS VERY URGENT .... Please help me...

My service provider has set-up a special connection (A sort of VPN) where I dial through GPRS and establish a PPP link. He did this so that the IP address I have setup on the local machine can be kept once I connect to the server on the other end.

The Service provider tells me that the PDP context for this is set-up with the command :

at+cgdcont=1,"PPP","BAM"

where BAM is the name of the server on his side...

The problem is that I am using a Siemens MC35i Terminal and it doesn't accept this command....
The MC35i doesn't seem to accept "PPP" in the PDP context definition.. but it does accept "IP" when I try to connect to the Internet server of my provider !

Has anyone had to deal with an issue like this ?

This whole process actually works when using a GPRS mobile phone SL55 as a modem ! But I don't know what I am doing wrong !

THANKS very much
Back to top
Marlos88



Joined: 03 Feb 2006
Posts: 1


Post03 Feb 2006 0:45   Re: GPRS and PPP

I had the same problem, when the PPP start I stop.
This topic is old, so i want to know if somebody did it, or can help me with that.
I want to use mcu with the MC35 for my college work, but i donīt know anything about PPP. Did somebody implemented it in a mcu? Or have some documentation?


Thanks
Back to top
techie



Joined: 05 Feb 2002
Posts: 834
Helped: 42


Post05 Feb 2006 16:32   GPRS and PPP

If you search this forum, you will find that much has been written on this topic. TO start with, there are 2 excellent application notes that implement PPP on a mcu. One is from microchip and the other from motorola.
Back to top
Unomano



Joined: 31 Aug 2005
Posts: 43
Location: Minsk, Belarus


Post15 May 2006 10:44   GPRS and PPP

Does anybody know how to terminate Voice call but not terminating active GPRS connection? Is there any difference between ATH (ATH0) and AT+CHUP comands?
Back to top
Linnea



Joined: 29 Jun 2006
Posts: 1


Post21 Jul 2006 9:39   Re: GPRS and PPP

old thread but the same problem:

I try to connect internet with Siemens MC35i modem and WinXP. The connection starts but I can't change/use the PPP to send data. What can I do?

Btw, it's no problem to connect in general, but I need the modem with a data logger without every OS like Win or Linux. So, the logger only send the AT command to the modem and when connection is established the data have to send to a PHP script on a special server. (e.g.: GET /scripts/test.php?A=1&B=2)

How can I solve this?
Back to top
techie



Joined: 05 Feb 2002
Posts: 834
Helped: 42


Post21 Jul 2006 13:03   GPRS and PPP

To be connected to internet, you need TCP/IP stack. You can either use the TCP/IP stack of the OS like winsock of windows or you can write your own stack. Most modules also come with a stack built-in. But I dont think MC35 is one of those.
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> PC Programming and Interfacing
Page 1 of 2 All times are GMT + 1 Hour
Goto page 1, 2  Next


Abuse
Administrator
Moderators
topic RSS 
sitemap