public boolean send(String data) {
      if (isConnected()) {
        synchronized (lockSend) {
          for (int i=0; i<data.length(); i++) {
            fifoSend.add(new Integer (data.charAt(i)));
          }
        }

        try {
            tcpThreadSend.interrupt();
        }
        catch (NullPointerException e) {
            System.out.println("tcpThreadSend exception");
        }
      }
      else {
        return false;
      }
      return true;
    }