I am trying to establish communication between Samsung Galaxy3 phone and ACR122
NFC reader.
I run:
ds.nfcip.tests.se.TestApp -t --log 5
if the reader has no card on it, it will spit the error:
device is not supported
I have to put a smartcard on it to overcome this, then I get the following:
[DEBUG]successful connection
[DEBUG]ACS ACR122 firmware version: ACR122U213
[DEBUG]Setting mode: TARGET
[DEBUG]TG_INIT_AS_TARGET
[DEBUG]Sent (44 bytes): 0xFF 0x00 0x00 0x00 0x27 0xD4 0x8C 0x00 0x08 0x00
0x12 0x34 0x56 0x40 0x01 0xFE 0xA2 0xA3 0xA4 0xA5 0xA6 0xA7 0xC0 0xC1 0xC2 0xC3
0xC4 0xC5 0xC6 0xC7 0xFF 0xFF 0xAA 0x99 0x88 0x77 0x66 0x55 0x44 0x33 0x22 0x11
0x00 0x00
Exception in thread "main" java.lang.IllegalArgumentException: apdu must be at
least 2 bytes long
at javax.smartcardio.ResponseAPDU.check(Unknown Source)
at javax.smartcardio.ResponseAPDU.<init>(Unknown Source)
at sun.security.smartcardio.ChannelImpl.transmit(Unknown Source)
at ds.nfcip.se.NFCIPConnection.transmit(NFCIPConnection.java:209)
at ds.nfcip.se.NFCIPConnection.setTargetMode(NFCIPConnection.java:137)
at ds.nfcip.NFCIPAbstract.setMode(NFCIPAbstract.java:158)
at ds.nfcip.tests.se.TestApp.main(TestApp.java:190)
isn't it possible to set a standalone ACR122 as a target? why does it need to
detect a smart card in order to become a target?
if I do have to set the card on the reader, why has apdu error occured?i.e.
less than 2 bytes response?
any help is greatly appreciated.
thanks
victor
Original issue reported on code.google.com by vxb...@gmail.com on 30 May 2013 at 6:27
Original issue reported on code.google.com by
vxb...@gmail.com
on 30 May 2013 at 6:27