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


Return to “Embedded target code development discussions”

Who is online

Users browsing this forum: No registered users and 0 guests