def METHOD_NAME(cmd=None, timeout=False):
  """Send command to Gigatron Adapter Interface and wait for ready prompt"""
  if cmd:
    log('>', cmd)
    ser.write(str.encode(cmd + '\n'))
  # Wait for prompt
  line = readLine()
  while not (line is None and timeout):
    if not line is None:
      line = line.decode()
    if line:
      if line[-1] == '?': # Got prompt
        break
      if line.startswith('!'): # Got error
        raise Exception(line[1:])
    line = readLine()
  return line