AnsweredAssumed Answered

How to stop RTCS_ping() while awaiting ICMP echo reply before the TIMEOUT expires

Question asked by Bing Li on Mar 10, 2017
Latest reply on Mar 27, 2017 by Bing Li


hello


I'm using MQX 4.2.0.2 RTCS_ping() on FRDM-K64F.

I created a PING task using RTCS_ping() to regularly check the network.
And I know it will block the PING task while await ICMP echo reply.


Now the situation is,
After RTCS_ping() be executed, while awaiting ICMP echo reply before the TIMEOUT expires,
in some cases, PING task needs to be restart using _task_restart() by the MAIN task.
Although the return value of _task_restart() is MQX_OK,
in fact, PING task doesn't work after 'restart'.


Does anyone know how to stop the wait of ICMP echo reply before the TIMEOUT expires?

Thanks.

Outcomes