lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Re: lwip-users Digest, Vol 11, Issue 4


From: 张鹏
Subject: Re: [lwip-users] Re: lwip-users Digest, Vol 11, Issue 4
Date: Fri, 9 Jul 2004 13:59:43 +0800

Felix,您好!

        can you send your gprs-ppp source code?

======= 2004-07-08 17:05:08 您在来信中写道:=======

>Hi Mike,
>
>For starters, I modified "sio_open(int devnum)" in "src\ecos\sio.c", so that
>it connects to my GPRS ISP provider, and sleeps a while before continuing..
>I think a connection is established, but I am not 100% sure.
>
>I have enabled the debug and statistics, but the debug messages don't states
>the IP assigned from the ISP.
>
>Where can I find the IP - so I can test with ping from my windows host.
>
>Thanks
>Felix
>
>
>What I did - for starters -
>
>
>> I don't have an example that I can show you but it's not really that
>> complicated. I'm going to assume that you have lwip all set up and ready
>to
>> go; in other words, you have all the sysarch, lwipopts, and sio stuff in
>> working order. If that is the case, there a four routines that you should
>> take a look at in ppp.c:
>>
>> pppInit() - Call this once when you system starts. I call this from my
>> sys_init() routine.
>> pppSetAuth() - Use this to set a user name and password for PAP or CHAP,
>if
>> you have either of them enabled (look in your lwip opts files).
>> pppOpen() - Creates a new thread and tells it to start PPP. This new
>thread
>> will let you know what's going on with the PPP connection via the callback
>> that you must specify for the first argument.
>> pppClose() - Brings down the PPP link and ends the PPP thread.
>>
>> You should be able to ignore just about everything else, unless you need
>to
>> do some debugging. Anyway, this is basically what you need to do:
>>
>> 1. Initialize your system and lwip (including pppInit()).
>> 2. Open your comm port.
>> 3. Dial your modem and wait for it to connect.
>> 4. call pppSetAuth() and pppOpen().
>> 5. wait for PPP to tell you it is open (or if it failed for whatever
>reason).
>> 6. now you should be on-line. do your thing.
>> 7. call pppClose and close your comm port.
>>
>> That should get you started. Just make sure you read and understand
>exactly
>> what those four routines (the ones i outlined above) are doing.
>>
>>
>> Mike
>>
>>
>> At 07:09 PM 03/07/2004, you wrote:
>> >Hi
>> >
>> >I am trying to get lwIP with PPP up and running on my ARM devboard. Does
>> >anyone have some working PPP examples?
>> >
>> >Thanks
>> >Felix
>> >
>> >
>> >_______________________________________________
>> >lwip-users mailing list
>> >address@hidden
>> >http://lists.nongnu.org/mailman/listinfo/lwip-users
>>
>>
>>
>>
>>
>> ------------------------------
>>
>> _______________________________________________
>> lwip-users mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/lwip-users
>>
>> End of lwip-users Digest, Vol 11, Issue 4
>> *****************************************
>
>
>
>_______________________________________________
>lwip-users mailing list
>address@hidden
>http://lists.nongnu.org/mailman/listinfo/lwip-users
>
>

= = = = = = = = = = = = = = = = = = = =
                        

        致
礼!
 
                                 
        张鹏
address@hidden
          2004-07-09


reply via email to

[Prev in Thread] Current Thread [Next in Thread]