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

Bibliographic Details
Main Author: Ribeiro, Fernando Martins
Publication Date: 2021
Format: Bachelor thesis
Language: por
Source: Repositório Institucional da UTFPR (da Universidade Tecnológica Federal do Paraná (RIUT))
Download full: http://repositorio.utfpr.edu.br/jspui/handle/1/28615
Summary: 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.
id UTFPR-12_ca006ee34e757a3d7904b00d74ebbca1
oai_identifier_str oai:repositorio.utfpr.edu.br:1/28615
network_acronym_str UTFPR-12
network_name_str Repositório Institucional da UTFPR (da Universidade Tecnológica Federal do Paraná (RIUT))
repository_id_str
spelling Desenvolvimento de devices drivers para o RTOS Nuttx no padrão POSIXDevelopment of device drivers for the RTOS Nuttx in the POSIX standardLinux device drivers (Programas de computador)Sistemas embarcados (Computadores)Sistemas operacionais (Computadores)Linux device drivers (Computer programs)Embedded computer systemsOperating systems (Computers)CNPQ::CIENCIAS EXATAS E DA TERRA::CIENCIA DA COMPUTACAOThis 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.Universidade Tecnológica Federal do ParanáPato BrancoBrasilDepartamento Acadêmico de InformáticaEngenharia de ComputaçãoUTFPRDenardin, Gustavo WeberDenardin, Gustavo WeberCasanova, DalcimarVargas, Diogo RibeiroRibeiro, Fernando Martins2022-05-20T15:37:23Z2022-05-20T15:37:23Z2021-11-03info:eu-repo/semantics/publishedVersioninfo:eu-repo/semantics/bachelorThesisapplication/pdfRIBEIRO, 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/28615porhttps://creativecommons.org/licenses/by-nc/4.0/info:eu-repo/semantics/openAccessreponame:Repositório Institucional da UTFPR (da Universidade Tecnológica Federal do Paraná (RIUT))instname:Universidade Tecnológica Federal do Paraná (UTFPR)instacron:UTFPR2022-05-22T06:07:36Zoai:repositorio.utfpr.edu.br:1/28615Repositório InstitucionalPUBhttp://repositorio.utfpr.edu.br:8080/oai/requestriut@utfpr.edu.br || sibi@utfpr.edu.bropendoar:2022-05-22T06:07:36Repositório Institucional da UTFPR (da Universidade Tecnológica Federal do Paraná (RIUT)) - Universidade Tecnológica Federal do Paraná (UTFPR)false
dc.title.none.fl_str_mv Desenvolvimento de devices drivers para o RTOS Nuttx no padrão POSIX
Development of device drivers for the RTOS Nuttx in the POSIX standard
title Desenvolvimento de devices drivers para o RTOS Nuttx no padrão POSIX
spellingShingle Desenvolvimento de devices drivers para o RTOS Nuttx no padrão POSIX
Ribeiro, Fernando Martins
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
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
author Ribeiro, Fernando Martins
author_facet Ribeiro, Fernando Martins
author_role author
dc.contributor.none.fl_str_mv Denardin, Gustavo Weber
Denardin, Gustavo Weber
Casanova, Dalcimar
Vargas, Diogo Ribeiro
dc.contributor.author.fl_str_mv Ribeiro, Fernando Martins
dc.subject.por.fl_str_mv 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
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
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.
publishDate 2021
dc.date.none.fl_str_mv 2021-11-03
2022-05-20T15:37:23Z
2022-05-20T15:37:23Z
dc.type.status.fl_str_mv info:eu-repo/semantics/publishedVersion
dc.type.driver.fl_str_mv info:eu-repo/semantics/bachelorThesis
format bachelorThesis
status_str publishedVersion
dc.identifier.uri.fl_str_mv 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
identifier_str_mv 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
dc.language.iso.fl_str_mv por
language por
dc.rights.driver.fl_str_mv https://creativecommons.org/licenses/by-nc/4.0/
info:eu-repo/semantics/openAccess
rights_invalid_str_mv https://creativecommons.org/licenses/by-nc/4.0/
eu_rights_str_mv openAccess
dc.format.none.fl_str_mv application/pdf
dc.publisher.none.fl_str_mv Universidade Tecnológica Federal do Paraná
Pato Branco
Brasil
Departamento Acadêmico de Informática
Engenharia de Computação
UTFPR
publisher.none.fl_str_mv Universidade Tecnológica Federal do Paraná
Pato Branco
Brasil
Departamento Acadêmico de Informática
Engenharia de Computação
UTFPR
dc.source.none.fl_str_mv reponame:Repositório Institucional da UTFPR (da Universidade Tecnológica Federal do Paraná (RIUT))
instname:Universidade Tecnológica Federal do Paraná (UTFPR)
instacron:UTFPR
instname_str Universidade Tecnológica Federal do Paraná (UTFPR)
instacron_str UTFPR
institution UTFPR
reponame_str Repositório Institucional da UTFPR (da Universidade Tecnológica Federal do Paraná (RIUT))
collection Repositório Institucional da UTFPR (da Universidade Tecnológica Federal do Paraná (RIUT))
repository.name.fl_str_mv Repositório Institucional da UTFPR (da Universidade Tecnológica Federal do Paraná (RIUT)) - Universidade Tecnológica Federal do Paraná (UTFPR)
repository.mail.fl_str_mv riut@utfpr.edu.br || sibi@utfpr.edu.br
_version_ 1850497884229730304