izpis_h1_title_alt

Optimizacija jedra sistema FreeRTOS z namenom zmanjšanja porabe energije
ID Trček, Boris (Author), ID Puhan, Janez (Mentor) More about this mentor... This link opens in a new window

.pdfPDF - Presentation file, Download (10,53 MB)
MD5: 0F5271723D9DF5B9DD33AA6FB8EA4013

Abstract
Magistrska naloga obravnava zmanjšanje porabe električne energije mikrokrmilnika, na katerem teče aplikacija v sklopu realno-časnega operacijskega sistema FreeRTOS. Optimizacija je namenjena uporabi v električnih števcih porabe električne energije. Glavna izboljšava temelji na uporabi nezasedenih perifernih časovnikov mikrokrmilnika, kjer z njihovimi bloki CC nadomestimo časovnik SysTick. Ta se v jedru sistema FreeRTOS uporablja za spremljanje poteka časa. S tem smo omogočili, da mikrokrmilnik preide v način spanja hitreje in pogosteje. Za doseganje tega smo morali modificirati jedro sistema FreeRTOS tako, da smo vanj dodali nekaj funkcij. Za lažje razumevanje delovanja hranjenja in prehajanja med stanji opravil, ki so časovno odvisna, je v delu podan njihov podrobnejši opis. Vsebuje opise seznamov in strukture TCB, s katerimi upravlja sistem FreeRTOS. V delu je opisano tudi katere funkcije moramo dodati za doseganje optimizacije in zakaj ta optimizacija sploh deluje. Za namen testiranja in vrednotenja izboljšav smo razvili in izdelali testno tiskano vezje. To se obnaša podobno kot preprost, zelo poenostavljen števec. Sistem vsebuje 7 opravil, ki delujejo v kombinaciji s tiskanim vezjem. V delu so podrobneje opisani posamezni deli tiskanega vezja in komponente, ki ga sestavljajo. Prav tako so bolje opisana tudi opravila in povezave med njimi. S pomočjo vezja smo našo optimizacijo primerjali z že obstoječo optimizacijo, ki jo ponuja sistem FreeRTOS. Ugotovili smo, da je naša izboljšava z uporabo prostih perifernih časovnikov energetsko manj potratna. Pri vpeljavi naše rešitve se je poraba zmanjšala za 27,9% v primerjavi s sistemom brez uporabe spanja in za 12,2% v primerjavi s sistemom z uporabo načina spanja.

Language:Slovenian
Keywords:FreeRTOS, realno-časni operacijski sistem, časovnik, SysTick, TCB
Work type:Master's thesis/paper
Typology:2.09 - Master's Thesis
Organization:FE - Faculty of Electrical Engineering
Year:2024
PID:20.500.12556/RUL-161567 This link opens in a new window
COBISS.SI-ID:215592195 This link opens in a new window
Publication date in RUL:12.09.2024
Views:141
Downloads:34
Metadata:XML DC-XML DC-RDF
:
Copy citation
Share:Bookmark and Share

Secondary language

Language:English
Title:FreeRTOS core optimization to reduce energy consumption
Abstract:
This master's thesis focuses on reducing the electrical energy consumption of a microcontroller, that is running an application with FreeRTOS real-time operating system. The optimization is intended for use in electric power consumption meters. It is based on utilizing the microcontroller's unused peripheral timers. Specifically, we replaced the SysTick timer, which is used by the FreeRTOS core for tracking time, with the CC blocks of peripheral timers. This modification allows the microcontroller to enter sleep mode sooner and more frequently. To achieve this, we introduced new functions into the FreeRTOS kernel, modifying its original operation. The thesis describes the previous method of recording the state of time-dependent tasks using lists and TCB structures. It also details the new functions, that were added for optimization and the rationale behind their effectiveness. For testing and evaluating these improvements, a printed circuit board was developed to simulate the behavior of a simplified power consumption meter. A program was also created, which contains seven tasks that work in conjunction with the PCB. The thesis includes descriptions of the individual parts of the PCB and the components used on it. It also provides more details about the tasks and their interconnections. Using this setup, we compared existing optimizations offered by FreeRTOS with our own. Our findings reveal that our method of using peripheral timers in combination with sleep mode is less energy-intensive, reducing energy consumption by up to 27.7% compared to a system without using sleep mode and by 12.2% compared to the system that uses SysTick timer and sleep mode.

Keywords:FreeRTOS, real-time operating system, timer, SysTick, TCB

Similar documents

Similar works from RUL:
Similar works from other Slovenian collections:

Back