ndef

Phonegap NFC Send and Read Data Between Two Devices

|▌冷眼眸甩不掉的悲伤 提交于 2021-01-29 14:59:47
问题 I am trying to send information (just text) between two NFC enabled devices using phonegap-nfc in ionic angular app. So far I am able to connect the devices and the Ndef Event Listener captures the tag, but the information in the tag is always the same, it does not give me the message I am sending. My function to send the tag when NFC connection is identified: async connectPeerToPeer() { var listener = NFC.addNdefListener(onSucess => { console.log('Listening: ', onSucess); }, onFail => {

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[]

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 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

Do NFC tags have unique, read-only IDs?

岁酱吖の 提交于 2020-06-27 16:33:47
问题 I am trying to implement an authorization system based on general NFC tags. One of the concerns I want to address is tag cloning. I have read some literature ensuring tag authenticity by using a read-only tag ID written on the tags during manufacture. This ID is signed by the owner and written on the tag. This way, a cloned tag (which will have a different, tag-manufacturer assigned ID) can be detected by comparing tag IDs with the cloned signature. My question is, is it safe to assume that

Read UID from NFC mifare tag iOS 13

蹲街弑〆低调 提交于 2020-01-25 08:14:39
问题 I'm trying to read the UID for a mifare tag. Looking at examples, I see the following method a lot: func tagReaderSession(_ session: NFCTagReaderSession, didDetect tags: [NFCTag]) { if case let NFCTag.miFare(tag) = tags.first! { print(tag.identifier as NSData) } } However when putting that into my project, the method is not called. I also noticed xCode giving a warning that this nearly matches an optional protocol which is the same except it uses NFCNDEFTag instead of NFCTag .. When I try

Android NFC - ndef.writeNdefMessage() throws IOException and erases tag data

為{幸葍}努か 提交于 2020-01-21 08:14:18
问题 My app uses the foreground dispatch system to allow a user to tap their NFC tag in order to perform a read-then-write operation on the tag. It works nicely if the user taps their tag properly (i.e., they tap it in the correct place on the phone and leave it connected for long enough), but if they physically remove the tag too early, then ndef.writeNdefMessage(...) throws an IOException. That means the write operation fails, which is fair enough. But the real problem is that the same failed