<?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>NRF52 cancel USBD suspend request</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87340/nrf52-cancel-usbd-suspend-request</link><description>I see that there is definitely support for where a user would cancel the USB host&amp;#39;s request to suspend inside of app_usbd.c here&amp;#39;s line 1246: 
 You can clearly see that it throws up the APP_USBD_EVT_DRV_SUSPEND In the documentation it even states that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Apr 2022 11:27:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87340/nrf52-cancel-usbd-suspend-request" /><item><title>RE: NRF52 cancel USBD suspend request</title><link>https://devzone.nordicsemi.com/thread/365161?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2022 11:27:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3a8f65c-7fc8-4eff-872d-f5d10c5b7145</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The USBS SUSPEND is something that the OS on the USB host decide upon depending on some criteria we don&amp;#39;t really have any control over (e.g. maybe some inacitivy by the user and/or low battery etc). I would assume that cancelling this when started from the USB device will be difficult, if not impossible. If you call wakeup request the OS will likely complete the SUSPEND operation before waking up again, I don&amp;#39;t see any issue with this other than the time it takes. The only workaround to this that I can think of would be to generate some USB data at given intervals to avoid that the OS think the user is inactive (e.g. away from keyboard/mouse).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>