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: Data Upload to server using HTTP and/or FTP

Other Parts Discussed in Thread: OMAPL138

MCU: TM4C1294NCPDT

TI-RTOS: v2.01.00.03

NDK: v2.23.01.01

CCS: v6.0.1.0040

Hello,

    I want to port the enet_io example included in the Tivaware package to run in TI-RTOS environment using NDK. My main purpose of doing so is to get HTTP GET method to work in NDK driver package. I am unable to figure out how I should resolve the DNS & connect to a website to upload data in HTTP GET (or POST) method. Is any example in NDK available on the topic which demonstrates working of HTTP, FTP, SMTP etc? I have implemented embedded HTTP web server using the NDK (following a given example for Concerto) but unable to figure out a starting point for data upload to website or webserver using HTTP & FTP.

Thanks

Regards

Soumyajit

  • Soumyajit,

    I am still looking for examples, and will get back to you if I find anything to point you to…

    Scott

  • Soumyajit,

    Sorry, I haven't been able to find an example to point you to.

    Hopefully someone else on the forum will have some pointers for you...

    Regards,
    Scott

  • Hi Scott,

        Thanks for putting your valuable time for me. If currently no examples are available, then can you point me to some relevant documents that may help if I go through them?

        Currently, in my project, almost all parts are handled except LAN/Ethernet based http web access in TI-RTOS environment. The example is available in a non RTOS environment but I dont know how difficult it is to port a non RTOS code chunk to an RTOS based project.

        Can you provide some guidance or guidance document link(s) which may describe porting of code chunks from non RTOS to RTOS based projects?

    Thanks

    Regards

    Soumyajit

  • Soumyajit,

    I asked around some more, and there really doesn’t seem to be any porting documentation or example to point you to.

    But, I did receive some pointers on a couple of things:

    1) For TFTP, you should be able to add a telnet client to your example by adding this to your application .cfg file:

    var Telnet    = xdc.useModule('ti.ndk.config.Telnet');
    /* add a Telnet server */
    var telnetParams = new Telnet.Params();
    telnetParams.callBackFxn = '&ConsoleOpen';
    var telnet = Telnet.create(telnetParams);

    Once that is in the application, you should be able to telnet to your board and type “?” to see available commands.

    2) For web pages and form support, you might look at the examples in the NSP product for OMAPL138/C674x DSPs.  This package has a client example that shows GET/POST of form data.  You may be able to bring in the webpage.c and webdata folder into your Tiva application.  You’ll need to do some tweaking because there are a few C6x DSP data section directives that don’t apply for you.  But that might be a good starting point. 

    The NSP product is here: http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/ndk/nsp_1_10_02_09/index_FDS.html

    Hope this helps.

    Scott

  • Hi Scott,
    The issue have been resolved. I am currently using socket driver of NDK to access HTTP based data upload to some internet server. The codes have been copied from document "TI Network Developer's Kit (NDK) v2.21 User's guide" spru523h.pdf (page no. 55 - 57). This code is for socket operation. HTTP I have implemented following standard HTTP request format (which I implemented in some GSM modem in the past using AT commands). Currently, GET method is implemented, soon I may implement POST method too. And, eventually (as per my project's demand) I have to implement FTP & Email too.
    -
    Thanks
    -
    Regards
    Soumyajit
  • Hi.

    Do you know if there's the possibility to have an FTP example for TIVAC129 ?

     

    Regards,

    Marco

  • Hi Marco,
    Even I am searching for the same & don't think I'll get it soon. So, for the time being, I will attempt to implement the protocol myself. Till now, my small tests on connecting to an FTP server over TCP/IP socket have failed. Will try implementing the same soon.
    --
    Thanks
    --
    Regards
    Soumyajit