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

USBD example

Hi everyone,

I want to modify the USBD example.

In the USBD example there's a mouse but I don't have to work with a mouse.

I want to transfer data from ADC to PC. How should I modify the example to achieve this?

Thanks,

BR

Parents
  • Thanks for your answer,

    I try to explain myself better.

    Basically, I want to transmit data from the ADC of the nrf52840 to the computer. The goal is to transmit data packets in real time and therefore I think the best choice is a bulk transfer. I don't need to use a default class.

    To do this I'm starting from USB example but i'm in trouble as i don't have a mouse like in the example. I just want to take data from the ADC and send it to the PC. I have no HID device.

    I hope it is clearer now, sorry for my english but I'm sweden..

    BR

  • Hi 

    If you just want to send generic data I think the CDC example is the best place to start. 

    The CDC class is based on bulk transfer. 

    One advantage of CDC over other USB classes is that you don't need to install a USB driver on the host side, since most operating systems support CDC devices out of the box. 

    Best regards
    Torbjørn

Reply Children
Related