acr122

Cannot authenticate NTAG213

亡梦爱人 提交于 2021-02-07 04:12:57
问题 I am using an ACR122U NFC reader to password protect an NTAG213 NFC label. I think I have managed to set the password correctly, but I cannot authenticate and change the label afterward. My code for authenticating looks like this: #include <winscard.h> #include <iostream> #pragma comment(lib, "winscard.lib") const char *ReaderName = "ACS ACR122 0"; unsigned Password = 0x12345678; int main() { //Establish context SCARDCONTEXT hContext; DWORD SCard_Status1 = SCardEstablishContext(SCARD_SCOPE

Cannot authenticate NTAG213

一个人想着一个人 提交于 2021-02-07 04:05:33
问题 I am using an ACR122U NFC reader to password protect an NTAG213 NFC label. I think I have managed to set the password correctly, but I cannot authenticate and change the label afterward. My code for authenticating looks like this: #include <winscard.h> #include <iostream> #pragma comment(lib, "winscard.lib") const char *ReaderName = "ACS ACR122 0"; unsigned Password = 0x12345678; int main() { //Establish context SCARDCONTEXT hContext; DWORD SCard_Status1 = SCardEstablishContext(SCARD_SCOPE

ACR122U LED controlling

蓝咒 提交于 2020-08-03 09:20:12
问题 Does anybody have any clue how to control the bi-color LED of ACR122U via the method Reader.control() on Android? (library acssmc-1.1.3). I am reading the API and have no idea what the command description means: Example: byte[] command = {(byte) 0xFF, (byte) 0x00, (byte) 0x40, (byte) 0b01110111, (byte) 0x04, (byte) 20, (byte) 30, (byte) 3, (byte) 2}; These things I do not understand: Byte 3 (P2): I cannot figure out how to set that up. Byte 5 (T1): First cycle state duration that is somehow

ACR122 - Android / How to extract the UID

半城伤御伤魂 提交于 2019-12-24 23:10:30
问题 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? 回答1: 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

libnfc with ACR122U gives no response on SELECT (by AID) APDU

我的未来我决定 提交于 2019-12-22 04:42:55
问题 See NFC reader "SELECT (by AID)" APDU is not routed to Android device on debugging and eventual results. TL;DR the reader might simply be defunct. I have ACR122U nfc reader. I try to run this example http://www.nfc-tools.org/index.php?title=Libnfc:APDU_example#apdu_example.c on my Ubuntu machine. This is the log output I get when I tap my Android device (should be in HCE mode) to the reader: ./apdu_example debug libnfc.general log_level is set to 3 debug libnfc.general allow_autoscan is set

How to a send SNEP GET request from Android

谁说胖子不能爱 提交于 2019-12-21 23:20:05
问题 I have an NFC reader ACS ACR122U and I want to send data from my Android phone to it. I have found many examples on how to connect my two devices in P2P mode and how to send data from my phone to the ACR122U, but my desktop server (ACR122U) always receives a SNEP PUT request. I would send a GET request but I can find only examples that use Android built in NDEF system without specifing PUT or GET request. How can I package and send a SNEP GET request from my Android device to an ACR122U? 回答1:

Unable to claim USB interface (Device or resource busy)

大城市里の小女人 提交于 2019-12-20 10:37:00
问题 I want to use my ACR122U contact-less smart card reader in Ubuntu 14 smarty. So I installed my required packages and drivers. Finally when I want to use the reader I receive the following error: rc@rc-System-Product-Name:~/Desktop/itsme$ sudo nfc-list [sudo] password for rc: nfc-list uses libnfc 1.7.0 error libnfc.driver.acr122_usb Unable to claim USB interface (Device or resource busy) nfc-list: ERROR: Unable to open NFC device: acr122_usb:001:020 rc@rc-System-Product-Name:~/Desktop/itsme$

ACR122u direct communication no response

南楼画角 提交于 2019-12-19 10:25:25
问题 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[]

ACR122 - Card Emulation

有些话、适合烂在心里 提交于 2019-12-18 15:36:15
问题 How can I get the NFC contactless reader ACR122U to behave as a tag (card emulation mode)? The prospectus claims that the device can do card emulation, but the SDK does not seem to provide an example or documentation for this feature. Does anybody know how to do this? Is there additional software required? Please note that my target platform is MS Windows. Thanks in advance 回答1: For "Card Emulation" or in other words, "Configure as target and wait for initiators", please refer to here: http:/

ACR122 - Card Emulation

只谈情不闲聊 提交于 2019-12-18 15:36:06
问题 How can I get the NFC contactless reader ACR122U to behave as a tag (card emulation mode)? The prospectus claims that the device can do card emulation, but the SDK does not seem to provide an example or documentation for this feature. Does anybody know how to do this? Is there additional software required? Please note that my target platform is MS Windows. Thanks in advance 回答1: For "Card Emulation" or in other words, "Configure as target and wait for initiators", please refer to here: http:/