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

collecting data in EPOUT0 nRF52840 USB

To the kind attention of Nordic,

I'm studying the code in SDK 15.2 examples/peripheral/usbd/pca10056/blank/ses.
May please I ask more infos about the comment you put in the code:
/* NOTE: No EPOUT0 data transfers are used.
* The code is here as a pattern how to support such a transfer. */

My question is:
when working with the mentioned project I can get the usbd_setup_SetFeature routine run
when the SetFeature Report transaction is going on, but it seems the only info about data
that I can retrieve is their length.
Where is the actual data that operating system has been sending towards the nRF52840 device during
the SetFeature Report transition?

Do I need to enable this feature doing some configuration that it is not done in
the mentioned project (for example, I'd say to associate a memory buffer for collecting data
meant for enpoint 0 out?)

May I please have any guide line about that?
I'm doing a porting from nRF24 to nRF52840, and the SetFeature Report mechanism had been
adopted in order to send runtime configuration data from the host PC to the dongle device.

Hope my question is clear, feel free to ask me to add any other informations that you need
to reply the best. Thank you for your work and your kindness

Parents
  • Hi,

     

    The function usbd_setup_SetFeature() is for things like remote wakeup etc. The data itself is a 8 byte packet, with format shown in nrfx_usbd.h::nrfx_usbd_setup_t.

    Are you looking for "HID Feature Request"? This is unfortunately not implemented in app_usbd_hid.c for both set and get feature request.

     

    Kind regards,

    Håkon

  • Thanks Håkon Alseth for replying. Is there a USB project that you recommend to study having this HID Feature Request implemented? I've read that the keyboard project

    SDK/examples/peripheral/usbd_hid_composite

    enable the nRF52840 devboard to receive infos through USB to update the LED status of the keyboard. Is it that project that I should study, perhaps. And what do you recommend in order to test it in a quick way? Is there some USB tool that I can use to do quick tests and send USB data to endpoint out 0? Thanks for your kindness 

Reply
  • Thanks Håkon Alseth for replying. Is there a USB project that you recommend to study having this HID Feature Request implemented? I've read that the keyboard project

    SDK/examples/peripheral/usbd_hid_composite

    enable the nRF52840 devboard to receive infos through USB to update the LED status of the keyboard. Is it that project that I should study, perhaps. And what do you recommend in order to test it in a quick way? Is there some USB tool that I can use to do quick tests and send USB data to endpoint out 0? Thanks for your kindness 

Children
Related