<?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>LPC MicrocontrollersのトピックRe: USBHID driver packet send fails when multiple message sent on one endpoint</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USBHID-driver-packet-send-fails-when-multiple-message-sent-on/m-p/1267400#M44765</link>
    <description>&lt;P&gt;Hello Vishal_Panchal,&lt;/P&gt;
&lt;P&gt;Yes, it is correct to implement a queue to handled these individual transfer requests as to make sure that the subsequent transfer begings only after the previous one is done.&lt;/P&gt;
&lt;P&gt;There may be several ways to implement this. A relayed topic was covered, for example, on the following thread.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/MCUXpresso-SDK/K22-USB-device-CDC-and-HID-problem/m-p/817565" target="_blank"&gt;https://community.nxp.com/t5/MCUXpresso-SDK/K22-USB-device-CDC-and-HID-problem/m-p/817565&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I hope that this helps!&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Gustavo&lt;/P&gt;</description>
    <pubDate>Fri, 23 Apr 2021 16:56:44 GMT</pubDate>
    <dc:creator>gusarambula</dc:creator>
    <dc:date>2021-04-23T16:56:44Z</dc:date>
    <item>
      <title>USBHID driver packet send fails when multiple message sent on one endpoint</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USBHID-driver-packet-send-fails-when-multiple-message-sent-on/m-p/1260960#M44621</link>
      <description>&lt;P&gt;While sending more than one packet on same endpoint using&amp;nbsp;USB_DeviceHidSend(), sometimes packet is not sent out on USB.&lt;BR /&gt;&lt;BR /&gt;While, as per description of USB_DeviceHidSend(),&amp;nbsp;&lt;BR /&gt;&amp;nbsp;" Currently, only one transfer request can be supported for one specific endpoint. If there is a specific requirement to support multiple transfer requests for one specific endpoint, the application should implement a queue in the application level. The subsequent transfer could begin only when the previous transfer is done (get notification through the endpoint callback). "&lt;BR /&gt;&lt;BR /&gt;So, I have implement a queue based on ringbuffer to store the packets. And I am sending those stored packets whenever I receive the response kUSB_DeviceHidEventSendResponse via USB_DeviceHidInterruptIn.&lt;BR /&gt;&lt;BR /&gt;Is it correct implementation to avoid usbhid packet send failure?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 04:52:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USBHID-driver-packet-send-fails-when-multiple-message-sent-on/m-p/1260960#M44621</guid>
      <dc:creator>Vishal_Panchal</dc:creator>
      <dc:date>2021-04-13T04:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: USBHID driver packet send fails when multiple message sent on one endpoint</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USBHID-driver-packet-send-fails-when-multiple-message-sent-on/m-p/1267400#M44765</link>
      <description>&lt;P&gt;Hello Vishal_Panchal,&lt;/P&gt;
&lt;P&gt;Yes, it is correct to implement a queue to handled these individual transfer requests as to make sure that the subsequent transfer begings only after the previous one is done.&lt;/P&gt;
&lt;P&gt;There may be several ways to implement this. A relayed topic was covered, for example, on the following thread.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/MCUXpresso-SDK/K22-USB-device-CDC-and-HID-problem/m-p/817565" target="_blank"&gt;https://community.nxp.com/t5/MCUXpresso-SDK/K22-USB-device-CDC-and-HID-problem/m-p/817565&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I hope that this helps!&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Gustavo&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 16:56:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USBHID-driver-packet-send-fails-when-multiple-message-sent-on/m-p/1267400#M44765</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2021-04-23T16:56:44Z</dc:date>
    </item>
  </channel>
</rss>

