<?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: Two questions regarding the virtual serial device (nxpusblib, lpc1788) in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Two-questions-regarding-the-virtual-serial-device-nxpusblib/m-p/523682#M6318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TKoe on Mon Jul 09 06:39:14 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Nevermind, I guess I figured it out... the EchoCharacter function will always just send back a single character. Changing the example to a more usable version changed that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Luckily, that leaves only the question with the speed of the connection. Can anyone answer that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:45:18 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:45:18Z</dc:date>
    <item>
      <title>Two questions regarding the virtual serial device (nxpusblib, lpc1788)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Two-questions-regarding-the-virtual-serial-device-nxpusblib/m-p/523679#M6315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TKoe on Mon Jul 09 05:58:26 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to NXP uCs (and ARM processors in general) and to USB, so I was trying to use the VirtualSerialDevice example from the current version of nxpusblib.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Compiling and programming went well and (after installing the driver) I do have a virtual serial port available in HTerm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;However when I sent any byte of data I got a not ending stream of reply data. I fixed that with the small patch from Vu Nguyen (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Flpcware.com%2Fcontent%2Fforum%2Fnxpusblib-dualvirtualserial-example%23comment-1419" rel="nofollow" target="_blank"&gt;http://lpcware.com/content/forum/nxpusblib-dualvirtualserial-example#comment-1419&lt;/A&gt;&lt;SPAN&gt;). Now I can send single bytes just fine and get the correct response. But when sending multiple bytes I get wrong data back (e.g. sending "123", receiving "11").&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How would I fix that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also I have a general question about the baud rate. It didn't seem to matter which baud rate setting I chose in HTerm. Everything worked like above. From 300 baud to 15 Mbaud (which is faster than Full-Speed USB). Also I can't seem to find a setting for that in the nxpusblib.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation (or at least the parts that I read) didn't say anything about that either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone explain how I can set the actual speed of that port? And what is the maximum possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:45:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Two-questions-regarding-the-virtual-serial-device-nxpusblib/m-p/523679#M6315</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Two questions regarding the virtual serial device (nxpusblib, lpc1788)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Two-questions-regarding-the-virtual-serial-device-nxpusblib/m-p/523680#M6316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fjarnjak on Mon Jul 09 06:05:49 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post relevant sections of your code which you use for setup &amp;amp; sending?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:45:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Two-questions-regarding-the-virtual-serial-device-nxpusblib/m-p/523680#M6316</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Two questions regarding the virtual serial device (nxpusblib, lpc1788)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Two-questions-regarding-the-virtual-serial-device-nxpusblib/m-p/523681#M6317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TKoe on Mon Jul 09 06:18:28 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't change a thing from the nxpusblib example (except for that patch).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But if it helps you, here's the example C file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But now I noticed that in the example there's a commented line (95):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//CDC_Device_USBTask(&amp;amp;VirtualSerial_CDC_Interface);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It flushes the send-buffer, so I guess it's okay that it's commented out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:45:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Two-questions-regarding-the-virtual-serial-device-nxpusblib/m-p/523681#M6317</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Two questions regarding the virtual serial device (nxpusblib, lpc1788)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Two-questions-regarding-the-virtual-serial-device-nxpusblib/m-p/523682#M6318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TKoe on Mon Jul 09 06:39:14 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Nevermind, I guess I figured it out... the EchoCharacter function will always just send back a single character. Changing the example to a more usable version changed that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Luckily, that leaves only the question with the speed of the connection. Can anyone answer that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:45:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Two-questions-regarding-the-virtual-serial-device-nxpusblib/m-p/523682#M6318</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Two questions regarding the virtual serial device (nxpusblib, lpc1788)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Two-questions-regarding-the-virtual-serial-device-nxpusblib/m-p/523683#M6319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tuong on Thu Jul 12 00:44:21 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Dear TKoe,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting the baudrate is needed for the physical link with a RS232 chip, and you have to make sure that both sides of this link have the same baudrate to encode/decode the data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In our case, we are virtual link via USB bus, setting the baudrate is not needed. What you need to know are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; - Your bus speed is high, full or low&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; - What is your endpoint max packet size and the size of a file that your PC host's terminal software intend to write to CDC device. These numbers calculate the number of packets transfered on USB bus.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:45:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Two-questions-regarding-the-virtual-serial-device-nxpusblib/m-p/523683#M6319</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Two questions regarding the virtual serial device (nxpusblib, lpc1788)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Two-questions-regarding-the-virtual-serial-device-nxpusblib/m-p/523684#M6320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TKoe on Fri Jul 13 02:12:55 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello tuong!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wrote myself a simple C# program that just pushes out data over the virtual COM-port as fast as possible and receives the data back from the controller. With that I could get up to the speed of ~128 kByte/sec. However, that's both directions combined, one direction is only about 64 kByte/sec.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to speed that up? I would really like to get closer to 12 MBit/s ;-)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:45:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Two-questions-regarding-the-virtual-serial-device-nxpusblib/m-p/523684#M6320</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:45:19Z</dc:date>
    </item>
  </channel>
</rss>

