-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement deep sleep between readings #2
Comments
After some quick research, it appears to us that the Deep Sleep API documentation @ClemensGruber was referencing the other day is solely suitable for talking to the Deep Sleep Shield. On the other hand, another part of the documentation just called Sleep tells us that the respective routines for controlling sleep mode there would be embedded into the Pytrack and Pysense libraries. So, as the native MicroPython's machine.deepsleep will probably not be available on the ESP32-based Pycom platform, we should nevertheless bring in the use of pycoproc.py in order to see what we can get from that running on a bare FiPy module without any of the Deep Sleep Shield or Pysense or Pytrack extension boards.
[8] https://pycom.io/l01-oem-module-deep-sleep-test/ Please also recognize Pycom is only talking about the WiPy and LoPy OEM modules in this video. |
However, they actually are using So, we will turn away from our last argument about favoring |
The PyCom deep sleep shield is only necessary for older WiPy / LoPy devices! It was necessary due to a hardware bug and was a workaround to get this older boards in a power saving operation mode! It is NOT necessary for the current WiPy, LoPy or FiPy version!! See https://forum.pycom.io/topic/1022/root-causes-of-high-deep-sleep-current-lopy1-wipy2-and-sipy-all-the-new-modules-do-not-have-deepsleep-issues/88 |
Ok, the "DeepSleep library" is for the deep sleep shield only as @amotl mentioned! I found this remark for the new boards:
Link is outdated, current is https://docs.pycom.io/firmwareapi/pycom/machine/ and here you can find
|
IntroductionWith one of the recent commits 3e73a3f, the Hiveeyes MicroPython Datalogger Firmware should support deep sleep. ScreenshotIt looks like this guy is sleeping well
and even wakes up again.
Please notethat
[1] https://github.com/hiveeyes/hiveeyes-micropython-firmware/blob/master/doc/pycom-firmware-upgrade.rst#install-and-acquire-prerequisites Happy testing! |
@ClemensGruber confirmed this would also work for him, thanks for testing! So we are closing this but feel free to reopen. |
Yip, looks good!
Am 7. Juni 2019 21:30:20 MESZ schrieb Andreas Motl <notifications@github.com>:
…It looks like this guy is sleeping well and even wakes up again.
```
4.7042 [terkin.datalogger ] INFO : Reset cause and wakeup
reason: {'reset_cause': {'code': 3, 'message': 'DEEPSLEEP'},
'wakeup_reason': {'code': 2, 'message': 'RTC'}}
```
We will be happy to find any testers out there. Thanks already,
@ClemensGruber! ;]
--
encryption? welcome!
gpg: 63e5d348
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFiDKSkBEACjAoZDjZ2GyPrW919ozieezixTX9+k9meyyDOxS+koA3YCdUMk
L7+xwvPgCc/ZY6Ug3EF6+wJxVd+xZcAAGc4Lo8b9Fdrrg/YNbqjitIMA4gatBnEJ
gDO4qrYmwGzA214yINLpSR+Pv6mMv4Y628FltkOnFrVDND3DnqOTLzq8tQHskaLQ
KHgUYNUq93yVjSvquaJgpaJJQbGYyhSehvNLqPRdgC6rvJqAxh4InsclfaGWybxz
cDPDLdUQEefg/kyeY0+IfYGQZgbr0jNRGZLbwFUSaCDpJlIAb3IABUUPj/HKwlP6
UDWyNTbXMdSedXaeRHpdUki33gbD8Q8CqVB5sDyR2nZiXGBuM9v6drQRCRrGalm+
eFTLWPajM53kCLnnNDYv4upiS+2jqKHtQ/txyVqIDkNme5zCzxs63O8OJA57Go53
r4ULfSU0pUDo8c8K58JBXLeovIsXUkdC+KlBXVMNEd/HxUhGIsTyZcs2a/j/2mrr
gkzE2wAY2H5Q0rjMp0OCjomYUgG0/fNL5JZP11m3N84Au7H6qGwXoQbSe9YwK3S3
hZW64Grr6Twi5cB3+fe8QaWuwZt8lHbyySF9CSsTSI2wtAcmllNv4+BYu3foF9Z2
YlZJ8nPZkuajkhMnLIabaps3bsPhSlxD17/PizDOE0WM7GxazoJfNCUBIQARAQAB
tCRteCBtc3RybW5uIDxyaWNoYXJkQGdpbm51bmdhZ2FwLm9yZz6JAk4EEwEIADgW
IQRYiB2ee4h0BkApXNhM0u7DY+XTSAUCWIMpKQIbAwULCQgHAgYVCAkKCwIEFgID
AQIeAQIXgAAKCRBM0u7DY+XTSMJeEACYk6slxE1ktg1fR2Nrv/NU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fGJ3
PoQDpyUYFFt/Y3zCicO+Seo9OD1pYkB2fQzyDxbwvcZr39kXboXNpP68qrLgcarg
aWMXcl0hpRUFzb9Ws1DnRCZmkUEAEQEAAYkCNgQYAQgAIBYhBFiIHZ57iHQGQClc
2EzS7sNj5dNIBQJYgykpAhsMAAoJEEzS7sNj5dNIGeMQAJOCa6hgeEUdZX+2eAYQ
SE/RHnXESekjiZAizu83FZ+m1UdKzBXERnB/SC9pBMhmM3QnQg1Ni/tWLSVA83gN
6osw5/gmLciYzQawcC91iWyksoPbsUeecku4S5GfDsSpJexXbn0oabWGBf7L73yh
shJ2DpbRohjZf/gTn1d7gyrB3h7WJIlCEbM/aHPe5a2hr8HDdm/YSxyyJI8ZN4mt
JbQ7pFXF29N9BtrCj7pOcog2rC72x68v1YJw7EVBhq+CeLZ/suRnVKhX17hlKgA3
uQFxPGfQtUlVNdwmgkTWJ8FaZzbXzpZPxa+0TnOQJpCLqWgFFYaaGytrQGuAmhvY
asSvunxkoq/nhu5rphSkJKuWYfMDE8Ux7rvpupkzSfGAraxNxBFVLQ8AYll81iD/
O7JNcHqupBFq7taPjLU6UwXYmQWptNx2pel6kokPhsV2TezM/oO5nMkgMot6hoaH
gZ7mw+0tWuWXcQW+GtWzMX7y/5vELleUOrUYsV76KJ3yY+u7LRm5nw0gH3Jjc1e0
TDQNviaUI6bbWPA2+bQhQMva3r7SyQH2BNdoijAMC+pQdJJseEHkLIrVDpaxQ+mH
cC2R3J27GAXJDagPilUARrOxD71gnFxJGiKAEvbtLORoxMsLl3uhosG3vyDL5nxy
+cbOghoUEZPyzUyfOFxMG3hy
=81oF
-----END PGP PUBLIC KEY BLOCK-----
|
@ClemensGruber told us at [1] that
Thanks for the report! |
We still had a glitch in there but it should work now. |
It's working now as a kind of delay after doing sensor reading and submitting. I had to do |
Dear @ClemensGruber, this issue was really just about making Also, we would like to tell you that we are tracking the appropriate computation of the delay as a real interval with #4. With kind regards, |
People have been asking [1,2] for Deep Sleep on FiPy. While @einsiedlerkrebs and others [3] tried already,
it looks like it would be harder than expected. As usual, the devil might just be in the details.
We will try to dedicate some time to that exceptionally important detail.
[1] https://community.hiveeyes.org/t/bob-platine-im-lipo-betrieb-ohne-deep-sleep/2055
[2] Hiverize/FiPy#2
[3] pycom/pycom-libraries#26
The text was updated successfully, but these errors were encountered: