METACONTROLADORES: UNA ALTERNATIVA PARA EL CONTROL DE DISPOSITIVOS EN UN RTOS (META-DRIVERS: A NOVEL APPROACH TO DEVICE CONTROL IN RTOS)

Daniela Dives Viera, Edwin Christian Becerra Alvarez, Juan José Raygoza Panduro, María Regina Rivas Becerra

Resumen


Resumen
En este trabajo se presenta una alternativa para el control de dispositivos en un sistema embebido, donde cada uno requiere un controlador independiente, sin embargo, el mejor aprovechamiento de los recursos limitados puede impactar considerablemente su desempeño. Mediante el uso de metacontroladores es posible reducir los requerimientos de memoria y tiempo de desarrollo, así como la posibilidad de soportar nuevos dispositivos. Para tal fin, se presenta una metodología que se basa en analizar las señales de control, permitiendo identificar patrones y crear un diccionario para soportar los periféricos. Las simulaciones comportamentales realizadas en EMOS, aceleraron el proceso de depuración para las palabras diseñadas, siendo éstas utilizadas 144 veces en el SSDS. Además, las mediciones experimentales con una tarjeta Raspberry Pi Pico validan la metodología propuesta. Finalmente, se determina que existe una correspondencia del 100% en las palabras utilizadas para los casos analizados, reduciendo la ocupación de memoria RAM del microcontrolador.
Palabras Clave: Metacontrolador, metalenguaje, RTOS, tiempo real.

Abstract
This paper presents an alternative approach for device control in embedded systems, where each device generally requires an independent driver. However, efficient utilization of limited system resources can significantly enhance overall performance. The use of metadrivers enables a reduction in memory requirements and development time, while also facilitating the integration of new devices. To achieve this, a methodology is proposed based on the analysis of control signals, allowing for the identification of patterns and the construction of a dictionary to support peripheral devices. Behavioral simulations performed using EMOS accelerated the debugging process of the designed control words, which were utilized 144 times in the SSDS. In addition, experimental measurements conducted on a Raspberry Pi Pico board validate the proposed methodology. Results show a 100% match of the control words for the analyzed cases, along with a reduction in RAM usage on the microcontroller.
Keywords: Metadriver, metalanguage, real-time, RTOS.

Texto completo:

394-411 PDF

Referencias


Abbasi, A., Wetzels, J., Holz, T., Etalle, S., (2019). Challenges in Designing Exploit Mitigations for Deeply Embedded Systems, Proc. of the IEEE European Symposium on Security and Privacy, pp. 31 – 46. doi: 10.1109/EuroSP.2019.00013.

Abuazoum, S., (2025). A Comparative Analysis of VxWorks OS and Windows CE in Embedded Real-Time Applications, Wadi Alshatti University Journal of Pure and Applied Sciences, Vol. 3, Issue 2, 2025. doi: 10.63318/waujpasv3i2_02.

Amos, B., (2020). Hands-On RTOS with Microcontrollers: Building real-time embedded systems using FreeRTOS, STM32 MCUs, and SEGGER debug tools. Packt Publishing. ISBN: 978-1-83882-673-4.

Becerra Alvarez, E. C., Raygoza Panduro, J. J., Rivera Dominguez, J., Ortega Cisneros, S., González Vidal, J. L., (2023). ForEmb: A Forth-Inspired, Real Time Interpreter for Embedded Systems, Proc. of the 12th International Conference On Software Process Improvement (CIMPS), pp. 215-224, Cuernavaca, México. doi: 10.1109/CIMPS61323.2023.10528835.

Becker, M., Di Guglielmo, G., Fummi, F., Mueller, W., Pravadelli, G. and Xie, T., (2010). RTOS-aware refinement for TLM2.0-based HW/SW designs, Proc. of the 2010 Design, Automation & Test in Europe Conference & Exhibition (DATE 2010), Dresden, Germany, pp. 1052-1058. doi: 10.1109/DATE.2010.5456965.

Brodie, L., (2004). Thinking FORTH, Creative Commons. ISBN: 0-9764587-0-5.

Cingel, M., Novak, M. and Fryza, T., (2017). Characteristics of SPI drivers in RTOS environment, Proc. of the 2017 27th International Conference Radioelektronika, Brno, Czech Republic, pp. 1-6. doi: 10.1109/RADIOELEK.2017.7937586.

