• Title/Summary/Keyword: Asnchronous

Search Result 1, Processing Time 0.012 seconds

Framework design for efficient Arduino program development

  • Gong, Dong-Hwan
    • International Journal of Internet, Broadcasting and Communication
    • /
    • v.14 no.1
    • /
    • pp.162-169
    • /
    • 2022
  • Arduino is used in various places such as education, experimentation, and industry. Due to the easy accessibility of Arduino, it is often used by non-majors, and it is also used in media art and toy programs. Although Arduino is relatively easy to use compared to other devices, it is not easy to control various IoT components at the same time. Some tasks run independently of other tasks, while others run dependently. In this paper, I proposed the Arduino Task Framework to efficiently execute many tasks in these various situations. The design framework of this paper is largely composed of two types: synchronous execution and asynchronous execution. These two execution methods can be combined to create several independent and dependent execution routines. Asynchronous tasks are independently executed tasks and are managed by AsyncTaskGroup, while synchronous tasks are dependently executed tasks and are managed by SyncTaskGroup. AsyncTaskGroup instance and SyncTaskGroup instance are instances of the same Task and can be used in combination with another task. The Arduino framework proposed in this paper simplifies the program structure and can easily compose various tasks.