Communicate with smartcard reader through Android USB host

后端 未结 2 1305
一个人的身影
一个人的身影 2020-12-05 08:45

I\'m trying to send a command to a smart card. I use a Gemalto IDBridge CT30 (PC TWIN reader) and a IDBridge K30 connected to the Android device over USB.

I try to s

2条回答
  •  一向
    一向 (楼主)
    2020-12-05 09:20

    What you send is a SELECT command, with a given AID, which easily could produce a result. You clearly indicate, however, that you are not interested in a response, by

    • setting P2 to '0C'
    • not providing an LE byte (assuming a block based protocol, surely reasonable for USB)

    So one may conclude, that your card is not compliant to ISO 7816-4; on the other hand, the response does not contain anything looking like an error SW1/SW2 status either, are you sure, to have responsebuffer dumped?

提交回复
热议问题