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 to save data permanently ?

    Scheduled Pinned Locked Moved LoPy
    lopysaving datastorage
    6 Posts 5 Posters 2.6k Views 5 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.
    • C Offline
      cylex
      last edited by

      In order to have access to certain values even after my LoPy crashes, I want to save them permanently... What is the way you guys prefer for saving data in the persistent storage?

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

        You can save any data to a file on the Lopy. There is also a SD class for interfacing with SD cards. As for as I know there is no way to store anything in the EEPROM I believe.

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

        1 Reply Last reply Reply Quote 1
        • T Offline
          TravisT
          last edited by

          I woud say file is simple and easy, or adding FRAM or Flash.

          1 Reply Last reply Reply Quote 1
          • D Offline
            danielm
            last edited by

            I suggest NOT to use internal file-system because in my opinion it could get corrupted if power outage would happen during execution of write command. I experienced this behavior on MicroPython for TI CC3200.
            Company called Swissbit offers SD cards with power fail protection. Unfortunately I do not have any experience with them yet.
            https://www.swissbit.com/products/nand-flash-products/cards/micro-sd-memory-cards/

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

              @danielm said in How to save data permanently ?:

              Company called Swissbit offers SD cards with power fail protection. Unfortunately I do not have any experience with them yet.

              I cannot even imgine what it prevent in power fail?

              think about people first, then computers

              D 1 Reply Last reply Reply Quote 0
              • D Offline
                danielm @livius
                last edited by

                @livius
                FW of the SD card should prevent corruption of file system of the card if power fail happens during writing. How this is achieved I don't know.

                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