setting of device parameters and testing