<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Can nRF24LU1P USB Dongle can auto resume after suspend?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18571/can-nrf24lu1p-usb-dongle-can-auto-resume-after-suspend</link><description>Hi, Nordic 
 Now I have one nRF24LU1P USB Dongle, if sometimes there is no data in/out usb(maybe 3ms), USB Dongle will enter suspend state. 
 Can USB Dongle support to resume after suspend? 
 And my USB Dongle receive data via ESB/Gazell, USB Dongle</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Dec 2016 09:17:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18571/can-nrf24lu1p-usb-dongle-can-auto-resume-after-suspend" /><item><title>RE: Can nRF24LU1P USB Dongle can auto resume after suspend?</title><link>https://devzone.nordicsemi.com/thread/71666?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2016 09:17:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94135035-d12d-4242-ad38-1a3d7dcaaf0f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;P/S: Also please make sure you enable wake up on USBWU by setting bit 2 in WUCONF.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can nRF24LU1P USB Dongle can auto resume after suspend?</title><link>https://devzone.nordicsemi.com/thread/71665?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2016 09:10:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ad7b4bd-552a-4592-b21a-a31863dbff95</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure why it doesn&amp;#39;t work. But you may want to check if it&amp;#39;s allowed from the host that the device can wake up on its own USB_BM_STATE_ALLOW_REMOTE_WAKEUP.&lt;/p&gt;
&lt;p&gt;I would suggest you to have a look at our reference code in our nRFDesktop example code.
Here is what inside our wake-up code:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void hal_usb_wakeup()
{
  // We can only issue a wakeup if the host has allowed us to do so
  if((g_hal_usb.bm_state &amp;amp; USB_BM_STATE_ALLOW_REMOTE_WAKEUP) == USB_BM_STATE_ALLOW_REMOTE_WAKEUP)
  {
    USBCON = 0x40;  // Wakeup the USB controller via remote pin
    delay_ms(1);    // Wait until the USB clock starts
    USBCON = 0x00;
  }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you don&amp;#39;t have access to &lt;a href="https://www.nordicsemi.com/eng/Products/2.4GHz-RF/nRFready-Desktop/(language)/eng-GB"&gt;the nRFReady Desktop&lt;/a&gt; code, please create a case on MyPage on our website and give me the case number.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can nRF24LU1P USB Dongle can auto resume after suspend?</title><link>https://devzone.nordicsemi.com/thread/71664?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2016 00:28:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a877f18-6da3-431e-8bcb-852c49b8a9f8</guid><dc:creator>Chaw</dc:creator><description>&lt;p&gt;Thanks for your reply.
How can I set USBCON SFR register? I do like below, but it do not work:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if (hal_usb_get_state() == SUSPENDED)
{            
        USBCON = 0x40;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;above code is exist in my program while(true), it can not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can nRF24LU1P USB Dongle can auto resume after suspend?</title><link>https://devzone.nordicsemi.com/thread/71663?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2016 14:26:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a719fb35-66e1-4940-8e1c-eb3f01326204</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Chaw,&lt;/p&gt;
&lt;p&gt;At section 7.8.1 in the nRF24LU1P spec, you can find that you can wake the USB up by setting bit 6 in USBCON SFR register.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>