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

uart 57600 Packet loss

I use the softdevice which is s130.The code is from the demo:

static void nus_data_handler(ble_nus_t * p_nus, uint8_t * p_data, uint16_t length)
{
    for (uint32_t i = 0; i < length; i++)
    {
        while(app_uart_put(p_data[i]) != NRF_SUCCESS);
    }
//    while(app_uart_put('\n') != NRF_SUCCESS);
}

When I use the uart (which baudrate is 57600) to transmit the mass data from BLE ,i find that i always loss some bytes in an packet.

I think we have the while() in the code to make sure the packet cannot be lost.So we cannot find this situlation.But it is not.

Can you tell me why???

Parents Reply Children
No Data
Related