Skip to main content
PSaba
Visitor II
Sep 12, 2019 12:26 PM UTC
Question

STM32 USB HOST for Power device USBH_HID_GetReport return

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.

This topic has been closed for replies.

2 replies

PKote.1
Visitor II
Sep 21, 2020 12:58 PM UTC

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.
Sep 21, 2020 1:43 PM UTC

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