<?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 Re: USB HID input reports(response to host) corrupted with String descriptor responses in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-HID-input-reports-response-to-host-corrupted-with-String/m-p/1268057#M44779</link>
    <description>&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;Yes packets are from same device. Endpoint 0x81-IN responds.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached image , in that highlighted 127 length packet is malformed packet. It should be of 287 bytes. And in that I have highlighted data (starting from idx:0x53, i.e 123456Z123456) which is actually our customize string descriptor value.&lt;/P&gt;&lt;P&gt;So the string descriptor value merged with input reports and packet corrupted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding to that our host application sending "STRING descriptor request" at every 100ms. During issue i can see that input report response is in progress and in between string descriptor request received.&lt;/P&gt;&lt;P&gt;We have ported USB driver from SDK-2.8.0. Is there any major difference between 2.8.0 &amp;amp; 2.9.0?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul Shah&lt;/P&gt;</description>
    <pubDate>Mon, 26 Apr 2021 09:34:31 GMT</pubDate>
    <dc:creator>rahulshah</dc:creator>
    <dc:date>2021-04-26T09:34:31Z</dc:date>
    <item>
      <title>USB HID input reports(response to host) corrupted with String descriptor responses</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-HID-input-reports-response-to-host-corrupted-with-String/m-p/1267071#M44757</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are using the LPC55S28 controller and port USB-HID driver from 2.8.0 SDK "dev_hid_generic_bm" example code. We are using USB0 at Full speed.&lt;/P&gt;&lt;P&gt;In that we are seeing issue during communication with host. In wireshark logs we can see that HID endpoint response (input reports) contain string descriptor responses and due to that&amp;nbsp; response packets having malformed data.&lt;/P&gt;&lt;P&gt;Here i have attached wireshark logs.&lt;BR /&gt;In logs packet number #210861 contain 1050 bytes of input request from host. On that request device need to send 4 responses of 287 bytes. Packet number #210871, #210889, #210905, #210921 is the responses and that packet and responses are proper.&lt;/P&gt;&lt;P&gt;Same way device receives another request in #210933 packet. In between process of responses another string descriptor request received. Because of that HID response (packet number #210945, size 189 bytes instead of 287 bytes) is malformed and contains string descriptor response.&lt;/P&gt;&lt;P&gt;Is there any issue in driver code, by which control and data endpoint responses merged and make it corrupted?&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Rahul Shah&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 06:35:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-HID-input-reports-response-to-host-corrupted-with-String/m-p/1267071#M44757</guid>
      <dc:creator>rahulshah</dc:creator>
      <dc:date>2021-04-23T06:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: USB HID input reports(response to host) corrupted with String descriptor responses</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-HID-input-reports-response-to-host-corrupted-with-String/m-p/1268035#M44775</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-I lia-component-message-view-widget-author-username"&gt;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" style="color: #333f48;" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/130200" target="_self"&gt;&lt;SPAN class=""&gt;rahulshah,&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-I lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;Sorry I haven't wireshark, so can't open your attachment.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-I lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;Dose the packets&amp;nbsp; your said all from the same device? From the information wireshark support, can you &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-I lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;find which endpoint responds.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-I lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;And how about the demo "dev_hid_generic_bm" under SDK v2.9 ? Dose it can work well on you side?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-I lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;BR&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-I lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;Alice&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 09:07:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-HID-input-reports-response-to-host-corrupted-with-String/m-p/1268035#M44775</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-04-26T09:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: USB HID input reports(response to host) corrupted with String descriptor responses</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-HID-input-reports-response-to-host-corrupted-with-String/m-p/1268057#M44779</link>
      <description>&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;Yes packets are from same device. Endpoint 0x81-IN responds.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached image , in that highlighted 127 length packet is malformed packet. It should be of 287 bytes. And in that I have highlighted data (starting from idx:0x53, i.e 123456Z123456) which is actually our customize string descriptor value.&lt;/P&gt;&lt;P&gt;So the string descriptor value merged with input reports and packet corrupted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding to that our host application sending "STRING descriptor request" at every 100ms. During issue i can see that input report response is in progress and in between string descriptor request received.&lt;/P&gt;&lt;P&gt;We have ported USB driver from SDK-2.8.0. Is there any major difference between 2.8.0 &amp;amp; 2.9.0?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul Shah&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 09:34:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-HID-input-reports-response-to-host-corrupted-with-String/m-p/1268057#M44779</guid>
      <dc:creator>rahulshah</dc:creator>
      <dc:date>2021-04-26T09:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: USB HID input reports(response to host) corrupted with String descriptor responses</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-HID-input-reports-response-to-host-corrupted-with-String/m-p/1270835#M44863</link>
      <description>&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;I have compared SDK-29.1 with SDK-2.8.0 and integrate USB related difference in our code. Still facing the same issue.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul Shah&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 12:14:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-HID-input-reports-response-to-host-corrupted-with-String/m-p/1270835#M44863</guid>
      <dc:creator>rahulshah</dc:creator>
      <dc:date>2021-04-30T12:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: USB HID input reports(response to host) corrupted with String descriptor responses</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-HID-input-reports-response-to-host-corrupted-with-String/m-p/1270895#M44866</link>
      <description>&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;Adding to that , i have add debugs and printed the endpoint number, Length &amp;amp; Buffer address in "USB_DeviceLpc3511IpEndpointPrime" function before adding to the command status list "epCommandStatusList", and all are proper. Buffer adresses are as below:&lt;/P&gt;&lt;P&gt;for string descriptor response&amp;nbsp; : buffer address : &amp;lt;s_SetupAndEpReservedData + 64&amp;gt;&lt;/P&gt;&lt;P&gt;for data response send : buffer address :&amp;nbsp;&amp;lt;s_SetupAndEpReservedData+192&amp;gt; /&amp;nbsp;&amp;lt;s_SetupAndEpReservedData+256&amp;gt;&lt;/P&gt;&lt;P&gt;So actually filling of data in command/status list is proper. But somehow after that it may modified in USB driver and shown as corrupted (size and content not as per what we have send) when sending.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul Shah&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 14:15:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-HID-input-reports-response-to-host-corrupted-with-String/m-p/1270895#M44866</guid>
      <dc:creator>rahulshah</dc:creator>
      <dc:date>2021-04-30T14:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: USB HID input reports(response to host) corrupted with String descriptor responses</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-HID-input-reports-response-to-host-corrupted-with-String/m-p/1271306#M44877</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Adding more information, In our software we have configured CPU system clock to 12MHz.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul Shah&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 14:26:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-HID-input-reports-response-to-host-corrupted-with-String/m-p/1271306#M44877</guid>
      <dc:creator>rahulshah</dc:creator>
      <dc:date>2021-05-03T14:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: USB HID input reports(response to host) corrupted with String descriptor responses</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-HID-input-reports-response-to-host-corrupted-with-String/m-p/1273617#M44931</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello Rahul Shah,&lt;/P&gt;
&lt;P&gt;I download the project on run it on my side, it seems there is no issue:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1620379922745.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/144207iCF0F2B0AB944709E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1620379922745.png" alt="Alice_Yang_0-1620379922745.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And frankly speaking, I know little about wireshark.&lt;/P&gt;
&lt;P&gt;I think you can refer to readme to run this demo, check whether&amp;nbsp; there is function issue on your side,&lt;/P&gt;
&lt;P&gt;I attached it for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 09:35:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-HID-input-reports-response-to-host-corrupted-with-String/m-p/1273617#M44931</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-05-07T09:35:11Z</dc:date>
    </item>
  </channel>
</rss>

