nfc

MIFARE Classic standard keys

假如想象 提交于 2021-01-28 03:10:45
问题 I have two NFC tags with different keys for their sectors: Tag 1: This tag contains an NDEF message. Sector 0 = A0:A1:A2:A3:A4:A5 for key A Sector 1 to 15 = D3:F7:D3:F7:D3:F7 for key A Tag 2: No NDEF data on this tag All sectors = FF:FF:FF:FF:FF:FF for key A and B Are there standard keys for MIFARE Classic tags according NDEF/non-NDEF? 回答1: Correct. The application note MIFARE Classic as NFC Type MIFARE Classic Tag defines how a MIFARE Classic tag can be used to store NDEF data. This

Strange character when reading NFC tag

╄→尐↘猪︶ㄣ 提交于 2021-01-27 16:45:09
问题 I am trying to read an NFC tag using Android. I'm a beekeeper and this is to ID my hives when I approach them. I have searched here but I am still having issues reading the tag. I want to read the text, but when it reads, there is a square-like character and characters displayed like " Ten" before the desired text. Here is the code I'm using. I know that the payload bytes have to be correct and I have tried changing them but to no avail. private static NdefMessage getTestMessage() { byte[]

emulate nfc card with selected UID on android

℡╲_俬逩灬. 提交于 2021-01-27 12:11:21
问题 I want to ask 2question about nfc card emulate : can I emulate nfc card include uid that I select? I read HCE and don't understand what is the diffrent between HCE and Card Emulation with a Secure Element?. what are the disadvantage with the Secure Element ? i can't control on the card data/uid and on HCE I can? 回答1: This subject may be a bit old but I was asking myself the same question. Apparently the UID of the card emulated by your phone is random, but if you want to emulate the UID too

Xcode Testflight Validate ERROR ITMS-90778 NDEF is disallowed

筅森魡賤 提交于 2021-01-27 12:08:24
问题 I am trying to upload my app to TestFlight, which using CoreNFC (NDEF). Unfortunately, I got the error message on Testflight Validate part in (SDK version 13 and 13.1). I already tried this: Xcode 11 beta can't upload app to TestFlight but it will Lose NDEF function this: https://stackoverflow.com/a/58128365/5588637 Error messages: Invalid entitlement for core nfc framework The sdk version 13.0 and min OS version 13.0 are not compatible for the entitlement 'com. Apple developer nfc.

How to enable NFC setting

流过昼夜 提交于 2021-01-27 04:15:34
问题 I am able to read and wirte in my NFC demo app but I need to check if the NFC option in setting menu is enabled or not . If its not enable I want to direct the user to the setting menu(I know how to do this) similar to NFC TagWriter by NXP. In my application I am using the following SDK version <uses-sdk android:minSdkVersion="7" /> <uses-sdk android:maxSdkVersion="16"/> I am unable to check if the setting is enabled or not. 回答1: TNR gets it right, however also note that from Android version

In Android, how to check programatically which secure element settings is selected in NFC Advanced Settings (SIM or eSE or HCE)?

自古美人都是妖i 提交于 2021-01-07 08:10:45
问题 In Android, how to check programatically which secure element settings is selected in NFC Advanced Settings (SIM or eSE or HCE) ? 回答1: If you want the user to change it you can make it programmatically using this piece of code : Intent intent = new Intent(); String mPackage = "com.android.settings"; String mClass = ".nfc.NfcAdvancedRoutingSetting"; intent.setComponent(new ComponentName(mPackage,mPackage+mClass)); startActivity(intent); I'm still searching for a way to check which one is

In Android, how to check programatically which secure element settings is selected in NFC Advanced Settings (SIM or eSE or HCE)?

自闭症网瘾萝莉.ら 提交于 2021-01-07 08:03:12
问题 In Android, how to check programatically which secure element settings is selected in NFC Advanced Settings (SIM or eSE or HCE) ? 回答1: If you want the user to change it you can make it programmatically using this piece of code : Intent intent = new Intent(); String mPackage = "com.android.settings"; String mClass = ".nfc.NfcAdvancedRoutingSetting"; intent.setComponent(new ComponentName(mPackage,mPackage+mClass)); startActivity(intent); I'm still searching for a way to check which one is

How to properly encode a URL onto an NFC tag?

坚强是说给别人听的谎言 提交于 2021-01-04 18:40:48
问题 I have a Mifare ULC card. When I tap this card to an NFC enabled device, it should open the default browser in phone without any additional NFC application. I have encoded the below NDEF URL data to the tag, but when i scan the tag, it does not open the browser. Can anyone guide me where I did the mistake? 03 - tag for the NDEF 12 - length of the NDEF msg (18 Bytes) D3 Record header (of first and only record) Bit 7 = MB = 1: first record of NDEF message Bit 6 = ME = 1: last record of NDEF

How to properly encode a URL onto an NFC tag?

不羁的心 提交于 2021-01-04 18:38:34
问题 I have a Mifare ULC card. When I tap this card to an NFC enabled device, it should open the default browser in phone without any additional NFC application. I have encoded the below NDEF URL data to the tag, but when i scan the tag, it does not open the browser. Can anyone guide me where I did the mistake? 03 - tag for the NDEF 12 - length of the NDEF msg (18 Bytes) D3 Record header (of first and only record) Bit 7 = MB = 1: first record of NDEF message Bit 6 = ME = 1: last record of NDEF

How to properly encode a URL onto an NFC tag?

北城余情 提交于 2021-01-04 18:38:17
问题 I have a Mifare ULC card. When I tap this card to an NFC enabled device, it should open the default browser in phone without any additional NFC application. I have encoded the below NDEF URL data to the tag, but when i scan the tag, it does not open the browser. Can anyone guide me where I did the mistake? 03 - tag for the NDEF 12 - length of the NDEF msg (18 Bytes) D3 Record header (of first and only record) Bit 7 = MB = 1: first record of NDEF message Bit 6 = ME = 1: last record of NDEF