return value for serialport open()