code: async def do_connect(self, args):
          
          params = args.split()
          device = '/dev/ttyUSB0'
          workdir = None
  
          try:
              device = params[0]
          except IndexError:
              if self.tools.device:
                  device = self.tools.device
          try:
              workdir = params[1]
          except IndexError:
              if self.tools.workdir:
                  workdir = self.tools.workdir
  
          if device:
              await self.tools.connect(False, device=device, workdir=workdir)
          _LOGGING.info('Connection complete.')
docs: Connect to the PLM device.
  
          Usage:
              connect [device [workdir]]
          Arguments:
              device: PLM device (default /dev/ttyUSB0)
              workdir: Working directory to save and load device information