private byte[] getCTL() {
   byte[] data = new byte[2];
   int response =
       connection.controlTransfer(
           XDCVCP_REQTYPE_DEVICE2HOST,
           XDCVCP_GET_LINE_CTL,
           0,
           mInterface.getId(),
           data,
           data.length,
           USB_TIMEOUT);
   Log.i(CLASS_ID, "Control Transfer Response: " + String.valueOf(response));
   return data;
 }
 private int setControlCommand(int request, int value, byte[] data) {
   int dataLength = 0;
   if (data != null) {
     dataLength = data.length;
   }
   int response =
       connection.controlTransfer(
           XDCVCP_REQTYPE_HOST2DEVICE,
           request,
           value,
           mInterface.getId(),
           data,
           dataLength,
           USB_TIMEOUT);
   Log.i(CLASS_ID, "Control Transfer Response: " + String.valueOf(response));
   return response;
 }