Part Number: MSP432E401Y
Other Parts Discussed in Thread: MSP-EXP432E401Y
Hi,
I am using MSP-EXP432E401Y launchpad. I can not find any code for ping to server in SDK. can any one help me to get ping code?
I am using sdk version 2.30.00.14.
Dinkar
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.
Part Number: MSP432E401Y
Other Parts Discussed in Thread: MSP-EXP432E401Y
Hi,
I am using MSP-EXP432E401Y launchpad. I can not find any code for ping to server in SDK. can any one help me to get ping code?
I am using sdk version 2.30.00.14.
Dinkar
Hello Dinkar,
This is possible but the process is a little bit involved.
The file ./source/ti/ndk/tools/console/conping.c has the necessary functions to replicate "ping" functionality.
I followed the steps below and was able to successfully ping my laptop.
#include <ti/ndk/inc/netmain.h> #include <ti/ndk/inc/_stack.h>
#include "console.h"
#include <ti/display/Display.h> extern Display_Handle display;
Note that the above steps allows only entering the IP address. You could resolve the IP address of the URL (www.google.com in this case) using the "ping" utility on your PC (for example by typing "ping <URL>" on Windows command prompt) and using that IP address to pass as a parameter to the Ping function mentioned above.
Thanks,
Sai
**Attention** This is a public forum