• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    History log and SD card lifetime

    UniPi Neuron Series
    4
    9
    126
    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.
    • P
      Petr Helebrant last edited by Petr Helebrant

      Hello,
      I am running Unipi Neuron L403 as home automation controller with about 20 datapoints being stored to MervisDB. I am saving all values every 5 minutes and sending it to DB with the same interval.

      My problem with this setup is that I have to change SD card every two months due to it's total failure. I am guessing that this failure is caused by temporary saving values to SD card before it's transfered to DB. In debugging system status window there is a note saying that values are saved to internal storage.

      My questions are:

      • Is there any way to store values just to operation memory before it's transfered to DB and save card from many unwanted memory writes?
      • I am still using MLC cards. Does it mean that if I buy SLC card, this problem will be solved forever or it just 20-times prolongs the card's life?
      • Is there any way how to directly create bootable USB drive from Mervis image? I have found solution here, but it seems pretty complicated...

      Thank you.
      Petr

      L 1 Reply Last reply Reply Quote 1
      • L
        lionel @Petr Helebrant last edited by

        Hello @Petr-Helebrant ,
        I have not tested myself so cannot tell if it makes a difference but there is also this alternative: http://www.uugear.com/product/raspikey-plug-and-play-emmc-module-for-raspberry-pi/

        Kind regards,
        Lionel

        1 Reply Last reply Reply Quote 0
        • P
          Petr Helebrant last edited by

          Hello @lionel,
          thanks for your reply. I have also considered using this eMMC adapter. After some "google reseach" I didn't found it more reliable than MLC SD card. It seems that eMMC modules are also using MLC memory chips so there is no differrence in memory reliability.

          I think that only solution for me is using SSD drive over USB or finding a way how not to store history data on SD but RAM and lower writes to SD to minimum.

          1 Reply Last reply Reply Quote 0
          • T
            tomas_hora administrators last edited by

            Hello everyone,

            we suggest using SLC or pSLC cards. The differences are explained in this article https://www.unipi.technology/key_feature/what-are-the-differences-between-memory-card-types-and-why-is-it-important-to-know-them-371

            Additionally, check the new upcoming Mervis IDE which features an option to configure the period of writing the nvram file (variables used at startup of Mervis RT) to the storage. If your application handles monitoring, you can set the period to 1minute and significantly reduce the amount of data written to the card.

            P 1 Reply Last reply Reply Quote 1
            • L
              lionel last edited by

              Excellent! Thank you Thomas.

              1 Reply Last reply Reply Quote 0
              • P
                Petr Helebrant @tomas_hora last edited by

                Hello Tomas,
                when is this upcoming version od Mervis IDE going to be released? How often is the nvram file written to the storage in current version?
                Thank you!

                1 Reply Last reply Reply Quote 0
                • T
                  tomas_hora administrators last edited by

                  Hello, the Mervis IDE has been released last week. Until this, the NVRAM has been overwritten with every cycle of the RunTime which depends on the complexity of the executed application...

                  P 1 Reply Last reply Reply Quote 0
                  • P
                    Petr Helebrant @tomas_hora last edited by

                    @tomas_hora,
                    thanks for you answer, now it makes sense, why SD card died so quickly.

                    One more question. It seems that this feature is called retain configuration in new Mervis IDE. What's going to happen if I disable 'enable periodical saving' option?

                    Martin Kudláček 1 Reply Last reply Reply Quote 0
                    • Martin Kudláček
                      Martin Kudláček @Petr Helebrant last edited by

                      Hello @Petr-Helebrant, despite the "disable" option being present in the configuration, the option cannot be disabled. The build of the solution will fail.

                      1 Reply Last reply Reply Quote 1
                      • First post
                        Last post