Support about USB HID Receive Data from PC in nRF52840

Now, I use USB for transfer and receive data with PC. But when I use the example zephyr/samples/subsys/usb/hid : https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/subsys/usb/hid. It only have transfer data from chip to PC and not to receive. I try to many ways but it don't work. I don't read anything. 

Now, I use NCS v 2.3.0 for code and VS Code for my project.

Please so help me. 

Parents
  •  Oh, yes, this post is work for me and I can use get report but now I have a trouble. I am finding this function in NCS like ret_code_t app_usbd_hid_generic_in_report_set(app_usbd_hid_generic_t const * p_generic, const void * p_buff, size_t size) in SDK5 because I have to get report, not use  hid_int_ep_write. 

    I am converting my code from SDK5 to NRF Connect SDK so please help me. 

    Thank you Sigurd.

  • It isn't my idea. When I test, I use a tool for test bluetooth. When I click Get Feature Report, the old SDK will show the feature data but NCS don't. I used the post you send me with hid_int_ep_write

    Now, I will find the function like ret_code_t app_usbd_hid_generic_in_report_set(app_usbd_hid_generic_t const * p_generic, const void * p_buff, size_t size) in NCS. 

    Please help me. 

Reply
  • It isn't my idea. When I test, I use a tool for test bluetooth. When I click Get Feature Report, the old SDK will show the feature data but NCS don't. I used the post you send me with hid_int_ep_write

    Now, I will find the function like ret_code_t app_usbd_hid_generic_in_report_set(app_usbd_hid_generic_t const * p_generic, const void * p_buff, size_t size) in NCS. 

    Please help me. 

Children
Related