<?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>LPCXpresso IDE中的主题 Re: Can detect the open/close in USB CDC ?</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Can-detect-the-open-close-in-USB-CDC/m-p/585920#M26985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dive on Sun Nov 21 18:54:40 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much , gbm.:)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's good idea to check the DTR (and RTS) state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't know this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But it can not detect the event correctly when the user change the DTR state directly via the hyper terminal (or Terminal Software that can adjust the Control line ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DTR goes inactivate -&amp;gt;&amp;nbsp; Port closed ?&amp;nbsp;&amp;nbsp; or&amp;nbsp;&amp;nbsp; User changed the DTR state ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;:(&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:19:50 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:19:50Z</dc:date>
    <item>
      <title>Can detect the open/close in USB CDC ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Can-detect-the-open-close-in-USB-CDC/m-p/585918#M26983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dive on Fri Nov 19 00:45:32 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I use LPC1343 with example source [usbcdc] modified a little.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to detect the open/close of the host application (like hyper terminal)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC1343-----usb-----PC(hyper terminal)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Connection sequence is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Connect the USB cable between LPC1343 and PC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Enumeration started, then USB vcom ready.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Start up the hyper terminal in PC, then open the vcom port.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; *** I want to know this event in LPC1343 ! ***&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Close the vcom port in hyper terminal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; *** I want to know this event in LPC1343 ! ***&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Disconnect the USB cable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Run the lpcxpresso debugger and found that CDC_GetLineCoding and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CDC_SetLineCoding functions are called at this timing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But it's not enough information...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know about it ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:19:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Can-detect-the-open-close-in-USB-CDC/m-p/585918#M26983</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can detect the open/close in USB CDC ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Can-detect-the-open-close-in-USB-CDC/m-p/585919#M26984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gbm on Fri Nov 19 02:09:21 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;When the terminal opens, it activates DTR and RTS; while closing these signals go inactive (actually RTS may toggle when transferring the data). The state of these signals is reflected in CDC messages.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:19:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Can-detect-the-open-close-in-USB-CDC/m-p/585919#M26984</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can detect the open/close in USB CDC ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Can-detect-the-open-close-in-USB-CDC/m-p/585920#M26985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by dive on Sun Nov 21 18:54:40 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much , gbm.:)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's good idea to check the DTR (and RTS) state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't know this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But it can not detect the event correctly when the user change the DTR state directly via the hyper terminal (or Terminal Software that can adjust the Control line ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DTR goes inactivate -&amp;gt;&amp;nbsp; Port closed ?&amp;nbsp;&amp;nbsp; or&amp;nbsp;&amp;nbsp; User changed the DTR state ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;:(&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:19:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Can-detect-the-open-close-in-USB-CDC/m-p/585920#M26985</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can detect the open/close in USB CDC ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Can-detect-the-open-close-in-USB-CDC/m-p/585921#M26986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gbm on Mon Nov 22 06:07:56 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If DTR goes inactive that means that someone wanted to disconnect. Hyperterminal does this only automatically. Other terminals with diag functions allow for user control. Anyway DTR inactive means "disconnect". If someone deactivates DTR he means precisely that -&amp;nbsp; disconnnect. So - don't worry.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:19:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Can-detect-the-open-close-in-USB-CDC/m-p/585921#M26986</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can detect the open/close in USB CDC ?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Can-detect-the-open-close-in-USB-CDC/m-p/585922#M26987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by domen on Sun May 01 12:28:36 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Or it could mean DTR line is used for some other purpose, which isn't unusual :P&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:19:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Can-detect-the-open-close-in-USB-CDC/m-p/585922#M26987</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:19:51Z</dc:date>
    </item>
  </channel>
</rss>

