Desenvolvimento de devices drivers para o RTOS Nuttx no padrão POSIX

This work demonstrates the development of a device driver for the RTOS Nuttx, using portability concepts provided by the POSIX 2013.1 standard. The Nutty is a real-time operating system with POSIX compatibility, nonetheless, it has no defined driver development methodology. A character device driver...

ver descrição completa

Autor principal: Ribeiro, Fernando Martins
Formato: Trabalho de Conclusão de Curso (Graduação)
Idioma: Português
Publicado em: Universidade Tecnológica Federal do Paraná 2022
Assuntos:
Acesso em linha: http://repositorio.utfpr.edu.br/jspui/handle/1/28615
Tags: Adicionar Tag
Sem tags, seja o primeiro a adicionar uma tag!
id riut-1-28615
recordtype dspace
spelling riut-1-286152022-05-22T06:07:36Z Desenvolvimento de devices drivers para o RTOS Nuttx no padrão POSIX Development of device drivers for the RTOS Nuttx in the POSIX standard Ribeiro, Fernando Martins Denardin, Gustavo Weber Denardin, Gustavo Weber Casanova, Dalcimar Vargas, Diogo Ribeiro Linux device drivers (Programas de computador) Sistemas embarcados (Computadores) Sistemas operacionais (Computadores) Linux device drivers (Computer programs) Embedded computer systems Operating systems (Computers) CNPQ::CIENCIAS EXATAS E DA TERRA::CIENCIA DA COMPUTACAO This work demonstrates the development of a device driver for the RTOS Nuttx, using portability concepts provided by the POSIX 2013.1 standard. The Nutty is a real-time operating system with POSIX compatibility, nonetheless, it has no defined driver development methodology. A character device driver development process was made and its applicability using the device driver in an application developed for Nuttx. It was decided to develop a USB CDC/ACM class device driver, to use the emulation feature of a virtual serial port from the ACM component. Therefore, it was necessary to apply the project in layers, which abstract the communication between a USB controller, the device driver implemented in the Nuttx driver layer, and an application registered in the applications directory, which does not belong to the Nuttx core. However, requests to this directory can consume the resources made available by the RTOS. After completing the development and configuration procedure of the driver, it is possible to carry out a communication between the device connected to the USB port provided in the TM4C1294-Launchpad development kit. The application must be created using NuttShell and requested through the command line. The emulation of a virtual terminal went as expected because the development was about the POSIX standard that tests portability between operating systems, the same device driver can be exported to another POSIX RTOS. It is possible to see that the system calls requested in the application are processed by the POSIX functions developed in the device driver. It can conclude that the device driver development procedure is operating as waiting. The work brings contributions to the development of applications and device drivers in the Nuttx environment. As a contribution to the entire development community, the codes and any configuration files are made available as open-source on GitHub. Este trabalho demonstra o desenvolvimento de um device driver para o RTOS Nuttx, utilizando conceitos de portabilidade disponibilizados pela norma POSIX 2013.1. O Nuttx é um sistema operacional de tempo real com compatibilidade POSIX, no entanto, não possui metodologia de desenvolvimento de driver definida. Foi confeccionado um processo de desenvolvimento de driver do tipo character device e demonstrado sua aplicabilidade realizando a utilização do device driver em uma aplicação desenvolvida para o Nuttx. Optou-se por desenvolver um device driver da classe USB CDC/ACM, com o intuito de utilizar o recurso de emulação de uma porta serial virtual proveniente do componente ACM. Para tanto, fez-se necessária a segmentação do projeto em camadas, que permite abstrair a comunicação entre a controladora USB, o device driver implementado na camada de driver do Nuttx e a aplicação registrada no diretório apps. Ao concluir o desenvolvimento e o procedimento de configuração do driver, foi possível realizar a comunicação com o dispositivo conectado na porta USB disponibilizada no kit de desenvolvimento TM4C1294-Launchpad. A emulação de um terminal virtual ocorreu conforme o planejado, e devido ao desenvolvimento ter sido baseado na norma POSIX que descreve a portabilidade entre sistemas operacionais, o mesmo device driver pode ser exportado para outro RTOS POSIX. É possível visualizar que as system calls requisitadas na aplicação são processadas pelas funçõees POSIX desenvolvidas no device driver, e a partir disso pode-se concluir que o procedimento do desenvolvimento de device driver ocorreu de forma adequada. O trabalho traz contribuições para o desenvolvimento de aplicações e device drivers no ambiente do Nuttx. Adicionalmente, os códigos e todos os arquivos de configuração estão disponibilizados como código open source no Github à toda comunidade de desenvolvimento. 2022-05-20T15:37:23Z 2022-05-20T15:37:23Z 2021-11-03 bachelorThesis RIBEIRO, Fernando Martins. Desenvolvimento de devices drivers para o RTOS Nuttx no padrão POSIX. 2021. Trabalho de Conclusão de Curso (Engenharia de Computação) - Universidade Tecnológica Federal do Paraná, Pato Branco, 2021. http://repositorio.utfpr.edu.br/jspui/handle/1/28615 por openAccess https://creativecommons.org/licenses/by-nc/4.0/ application/pdf Universidade Tecnológica Federal do Paraná Pato Branco Brasil Departamento Acadêmico de Informática Engenharia de Computação UTFPR
institution Universidade Tecnológica Federal do Paraná
collection RIUT
language Português
topic Linux device drivers (Programas de computador)
Sistemas embarcados (Computadores)
Sistemas operacionais (Computadores)
Linux device drivers (Computer programs)
Embedded computer systems
Operating systems (Computers)
CNPQ::CIENCIAS EXATAS E DA TERRA::CIENCIA DA COMPUTACAO
spellingShingle Linux device drivers (Programas de computador)
Sistemas embarcados (Computadores)
Sistemas operacionais (Computadores)
Linux device drivers (Computer programs)
Embedded computer systems
Operating systems (Computers)
CNPQ::CIENCIAS EXATAS E DA TERRA::CIENCIA DA COMPUTACAO
Ribeiro, Fernando Martins
Desenvolvimento de devices drivers para o RTOS Nuttx no padrão POSIX
description This work demonstrates the development of a device driver for the RTOS Nuttx, using portability concepts provided by the POSIX 2013.1 standard. The Nutty is a real-time operating system with POSIX compatibility, nonetheless, it has no defined driver development methodology. A character device driver development process was made and its applicability using the device driver in an application developed for Nuttx. It was decided to develop a USB CDC/ACM class device driver, to use the emulation feature of a virtual serial port from the ACM component. Therefore, it was necessary to apply the project in layers, which abstract the communication between a USB controller, the device driver implemented in the Nuttx driver layer, and an application registered in the applications directory, which does not belong to the Nuttx core. However, requests to this directory can consume the resources made available by the RTOS. After completing the development and configuration procedure of the driver, it is possible to carry out a communication between the device connected to the USB port provided in the TM4C1294-Launchpad development kit. The application must be created using NuttShell and requested through the command line. The emulation of a virtual terminal went as expected because the development was about the POSIX standard that tests portability between operating systems, the same device driver can be exported to another POSIX RTOS. It is possible to see that the system calls requested in the application are processed by the POSIX functions developed in the device driver. It can conclude that the device driver development procedure is operating as waiting. The work brings contributions to the development of applications and device drivers in the Nuttx environment. As a contribution to the entire development community, the codes and any configuration files are made available as open-source on GitHub.
format Trabalho de Conclusão de Curso (Graduação)
author Ribeiro, Fernando Martins
author_sort Ribeiro, Fernando Martins
title Desenvolvimento de devices drivers para o RTOS Nuttx no padrão POSIX
title_short Desenvolvimento de devices drivers para o RTOS Nuttx no padrão POSIX
title_full Desenvolvimento de devices drivers para o RTOS Nuttx no padrão POSIX
title_fullStr Desenvolvimento de devices drivers para o RTOS Nuttx no padrão POSIX
title_full_unstemmed Desenvolvimento de devices drivers para o RTOS Nuttx no padrão POSIX
title_sort desenvolvimento de devices drivers para o rtos nuttx no padrão posix
publisher Universidade Tecnológica Federal do Paraná
publishDate 2022
citation RIBEIRO, Fernando Martins. Desenvolvimento de devices drivers para o RTOS Nuttx no padrão POSIX. 2021. Trabalho de Conclusão de Curso (Engenharia de Computação) - Universidade Tecnológica Federal do Paraná, Pato Branco, 2021.
url http://repositorio.utfpr.edu.br/jspui/handle/1/28615
_version_ 1805304788228767744
score 10,814766