Embedded Metalanguage Operating System, (2025). Accessed on: 12/08/2025. Available on: https://github.com/labcibernetica/EMOS.

Galeano, G., (2009). Programación de Sistemas Embebidos en C, Alfaomega, 2009. ISBN: 9789586827706.

Hallinan, C., (2010). Embedded Linux Primer: A Practical Real-World Approach, 2nd Ed., Pearson Education. ISBN: 978-0-13-167984-9.

Holt, A., Huang, C., (2018). Embedded Operating Systems: A Practical Approach, 2nd Ed., Springer International Publishing AG. doi: 0.1007/978-3-319-72977-0.

Jadhav, M. S., (2014). Easy Linux Device Driver, 2nd Ed., HighTechEasy Publishing. ISBN WWH48Y3155N.

Kaptain, R. J., Helle, T., Larsen, S. M., (2024). Everyday technology and assistive technology supporting everyday life activities in adults living with COPD – a narrative literature review. Disability and Rehabilitation: Assistive Technology, Vol. 20, No.4, 742–756. doi: 10.1080/17483107.2024.2431627.

Kernighan, B. W., Ritchie, D. M., (1991). El Lenguaje de Programación C, 2da Ed., Prentice-Hall Hispanoamérica S. A. ISBN: 979-8477795994.

Lutenberg, A., Gomez, P., Pernia, E., (2022). A Beginner’s Guide to Designing Embedded System Applications on ARM Cortex-M Microcontrollers, Arm Education Media. ISBN: 978-1911531418.

Mano, M. M., Kime, C. R., Martin, T., (2015). Logic and Computer Design Fundamentals, 5th Ed., California State University, Pearson Higher Education. ISBN: 978-0134080123.

Mecrisp stellaris unofficial userdoc, (2025). Accessed on: 12/08/2025. Available on: https://mecrisp-stellaris-folkdoc.sourceforge.io/.

Nawaz, S., Mitchell, M., Linden, T., Bhowmik, J., (2025). Exploring smartphone usage patterns and perceived dependency: Across-sectional study in Australia. Acta Psychologica, Vol. 257, 105100. doi: 10.1016/j.actpsy.2025.105100.

Pérez, D. A., (2009). Lecturas en Ciencias de la Computación – Sistemas Operativos Embebidos, Centro de Investigación en Comunicaciones y Redes (CICORE), Caracas. ISSN: 1316-6239.

Phung, S., Jones D., Joubert, T., (2011). Professional Windows Embedded Compact 7, Wiley. ISBN 978-1118050460.

Pont, M. J., (2022). Embedded C, Pearson Education Limited. ISBN: 020179523X.

Raspberry Pi Pico Datasheet: An RP2040-based microcontroller board, Raspberry Pi Ltd, 2020.

Rico, R., Rico-Azagra, J. and Gil-Martínez, M., (2022). Hardware and RTOS Design of a Flight controller for Professional Applications, in IEEE Access, vol. 10, pp. 134870-134883. doi: 10.1109/ACCESS.2022.3232749.

Schild, U. J., Herzog, S., (1993). The Use of Meta-Rules in Rule Based Legal Computer Systems, Proc. of the 4th International Conference on Artificial Intelligence and Law (ICAIL), pp. 100 – 109, Association for Computing Machinery (ACM). doi: 10.1145/158976.15898

Srirengan, K., (2006). UNDERSTANDING UNIX, 7th Ed., Prentice-Hall. ISBN: 9788120314894.

Vahid, F., Givargis, T., (1999). Embedded System Design: A Unified Hardware/Software Approach, University of California, 1999. ISBN: 978-0-471-38678-0.






URL de la licencia: https://creativecommons.org/licenses/by/3.0/deed.es

Barra de separación

Licencia Creative Commons    Pistas Educativas está bajo la Licencia Creative Commons Atribución 3.0 No portada.    

TECNOLÓGICO NACIONAL DE MÉXICO / INSTITUTO TECNOLÓGICO DE CELAYA

Antonio García Cubas Pte #600 esq. Av. Tecnológico, Celaya, Gto. México

Tel. 461 61 17575 Ext 5450 y 5146

pistaseducativas@itcelaya.edu.mx

http://pistaseducativas.celaya.tecnm.mx/index.php/pistas