/**
   * Methode checkBufferData() allows you to verify all the data saved in the buffer
   *
   * @throws java.lang.InterruptedException
   */
  public void checkBufferData() throws InterruptedException {
    System.out.println("<--- BEGIN OF CALLING checkBufferData() methode --->");

    // Get the data saved in the buffer
    System.out.println("Contents of the buffer : " + super.getBufferReception());
    String[] data_in = SerialPortGPIO.extractBufferData(super.getBufferReception());

    // reset the reception buffer
    super.resetBufferReception();

    // Extract the first and last data to check the kind of request
    String first_data = data_in[0];
    String last_data = data_in[data_in.length - 1];

    System.out.println("First = " + first_data);
    System.out.println("Last  = " + last_data);

    // Extract only the data about the request
    int size_data = data_in.length - 2;
    String[] data_temp = new String[size_data];
    System.arraycopy(data_in, 1, data_temp, 0, size_data);
    for (int i = 0; i < data_temp.length; i++) {
      // data_temp[i] = data_in[i+1];
      System.out.println("Classe fille : valide data[" + i + "] = " + data_temp[i]);
    }

    // Call the checkSavedData() methode to identify the kind of request
    boolean flag = checkSavedData(first_data, last_data, data_temp);

    System.out.println("<--- END OF CALLING checkBufferData() methode --->");
  }