2019-09-12 05:26 AM
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.
2020-09-21 05:58 AM
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.
2020-09-21 06:43 AM
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