Conection of two devices