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

ESB_PTX loses 1 packet of every two packets when I enable 4 channels of SAADC

Hi, 

I am using multiple channels of SAADC for monitoring some data and then I send every 20 samples of adc in a 32 packet through Radio/BLE using the esb_ptx example and saadc example in sdk17. When I configure just 2 channels everything work fine and the packets transmit without any loss. but when I configure 3 channels, 1 of every 3 packets of the esb is lost, and when I configure 4 channels, I lost 1 out of 2. I think the problem is somehow related to the priorities. my sample rate is 20kHz, I send data with 2Mbps, and the acquisition time is 10us for adc. 

Parents
  • Hello,

    I send every 20 samples of adc in a 32 packet

    Could you clarify what you mean when you say that you send 20 samples in a 32 packet? 

    When I configure just 2 channels everything work fine and the packets transmit without any loss. but when I configure 3 channels, 1 of every 3 packets of the esb is lost, and when I configure 4 channels, I lost 1 out of 2. I think the problem is somehow related to the priorities.

    Could you detail how you are initiating your sampling (are you using a timer to trigger SAMPLE_START through PPI, like in the SAADC example?)?
    It would be great if you could show the code where you are configuring and enabling the channels.

    when I configure 3 channels, 1 of every 3 packets of the esb is lost, and when I configure 4 channels

    Could you clarify what you mean when you say that packets are lost - do you mean that they are never acknowledged by the receiver?

    Could you also confirm for me that you have DEBUG defined in your transmitter's preprocessor defines, like shown in the included image? This will make a detailed error message print out if a non-NRF_SUCCESS error code is passed to an APP_ERROR_CHECK.



    Looking forward to resolving this issue together!

    Best regards,
    Karl

Reply
  • Hello,

    I send every 20 samples of adc in a 32 packet

    Could you clarify what you mean when you say that you send 20 samples in a 32 packet? 

    When I configure just 2 channels everything work fine and the packets transmit without any loss. but when I configure 3 channels, 1 of every 3 packets of the esb is lost, and when I configure 4 channels, I lost 1 out of 2. I think the problem is somehow related to the priorities.

    Could you detail how you are initiating your sampling (are you using a timer to trigger SAMPLE_START through PPI, like in the SAADC example?)?
    It would be great if you could show the code where you are configuring and enabling the channels.

    when I configure 3 channels, 1 of every 3 packets of the esb is lost, and when I configure 4 channels

    Could you clarify what you mean when you say that packets are lost - do you mean that they are never acknowledged by the receiver?

    Could you also confirm for me that you have DEBUG defined in your transmitter's preprocessor defines, like shown in the included image? This will make a detailed error message print out if a non-NRF_SUCCESS error code is passed to an APP_ERROR_CHECK.



    Looking forward to resolving this issue together!

    Best regards,
    Karl

Children
No Data
Related