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.

RTOS/TM4C1294NCPDT: Static IP configuration and Modification in tcpEcho_EK_TM4C1294XL_TI_TivaTM4C1294NCPDT example.

Part Number: TM4C1294NCPDT

Tool/software: TI-RTOS

Respected sir,

            I am new to Networking and TCP\IP. I am trying to modify tcpEcho_EK_TM4C1294XL_TI_TivaTM4C1294NCPDT example. I want to send packets at 1 ms interval on static IP. I have done static ip settings as shown in attached image. But i am not able to communicate with my laptop and i am not able to PING also. So how to do static IP configuration so that i can ping with my laptop??

        recv(clientfd, buffer, TCPPACKETSIZE, 0)) > 0)
        bytesSent = send(clientfd, buffer, bytesRcvd, 0)
     The second question is can i use above functions wherever i want (for example in timer interrupt) by making necessary variables global.

     My objective is i want total control over code. Wherever and wherever i want i should be able to transmit and receive packets. 

Regards,

Digvijay

  • Hi,

             i have managed to configure static IP. I can ping and transmit receive  packets.  Now  i am working on  recv()  and send()  functions.

    What have found is that i can use these function only inside tcpWorker() task . I tried to use it inside timer interrupt but it was not working. I have declared necessary global variables. So what is the reason that send() is not working out side tcpWorker()??

             How can i use them outside tcpWorker() task ??

    Regards,

    Digvijay

  • You cannot do it in a Hwi or Swi. Please take a look at the NDK User Guide for guidance how to manage priorities of the NDK stack and tasks that use it.

    Todd