add hardwre communication

add function to communication with hardware. May note revelant as it is
not tested on hardware part yet, but the idea is here