def usbCtrlOut(self, req, buf):
        if self.mode == SIMTRACE_OFFLINE:
            return []
        return self.dev.ctrl_transfer(0x40,
                                  bRequest=req,    # R-APDU
                                  data_or_wLength=buf,
                                  timeout=500)