3 Replies Latest reply on Oct 10, 2016 12:53 PM by Intel Corporation

    Save data just before shutting down

    anjoshigor

      Here's the problem:

      I'm making a project using Intel Galileo Gen 2 and a car. My problem is that when I turn the car on, it turns galileo too, but when I turn it off, the board shuts down instantaneously and I can't save the data on my database properly. I know I can have a switch to turn on and off everytime, but my goal is to use that automatically like it isn't even there. So:

       

      How to use a battery to keep the board alive until I save everything?

      or

      How to know when it's is turned off, so I can save it all?

      Thanks in advance!

        • 1. Re: Save data just before shutting down
          Intel Corporation
          This message was posted on behalf of Intel Corporation

          Hi Anjoshigor,

          Nice project! If I’m understanding you correctly, the power supply is connected directly to both devices (Car and Galileo Gen2), right? And it makes sense because it is like any device that shuts down when is disconnected.

          Personally I can recommend you two ways to try to solve your issue:

          1- In your Galileo code, try to save the data right after the Galileo receives it. In that way you make sure that the data is in the database.

          2- Implement a microcontroller that controls a relay circuit, so every time that you shut down the car the microcontroller sends a signal to the Galileo to save the data and when it finishes it send a signal back to the microcontroller to turn off the system.

          I think that there is too many ways to try to solve it, and these 2 are the ones that comes to my mind.

          I hope you find this information useful.

          Regards,
          -Leonardo

          • 2. Re: Save data just before shutting down
            FGT

            Hi anjoshigor,

             

            I think there is no way of knowing the Galileo is turned off unless you implement something like a power switch as that mentioned at Power led and switch for Galileo .

             

            What database are you using?

             

            Fernando.

            • 3. Re: Save data just before shutting down
              Intel Corporation
              This message was posted on behalf of Intel Corporation

              Hi Anjoshigor,

              Do you have any updates of this case? Did you try any of my recommendations?

              Remember that we are here to help you.

              Regards, 
              -Leonardo