ppp implementation over GPRS
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
ppp implementation over GPRS

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System
Author Message
Rocky
Guest





Posted: Wed Dec 28, 2005 9:15 am    Post subject: ppp implementation over GPRS Reply with quote

Hi All,

I am trying to implement PPP. I appear to be getting as far as the PAP,
but then the server just waits for about 10 seconds and disconnects
unless I 'poke' it with a request for an IP address. This suggests that
I haven't actually done enough LCP to get to the NCP phase.

Any ideas or references?

Regards
Rocky
Back to top
Didi
Guest





Posted: Wed Dec 28, 2005 9:15 am    Post subject: Re: ppp implementation over GPRS Reply with quote

I am not sure there was such a thing like "too few" LCP options (but
last time I did ppp was > year ago). If you get an IP in reply to your
request, things seem pretty much normal - the other side may well
assume a 10 seconds timeout, i.e. if you did not request (or state)
an IP address, something is assumed to have gone wrong on either side.
As for references, those I used you obviously already have
(rfc1661 1662 etc :-). Good luck with your implementaton.

Dimiter

------------------------------------------------------
Dimiter Popoff Transgalactic Instruments

http://www.tgi-sci.com
------------------------------------------------------
Back to top
Didi
Guest





Posted: Wed Dec 28, 2005 9:15 am    Post subject: Re: ppp implementation over GPRS Reply with quote

This occured to me after posting my former reply.
There can actually be "too few" LCP options - namely 0.
Both sides must have received a "configure-ack" before
you can move further form the LCP stage.

Dimiter

------------------------------------------------------
Dimiter Popoff Transgalactic Instruments

http://www.tgi-sci.com
------------------------------------------------------
Back to top
Rocky
Guest





Posted: Wed Dec 28, 2005 9:15 am    Post subject: Re: ppp implementation over GPRS Reply with quote

Didi wrote:
Quote:
I am not sure there was such a thing like "too few" LCP options (but
last time I did ppp was > year ago). If you get an IP in reply to your
request, things seem pretty much normal - the other side may well
assume a 10 seconds timeout, i.e. if you did not request (or state)
an IP address, something is assumed to have gone wrong on either side.
As for references, those I used you obviously already have
(rfc1661 1662 etc :-). Good luck with your implementaton.

Hi Didi,
thanks - I have read thru the RFCs, but I must admit was trying to hack
some code to get it going quickly. The thing is that when I do an
ethereal trace off a setup on my PC the server _offers_ its IP address
after authentication and then the PC negotiates for its IP by
requesting '0.0.0.0'. In my implementation I don't get the intial
offer. Also, because I'm on a private APN I should be getting a
specific IP, but I actually get some othe IP - as if I haven't logged
in properly. I suppose that is a major clue!

Regards - Rocky
Back to top
Rocky
Guest





Posted: Thu Dec 29, 2005 1:15 am    Post subject: Re: ppp implementation over GPRS Reply with quote

Rocky wrote:
Quote:
Didi wrote:
I am not sure there was such a thing like "too few" LCP options (but
last time I did ppp was > year ago). If you get an IP in reply to your

Hi Didi - thanks for input. The problem was that is was not doing the
ATD command correctly. ATD*99# connects using 'internal default
settings' and does not default to the setting that I had set up. I had
to change to ATD*99**ppp*1# and then I got the correct IP address.

Regards - Rocky
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB