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

nRF52840 USB Bulk data transfer using CDC-Data interface

Hi,

I'm trying to send and receive data to DATA interface that contains IN and OUT bulk endpoint (usbd_cdc_acm example). I'm using libusb on the PC side. It seems like I can open the device but I can't read or write from/to endpoints.

How can I use  DATA interface of the usbd_cdc_acm example to do bulk data transfers? Or is there another example that I can use for bulk data transfer using these DATA endpoints?

Thank you and Best Regards,

Asli

Parents
  • I do not think that is possible because the OS likely enumerate the device as a serial port, then it is used by the system, I believe it will be the same with mass storage devices and human interface devices. Instead have you considered write input and output data over the serial port? 

    Best regards,
    Kenneth

  • I need to transfer data faster than serial port speed.

    I have few questions below.Can you please help?

    1. I started to modify the usbd example instead and I'm trying to do data transfers in between endpoints, thinking that this would be faster. Is this correct?

    2.Which usb driver functions should I use for endpoint data transfer?

    3. What configuration would provide the highest data rate? I think MSD class is suggested for this but is BULK endpoint data rate with MSD class faster than BULK endpoint data rate of a CDC-Data class?

    Thank you and Regards,

    Asli

Reply
  • I need to transfer data faster than serial port speed.

    I have few questions below.Can you please help?

    1. I started to modify the usbd example instead and I'm trying to do data transfers in between endpoints, thinking that this would be faster. Is this correct?

    2.Which usb driver functions should I use for endpoint data transfer?

    3. What configuration would provide the highest data rate? I think MSD class is suggested for this but is BULK endpoint data rate with MSD class faster than BULK endpoint data rate of a CDC-Data class?

    Thank you and Regards,

    Asli

Children
No Data
Related