app_usbd_cdc_acm_write takes more time to transfer

Hi team,

I'm streaming the sensor data through USB (using hterm) every 2.5ms.

i have configures USB as CDC and using virtual COM port.

In each iteration, i transfer 87 to 95 bytes which varies based on data.

The issue i'm facing is that sometimes app_usbd_cdc_acm_write() takes 153us and sometimes it takes 214us and rarely it takes 30ms to complete the transfer.

Completing the transfer i mean to receive APP_USBD_CDC_ACM_USER_EVT_TX_DONE event.

 app_usbd_cdc_acm_write() never returns any error code.

Could you help me understand why this time difference in transfer and how could i resolve it?

Parents Reply Children
No Data
Related