code: def open_connection(self):
          
          self.logger.debug("Open COM %s", self.comport)
          self.port = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
          (ip_addr, port) = self.comport.split(':')
          self.port.connect(ip_addr, num(port))
docs: Open connection over TCP socket.
          :return: Nothing