As a result of the research, two directions for development of software architecture for low-power general purpose microcontrollers (LPGPM) are identified. The first, classical approach is the development using standard State patterns. The second is the development of programs, algorithms and structures based on mathematical analysis.
The first direction is chosen in the work. The variant of the implementation of a typical pattern for development of software architecture (SA) in the form of a finite state machine (FSM) is proposed to discussion. This pattern allows to divide the development of the architectural part of the program for LPGPM and programming the LPGPM hardware. This approach makes it possible to divide the work of the software architect and the work of LPGPM hardware specialists. Advantage of the solution in comparison with the real time operating system (RTOS) is the saving of LPGPM hardware resources. In addition, it improves the readability of code and good testing prospects. The resulting architecture makes it possible to easily accompany the software and switch to other types of microcontroller. The disadvantage is an increase in the required amount of RAM with an increase in the number of states. It is this disadvantage that requires the application not only of experimental and engineering-intuitive methods, but also to continue research in the second direction.
Due to modern microcomputers and platforms based on microprocessors such as, for example, Raspberry Pi, Orange Pi, Nano Pi, Rock Pi, Banana Pi, Asus Tinker Board – the development of prototypes of em-bedded systems is possible in a «design» mode. The software part is implemented on the basis of operat-ing systems and standard technologies based on well-known programming languages such as C / C++, Python, C#, Java, etc. In such case the control channel for the embedded system can be either imple-mented via a web service separated by a communication channel or controlled independently. It is im-portant to understand that creating an embedded system on a standard platform is much more expensive than buying a ready-made mass-produced device with the same functionality. Therefore, it makes sense to use platforms like the Raspberry Pi mainly for individual artificial devices. If it is necessary to build a project of embedded systems and there is a problem with choosing a hardware platform for the client side, then currently there is a wide range of boards and solutions for building an efficient and inexpen-sive system using ready-made modules. The number of expansion cards and various sensors, video cam-eras, internet connection via Ethernet, Wi-Fi and Bluetooth provides a wide range of opportunities for building almost any solution based on this component base. The foundation can be made within a small budget, with minimal time spent, using large blocks and ready-made libraries for programming embed-ded systems. This article presents the results of research and development work on the creation of a software and hardware infrastructure of a terrestrial platform with the elements of artificial intelligence. Based on the actual results of the research, a deployment diagram and a component diagram of such an infrastructure have been constructed.
Розроблено типові програмні шаблони Стан (State pattern) в процедурному і об’єктно-орієнтованому програмуванні, які дозволяють уніфікувати вихідний код системного програмного забезпечення для мікроконтролерів архітектури Сortex-М різних виробників. Програмне забезпечення адаптовано до математичної моделі кінцевого автомата (finite-state machine (FSM)). Результати пройшли випробування на мікроконтролерах серії STM32F1хх. Застосована методика [1] дозволяє поширити отримане рішення на мікроконтролери інших виробників, що підтверджує цінність розроблених шаблонів.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.