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

BLE_ADC SAADC sampling rate

Hello!

USing help from this forum i have successfullz transmitted adc value from one pin of AIN# to ble and reasing values successfullz but now i am facing an issue that when iever i change adc sample rat time from 250 to other lower vaalue to increase sample rat like if i write 2 that is 1/2ms will be 500hz but it gives onlz 10 to 15 ereadings it then app gives an error of gatt connection timeout 0x08 .Can someone help me with this how to set sampling rate at 500 or 1000 hz.

Thanks.

Parents
  • when i change SAADC_SAMPLE_RATE  to 2 it gives me error 8 : gatt connection timeout in nrf connect app .Whereas it sends on uart serial monitor data completely fine but break ble connection.I want to set sample rate to 2 but i dont know what i am doing wrong.

  • faizan12 said:
    Whereas it sends on uart serial monitor data completely fine but break ble connection.I want to set sample rate to 2 but i dont know what i am doing wrong.

    This is useful information, thanks.

    faizan12 said:
    when i change SAADC_SAMPLE_RATE  to 2 it gives me error 8 : gatt connection timeout in nrf connect app .

    Are you using nRF Connect application for Android or iOS?
    I see from some earlier, similar tickets that this problem seems to resolve if you increase the MIN_ and MAX_ connection interval.
    Could you attempt to set MIN_CONN_INTERVAL to 15, and MAX_CONN_INTERVAL to 100 ms, and see if this resolves the issue?

    If this does not work, could you provide the log from the device when this error occurs?

    Best regards,
    Karl

Reply
  • faizan12 said:
    Whereas it sends on uart serial monitor data completely fine but break ble connection.I want to set sample rate to 2 but i dont know what i am doing wrong.

    This is useful information, thanks.

    faizan12 said:
    when i change SAADC_SAMPLE_RATE  to 2 it gives me error 8 : gatt connection timeout in nrf connect app .

    Are you using nRF Connect application for Android or iOS?
    I see from some earlier, similar tickets that this problem seems to resolve if you increase the MIN_ and MAX_ connection interval.
    Could you attempt to set MIN_CONN_INTERVAL to 15, and MAX_CONN_INTERVAL to 100 ms, and see if this resolves the issue?

    If this does not work, could you provide the log from the device when this error occurs?

    Best regards,
    Karl

Children
No Data
Related