<?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: LPC USB throughput vcom vs libusb</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-USB-throughput-vcom-vs-libusb/m-p/682745#M27470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let me know the IDE, board and device you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Soledad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jul 2017 16:19:02 GMT</pubDate>
    <dc:creator>soledad</dc:creator>
    <dc:date>2017-07-10T16:19:02Z</dc:date>
    <item>
      <title>LPC USB throughput vcom vs libusb</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-USB-throughput-vcom-vs-libusb/m-p/682744#M27469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need to send data from LPC-Link2 board over USB and read the data on PC as fast as possible. I tried two different methods based on lpcopen 2.12&lt;/P&gt;&lt;P&gt;Method1: cdc_vcom&lt;/P&gt;&lt;P&gt;Modified the example usbd_rom_cdc_vcom.&lt;/P&gt;&lt;P&gt;Pseudo code that sends data:&lt;/P&gt;&lt;P&gt;while(1) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vcom_write(buffer1, 12);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vcom_write(buffer2, 16384);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vcom_write(buffer3, 16384);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;On Windows 7 PC, use Python serial module to read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method 2: bulk transfer&lt;/P&gt;&lt;P&gt;Modified the example from usbd_rom_libusb.&lt;/P&gt;&lt;P&gt;Pseudo code that sends data:&lt;/P&gt;&lt;P&gt;while(1) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; usb_data_pipe_queue_write(buffer1, 12);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; usb_data_pipe_queue_write(buffer2, 16384);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; usb_data_pipe_queue_write(buffer3, 16384);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;On Windows 7 PC, use Python libusb1 module to read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My test result shows the throughput of Method 1 is larger than Method 2.&lt;/P&gt;&lt;P&gt;Questions about the result:&lt;/P&gt;&lt;P&gt;1. Which method is able to send the data with greater throughput? I was under the impression that Method 2 should do better. But the test result shows the opposite. Can someone please explain?&lt;/P&gt;&lt;P&gt;2. How can I further improve the throughput.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help. Thank you very much in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 22:27:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-USB-throughput-vcom-vs-libusb/m-p/682744#M27469</guid>
      <dc:creator>mtenw</dc:creator>
      <dc:date>2017-05-16T22:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: LPC USB throughput vcom vs libusb</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-USB-throughput-vcom-vs-libusb/m-p/682745#M27470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let me know the IDE, board and device you are using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Soledad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 16:19:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-USB-throughput-vcom-vs-libusb/m-p/682745#M27470</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2017-07-10T16:19:02Z</dc:date>
    </item>
  </channel>
</rss>

