nfc

android nfc - mifare classic 1k Increment operation tranceive failed

纵然是瞬间 提交于 2019-12-25 11:54:21
问题 I want to store an integer value and increment or decrement it with API function. I have readed the card with an utility and this is the content of block 5: It seems that there is not any value block. This is my code: int sector = 5; this.mClassic.connect(); boolean success = this.mClassic.authenticateSectorWithKeyA(sector, MifareClassic.KEY_DEFAULT ); if(success){ int firstBlock = mClassic.sectorToBlock(sector); Log.i("MIFARE CLASSIC", "first block of the given sector:" + firstBlock); //set

How do I read passive NFC/RFID units with PN532?

半世苍凉 提交于 2019-12-25 09:27:46
问题 I got the little red "ELECHOUSE V3" kit off of eBay with a white card, and a blue keyfob transponder, and I've written a C program which creates and decodes packets and I can send it commands and it responds with AC packets, and I can read the version and the status. I'm not using any RFID library, I'm just using plain C and making my own simple library because I want to understand it and I want to release a simple single file demonstration for people who really want to understand it rather

How to remove password protection in NTAG216?

ⅰ亾dé卋堺 提交于 2019-12-25 08:52:04
问题 I was able to find a way to protect a tag with a password, the problem is that I don't know how to remove it. According to this datasheet, if you set the value of AUTH0 outside its range, the password will be disabled, I tried doing that but nothing happened. This is how I am trying to disable the password: Open tag Authenticate tag Set value of AUTH0 (page 41, third byte) to 256 (range of AUTH0 is 0 to 255 according to the datasheet) Close tag 回答1: You indicate that you change AUTH0 on page

Android NFC sensing and read tag data at the same time

拟墨画扇 提交于 2019-12-25 07:19:07
问题 I have a question about the android NFC. I have already done the function about read and write, but still have one problem. I wrote the AAR in my tag, after first sensing, it can launch my application. Second time sensing (my application is launched), I can read the data from NFC tag. Is it possible just sensing once that can launch my application and get the data from tag? 回答1: In AndroidManifest - <activity android:name=".TagDiscoverer" android:alwaysRetainTaskState="true" android:label="

Failed to load open-nfc addon in android platform

雨燕双飞 提交于 2019-12-25 06:55:31
问题 This is the first time, I am working on open-nfc . As per official documentation I created new avd with Open NFC edition as target. Now as per 5th step, I switch to platform-tools and then ran adb devices . it's showing List of devices attached emulator-5554 device after ran next command adb pull /data/connection_center_access , It's throwing remote object '/data/connection_center_access' does not exist . This where, I stuck. Regarding this, I seen this video, they are not suggesting to

How to get the “argument” data from a LaunchApp NFC tag in the application. WP8

拟墨画扇 提交于 2019-12-25 05:29:19
问题 I created a LaunchApp Tag, and its working fine, launching my Testapp, but with my LaunchApp tag im giving an argument too ("TestData"). So here comes my problem, how can i easily get this argument in my windows phone application? For example i just want to give the string TestData to a textblock in my app. Is it possible somehow ? My launchapp tag is a basic windows launchApp record type. it looks like this: Record type: windows.com/LaunchApp Arguments: 'testData' Platform: WIndowsPhone App

6A82 APDU communication issue between NFC enabled Android phone and ISO/IEC 14443-4 Smart Card

戏子无情 提交于 2019-12-25 04:48:06
问题 I'm currently working with an Android payment application using NFC.For this purpose Android application need to send and receive APDU commands to ISO/IEC 14443-4 Smart Card. When i test my application using Galaxy S5(OS 4.4.2) , or Galaxy s3(OS 4.1.2) I'm getting 6A82 My Code flow is going like below: 1st step -> Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG); IsoDep iso = IsoDep.get(tag); iso.connect(); 2nd step -> By using iso.transceive().. I'm sending APDU command 0084000008

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

ndefTag.connect() not connecting to tag

ぃ、小莉子 提交于 2019-12-24 23:03:01
问题 I'm trying to detect whether there is a tag that the phone has justed scanned rather that an Intent Launched from history. The problem is that when i scan a tag, an exception is thrown as if the connect() has failed. I'm leaving the phone on the tag to give it enough time to read the tag. Any ideas why the connect is failing? Thanks in advance. Log.e(TAG, "just scanned an nfc tag and DB must be empty"); Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG); tagId = bytesToHexString(tag

Android- How to check the type of Intent Filters Programmatically?

∥☆過路亽.° 提交于 2019-12-24 22:51:13
问题 I'm Creating an android application with two Activities(Activity1 and Activity2) where I need to open the app in two ways . Way 1 : By NFC Card In this way ,I need to open the Activity1. ie., If I swipe the Card I need to open Activity1. Way 2 : By Icon In this way,I need to open the Activity 2 .ie., If the user click the icon the Activity2 must be opened . My AndroidManifest.xml is shown below , ............... ............... ............... <activity android:name=".Activity1" android