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

    Newbie questions

    Scheduled Pinned Locked Moved Discussion
    newbiefirmwareshutdown
    7 Posts 3 Posters 1.2k Views 3 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.
    • S Offline
      shishir
      last edited by

      1. How to gracefully shutdown the board?
      2. How to execute a test script from REPL?
      3. How to validate that the firmware for the Pysense and the Lopy4 module is on the latest recommended release
        Thanks for your help
      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @shishir
        last edited by robert-hh

        @shishir 1. Remove power. Unless there ate open files, that's ok
        2. If the script has beenuploaded to the device,enter
        import <name_of_file>
        Without the .py extension.
        3. Enter the commands in REPL:
        import uos
        uos.uname()

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          shishir @robert-hh
          last edited by

          @robert-hh Thanks a lot
          1 and 2: OK
          3. I found the commands in the document but my query was how to figure out if it is the recommended stable version

          robert-hhR 1 Reply Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh @shishir
            last edited by

            @shishir The latest version is always visible in the forum's section "Announcement & News". Since always new features are added and bugs are fixed, you have to determine yourself whether a certain version is good for your purpose.

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              shishir @robert-hh
              last edited by

              @robert-hh Thanks. One more question.
              4. How to find the Pysense version from board?

              robert-hhR 1 Reply Last reply Reply Quote 0
              • robert-hhR Offline
                robert-hh @shishir
                last edited by robert-hh

                @shishir No idea. The pysense.py module itself is a pythion script, located in the library. But you migth have asked for the firmware version of the PIC controller on the pysense board. Maybe someone else can anwer that, like @seb

                1 Reply Last reply Reply Quote 0
                • sebS Offline
                  seb
                  last edited by

                  Hi,

                  The hardware version of the board can be found written on the silk screen (either 1.0 or 1.1), The firmware version of the pysense can be found by using the read_fw_version() function in pycoproc.py which can be found here. Finally in regards to what library version you are using, you can see that at the top of the .py file e.g:

                  __version__ = '0.0.2'
                  
                  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 / 1
                  • First post
                    Last post

                  Pycom on Twitter

                  Pycom