implemented commands and communication with hmi