openDevice.claimInterface(this.f, true); byte[] bArr = new byte[8]; this.j.controlTransfer(192, 95, 0, 0, bArr, 8, 1000); this.j.controlTransfer(64, 161, 0, 0, null, 0, 1000); long j = 159648; int i2 = 3; while (j > 65520 && i2 > 0) { j >>= 3; i2--; } long j2 = 65536 - j; short s = (short) ((65280 & j2) | i2); short s2 = (short) (255 & j2); this.j.controlTransfer(64, 154, 4882, s, null, 0, 1000); this.j.controlTransfer(64, 154, 3884, s2, null, 0, 1000); this.j.controlTransfer(192, 149, 9496, 0, bArr, 8, 1000); this.j.controlTransfer(64, 154, 1304, 80, null, 0, 1000); this.j.controlTransfer(64, 161, 20511, 55562, null, 0, 1000); this.j.controlTransfer(64, 154, 4882, s, null, 0, 1000); this.j.controlTransfer(64, 154, 3884, s2, null, 0, 1000); this.j.controlTransfer(64, 164, 0, 0, null, 0, 1000); if (this.j != null) { z.p("连接设备成功"); this.c = true; this.q = true; e(g.e); } if (this.l != null) { return; } b bVar = new b(this); this.l = bVar; bVar.start(); 上面是手机连接hid的代码 controlTransfer 返回-1 老是连接不上因为需要设备得问题需要远程解决!!邮寄设备不是很方便!!