[Eng-Spa] Power Management at the Software Intermediate Layer in Embedded Systems

avatar
(Edited)

Titulo.jpg

Hello Friends of Hive and dear readers, it is a pleasure to be with you presenting topics of science, research, technology and innovation. In this opportunity I focus the attention on Energy Management in the Software Intermediate Layer in Embedded Systems.
Hola Amigos de Hive y apreciados lectores un gusto estar con ustedes presentándoles temas de la ciencia, investigación, tecnología e innovación. En esta oportunidad centro la atención en la Gestión de Energía en la Capa Intermedia de Software en Sistemas Empotrados.

It is important to note that the topic of this post includes fundamentals and elements that are scattered in the literature of electronics, digital and computational systems, which I have handled and integrated from my expertise with Embedded Computing Systems.
Es importante destacar, que el tema de este post incluye fundamentos y elementos que están dispersos en la literatura de la electrónica, los sistemas digitales y computacionales, que he manejado e integrado desde mi experticia con los Sistemas Computacionales Empotrados.

Separador AA.jpg
Intro.jpg

Software power management has two aspects, one is the optimization of the code in the compilation process, as mentioned in the previous post, and the other is the power management mechanisms in the middle software layer (control kernel or operating system), provided that the processor has the management facilities and resources.

El manejo de la energía desde el software tiene dos vertientes, una es la optimización del código en el proceso de compilación, señalado en el post anterior, y otra, los mecanismos de gestión de energía en la capa intermedia de software (núcleo de control o sistema operativo), siempre y cuando el procesador tenga las facilidades y recursos de gestión.


This management has grown due to the resources incorporated in the processors to meet the energy autonomy required by the systems at an application level.

Este manejo ha crecido por los recursos incorporados en los procesadores para atender la autonomía energética que requieren los sistemas a un nivel de aplicación.

Separador 2.jpg
Desa.png

For system development solutions, which use this power management, they are arranged in three bands.

Para las soluciones de desarrollo de sistemas, que utilizan esta gestión de energía, están dispuestos en tres bandas.


One, from custom or conventional designs where the particular requirements of the application are taken into account.

Una, desde los diseños a la medida o convencionales donde se tienen en cuenta los requerimientos particulares de la aplicación.


The second, which makes use of embedded operating systems, requires processors that handle many more resources. These include power-autonomous real-time operating systems such as FreeRTOS, AtomThreads, TinyOS, Contiki.

La segunda, que echa mano de sistemas operativos empotrados, requiriendo de procesadores que manejen muchos más recursos. Entre ellos se encuentran sistemas operativos de tiempo real autónomos de energía como FreeRTOS, AtomThreads, TinyOS, Contiki.


And the third, embedded applications that handle medium and low resources, which to meet the specifications must manage tasks, which in many cases are concurrent and demand power management. On these occasions, the solution lies in incorporating scheduling algorithms, which could be real-time.

Y la tercera, aplicaciones empotradas que manejan medianos y bajos recursos, que para cumplir con las especificaciones deben gestionar las tareas, que en muchos casos son concurrentes y demandan gestión de energía. En estas ocasiones, la solución recae en incorporar algoritmos de planificación, que pudieran ser de tiempo real.


Any of the three, must have facilities and resources for such management, techniques that I present below.

Cualquiera de las tres, debe tener facilidades y recursos para dicha gestión, técnicas que a continuación presento.


Dynamic Power Management (DPM)
places the equipment or devices in different power states (ready, idle, suspended, hibernate and shutdown). That is, it disables certain parts of the system, leaving only the essential parts of the system such as: clock, timer circuits and memory.
Manejo Dinámico de Energía (DPM: Dynamic Power Management)
coloca en diversos estados de alimentación al equipo o dispositivos (preparado, inactivo, suspendido, hibernación y apagado). Es decir, deshabilita ciertas partes del sistema, dejando solo las partes esenciales del mismo tales como: reloj, los circuitos temporizadores y la memoria.

Dynamic Voltage Scaling (DVS)
adjusts the voltage used in a component. They are able to save energy drastically while providing the maximum computational power needed in general purpose systems, i.e. when significant computational power is needed, the voltage is increased.
Escalamiento Dinámico por Voltaje (DVS: Dynamics Voltage Scaling)
ajusta el voltaje utilizado en un componente. Son capaces de ahorrar energía drásticamente a la vez que proporcionan la potencia de cálculo máxima necesaria en los sistemas de uso general, es decir, cuando se necesite una potencia computacional significativa, se aumenta el voltaje.

Dynamic Frequency Scaling (DFS)
adjusts the processor frequency depending on actual needs, to conserve energy and reduce the amount of heat generated by the chip.
Escalamiento Dinámico por Frecuencia (DFS: Dynamics Frecuency Scaling)
ajusta la frecuencia del procesador dependiendo de las necesidades reales, para conservar energía y reducir la cantidad de calor generado por el chip.

