Adding debug message for nRF52832 CRC error?

I am using Nordic Uart Service (NUS) to transmit raw data from nRF52832 device to iPhone. But it takes longer time than I except. Can I add debug message to make sure CRC error occurred? And Does nRF52832 device re-transmit NUS data if CRC error occurred?

Parents
  • Hi,

    Looking at your previous cases I assume you are using the nRF5 SDK and SoftDevic? The SoftDevice will drop any packets with CRC error without notifying the application about it. (There is an exception though, and that is SoftDevice S122 version 8, which has an expanded QoS feature that can report CRC errors (see ble_gap_evt_qos_conn_event_report_t), but this is not supported on the nRF52832).

    If you are debugging you can instead use a sniffer to see if there are retransmissions. Other than that, you can look at the throughput or check the time between BLE_GATTS_EVT_HVN_TX_COMPLETE events to get an indication of packet loss.

Reply
  • Hi,

    Looking at your previous cases I assume you are using the nRF5 SDK and SoftDevic? The SoftDevice will drop any packets with CRC error without notifying the application about it. (There is an exception though, and that is SoftDevice S122 version 8, which has an expanded QoS feature that can report CRC errors (see ble_gap_evt_qos_conn_event_report_t), but this is not supported on the nRF52832).

    If you are debugging you can instead use a sniffer to see if there are retransmissions. Other than that, you can look at the throughput or check the time between BLE_GATTS_EVT_HVN_TX_COMPLETE events to get an indication of packet loss.

Children
Related