<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic USB HID host with double interface - LPC18S37 in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/USB-HID-host-with-double-interface-LPC18S37/m-p/1262086#M6881</link>
    <description>&lt;P&gt;I've been working successfully with a LPC18S37 programmed to be a USB host for a game controller. Now I've upgraded to the game controller to a newer model and found out it provides two separate interfaces (one named "joystick" and one named "mouse"), each with its own descriptor. (The attached screenshot displays how the PC sees the device).&lt;/P&gt;&lt;P&gt;In order to have it work,&amp;nbsp;I realized that I had to create two different&amp;nbsp;USB_ClassInfo_HID_Host_t interfaces, each one initialized in&amp;nbsp;EVENT_USB_Host_DeviceEnumerationComplete().&amp;nbsp;&lt;/P&gt;&lt;P&gt;However,&amp;nbsp;I'm not able to have the FW work with such a device: during some debug attempts, I was able to have one interface enumerated correctly for a very short period of time, but soon after it returned to a lower state.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me to have at least one interface working?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="USB defice with two interfaces" style="width: 417px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/142276iDA1724E6D9AF2B46/image-size/large?v=v2&amp;amp;px=999" role="button" title="Double interface HID device.png" alt="USB defice with two interfaces" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;USB defice with two interfaces&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Apr 2021 14:31:51 GMT</pubDate>
    <dc:creator>MaurizioBa</dc:creator>
    <dc:date>2021-04-14T14:31:51Z</dc:date>
    <item>
      <title>USB HID host with double interface - LPC18S37</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/USB-HID-host-with-double-interface-LPC18S37/m-p/1262086#M6881</link>
      <description>&lt;P&gt;I've been working successfully with a LPC18S37 programmed to be a USB host for a game controller. Now I've upgraded to the game controller to a newer model and found out it provides two separate interfaces (one named "joystick" and one named "mouse"), each with its own descriptor. (The attached screenshot displays how the PC sees the device).&lt;/P&gt;&lt;P&gt;In order to have it work,&amp;nbsp;I realized that I had to create two different&amp;nbsp;USB_ClassInfo_HID_Host_t interfaces, each one initialized in&amp;nbsp;EVENT_USB_Host_DeviceEnumerationComplete().&amp;nbsp;&lt;/P&gt;&lt;P&gt;However,&amp;nbsp;I'm not able to have the FW work with such a device: during some debug attempts, I was able to have one interface enumerated correctly for a very short period of time, but soon after it returned to a lower state.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me to have at least one interface working?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="USB defice with two interfaces" style="width: 417px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/142276iDA1724E6D9AF2B46/image-size/large?v=v2&amp;amp;px=999" role="button" title="Double interface HID device.png" alt="USB defice with two interfaces" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;USB defice with two interfaces&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 14:31:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/USB-HID-host-with-double-interface-LPC18S37/m-p/1262086#M6881</guid>
      <dc:creator>MaurizioBa</dc:creator>
      <dc:date>2021-04-14T14:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: USB HID host with double interface - LPC18S37</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/USB-HID-host-with-double-interface-LPC18S37/m-p/1267214#M6911</link>
      <description>&lt;P&gt;I would suggest you refer LPCOpen demo code usbd_rom_dfu_composite included in lpcopen_3_02_lpcxpresso_xpresso1837&lt;/P&gt;
&lt;P&gt;The example shows how to use USBD ROM stack to create a composite USB device.&lt;/P&gt;
&lt;P&gt;To check specific problem of a composite USB project, we suggest using USB Sniffer to get all the USB communication log files. Especially get device descriptor. Check if it is correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 09:37:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/USB-HID-host-with-double-interface-LPC18S37/m-p/1267214#M6911</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2021-04-23T09:37:50Z</dc:date>
    </item>
  </channel>
</rss>

