<?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>USB Remote Wakeup not waking up host</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121676/usb-remote-wakeup-not-waking-up-host</link><description>I have a USB HID device using the &amp;#39;old&amp;#39; USB stack in Zephyr. I have configured the &amp;#39;CONFIG_USB_DEVICE_REMOTE_WAKEUP&amp;#39; 
 1. I put the HOST to Suspend 
 2. The NRF52 USB goes into Suspend. 
 3. A &amp;#39;usb_wakeup_request&amp;#39; is called, and I see it calls into the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 May 2025 13:27:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121676/usb-remote-wakeup-not-waking-up-host" /><item><title>RE: USB Remote Wakeup not waking up host</title><link>https://devzone.nordicsemi.com/thread/536458?ContentTypeID=1</link><pubDate>Wed, 21 May 2025 13:27:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d8495a6-ccd5-4b85-8070-03c986051b55</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q1: Have you tried multiple PCs/USB cables?&lt;/p&gt;
&lt;p&gt;Q2: What version of the nRF52840-DK do you have?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Remote Wakeup not waking up host</title><link>https://devzone.nordicsemi.com/thread/536457?ContentTypeID=1</link><pubDate>Wed, 21 May 2025 13:24:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dddf67c5-0fde-4ecc-9f62-9ece1473cd28</guid><dc:creator>AGeegee</dc:creator><description>&lt;p&gt;I do notice that the Remote Wakeup DOES work some of the time.&lt;/p&gt;
&lt;p&gt;It is when the logs show only:&lt;/p&gt;
&lt;p&gt;usb_hid: Device suspended&lt;/p&gt;
&lt;p&gt;There after, subsequent Host Sleeps will always work and not result in the Suspend/Disconnect/Connect flow below.&lt;/p&gt;
&lt;p&gt;When it does NOT work, it shows multiple&lt;/p&gt;
&lt;p&gt;usb_hid: Device suspended&lt;br /&gt;usb_hid: Device disconnected&lt;br /&gt;usb_hid: Device connected&lt;br /&gt;usb_hid: Device suspended&lt;br /&gt;usb_hid: Device disconnected&lt;br /&gt;usb_hid: Device connected&lt;br /&gt;usb_hid: Device suspended&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Any guidance on this?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Remote Wakeup not waking up host</title><link>https://devzone.nordicsemi.com/thread/536448?ContentTypeID=1</link><pubDate>Wed, 21 May 2025 13:07:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd4fa76b-69e4-4abe-84a1-e18a4f4e2f20</guid><dc:creator>AGeegee</dc:creator><description>&lt;p&gt;Yes it is a Windows PC. I checked under the Device Manager, the &amp;quot;Allow this device to wake the computer&amp;quot; is selected.&lt;/p&gt;
&lt;p&gt;Also, just before setting the computer to &amp;quot;Sleep&amp;quot;, the usb_device.c has the RemoteWakeup Feature set. As per the:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://learn.microsoft.com/en-us/windows-hardware/drivers/usbcon/remote-wakeup-of-usb-devices"&gt;learn.microsoft.com/.../remote-wakeup-of-usb-devices&lt;/a&gt;&lt;/p&gt;
&lt;div style="background-color:#1c1f22;padding:0px 0px 0px 2px;"&gt;
&lt;div style="background-color:#1c1f22;color:#cfbfad;font-family:&amp;#39;Consolas&amp;#39;;font-size:12pt;white-space:pre;"&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:#cfbfad;"&gt; &lt;/span&gt;&lt;span style="color:#808bed;font-weight:bold;"&gt;case&lt;/span&gt;&lt;span style="color:#cfbfad;"&gt; USB_SREQ_SET_FEATURE:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:#cfbfad;"&gt; &lt;/span&gt;&lt;span style="color:#87cefa;"&gt;LOG_DBG&lt;/span&gt;&lt;span style="color:#cfbfad;"&gt;(&lt;/span&gt;&lt;span style="color:#ffcd8b;"&gt;&amp;quot;Set Feature request&amp;quot;&lt;/span&gt;&lt;span style="color:#cfbfad;"&gt;);&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:#cfbfad;"&gt; &lt;/span&gt;&lt;span style="color:#808bed;font-weight:bold;"&gt;if&lt;/span&gt;&lt;span style="color:#cfbfad;"&gt; (&lt;/span&gt;&lt;span style="color:#87cefa;"&gt;IS_ENABLED&lt;/span&gt;&lt;span style="color:#cfbfad;"&gt;(CONFIG_USB_DEVICE_REMOTE_WAKEUP)) {&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:#cfbfad;"&gt; &lt;/span&gt;&lt;span style="color:#808bed;font-weight:bold;"&gt;if&lt;/span&gt;&lt;span style="color:#cfbfad;"&gt; (setup-&amp;gt;wValue == USB_SFS_REMOTE_WAKEUP) {&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:#cfbfad;"&gt; usb_dev.&lt;/span&gt;&lt;span style="background-color:#414104;color:#cfbfad;"&gt;remote_wakeup&lt;/span&gt;&lt;span style="color:#cfbfad;"&gt; = true;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:#cfbfad;"&gt; &lt;/span&gt;&lt;span style="color:#808bed;font-weight:bold;"&gt;return&lt;/span&gt;&lt;span style="color:#cfbfad;"&gt; true;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:#cfbfad;"&gt; }&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:#cfbfad;"&gt; }&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:#cfbfad;"&gt; &lt;/span&gt;&lt;span style="color:#808bed;font-weight:bold;"&gt;break&lt;/span&gt;&lt;span style="color:#cfbfad;"&gt;;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Remote Wakeup not waking up host</title><link>https://devzone.nordicsemi.com/thread/536440?ContentTypeID=1</link><pubDate>Wed, 21 May 2025 12:52:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6297fd2d-cdf3-4da1-a5ab-49ca2ae85286</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is this a windows PC?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If yes, it is very important to know the restrictions when developing with USB on Windows. One being that Windows will always cache your USB descriptor initially, and not refresh it unless you change VID/PID of your device or delete the cached entries.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you change the descriptor, the easiest option is to change/append PID for development purposes.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The OS might not allow a device to wake up the PC. You will need to manually enable or check the state of this feature.&amp;nbsp;&lt;a href="https://learn.microsoft.com/en-us/windows-hardware/drivers/usbcon/remote-wakeup-of-usb-devices"&gt;https://learn.microsoft.com/en-us/windows-hardware/drivers/usbcon/remote-wakeup-of-usb-devices&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;This function indicates that the device is allowed, but just to check all the corners, it would be great to see if there is anything in the device settings on the PC side that might block it.&lt;/p&gt;
[quote user=""]nrf_usbd_common_wakeup_req , which results in a &amp;#39;ev_usbevent_handler&amp;#39; call to the USBD_EVENTCAUSE_USBWUALLOWED_Msk section.[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>