Setting boudrate on device opening