Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Employee
965 Views

How to sleep the Edison in C

I want to be able to send the Edison to Sleep mode, but I just cannot find any documentation about it!

Do you know if there is any command that will send it to sleep mode? or how is this activated?

I want to sleep it using C code.

Regards!

 

Humberto Garza
10 Replies
Highlighted
Employee
3 Views

Re: How to sleep the Edison in C

Hi,

If you want to put your Edison board in sleep mode manually you can do it by following step 3 from . When you say you want to put the Edison in sleep mode in C are you referring to do it using the Arduino IDE?

Sergio

Highlighted
Community Manager
3 Views

Re: How to sleep the Edison in C

Hi Jose,

Can you try this?

http://iotdk.intel.com/docs/master/upm/modules.html upm: UPM Libraries

Or this

http://iotdk.intel.com/docs/master/mraa/ mraa: Main Page

Roman

Highlighted
Employee
3 Views

Re: How to sleep the Edison in C

I want to send it to sleep mode without interacting with the hardware physically, for example take samples and sleep while not doing anything and wake it up by hardware interrupt.

I could not find anything about sleep mode or similar either in the MRAA or UPM

Do you know what else can I try?

I do NOT want to use the Arduino Breakout Board BTW I want to program it in C not the Arduino IDE

0 Kudos
Highlighted
Community Manager
3 Views

Re: How to sleep the Edison in C

Si tengo,

Si quieres, puedes examinar esto: https://software.intel.com/en-us/intel-iot-developer-kit-cloud-based-analytics-user-guide Intel® IoT Developer Kit Cloud-based Analytics User Guide

Haz una registracion y despuses conecta tu Edison con esta red. Pienso que aqui estan algunas opcionec sobre "Power management" de Edison.

Roman

0 Kudos
Highlighted
Employee
3 Views

Re: How to sleep the Edison in C

I registered my board in the IOT Cloud and there is no power management option. Plus, I want to use it without internet.

Do you know if it is possible to sleep it with those conditions?

0 Kudos
Highlighted
New Contributor I
3 Views

Re: How to sleep the Edison in C

I'm also looking for this info. I was originally going to put a resistor from a GPIO to the PWRBTN but the indeterminancy of GPIO state on boot created a problem. I hope someone from Intel can get a good suggestion for a software controlled power down (especially in C).

j

0 Kudos
Highlighted
Employee
3 Views

Re: How to sleep the Edison in C

what do you want to do? sleep it or just freeze it>? let me know since I think I already did that!

Regards

0 Kudos
Highlighted
New Contributor I
3 Views

Re: How to sleep the Edison in C

I've been using systemctl to poweroff, but I'd like a more elegant solution. This requires a button press to bring back up. I'd like a better understanding of what I can turn off and ideally if someone has a good hibernate that I could bring back up over wifi, that'd be ideal. Instead of a chron sniff.

Can you post anything you have that might help?

thanks,

j

0 Kudos
Highlighted
Beginner
3 Views

Re: How to sleep the Edison in C

Hi Jose,

I saw your comment. Were you able to sleep or freeze the Edison?

I wanted to put the Edison in a mode to reduce the energy consumption to a maximum and only wake it up after a certain time.

Were you able to do something similar?

Thanks a lot!

0 Kudos
Highlighted
New Contributor II
3 Views

Re: How to sleep the Edison in C

I'm interested in that, too..

When I try to use

echo -n "mem" > /sys/power/state

or

echo -n "freeze" > /sys/power/state

 

I only get this:

root@edison:/home# echo -n "freeze" > /sys/power/state

[ 2066.360933] pci_pm_suspend(): sdhci_pci_suspend+0x0/0xd0 returns -16

[ 2066.360949] dpm_run_callback(): pci_pm_suspend+0x0/0x1d0 returns -16

[ 2066.360964] PM: Device 0000:00:01.3 failed to suspend async: error -16

[ 2066.382307] PM: Some devices failed to suspend

-sh: echo: write error: Device or resource busy

Futhermore, getting it out of standby over GPIO ir something else would be nice.

Because so many people demand this options, I think Intel should spend some

time on find a proper and solid solution for this.

0 Kudos