Tool/software: Code Composer Studio
Hi,
I'm wondering where can I find an example to ping IP device over the IP network using the NDK.
currently, I'm using tirtos_tivac_2_16_01_14
Thanks,
Mohammed
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.
Tool/software: Code Composer Studio
Hi,
I'm wondering where can I find an example to ping IP device over the IP network using the NDK.
currently, I'm using tirtos_tivac_2_16_01_14
Thanks,
Mohammed
Hi,
Ping operates by sending ICMP echo request packet to the target host and waiting for an ICMP echo reply.. Please refer to the ICMPGenPacket in C:\ti\tirtos_tivac_2_16_00_08\products\ndk_2_25_00_09\packages\ti\ndk\stack\icmp.c file.
In the below post, Steven Connell shows an example of using the function.

I checked the post made by Steven Connell which is a trial to debug part of the NDK and isn't my case, so this isn't an example.
Anyway, I'm still don't know how can I trigger/receive the ICMP packet using the NDK from my application.
Please advise!
Any real help will be appreciated!
Thanks,
Mohammed
I found another similar question asked in this post.

You can reference the ping request API in C:\ti\tirtos_tivac_2_16_00_08\products\ndk_2_25_00_09\packages\ti\ndk\tools\console\conping.c