Checkign device connection status adn locked value