This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

NDK - PPP Serial Client Examples



Hello I am looking for an example of how to implement the PPP protocol from within the NDK using a serial port.

These used to exist with the NDK release, but the NDK manual now says examples no longer included with NDK, it doesn't say where they are now.

I have got the PPP appendix from the NDK users manual but really want an example so I can see about how to use with my Stellaris LM3S9D92 processor.

  • Hi,

    The NDK examples and drivers are not shipped separately in the NDK support packages (NSP) products.  However, I believe the latest PPP example you will find is in an older version of the NDK - NDK 2.0.0.

    There are serial client and router examples that use PPP over a serial connection in that release.  The examples are BIOS 5.x based.

    You can download NDK 2.0.0 here:

        http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ndk/2_00_00/index_FDS.html

    The examples are found here:

        ndk_2_0_0\packages\ti\ndk\example\serial

    Steve

  • Sorry for delay in Answer.

     

    Thanks for that, now have the examples.

    Any idea why they are no longer provided with the current NDK.

    I need PPP for my application and need to ensure it will still be supported in future releases, otherwise need to consider other options.

  • The NDK now only ships the core stack libraries.  It still ships PPP/PPPoE supported libraries.

    The examples were moved out of the NDK and are now provided/supported by various SDK products for the hardware featured in the SDK.  The SDK owners/developers get to choose the NDK examples that they think will be useful to the typical customer.  This may or may not include the serial examples.

    The last product that I know of that shipped the serial examples was the NDK 2.0.0 itself (that I pointed to above).  (This was before the examples were factored out of the NDK)

    Have you seen the TI-RTOS product?  This product is the SDK that you would want for your Stellaris LM3S9D92 board.  While TI-RTOS doesn't ship examples for PPP/PPPoE, it does ship TCP/IP examples. 

    I would suggest downloading TI-RTOS and working with the tcpEcho example in that product (You would want to use the LM3S9D96 example, it's virtually the same as your D92 board).  This example will show how to incorporate the NDK, drivers and SYS/BIOS into an app.  You can download it here:

    http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/tirtos/index.html

    Then, using that example as a starting point, you could bring in the PPP/PPPoE components of the example found in NDK 2.0.0.

    Steve

  • Thanks for the response Steven

    I am actually using TI-RTOS.

    My board has both an ethernet port and a3G wireless module hence the need for a stack that supports PPP.

    As the TI-RTOS didn't include PPP examples but the older NDK  examples did I was concerned that maybe PPP was no longer a priority.

    Hence I was just wanting to make sure TI aren't looking at removing PPP from TI-RTOS network stack.

  • Barry:

    I am the TI-RTOS product manager. I would be interested in a few more details on your application and in which scenarios MCU applications will need PPP and PPPoE. I am guessing the modem scenario you are facing is the main/only one but would appreciate your perspective. I had been inclined to think that PPP/PPPoE would not be used often in MCUs with on-chip EMACs and the rise of wifi chips for MCUs like our CC3000.

    Thanks,

    Nick

  • Hello Nick

     

    Sorry for delay in answer, been away on site.

    The application we have uses LAN as a primary communications link and 3G wireless as a secondary link in case of failure of the LAN.

    This means we need to use the IP STack to the on chip Ethernet controller plus the IP stack via PPP on the 3G link (3G Modem connects via USB and is effectively a serial port).

    We do not need to use PPPOE.

    Our requirement needs secondary link via completely different path to meet availability requirements

    I hope this clarifies for you

    Regards

    Barry

  • I am also interested in this topics. Would you please teach me your status?
    Could you be porting the PPP on TI-RTOS?

    Best regards.
    Kaka
  • Hello Kaka

    I don't know Ti roadmap for PPP but it is definitely available in the NDK and simply need you to compile the library for you to use it.

    I am using tirtos_tivac_2_16_00_08 and this NDK version ndk_2_25_00_09 definitely has the PPP.

    I have used PPP for over 2 years now with no issues.  My initial problem was finding examples.  These are some of these in the older projects, not sure exactly which ones as once I got it all working I haven't changed anything and haven't needed to look further.  I have upgraded my NDK a number of times over the last 2 years and each time just needed to rebuild the NDK and PPP was once again available.

    Regards

    Barry

  • Just chiming in here ... TI-RTOS now ships with a PPP example (tcpEchoPPP). You can find it next to the other TI-RTOS examples in CCS's Resource Explorer.

    This example is for Tiva only.

    Steve