nfc

Application launched by Action Main (from AAR) instead of NDEF Discovered

给你一囗甜甜゛ 提交于 2019-12-10 12:14:53
问题 I'm trying to launch my application by scanning a tag, but the intent I get is the action Main and not the NDEF Discovered as I would like. Here is my code I use to write the NdefMessage : NdefRecord aar = NdefRecord.createApplicationRecord("com.example.mynfc"); NdefRecord record = createUriRecord("www.stackoverflow.com"); NdefMessage message = new NdefMessage(new NdefRecord[]{record, aar}); with the createUriRecord : private NdefRecord createUriRecord(String text){ String uniqueId = text

Identifying NFC tag ID

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 11:56:32
问题 I am trying to identify the unique identifier of NFC tag on android using the following code: @SuppressLint("NewApi") @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Tag myTag = (Tag) getIntent().getParcelableExtra(NfcAdapter.EXTRA_TAG); String nFCID = myTag.getId().toString(); Toast.makeText(getApplicationContext(), "NFC id is: "+ nFCID, Toast.LENGTH_SHORT).show(); } Unfortunately, when I deploy the

Transceive Failed on ISO15693 / Tag-it HF-I

久未见 提交于 2019-12-10 11:43:03
问题 I have some ISO15693 / Tag-it HF-I Plus chips and need to write something on them. These chips are completly fresh, and i read now a ton of pdf's telling me all the same. But nothing work, and i get all the time the Transceive Failed error. I send these Data in the transceive command: Byte: <data> 0: 0x00 // pdf says the tag understands only flag = 0x00 1: 0x21 // write single block 2-10: ID // needs to be send for this tag, only supports addressed mode 11: 0x00 // Block ID, try to write to

Android IsoDep command chaining failure

这一生的挚爱 提交于 2019-12-10 11:31:47
问题 I am making a NFC application that use ISO-DEP (ISO 14443-4) as TagTechnology. I try to execute a authentication with a DESFire EV1. The authentication work well if the chaining of the command is without pause. But if for exemple, I make something that take time (like the Thread.Sleep after NATIVE_AUTHENTICATION_COMMAND_P1) I got an error 0x911C ("Command code not supported") during the authentication command part 2 from the card. Normaly the error come when the authentication has been

Android nfc to read card from samsung nexus

核能气质少年 提交于 2019-12-10 10:59:55
问题 I want to read a card from Samsung Nexus phone but the android nfc api does not provide enough options. i've also tried using a third party api names "open nfc" but the it gives error of not supporting the api. Can anyone provide me the code to read data from a card. I have the code to read a tag but not to read a card. Here is the link to download the open nfc api. http://sourceforge.net/projects/open-nfc/files/Open%20NFC%204.3%20beta%20%2810381%29/ Any help is appreciated. This is the code

Mifare Access condition calculation

自闭症网瘾萝莉.ら 提交于 2019-12-10 10:29:32
问题 I am aware of this post :- Locking mechanism of Mifare Classic 1K However, it is really not clear - how a value like FF 07 80 FF is calculated in this string: D3 F7 D3 F7 D3 F7 FF 07 80 FF 00 00 00 00 00 00 This means that the blocks can be read with key A and written with Key B but does not allow inc/dec. How should the access bits look like if I have to support increment and decrement operations. I understand that C1, C2 and C3 must be 1,1,0 how does this reflect to the byte 6, 7 and 8. Any

Accessing card-emulation mode on USB-NFC-Reader

寵の児 提交于 2019-12-10 08:22:58
问题 I have an Android tablet with Android 4.2. This tablet does not have NFC hardware. However I have an external USB reader: ACR 1252U, that came with an Android library. I have asked some general questions of my setup here. Now that it gets more specific, I need to ask another one. In this previous question I found out, that I can use the ACS Android library to access the readers card emulation capabilities. My first goal is to make that reader emulate an NFC tag, that contains a URL. Any NFC

Is it possible to have a “Profile Owner” app in Android Lollipop that is not co-present

故事扮演 提交于 2019-12-10 03:54:12
问题 The Lollipop API provides 2 new features "Profile Owner" and "Device Owner" (http://developer.android.com/about/versions/android-5.0.html#Enterprise). Between them, they offer just the features I need for an app that parents can use to control their children's device activity. The setup flow for each is: Device Owner During device setup, using NFC, you can tell Android that you want your app to be a Device Owner. Android then downloads the app from a URL, and the device is encrypted and is

How to test NFC api?

大憨熊 提交于 2019-12-10 02:43:12
问题 I have a Nexus S with NFC and the Android API and such. I assume that NFC isn't simulated via the emulator (?). And I only have the one NFC enabled phone. Can I use RFID cards to test NFC apps I make? Or will I have to get another NFC enabled phone? Thanks 回答1: NFC has two different modes: card reading/writing and phone peer-to-peer communication. Testing card reading/writing functionality in your NFC app generally requires real cards. In some cases, when the card contains a so-called NDEF

NFC-V SLIX-S write password

允我心安 提交于 2019-12-10 00:21:47
问题 I'm trying to set AFI password to the SLIX-S tag. I found the command for set password is B3: take a look please (Link here: Page 12). But every time my set password command crash. I think the format of the code line I use is wrong. Is there any way to solve this problem? Thanks a lot for anything can help me. Update: I tried this one sequence of bytes but still can't set password successfully. buffer = nfcv.transceive(new byte[] { 0x00, //flag 0xB3, //set password command 0x04, /