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.

CC1312R: Contiki-NG: PT_WAIT_UNTIL() does not return

Part Number: CC1312R

Hi,

I got a question from my customer about PT_WAIT_UNTIL() usage.

They wants to send data to specified node, then wait until ACK returns.
PT_WAIT_UNTIL() function is used like below codes, but the function does not return.

        /*** Radio tx/rx ***/
        radio_mode = 0;                 // Unicast Mode  
        radio_flag = 1;                 // Send(TX)
        radio_rx_flag = 0;              // Receive(RX)
        process_poll(&udp_unicast_process);
        etimer_set(&et, (5 * CLOCK_SECOND));
//        process_post(&udp_unicast_process, PROCESS_EVENT_SEND, s_tTxRadioData);
        PT_WAIT_UNTIL(pt, 1 == radio_rx_flag || etimer_expired(&et));

Customer thought either raio_rx_flag or etimer condition is met, the PT_WAIT_UNTIL() returns.
They confirmed both conditions are met.
Is there any reason or condition PT_WAIT_UNTIL() does not return?

Please let me know if you need more information from customer.

Thanks and regards,
KoT