<?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>Kinetis MicrocontrollersのトピックRe: USB CDC host receiving unsolicited data from a device</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-host-receiving-unsolicited-data-from-a-device/m-p/337800#M16136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any example code doing this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Dec 2014 13:07:18 GMT</pubDate>
    <dc:creator>tarikaweimrin</dc:creator>
    <dc:date>2014-12-10T13:07:18Z</dc:date>
    <item>
      <title>USB CDC host receiving unsolicited data from a device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-host-receiving-unsolicited-data-from-a-device/m-p/337796#M16132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have 2 KL26Z micros talking to each other, one is the host and the other is a CDC device.&amp;nbsp; I am using the USB stack 4.1.1 I can use the serial_write and serial_read functionality from the host to send and receive data from the device when I know that the device is sending data.&amp;nbsp; How do I determine if the device has sent unexpected data that needs to be read and the amount of data sent by the device to read?&amp;nbsp; Is there a flag set somewhere or a callback that I haven't been able to find yet?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Any help would be appreciated.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 19:54:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-host-receiving-unsolicited-data-from-a-device/m-p/337796#M16132</guid>
      <dc:creator>tarikaweimrin</dc:creator>
      <dc:date>2014-12-09T19:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: USB CDC host receiving unsolicited data from a device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-host-receiving-unsolicited-data-from-a-device/m-p/337797#M16133</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;A USB device cannot send data without the host allowing it to, by sending an IN packet which it either responds to or sends a NAK back to.&lt;/P&gt;&lt;P&gt;The host defines the bandwidth available and so will normally be sending IN packets on bulk endpoints whenever there is nothing else to send - the device will therefore be able to return data almost all the time in such an arrangement and the host's DATA reception interrupt will inform of its arrival.&lt;/P&gt;&lt;P&gt;If your host is however not sending IN packets when it is not actually expecting to read data the device will not be able to send anything.&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>Tue, 09 Dec 2014 20:17:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-host-receiving-unsolicited-data-from-a-device/m-p/337797#M16133</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-12-09T20:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: USB CDC host receiving unsolicited data from a device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-host-receiving-unsolicited-data-from-a-device/m-p/337798#M16134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is that in addition to sending the SOF tokens continuously?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Dec 2014 21:23:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-host-receiving-unsolicited-data-from-a-device/m-p/337798#M16134</guid>
      <dc:creator>tarikaweimrin</dc:creator>
      <dc:date>2014-12-09T21:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: USB CDC host receiving unsolicited data from a device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-host-receiving-unsolicited-data-from-a-device/m-p/337799#M16135</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;SOF tokens only define the framework (1ms for FS and 125us for HS) timing but don't allow the device to do anything. &lt;EM&gt;[Newer Kinetis parts with crystal-less USB (optionally) use this to re-synchronise the local 48MHz oscillator&lt;/EM&gt;].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The host must then define the bandwidth allocation (interrupt, isochronous, bulk, depending on the types and number of devices connected) and send IN tokens whenever a device may respond with data.&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>Tue, 09 Dec 2014 21:41:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-host-receiving-unsolicited-data-from-a-device/m-p/337799#M16135</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-12-09T21:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: USB CDC host receiving unsolicited data from a device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-host-receiving-unsolicited-data-from-a-device/m-p/337800#M16136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any example code doing this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Dec 2014 13:07:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-host-receiving-unsolicited-data-from-a-device/m-p/337800#M16136</guid>
      <dc:creator>tarikaweimrin</dc:creator>
      <dc:date>2014-12-10T13:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: USB CDC host receiving unsolicited data from a device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-host-receiving-unsolicited-data-from-a-device/m-p/337801#M16137</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;I think that setting&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TOKEN = ((IN_PID &amp;lt;&amp;lt; 4) | ENDPOINT_in_question);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;will cause the host to poll.&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>Thu, 11 Dec 2014 21:35:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-host-receiving-unsolicited-data-from-a-device/m-p/337801#M16137</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-12-11T21:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: USB CDC host receiving unsolicited data from a device</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-host-receiving-unsolicited-data-from-a-device/m-p/337802#M16138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Makes sense, I will try that. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 21:44:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-CDC-host-receiving-unsolicited-data-from-a-device/m-p/337802#M16138</guid>
      <dc:creator>tarikaweimrin</dc:creator>
      <dc:date>2014-12-11T21:44:46Z</dc:date>
    </item>
  </channel>
</rss>

