<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Deep Sleep Not working on 1.20.1.r2 with Pysense 1.0]]></title><description><![CDATA[<p dir="auto">I have a LoPy 1.0r with Pysense 1.0, both with the latest firmware.<br />
Deep sleep is not working, the REPL hangs and nothing happen when I try to set the sleep duration with Pysense dedicated method. The device does not go in deep sleep and does not wake.<br />
What to do now?</p>
]]></description><link>https://forum.pycom.io/topic/5485/deep-sleep-not-working-on-1-20-1-r2-with-pysense-1-0</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 20:55:35 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/5485.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Dec 2019 21:33:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Deep Sleep Not working on 1.20.1.r2 with Pysense 1.0 on Mon, 09 Dec 2019 21:33:29 GMT]]></title><description><![CDATA[<p dir="auto">I have a LoPy 1.0r with Pysense 1.0, both with the latest firmware.<br />
Deep sleep is not working, the REPL hangs and nothing happen when I try to set the sleep duration with Pysense dedicated method. The device does not go in deep sleep and does not wake.<br />
What to do now?</p>
]]></description><link>https://forum.pycom.io/post/30853</link><guid isPermaLink="true">https://forum.pycom.io/post/30853</guid><dc:creator><![CDATA[ruky87]]></dc:creator><pubDate>Mon, 09 Dec 2019 21:33:29 GMT</pubDate></item><item><title><![CDATA[Reply to Deep Sleep Not working on 1.20.1.r2 with Pysense 1.0 on Tue, 10 Dec 2019 00:02:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/5508">@ruky87</a> You can't type the two instructions in the REPL and have it work. The <code>setup_sleep</code> function will start making changes to the configuration of the PIC on the Pysense which will disable the serial port before you can enter the <code>go_to_sleep</code> call.</p>
<p dir="auto">You need to put both in a function and call that function so they're both executed at once.</p>
<p dir="auto">This is actually documented here: <a href="https://docs.pycom.io/pytrackpysense/apireference/sleep/" target="_blank" rel="noopener noreferrer nofollow">https://docs.pycom.io/pytrackpysense/apireference/sleep/</a></p>
<p dir="auto">This has been discussed in the forum at least <a href="https://forum.pycom.io/topic/4709/getting-desperate-pysense-does-not-start-while-with-another-program-it-works/15">here</a> and <a href="https://forum.pycom.io/topic/4105/py-setup_sleep-time/2">here</a>.</p>
]]></description><link>https://forum.pycom.io/post/30854</link><guid isPermaLink="true">https://forum.pycom.io/post/30854</guid><dc:creator><![CDATA[jcaron]]></dc:creator><pubDate>Tue, 10 Dec 2019 00:02:36 GMT</pubDate></item></channel></rss>