1 2 Previous Next 25 Replies Latest reply on Apr 17, 2017 11:36 PM by vinu_gk

    Edison low power mode clarifications

    vinu_gk

      Hi,

      I am working with an Edison compute module in a custom board running 3.10.98-poky-edison+. I am able to go in and out of sleep mode using echo -n "mem" > /sys/power/state. Also i understand that Wifi needs to be turned off before going to low power mode. It seems that there is very less documentation for the low power modes of Edison. I have some clarifications regarding the low power mode.

       

      1. What are the possible ways of waking the device from mem state? Can the device be woken up from sleep(mem state) using a timer interrupt?

      2. What are the proper steps for turning off Wifi prior to sleep and turning it on after sleep. Please note that the device is always in STATION mode and connected to an AP.

      3. What is the use of power management in Edison? Should it be turn on or off?

      Thanks,

      Vinu

        • 1. Re: Edison low power mode clarifications
          Intel Corporation
          This message was posted on behalf of Intel Corporation

          Hi Vinu,

          Thank you for contacting us, we’ll do our best to help you clarify any doubts you have about the Edison. First, if after looking at the documentation you still feel something is not clear, don’t hesitate to contact us, we’ll do the effort to try and find more information.

          One of the ways to wake the Edison is using the pin PWRBTN#. According to the module datasheet:
          ” The PWRBTN# pin is an active low input which can cause the Edison module to transition into and out of sleep, or cause a power off , depending on the configuration of the software."


          I found a couple of useful threads that discuss waking the Edison, sleep states and interrupts, take a look at
          https://communities.intel.com/message/381316#381316
          https://software.intel.com/en-us/forums/internet-of-things/topic/534435
          https://communities.intel.com/thread/61067

          Regarding your question about turning off WiFi, you can try using these commands before placing the device in mem state.
          ifconfig wlan0 down
          systemctl stop wpa_supplicant


          In regards to the use of power management, it depends on your application. Disabling power management might be useful for some debug/performance reasons. This means that if you want the Edison to consume as less energy as possible then disabling power management may be an option. Let us know if you’re interested in disabling power management.

          We’ll be waiting for your response.  

          -Sergio

          • 2. Re: Edison low power mode clarifications
            vinu_gk

            Thanks Sergio.

            I went through the links you provided. But i couldnt find an answer to my first question though.

            ie Can the device be woken up from sleep(mem state) using a timer interrupt?.

            Please note that we are using a custom board, thus POWERBTN cannot be used for waking up. The only option i see now is waking up through serial interrupts.

             

            regards,

            Vinu

            • 3. Re: Edison low power mode clarifications
              Intel Corporation
              This message was posted on behalf of Intel Corporation

              Hi Vinu,

              We’ll do some research and contact you as soon as we have more information. Thank you for your understanding.

              -Sergio
               

              • 4. Re: Edison low power mode clarifications
                vinu_gk

                Thanks. I will be waiting for your response.

                • 5. Re: Edison low power mode clarifications
                  Intel Corporation
                  This message was posted on behalf of Intel Corporation

                  Hi Vinu,

                  Thanks for your patience and for the clarification that you’re using a custom board.
                  Timer interrupts work on the Edison. Other users have reported it works fine. I looked for an example thread and found this one https://communities.intel.com/thread/60831 . Here you can see that the timer interrupt works fine and you can see examples and suggestions on how to start working with interrupts.

                  Let us know if this was helpful and if there’s anything else we can help you with.

                  Regards,
                  -Sergio
                   

                  • 6. Re: Edison low power mode clarifications
                    vinu_gk

                    Hi Sergio,

                     

                    Thanks for the reply. Please note that my requirement was to wake up Edison with a timer after it has gone to low power mode. In the normal mode i am able to generate timer interrupts. Please see if this is possible.

                     

                    regards,

                    Vinu

                    • 7. Re: Edison low power mode clarifications
                      Intel Corporation
                      This message was posted on behalf of Intel Corporation

                      Hi Vinu

                       

                      I’m not sure if the timer is still running during low-power sleep mode. If the timer is still running, then it’d be possible to wake the device from low-power sleep mode. You mentioned in your initial post that you’re able to go in and out of sleep mode. One way to test if the timer is still running and thus making it possible to be woken up during sleep mode is to have the program you’re using as a timer to execute the command to go out of sleep mode at the moment the timer is supposed to wake up the Edison.

                       

                      If this test is successful, then it’d be possible to wake the Edison after a timer comes in gives the order to go out of sleep mode. If the test is not successful, it’d mean that the timer turns off during low power mode, making the approach of a timer interrupt not possible.

                       

                      Let us know your results.

                       

                      -Sergio

                      • 8. Re: Edison low power mode clarifications
                        vinu_gk

                        Hi Sergio,

                        It seems like the timer is not working during sleep mode. I had also read in some other posts that Edison's RTC can be used for waking up from sleep, but i am not sure enough. Is there any GPIO pins available on Edison that has the ability to wake up Edison on interrupt?

                        regards,

                        Vinu

                        • 9. Re: Edison low power mode clarifications
                          Intel Corporation
                          This message was posted on behalf of Intel Corporation

                          I also did some research on the Edison’s RTC, the thread I found most useful was this one https://communities.intel.com/thread/57801 . Which threads did you see?

                          There’s a way to test if the MRAA ISR example works to check if you can wake up the Edison with pin 6. The example is the following: https://github.com/intel-iot-devkit/mraa/blob/master/examples/isr_pin6.c .

                          First, try this example on normal mode to see if the example works and you’re able to do interrupts. Once you’re sure the example works you can put the Edison in sleep mode and run the example again and adapt the code with the command you use to put the Edison out of sleep mode. If the ISR example manages to wake up the Edison then you’d be able to confirm if the Edison can be waken up using a GPIO pin as an interrupt.

                          Let us know your results.

                          -Sergio
                           

                          • 10. Re: Edison low power mode clarifications
                            Intel Corporation
                            This message was posted on behalf of Intel Corporation

                            Hi Vinu

                            Do you still need assistance with this thread? Please let us know the results of your latest tests.

                            -Sergio
                             

                            • 11. Re: Edison low power mode clarifications
                              vinu_gk

                              Hi Sergio,

                               

                              One more question related to Wifi connection after wake up from low power mode. It seems that the device takes around 10 seconds for establishing Wifi connection after coming out of sleep. This delay includes starting wpa_supplicant, wpa_cli reconfigure etc. What is the expected delay for the Wifi module to be up, after coming out of mem state ?

                               

                              regards,

                              Vinu

                              • 12. Re: Edison low power mode clarifications
                                Intel Corporation
                                This message was posted on behalf of Intel Corporation

                                Hi Vinu,

                                We have not tested this delay, we’re going to do some tests and let you know our results soon. As an additional note, how did you measured the delay from coming out of sleep mode to the moment after it’s connected to Wi-Fi?

                                -Sergio
                                 

                                • 13. Re: Edison low power mode clarifications
                                  vinu_gk

                                  Hi Sergio,

                                  I measured the delay by trial and error. I added a delay of 10 seconds after wake up to send some Wifi messages. Any delay less than this would result in a communication failure.

                                  Thanks

                                  • 14. Re: Edison low power mode clarifications
                                    Intel Corporation
                                    This message was posted on behalf of Intel Corporation

                                    You mention that the device first wakes up and then there’s a delay of 10s before you’re successful at establishing a WiFi communication. This delay is not only the time it takes WiFi to be up, it also involves the many other features that WiFi requires to be up again before it can establish a connection. When the Edison comes back from sleep, there are several other functionality features that need to be enabled, that’s why it’s hard to say how much time specifically WiFi takes to be configured and be up again. I mean that the Edison is not in normal mode immediately after the wake up command is activated.

                                    Having that said, we can try and test the same scenario you’re using to compare how much time it’d take before the Edison can establish a connection. If you want us to try the same scenario and compare results, please send us the exact commands you used to put the Edison in sleep mode and the steps you took to wake up the Edison and test WiFi connectivity.

                                    We’ll be waiting for you response.

                                    -Sergio A
                                     

                                    1 2 Previous Next