USBFS HID UPS

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
LuDi_2288466
Level 2
Level 2
10 replies posted 5 replies posted 5 questions asked

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

0 Likes
1 Solution
NoriTan
Employee
Employee
25 sign-ins 5 questions asked 10 sign-ins

I have captured USB transfers with WIRESHARK and confirmed that the interrupt in transfers are sent every 0.5sec and its content is alternately changed [00 02 00] and [00 01 01]

GS004272.png

GS004273.png

GS004274.png

It was ensured that  the interrupt in transfers are sent as described in the firmware.

Regards,

Noriaki

View solution in original post

0 Likes
11 Replies