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

BLE not sending more than 14 saadc values

Hi, i am using this program to send the data captured on 3 sensors from AIN0,1,2 to the mobile nrf toolbox application via BLE UART.

The problem is that when the sampling of event starts, it only sends 14 values. I don't understand why this is happening, i want to send around 2000 values, is it possible?

following is the code link working on sdk 11

drive.google.com/open

thanks

Parents
  • I tested your code by forcing neutralState after 2000 SAADC events, and I have no problems getting all values transferred. What happens when the transfer stops (does it only stop sending data, is the connection lost, etc.)? Have you checked any error codes in your application (for instance from the call to ble_nus_string_send)?

    Can you test by forcing neutralState after 2000 SAADC events?

    if(m_adc_evt_counter == 2000)
    {
    	neutralState = true;
    }
    
Reply
  • I tested your code by forcing neutralState after 2000 SAADC events, and I have no problems getting all values transferred. What happens when the transfer stops (does it only stop sending data, is the connection lost, etc.)? Have you checked any error codes in your application (for instance from the call to ble_nus_string_send)?

    Can you test by forcing neutralState after 2000 SAADC events?

    if(m_adc_evt_counter == 2000)
    {
    	neutralState = true;
    }
    
Children
No Data
Related