Dynamic Voltage and Frequency Scaling (DVFS)
is a technique that adjusts the power consumed by a system by varying the operating voltage and frequency of the processor with low power consumption characteristics. In other words, it is a composite power saving.
Escalamiento Dinámico de Voltaje y Frecuencia (DVFS: Dynamic Voltage and Frequency Scaling)
es una técnica que ajusta la energía consumida por un sistema, variando el voltaje y frecuencia de operación del procesador con características de bajo consumo de energía. Es decir, es un ahorro de potencia compuesto.


Separador 2.jpg
Cierre.jpg

For the DPM, direct collaboration with the hardware is necessary, as the hardware has to support the programming of interfaces that allow the middle software layer to change power states.

Para el DPM es necesario una colaboración directa con el hardware, ya que este tiene que soportar la programación de interfaces que permitan a la capa intermedia de software cambiar los estados de energía.


The DVS, DFS and DVFS techniques use the sign of the Dynamic Power (Pdynamic) which varies linearly with frequency and quadratically with respect to voltage (VDD).

Las técnicas DVS, DFS y DVFS utilizan lo señalado de la Potencia Dinámica (Pdynamic) que varía linealmente con la frecuencia y en forma cuadrática con respecto al voltaje (VDD).


In addition, the processors used have facilities to change their power modes and/or the ability to vary the speed. All the above with the commitment of not degrading the performance of the system or application.

Además, los procesadores utilizados tienen facilidades para cambiar sus modos de energía y/o la capacidad de variar la velocidad. Todo lo anterior con el compromiso de no degradar el desempeño del sistema o aplicación.


See you soon, I hope the reading has been enriching.

Nos vemos pronto, espero que la lectura haya sido enriquecedora.


I invite you to visit me and follow me @alfonsoalfonsi.

Los invito a visitarme y seguirme en @alfonsoalfonsi.


Separador AA.jpg
Referencias.jpg

Alfonsi A., Yánez R. y Pérez J. (2017). Distribución del Tiempo Ocioso Orientado al Ahorro de Energía en Tareas de Control de Tiempo Real. Revista Ciencia e Ingeniería, 38(2), 159-166.
https://www.redalyc.org/journal/5075/507555007008/html/

Alsheikhy, A. (2021). Dynamic approach to minimize overhead and response time in scheduling
periodic real-time tasks. International Journal of Advanced and Applied Sciences, 8(4), 75-8.
https://doi.org/10.21833/ijaas.2021.04.009

Ibrahim, D. (2019). ARM-Based microcontroller projects using MBED. Elsevier.
https://doi.org/10.1016/B978-0-08-102969-5.00015-X (67)


Figure and Image Credits / Créditos a Figuras e Imágenes


Title image was made by @alfonsoalfonsi using CANVAS and PxHere image.

La imagen del Título fue realizado por @alfonsoalfonsi usando CANVAS e imagen de PxHere.


The separator is my property made with CANVAS and klipartz image.

El separador es de mi propiedad realizado con CANVAS e imagen de klipartz image.


The banner and photographs are my property. Made with Power Point, Paint and Linerock Investment LTD ToonMe application.

El banner y las fotografías son de mi propiedad. Realizado con Power Point, Paint y Linerock Investment LTD Aplicación ToonMe.

Baner ENG SPN.jpg



0
0
0.000
17 comments
avatar

Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support. 
 

0
0
0.000
avatar

It has been awhile since I read one of your write ups. I enjoy reading this one. Power management is essentially in operating embedded systems.

Have a slice of !PIZZA

0
0
0.000
avatar

Thank you @juecoree for reading and supporting my posts. One of the issues on the table is the power consumed by the devices, and a lot of effort is being made to match them to the applications. Thanks again.

0
0
0.000
avatar

Hola querido @alfonsoalfonsi, buen tema, disfrute leer tu post.
Gracias por continuar desarrollando contenido de ciencias, educación y tecnologia de calidad en contenido e ilustración.
Felicitaciones!

0
0
0.000
avatar

Thanks for sharing this with us. This was quite interesting to read, and the blog was very clear. I have moreover learned a few things in the process!

I imagine that all of this is fully embedded into any modern system, isn't it?

Cheers!

0
0
0.000
avatar

Hi, @lemouth thank you. Regarding the question, yes current processors have the facilities and resources to take advantage of the techniques pointed out, just that some are commonly used, such as DPM, others depend on the application and you have to split hairs. Thanks.

0
0
0.000
avatar

Thanks for coming back to my (naive) question. Have a nice week!

0
0
0.000