<?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: LPC11U68 - PC shutdown detection for USB HID</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-PC-shutdown-detection-for-USB-HID/m-p/1294641#M45534</link>
    <description>&lt;P&gt;Hi, little update.&lt;/P&gt;&lt;P&gt;On another PC during shutdown procedure &lt;SPAN&gt;USB_WakeUpCfg&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;event with parameter 1 called, then&amp;nbsp;USB_Suspend_Event. Which is not logical...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Jun 2021 10:53:01 GMT</pubDate>
    <dc:creator>MaksymDevX</dc:creator>
    <dc:date>2021-06-18T10:53:01Z</dc:date>
    <item>
      <title>LPC11U68 - PC shutdown detection for USB HID</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-PC-shutdown-detection-for-USB-HID/m-p/1294027#M45511</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are on FW development for USB HID keyboard with LPC11U68 as the core. We need to detect when PC has been shutdown or suspended/resumed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For suspend/resume&amp;nbsp;USB_Suspend_Event, USB_Resume_Event and USB_WakeUpCfg ROM API callbacks are used and everything works fine with it.&lt;/P&gt;&lt;P&gt;On shutdown case, when PC keeps USB ports powered, USB_Suspend_Event&amp;nbsp;and instant&amp;nbsp;USB_Resume_Event callbacks called.&lt;/P&gt;&lt;P&gt;DCON bit of DEVCMDSTAT register remains 1 and&amp;nbsp;DSUS is 0. Other bits are not changed during runtime except&amp;nbsp;DEV_ADDR.&lt;/P&gt;&lt;P&gt;So I can not see the way to detect if the host is online or not. How can it be done, please help&lt;/P&gt;&lt;P&gt;Best Regards, Maksym Naumchuk&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 12:40:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-PC-shutdown-detection-for-USB-HID/m-p/1294027#M45511</guid>
      <dc:creator>MaksymDevX</dc:creator>
      <dc:date>2021-06-17T12:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11U68 - PC shutdown detection for USB HID</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-PC-shutdown-detection-for-USB-HID/m-p/1294641#M45534</link>
      <description>&lt;P&gt;Hi, little update.&lt;/P&gt;&lt;P&gt;On another PC during shutdown procedure &lt;SPAN&gt;USB_WakeUpCfg&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;event with parameter 1 called, then&amp;nbsp;USB_Suspend_Event. Which is not logical...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 10:53:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-PC-shutdown-detection-for-USB-HID/m-p/1294641#M45534</guid>
      <dc:creator>MaksymDevX</dc:creator>
      <dc:date>2021-06-18T10:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPC11U68 - PC shutdown detection for USB HID</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-PC-shutdown-detection-for-USB-HID/m-p/1294864#M45540</link>
      <description>&lt;P&gt;Hi Maksym&lt;/P&gt;
&lt;P&gt;The suspend state is entered when a USB bus is in the idle state for a certain amount of time.&lt;/P&gt;
&lt;P&gt;You can monitor VBUS state as you mentioned by reading DCON_C register, however, if the PC is still powering USB port there is physically nothing telling the USB device that the PC is in shutdown state. Therefore, you can check if the device is disconnected, suspended or lost power but there is no specific event when PC is shutdown.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Felipe&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 17:37:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC11U68-PC-shutdown-detection-for-USB-HID/m-p/1294864#M45540</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2021-06-18T17:37:47Z</dc:date>
    </item>
  </channel>
</rss>

