chico0609 wrote:Tips:
1. You shouldn't call apdu.setIncomingAndReceive() systematically, as it will process P3 an an incoming data length (Lc).
2. You are calling setOutgingLength() inside a loop, it will result in an APDUException with ILLEGAL_USE reason .
Thank you so much for your useful suggestion.