I tried do this using UsbManager, send commads is work but when I wand to read response response data is incorrect
I need send to smart card reader this command {0x00, (byte) 0x83, 0x00, 0x00, 0X00}, doig this like
sendcommand
byte[] command = new byte[] {0x00, (byte) 0x83, 0x00, 0x00, 0X00};
String commandHex = bytesToHex(command);
byte[] outBufferXFRBlock = hexStringToByteArray("6F" + "05000000" + "00" + sequenceNumber + "00" + "0000" + commandHex);
int outByteCount = connection.bulkTransfer(outEndpoint, outBufferXFRBlock, outBufferXFRBlock.length, TIMEOUT);
read response
final byte[] inBuffer = new byte[80];
int inByteCount = connection.bulkTransfer(inEndpoint, inBuffer, inBuffer.length, TIMEOUT);
powerOn and power off comands worked Am I doing everything right?
I'm not familiar with your device configuration or how you're managing communication with it. However, here's some code that might help simplify the process for you