<?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 USB communication between two Microcontroller in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-communication-between-two-Microcontroller/m-p/703395#M43196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using MK66 MCU in our application, Here in our scenario we have two MK66 MCU communicating via USB.&lt;/P&gt;&lt;P&gt;Now I need to develop driver for both host and device mode, To start with I have decided to use SDK2.0 example which are available.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; I need suggestions from your side about which class I need to prefer &amp;amp; which example should I use and so on. give me some base picture to implement this requirement.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; Here I am thinking use simple bulk transfer with 2 endpoints (Bulk IN &amp;amp; Bulk OUT).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Sep 2017 06:16:33 GMT</pubDate>
    <dc:creator>karthikas</dc:creator>
    <dc:date>2017-09-14T06:16:33Z</dc:date>
    <item>
      <title>USB communication between two Microcontroller</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-communication-between-two-Microcontroller/m-p/703395#M43196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using MK66 MCU in our application, Here in our scenario we have two MK66 MCU communicating via USB.&lt;/P&gt;&lt;P&gt;Now I need to develop driver for both host and device mode, To start with I have decided to use SDK2.0 example which are available.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; I need suggestions from your side about which class I need to prefer &amp;amp; which example should I use and so on. give me some base picture to implement this requirement.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; Here I am thinking use simple bulk transfer with 2 endpoints (Bulk IN &amp;amp; Bulk OUT).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 06:16:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-communication-between-two-Microcontroller/m-p/703395#M43196</guid>
      <dc:creator>karthikas</dc:creator>
      <dc:date>2017-09-14T06:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: USB communication between two Microcontroller</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-communication-between-two-Microcontroller/m-p/703396#M43197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably the most logical method is to use USB-CDC host and device so that the application sees the connection as a VCOM port - &lt;EM&gt;effectively as if it were a UART (COM port) connection&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how it is done in the uTasker project - if I find time later I'll post you a video of it operating with the FRDM-K66F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is also possible to use composite CDC to have up to 6 such connections between the two devices. This can be interesting if communication is divided into "pipes" - eg. a data channel and some control channels, or such channels between different software modules at both ends. The CDC interfaces make each pipe act like a unique VCOM connection between two ends which means that each has a virtual direct communication path without any need for additional multiplexing, parsing etc. to recognise/route which are the source and destination of each transfer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You didn't mention whether you will be using USB0 or USB1 in the K66 since they are different controllers and need different software solutions.&lt;/P&gt;&lt;P&gt;I don't know about what SDK2.0 can and cannot do but this is the technique that is most logical (one IN and one OUT bulk for each virtual connection, whereby IN/OUT can also share a single endpoint to increase the capabilities of the controllers).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 17:29:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-communication-between-two-Microcontroller/m-p/703396#M43197</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-09-14T17:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: USB communication between two Microcontroller</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-communication-between-two-Microcontroller/m-p/703397#M43198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have shown USB-CDC operation for communication between a K64 and K66 here&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fyoutu.be%2FXhISV1czIo4" rel="nofollow" target="_blank"&gt;https://youtu.be/XhISV1czIo4&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 20:29:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-communication-between-two-Microcontroller/m-p/703397#M43198</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-09-15T20:29:05Z</dc:date>
    </item>
  </channel>
</rss>

