Skip to content

HBuczynski/HSMSimulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HSMSimulator

Description

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:

Prerequisities

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

Usage

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 to target/bin/ directory and run ./state_machine
  • ./build_linux.sh AlexaSim - to build Alexa Simulator
    After building, go to target/bin/ directory and run executable files in appropriate order:
    Firstly: ./alexa_sim
    Secondly: ./user_mock

Author

Hubert Buczyński

License

This project is licensed under the MIT License

About

Example of Hierarchical State Machine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published