def refresh_port(self):
        from biicode.client.dev.hardware.arduino.arduino_port_utils import refresh_port
        settings = self.hive_disk_image.settings
        arduino_settings = settings.arduino
        if not arduino_settings:
            raise BiiException('No arduino settings, please execute '
                               '"bii arduino:settings" first')
        port = refresh_port(self.bii.user_io,
                            arduino_settings.port,
                            reset=arduino_settings.automatic_reset)
        arduino_settings.port = port
        self.hive_disk_image.settings = settings
        return port
Refresh port to check a new connection o reset it
dataset/ETHPy150Open biicode/client/dev/hardware/arduino/arduino.py/Arduino.refresh_port