USB HID Two way communications

Share code examples or discuss embedded software, including device drivers, interrupt handlers, middleware and application code.

Moderators: Markus Girdland, Mattias Norlander

Justy555
Posts: 2
Joined: Tue Sep 11, 2018 3:08 pm

USB HID Two way communications

Postby Justy555 » Tue Sep 11, 2018 3:17 pm

Hello,

I'm using the HID function ' USBD_HID_SendReport(&hUsbDeviceFS, HIDStr, bufferLength); ' to transfer data from my STM32F446 Board to a generic Linux device.
But what I can't figure out is how to be able to listen to that device.

Going through the below headers I could not find any sort of a 'Receive', 'ListenTo' or any function like that.

#include "main.h"
#include "stm32f4xx_hal.h"
#include "usb_device.h"
#include "usbd_hid.h"
#include "startup.h"
extern USBD_HandleTypeDef hUsbDeviceFS;

Is there perhaps a some sort of a hidden buffer or function for me to be able to record any replies?

Thanks

Justy555
Posts: 2
Joined: Tue Sep 11, 2018 3:08 pm

Re: USB HID Two way communications

Postby Justy555 » Thu Sep 13, 2018 1:44 pm

When trying to communicate (Send a report) from a Linux device to the Board the following error occurs:

Interrupt write error %d

johnwright
Posts: 1
Joined: Sat Oct 06, 2018 5:29 pm

Re: USB HID Two way communications

Postby johnwright » Sat Oct 06, 2018 5:37 pm

I am not being able to understand the main thing you want to ask. As far I know that it requires the endpoints for each of the direction. The input level controller is also required in the endpoints. For more information Apple iPad support


Return to “Embedded target code development discussions”

Who is online

Users browsing this forum: Bing [Bot] and 0 guests