Download VirtualSense User Guide 2
Transcript
University of Urbino & NeuNet 8.3 www.virtualsense.it PowerManagement Interfaces The power management interface provide a set of functionality for manage the power consumption of VirtualSense motes. For use PowerManagment functionality you must import the library: import javax.virtualsense.powermanagement; In detail using this interface you can: • Set the working frequency of a mote. • Put mote in Standby. • Put mote in DeepSleep. • Put mote in SystemHibernation. PowerManager static final short MCU 4MHZ static final short MCU 8MHZ static final short MCU 12MHZ static final short MCU 16MHZ static final short MCU 20MHZ static final short MCU 25MHZ native void setMCUFrequency(short freq) native void setSystemClockMillis(millis) native void slowDownClockByFactor(factor) native void standby() native void deepSleep() native void systemHibernation() native void scheduleRTCInterruptAfter(int minutes) void systemHibernation(int minutes) void deepSleep(int minutes) VS-UG1-Environment Installation v1.0 21