log.debug("*** Time out reach, request status :" + req.getStatus());
log.debug("*** Request data     : " + req.toString()); log.debug("*** Request status   : 0x" + NumberUtils.hex(req.getStatus(),4)); log.debug("*** Packet size      : " + packet.getSize()); log.debug("*** Packet data size : " + packet.getData().length); log.debug("*** Packet data      : " + packet.toString()); if(req.getStatus() == USBREQ_ST_COMPLETED){ devData.setMaxLun(packet.getData()[0]); } else if (req.getStatus() == USBREQ_ST_STALLED){ devData.setMaxLun((byte)0); } else { throw new USBException("Request status   : 0x" + NumberUtils.hex(req.getStatus(),4)); }
    public void getMaxLun(USBDevice usbDev) throws USBException {    	final USBControlPipe pipe = usbDev.getDefaultControlPipe();        final USBRequest req = pipe.createRequest(new SetupPacket(USB_DIR_IN                | USB_TYPE_CLASS | USB_RECIP_INTERFACE, 0xFE, 0, 0, 1), new USBPacket(1));        pipe.syncSubmit(req, GET_TIMEOUT);        log.debug("*** Time out reach, request status :" + req.getStatus());    }