11 Replies Latest reply on Jul 3, 2019 1:40 AM by LuDi_2288466

    USBFS HID UPS

    LuDi_2288466

      Hi,

      I use FreeSoC2 Development Board, SparkFun’s take on the PSoC5LP ARM Cortex with two processors onboard: a CY8C5868LTI-LP039 and a CY8C5888AXI-LP096. I want configure USB Full-Speed (USBFS) component as HID Uninterruptable Power Supply Interface (UPS).

      I have attached a simply project where i have configure hid descriptor in following mode :

       

      <?xml version="1.0" encoding="utf-16"?>

      <HID_Report xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Report_Name="Batteria UPS Test">

        <Items>

          <HID_Item Type="USAGE_PAGE" Code="4" Size="1" Value="132" Desc="(Power Device)" />

          <HID_Item Type="USAGE" Code="8" Size="1" Value="4" Desc="(UPS)" />

          <HID_Item Type="COLLECTION" Code="160" Size="1" Value="1" Desc="(Application)" />

          <HID_Item Type="USAGE" Code="8" Size="1" Value="31" Desc="(FlowID)" />

          <HID_Item Type="COLLECTION" Code="160" Size="1" Value="0" Desc="(Physical)" />

          <HID_Item Type="REPORT_ID" Code="132" Size="1" Value="1" Desc="(1)" />

          <HID_Item Type="USAGE" Code="8" Size="1" Value="53" Desc="(PercentLoad)" />

          <HID_Item Type="USAGE_PAGE" Code="4" Size="1" Value="132" Desc="(Power Device)" />

          <HID_Item Type="REPORT_SIZE" Code="116" Size="1" Value="8" Desc="(8)" />

          <HID_Item Type="REPORT_COUNT" Code="148" Size="1" Value="3" Desc="(3)" />

          <HID_Item Type="LOGICAL_MINIMUM" Code="20" Size="1" Value="0" Desc="(0)" />

          <HID_Item Type="LOGICAL_MAXIMUM" Code="36" Size="2" Value="255" Desc="(255)" />

          <HID_Item Type="INPUT" Code="128" Size="1" Value="0" Desc="()" />

          <HID_Item Type="END_COLLECTION" Code="192" Size="0" Value="0" Desc="" />

          <HID_Item Type="END_COLLECTION" Code="192" Size="0" Value="0" Desc="" />

        </Items>

      </HID_Report>

       

      But when i read the report with Usb control center Cypress's tool i read all zeros. In the firmware i load and enable the specified USB data endpoint for an IN data transfer, in particular i want to send a specifical Percent Load. But it doesn't work. Why?

       

      Thanks in advance for any replies.

       

      Lucia