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

    How can i disable hard factory reset?

    Scheduled Pinned Locked Moved LoPy
    lopydisableresethardhardware
    9 Posts 4 Posters 2.6k Views 4 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.
    • L Offline
      lawrence
      last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • RobTuDelftR Offline
        RobTuDelft
        last edited by

        Which function do you want to disable?

        There are a few things you can do if you get stuck (in 'ascending' order):
        interrupt running process ctrl + c
        soft reset: sys.exit() or ctrl + d
        hard reset: button or machine.reset()
        reformat /flash: os.mkfs('/flash')
        reflash firmware: firmware update utility

        Without data you're just another person with an opinion.
        Hackster | About me

        L 1 Reply Last reply Reply Quote 0
        • L Offline
          lawrence @RobTuDelft
          last edited by

          @RobTuDelft all of those all functions who are programmed in factory

          L 1 Reply Last reply Reply Quote 0
          • L Offline
            livius @lawrence
            last edited by

            @lawrence
            If you do not need such function do not use it.
            Will be good if you show us some case scenario you try to avoid.

            think about people first, then computers

            L 1 Reply Last reply Reply Quote 0
            • RobTuDelftR Offline
              RobTuDelft
              last edited by

              I also don't fully understand the purpose.

              Do you want to override builtin functions?

              Without data you're just another person with an opinion.
              Hackster | About me

              L 1 Reply Last reply Reply Quote 0
              • L Offline
                lawrence @livius
                last edited by

                @livius My case is: You programmed and your device is working. For example your integration is to locate the containers on a ship. Someone how wants to steal your container and remove all wires and reset te device with 28 en 3v3. So it is an extra security option to secure your device it execute your the code.

                J 1 Reply Last reply Reply Quote 0
                • L Offline
                  lawrence @RobTuDelft
                  last edited by

                  @RobTuDelft yes or an option is to disable the acces to the inbuilt functions.

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

                    @lawrence
                    If someone has access to pin 28 + 3v3 volts can't they can just break the board with a hammer or even drill through the ESP32 and achieve the same result - stop it working?

                    Maybe I'm missing something.

                    L 1 Reply Last reply Reply Quote 0
                    • L Offline
                      livius @jmarcelino
                      last edited by

                      @jmarcelino
                      exactly if someone have acces to device it can break it in really simpler manner than do some supported by some device reset features ;-)

                      @lawrence
                      Think about as @jmarcelino show sample, hammer, drill
                      i can add more e.g.: water, remove power source, electric shock, put into metal case...

                      think about people first, then computers

                      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