cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 USB HOST for Power device USBH_HID_GetReport return

PSaba
Associate

I am working on STM32F411 discovery kit configured as USB Host to a Power device.

The power device that I use is APC UPS. The task is to read various parameters of UPS over USB by the STM. 

I use USBH_HID_GetReport function call with appropriate report ID. I see the values are perfectly read when ever this function returns USBH_OK.

I am using APC Rackmount SUA750XL and SUA1000XL Models. My firmware works fine with 750XL model with USBH_OK most of the times.

However, the USBH_HID_GetReport ALWAYS returns USBH_BUSY for 1000XL UPS.

Can someone suggest what the issue could be and how to getover it.

2 REPLIES 2
PKote.1
Associate

Hi,

I am working on a same project as mentioned above. I want to read UPS Parameters over USB. Can you please share your code for my reference so it will help me further to implement.

Pavel A.
Evangelist III

Please look at the NUT project https://networkupstools.org/

They have drivers for various UPSes, there you can find the commands.

As for the low level ST library and HID examples ... for a product, you may want to use other, higher quality and better supported libraries.

-- pa