This project presents behaviour of Hierarchical State Machine based on two applications:
- State Machine - allows to check correctness of HSM library testing the HSM shown below:
- Alexa Simulator - application which simulates behaviour of alexa device. It has been written to present usage of HSM library for embedded devices. Application consists of two idependent processes which communicate each other via message queues. The first process is a mock of alexa device. The second process is a mock of user. The HSM uses in this application is shown below:
Make sure you have installed all of the following prerequisites on your development machine:
- cmake - minimum required version 3.0
- g++ - version compatible with c++14
- boost library
In order to run State Machine and Alexa Simulator applications use build_linux.sh
as follow:
./build_linux.sh
- to show help:
./build_linux.sh HSMExample
- to build State Machine
After building, go totarget/bin/
directory and run./state_machine
./build_linux.sh AlexaSim
- to build Alexa Simulator
After building, go totarget/bin/
directory and run executable files in appropriate order:
Firstly:./alexa_sim
Secondly:./user_mock
Hubert Buczyński
This project is licensed under the MIT License