<?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 big transfers using composite device in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-big-transfers-using-composite-device/m-p/1313728#M45973</link>
    <description>&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;The CDC bulk transfer rate for HS I achieved is ~2.5MB/s.&lt;/P&gt;&lt;P&gt;Do you have a code example with a better rate?&lt;/P&gt;&lt;P&gt;I used the&amp;nbsp;lpcxpresso55s16_dev_composite_cdc_msc_bm example, and modified the virtual com function, so it won't echo back the input data, so the echo will not create a bottleneck.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jul 2021 11:07:12 GMT</pubDate>
    <dc:creator>embedded_eng_</dc:creator>
    <dc:date>2021-07-27T11:07:12Z</dc:date>
    <item>
      <title>USB big transfers using composite device</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-big-transfers-using-composite-device/m-p/1313291#M45969</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to implement some kind of a USB bridge using&amp;nbsp;&lt;SPAN&gt;LPC55S16-EVK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The general idea is something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MCU's&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;USB HS is connected to PC1 and USB FS is connected to PC2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I need to transfer a big file from PC1 to PC2 (up to a few hundred MB).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What is the fastest way to handle the &lt;STRONG&gt;PC1 - MCU transfer&lt;/STRONG&gt;?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried to use the generic_hid example from the sdk, but the HID packets are too small (64B max.), and it will create a bottleneck with big files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I achieve&amp;nbsp;the biggest packets? I was thinking maybe 4KB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 16:31:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-big-transfers-using-composite-device/m-p/1313291#M45969</guid>
      <dc:creator>embedded_eng_</dc:creator>
      <dc:date>2021-07-26T16:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: USB big transfers using composite device</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-big-transfers-using-composite-device/m-p/1313377#M45970</link>
      <description>&lt;P&gt;You must use Bulk. The issue is not only the packet size but also polling interval. Interrupt xfer is bounded to 125us max for HS&amp;nbsp; (1ms for FS) vs Bulk which will get to you much lower. You can easily achieve 1MB/sec on a FS connection.&amp;nbsp; With HS your bandwidth will be much higher. Set your bulk EP packet size to the max (512 bytes).&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 21:56:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-big-transfers-using-composite-device/m-p/1313377#M45970</guid>
      <dc:creator>belmontbob59</dc:creator>
      <dc:date>2021-07-26T21:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: USB big transfers using composite device</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-big-transfers-using-composite-device/m-p/1313728#M45973</link>
      <description>&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;The CDC bulk transfer rate for HS I achieved is ~2.5MB/s.&lt;/P&gt;&lt;P&gt;Do you have a code example with a better rate?&lt;/P&gt;&lt;P&gt;I used the&amp;nbsp;lpcxpresso55s16_dev_composite_cdc_msc_bm example, and modified the virtual com function, so it won't echo back the input data, so the echo will not create a bottleneck.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 11:07:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-big-transfers-using-composite-device/m-p/1313728#M45973</guid>
      <dc:creator>embedded_eng_</dc:creator>
      <dc:date>2021-07-27T11:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: USB big transfers using composite device</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-big-transfers-using-composite-device/m-p/1314017#M45978</link>
      <description>&lt;P&gt;Your example is fine. The transfer rate depends on your turnaround time on buk-out data request&amp;nbsp; (i.e. how fast you can service a bulk-out data request and re-prime the EP) but also how fast the host can service you.&lt;/P&gt;&lt;P&gt;Bulk polling is entirely host dependent .the host USB controller budgets bulk transactions based&amp;nbsp; on leftover after al other transactions have been allocated. i.e. : Bulk has the last priority in bandwidth allocation. If you have other devices on the bus with interrupt / control / iso xfers then you will get slower access time.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 16:29:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-big-transfers-using-composite-device/m-p/1314017#M45978</guid>
      <dc:creator>belmontbob59</dc:creator>
      <dc:date>2021-07-27T16:29:16Z</dc:date>
    </item>
  </channel>
</rss>

