<?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>System OFF sleep problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104915/system-off-sleep-problem</link><description>What we need to achieve: 
 
 1. The system is sleeping in sleep off mode all the time. 
 2. System is awoken by NFC 
 3, When the system wakes up, we need to establish BLE connection, receive some data. 
 4. When (3) is completed, device goes back to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Oct 2023 09:46:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104915/system-off-sleep-problem" /><item><title>RE: System OFF sleep problem</title><link>https://devzone.nordicsemi.com/thread/451924?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 09:46:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3df834d-4a4a-49a9-8f63-de8d6a61491a</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Scorpio Droid"]Thank you for getting back to me.[/quote]
&lt;p&gt;No problem at all, I am happy to help! :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thank you for the clarifications - this makes it easier for me to understand your situation, and to advise you on how to best approach it.&lt;br /&gt;I am glad to read that you seem to have found a solution to your issue - I concur that this likely can be solved by changing up the timing in the sleep/wakeup sequence.&lt;br /&gt;&lt;br /&gt;Please do not hesitate to let me know if you should have some more questions related to this, or to open another ticket if you should encounter any other issues or questions in the future! :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Good luck with your development!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System OFF sleep problem</title><link>https://devzone.nordicsemi.com/thread/451825?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2023 19:20:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0301541a-d8df-4e52-8758-f3791cbd2183</guid><dc:creator>Scorpio Droid</dc:creator><description>&lt;p&gt;&lt;span&gt;Karl:&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Thank you for getting back to me. The idea is to wake up a device on NFC, do BLE connection, get some data, disconnect and put it back to the System Off sleep mode.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;So the deep_sleep flag is set to true at the beginning. It is set to false on the NFC_T4T_EVENT_FIELD_ON event, and is set back to true on BLE_GAP_EVT_DISCONNECTED. The problem is that when NFC is&amp;nbsp;detected, the system does a complete reset before the callback NFC_T4T_EVENT_FIELD_ON is made and goes to sleep again.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;I think we are in the process of solving this problem by inserting a delay between all initializations and the start of the sleep&amp;nbsp;loop.&amp;nbsp; This allows events in NFC_T4T_EVENT_FIELD_ON to happen (the flag reset).&amp;nbsp; We are testing this, I will let you know if we have any more questions or if this works.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Thank you again!&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: System OFF sleep problem</title><link>https://devzone.nordicsemi.com/thread/451639?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2023 08:19:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2c5851c-c3ad-4deb-a8bc-6f73b7fa2f9e</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Could you elaborate on where in your code the reset flag is set to false by the NFC, relative to where the check for the reset flag is performed (which triggers the reset)?&lt;br /&gt;Is your check for the reset flag performed before the NFC handler gets to update the flag, and if so, would it be possible to change up this ordering?&lt;br /&gt;&lt;br /&gt;Could you also detail your applications requirements to the reset procedure?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>