ncm userspace driver for android
int id = 1;
// connection.controlTransfer(0x0, 49, 0x28, 0, newdata, 0, TIMEOUT);
// connection.controlTransfer(0x0, 9, 1, 0, newdata, 0, TIMEOUT);
// connection.controlTransfer(id, 11, 1, id, newdata, 0, TIMEOUT);
// connection.controlTransfer(id, 11, 0, id, newdata, 0, TIMEOUT);
int count = connection.controlTransfer(0xa0 + id, 0x80, 0, 0, newdata, 28, TIMEOUT);
Log.d("TODO", "ntb param data " + byteArrayToHex(newdata));
connection.controlTransfer(0x20 + id, 0x8a, 0, 0, null, 0, TIMEOUT);
connection.controlTransfer(0x20 + id, 0x84, 0, 0, null, 0, TIMEOUT);
connection.controlTransfer(id, 11, 1, id, null, 0, TIMEOUT);
connection.controlTransfer(0x20 + id, 0x43, 14, 0, null, 0, TIMEOUT);
connection.controlTransfer(0x20 + id, 0x43, 14, 0, null, 0, TIMEOUT);
Comments
Post a Comment