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.

How can in the NDK of TI-RTOS , when the program is running at any time to change the IP address?

Hi  all

MCU: TM4C1294NCPDT

TI-RTOS: v2.01.00.36

NDK: v2.23.01.01

CCS: v6.0.1.0040

SYS/BIOS    6.4..02.27  GA  Release  Note

Hello,

    In  the  udpEcho_TivaTM4C1294NCPDT  example (TI-RTOS  for TivaC), the IP address of the board is set in the .cfg configuration file as indicated in the below lines:

Ip.address = "192.168.1.2";
Ip.mask = "255.255.255.0";
Ip.gatewayIpAddr = "192.168.1.2";

    But how can I change these properties during run time? In my application, I have to give control to the user who can set these parameters as he wants.

1,I have seen the link (http://e2e.ti.com/support/embedded/tirtos/f/355/p/383828/1358215#1358215),But I do not know whether networkOpenHook in NDK hook in my program when the process is running, can  I  wake it up at any time can run it?

2,In this link (http://e2e.ti.com/support/embedded/tirtos/f/355/p/221215/778867#778867), I do not see why not use the NDK hook "Network IPAddr hook" instead of "Stack begin hook "for 'readIPAddr ()'?

3,In the course of the program is running, I want to be able to change the IP address at any time through the the NMS and not just when it starts to change the IP address. Can I how to achieve this functionality?

I'm looking forward to your reply.

Thanks

Lewis