acr122

How to authenticate NTAG213 with ACR122U

久未见 提交于 2019-12-04 13:19:28
I'm using an ACR122U reader with an NTAG213 card. The card is password (reading and writing) protected with the password 52 84 00 08 . What are the APDU commands I should run to authenticate the card and also to read pages 30 and 31 of it once authenticated? I know with the MiFare 1k I could load the password and authenticate a sector, but I'm not sure how authentication works with the NTAG213 cards with the ACR122U readers. With the ACR122U you would need to send direct commands to the PN532 NFC controller chip inside the reader in order to exchange such low-level commands. For instance, you

The PN532 configured as target has been released by its initiator

折月煮酒 提交于 2019-12-04 10:08:07
I'm trying to put my PN532 in card-emulation mode. When i send the TgGetData command the error i get an error back from the reader. 1 . Read register {(byte)0xFF,0x00,0x00,0x00,0x08, (byte)0xD4, 0x06, 0x63, 0x05, 0x63, 0x0D, 0x63, 0x38 } RESPONSE :: D507 07 07 15 9000 2 . Update registers byte xx = (byte) 07; byte yy = (byte) 07; byte zz = (byte) 15; xx = (byte) (xx | 0x004); yy = (byte) (yy & 0x0EF); zz = (byte) (zz & 0x0F7); 3 . Write register {(byte)0xFF,0x00,0x00,0x00,0x11, (byte) 0xD4, 0x08, 0x63, 0x02, (byte) 0x80, 0x63, 0x03, (byte) 0x80, (byte) 0x63, (byte) 0x05, xx, 0x63, 0x0D,yy,

ACR122u card-emulation mode send PN532 commands

浪尽此生 提交于 2019-12-04 06:42:26
问题 I just read this answer about how to put my ACR122U in card-emulation mode. I do understand the purpose but how do you need to send the commands to the ACR122u. As far as I know FF000000 means: FF [Class] 00 [INS] 00 [P1] 00 [P2] I just can't figure out how I can send the actual PN532 command for example: FF000000 08 D406 6305 630D 6338 FF000000 11 D408 6302 80 6303 80 6305 xx 630D yy 6338 zz I have come this far: TerminalFactory factory = TerminalFactory.getDefault(); List<CardTerminal>

ACR122u card-emulation mode send PN532 commands

无人久伴 提交于 2019-12-02 08:21:38
I just read this answer about how to put my ACR122U in card-emulation mode. I do understand the purpose but how do you need to send the commands to the ACR122u. As far as I know FF000000 means: FF [Class] 00 [INS] 00 [P1] 00 [P2] I just can't figure out how I can send the actual PN532 command for example: FF000000 08 D406 6305 630D 6338 FF000000 11 D408 6302 80 6303 80 6305 xx 630D yy 6338 zz I have come this far: TerminalFactory factory = TerminalFactory.getDefault(); List<CardTerminal> terminals; try { terminals = factory.terminals().list(); CardTerminal terminal = terminals.get(0); Card

Frequent Disconnection ACR122U NFC Reader

走远了吗. 提交于 2019-12-01 12:16:54
When I put SIII (Android 4.3) on ACR122U NFC reader the LED keeps blinking green. When I put Samsung S4 (Android 4.3) LED turns green till the time phone is on the reader. In both the cases NFC is turned on and device is in unlocked state. This behaviour translates into frequent disconnections in SIII and a stable connection on S4. Why two phones behave differently? I am aware of the fact that two phones have NFC chipsets from two different vendors namely NXP and Broadcom. My question is what is the source for such inconsistent behaviour among these devices? Another question is why does phone

ACR122u direct communication no response

柔情痞子 提交于 2019-12-01 11:28:22
I'm trying to access my ACR122u with java by sending direct command. The weird thing is i don't get any response and no errors.. This is my code: final static int IOCTL_SMARTCARD_ACR122_ESCAPE_COMMAND = 0x003136B0; ..... List<CardTerminal> terminals = null; TerminalFactory factory = TerminalFactory.getDefault(); terminals = factory.terminals().list(); CardTerminal terminal = terminals.get(0); Card card = terminal.connect("direct"); CardChannel channel = card.getBasicChannel(); byte[] commandAPDU = {(byte) 0xD4, 0x06, 0x63, 0x05, 0x63, 0x0D, 0x63, 0x38 }; byte[] responseAPDU = card

Frequent Disconnection ACR122U NFC Reader

冷暖自知 提交于 2019-12-01 11:07:43
问题 When I put SIII (Android 4.3) on ACR122U NFC reader the LED keeps blinking green. When I put Samsung S4 (Android 4.3) LED turns green till the time phone is on the reader. In both the cases NFC is turned on and device is in unlocked state. This behaviour translates into frequent disconnections in SIII and a stable connection on S4. Why two phones behave differently? I am aware of the fact that two phones have NFC chipsets from two different vendors namely NXP and Broadcom. My question is what

NFC reader “SELECT (by AID)” APDU is not routed to Android device

时光毁灭记忆、已成空白 提交于 2019-11-30 15:38:22
I have an ACR122U NFC reader/writer connected to my Windows machine with ACR122 driver installed. I try to use javax.smartcardio API to send an SELECT (by AID) ADPU to my Android device (which should be in HCE mode). This is my code: TerminalFactory factory = TerminalFactory.getDefault(); List<CardTerminal> terminals = factory.terminals().list(); CardTerminal terminal = terminals.get(0); System.out.println(terminal.getName()); Card card = terminal.connect("*"); CardChannel channel = card.getBasicChannel(); execute(channel, new byte[] { (byte) 0xFF, 0x00, 0x51, (byte) 195, 0x00}, card); execute

NFC reader “SELECT (by AID)” APDU is not routed to Android device

。_饼干妹妹 提交于 2019-11-29 23:04:51
问题 I have an ACR122U NFC reader/writer connected to my Windows machine with ACR122 driver installed. I try to use javax.smartcardio API to send an SELECT (by AID) ADPU to my Android device (which should be in HCE mode). This is my code: TerminalFactory factory = TerminalFactory.getDefault(); List<CardTerminal> terminals = factory.terminals().list(); CardTerminal terminal = terminals.get(0); System.out.println(terminal.getName()); Card card = terminal.connect("*"); CardChannel channel = card

ACR122 - Android / How to extract the UID

亡梦爱人 提交于 2019-11-28 13:05:40
I try to integrate an ACR122 to my android app. I'm using the ANDROID Library ( http://www.acs.com.hk/en/products/3/acr122u-usb-nfc-reader/ ) available from ACS. Everything work, I can detect the presence of a card but I want to extract the UID/ID of the card. Someone know the function to do that? Do you have an example of this type of integration? Andrey Sabitov In case of Mifare card you need to send this APDU byte array to the card: (byte) 0xFF, (byte) 0xCA, (byte) 0x00, (byte) 0x00, (byte) 0x00 . I'm not sure about ACR122 API but probably you need to wrap this APDU into specific API method