This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

gazell preload

Hi ,all

I have a problem in my project .I want to use gzp preload ack feature .When the host receives datas ,I would use this function "void gzp_preload_ack(uint8_t* src, uint8_t length, uint8_t pipe)" to send datas to the device .I think when the host receives datas next time the host will send out the datas in the fifo . But when I add this function ,the host couldn't receive any datas from devices .Here is my code :

if( nrf_gzll_get_rx_fifo_packet_count(UNENCRYPTED_DATA_PIPE) ) { if(nrf_gzll_fetch_packet_from_rx_fifo(UNENCRYPTED_DATA_PIPE, payload, &length)) {

  gzp_preload_ack(data0 , sizeof(data0),  UNENCRYPTED_DATA_PIPE);
 ASSERT(nrf_gzll_get_error_code() == NRF_GZLL_ERROR_CODE_NO_ERROR);
        output_present(payload[0]);
    }

} I hope I have described my problem clearly and I'm so sorry for my poor english .

Parents
  • Thank you very much . I feel very sorry for not replying you for a long time .I just want to say that I solved it .If we want to use preload ack , just putting the payload to the fifo (nrf_gzll_add_packet_to_tx_fifo) when the host is not buzy receiving packets .when the host received payloads ,the host will send itself payload to device too.

Reply
  • Thank you very much . I feel very sorry for not replying you for a long time .I just want to say that I solved it .If we want to use preload ack , just putting the payload to the fifo (nrf_gzll_add_packet_to_tx_fifo) when the host is not buzy receiving packets .when the host received payloads ,the host will send itself payload to device too.

Children
No Data
Related