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

    Reset pyscan + gpy

    Scheduled Pinned Locked Moved Getting Started
    4 Posts 3 Posters 408 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.
    • I Offline
      Israel
      last edited by Israel

      I tried to reset my pyscan + gpy which I connected using wifi.

      import machine
      machine.reset()
      

      This is how I did it. What I expect is for the device to somehow remove the files in the flash memory or reset is somehow. Instead I am getting failed to connect (connection was reset). Is there any other way of resting it without pushing the reset button, because we will place the device out of reach.
      Thank you

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

        @Israel Reset does not touch the file system. Instead it works almost like power-on. if you want to clear the file system, you can call uos.mkfs(), which erases everything including the files you might need to get back to an operational state. What you seem to aim at is a kind of factory reset to your configuration. The only way I see how you could achive that is making your own image with your code being frozen into flash, which also rebuilds boot.py and main.py if required.

        1 Reply Last reply Reply Quote 0
        • I Offline
          Israel
          last edited by

          Thank you for your answer. I will try it tomorrow

          1 Reply Last reply Reply Quote 0
          • C Offline
            crumble @Israel
            last edited by

            because we will place the device out of reach.

            If this means, that your source shall not be readable by others: search in the forum how to encrypt the file system. Its more reliable than detecting intrusion and hopeing that there is left enough time time and power

            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