Skip to main content
Visitor II
September 12, 2019
Question

STM32 USB HOST for Power device USBH_HID_GetReport return

  • September 12, 2019
  • 2 replies
  • 1191 views

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

    Visitor II
    September 21, 2020

    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.

    Super User
    September 21, 2020

    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