Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Does deepsleep work at all

    Scheduled Pinned Locked Moved Discussion
    deepsleep
    83 Posts 20 Posters 50.3k Views 23 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      Arnaud @jcaron
      last edited by

      @jcaron read_fw_version returns 2.
      Since I haven't done any pytrack firmware upgrades since June, I'll assume I have to.

      This might be a hint for improving docs:
      Required Pytrack Firmware: x.y.z

      A 1 Reply Last reply Reply Quote 0
      • A Offline
        Arnaud @Arnaud
        last edited by

        @jcaron
        I have updated the pytrack firmware to 0.0.4 with DFU-util (Mac OSX).

        From there:
        The hearbeat (blue led) is not active anymore.
        I have a lot of troubles gettting a console connection to the board.
        Sometimes, the board executes main.py, prints a few lines but hangs on while printing firmware version and connection is lost.

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          jmarcelino @Arnaud
          last edited by

          @Arnaud
          Can you try another USB cable?

          A 1 Reply Last reply Reply Quote 0
          • D Offline
            daniel
            last edited by

            @Arnaud, I think the firmware upgrade failed. Just tried it again using the DFU procedure.

            Cheers,
            Daniel

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              Arnaud @daniel
              last edited by

              @daniel Got this during Pytrack firmware upgrade:
              Match vendor ID from file: 04d8
              Match product ID from file: f014
              Deducing device DFU version from functional descriptor length
              Opening DFU capable USB device...
              ID 04d8:f014
              Run-time device DFU version 0100
              Claiming USB DFU Runtime Interface...
              Determining device status: state = dfuIDLE, status = 0
              dfu-util: WARNING: Runtime device already in DFU state ?!?
              Claiming USB DFU Interface...
              Setting Alternate Setting #0 ...
              Determining device status: state = dfuIDLE, status = 0
              dfuIDLE, continuing
              DFU mode device DFU version 0100
              Device returned transfer size 64
              Copying data from PC to DFU device
              Download [=========================] 100% 16384 bytes
              Download done.
              state(2) = dfuIDLE, status(0) = No error condition is present
              Done!

              1 Reply Last reply Reply Quote 0
              • A Offline
                Arnaud @jmarcelino
                last edited by

                @jmarcelino @daniel
                Solved.

                For the sake of it, I've tried with another USB cable among other stuff. The only thing I did not do is reboot the internet...

                Sipy: upgraded firmware to the brand new 1.8.0b1
                Pytrack: re-upgraded firmware to 0.0.4
                Pymakr in Atom: checked latest version 1.1.0

                Still no heartbeat.
                Sometimes I got a connection to the board (after multiple connect clicks).
                Main.py was then running with weirdo character when printing pytrack firmware version (instead of 4), followed by deepsleep command.
                Console connection was immediately lost right after.

                After a safe boot with latest firmware (1-3 sec), I managed to get a console prompt and reset the code part. Everything is back to normal, will get back to testing the deepsleep.

                A 1 Reply Last reply Reply Quote 0
                • A Offline
                  Arnaud @Arnaud
                  last edited by

                  @daniel @jmarcelino
                  Ok back to testing, I got the point (It actually took a long time to get deep into my brain!) Once the board in deepsleep mode, there is little chance I could get a console connection to it...

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    colin.guyon @daniel
                    last edited by

                    @daniel Hello, do you know if a solution is going to be raised about the deep sleep high current (520 uA at 5v instead of few uA that were announced) ? Thanks

                    R 1 Reply Last reply Reply Quote 0
                    • D Offline
                      daniel
                      last edited by

                      @colin-guyon yes we will sort it out, we just need need a few more days to crack it as other things have delayed us.

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        Robin @colin.guyon
                        last edited by

                        @daniel i am still waiting on a solution to the 520 uA instead of <25uA problem for

                        • the deep sleep shield
                        • on a LoPy
                        • attached to a LiPo battery

                        We are about to put 10 LoPy's into the wild to fend for themselves and report back with tales of great adventures.....but the current is still killing the battery.
                        A month ago you mentioned you guys were working on it. When can we expect a solution?

                        @colin-guyon said in Does deepsleep work at all:

                        @daniel Hello, do you know if a solution is going to be raised about the deep sleep high current (520 uA at 5v instead of few uA that were announced) ? Thanks

                        robert-hhR I 2 Replies Last reply Reply Quote 0
                        • robert-hhR Offline
                          robert-hh @Robin
                          last edited by

                          @robin Even if 520µA is large compared to 25µA, it's not that bad. A typical 18650 LiPo cell can serve that for 8 months (3000 mAh/0.52mA = 5769h or ~240 days). Once you're sure that besides the battery your set-up will run for that period, the battery becomes an issue. And the more frequent your device communicates, the less important is the standby current.

                          C 1 Reply Last reply Reply Quote 0
                          • I Offline
                            iotmaker @Robin
                            last edited by

                            @robin Do you sleep and then restart the hole aplication and then you go to sleep again?

                            1 Reply Last reply Reply Quote 0
                            • C Offline
                              chumelnicu @robert-hh
                              last edited by

                              @robert-hh Of course is bad ! Is all about what you pay and what you get !

                              For wireless sensor the deepsleep curent is critical !

                              1 Reply Last reply Reply Quote 0
                              • B Offline
                                bradnz @johncaipa
                                last edited by

                                @johncaipa Hi, Im getting this same error - did you work out why this occurs?

                                1 Reply Last reply Reply Quote 0

                                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                With your input, this post could be even better 💗

                                Register Login
                                • 1
                                • 2
                                • 3
                                • 4
                                • 5
                                • 4 / 5
                                • First post
                                  Last post

                                Pycom on Twitter

                                Pycom