fixed state constants and operate mode logic to connect
only on end device and wait on other