NDEF Capability Container decoding with NTAG 5 boost - ndef

I am currently working on an I2C communication between an i.MX6 (Android BSP) and a NTAG 5 boost component.
NTA5532 datasheet says :
"According to NFC Forum Type 5 Tag Specification, EEPROM block 0 contains the Capability Container directly followed by the NDEF Message TLV."
In fact, below is the user memory orgnisation of the NTAG 5 boost:
So I used TagInfo NXP's app to read the memory of the NTAG 5 component.
Here is what I get concerning NDEF Capability Container using this app:
How can I decode this block as NXP does in its application?

Following what says this PDF from ST about NDEF management, "The CC manages the information of an NFC Forum T5T", so the structure of this Capability Container is mainly common to all NFC Forum tags.
For more information about how to interpret the CC, see the previous pdf.

Related

I dump my Nfc Mifare classic 1k card but i can't emulate it with an android redmi note 11s phone

I just dump my Nfc Mifare classic 1k card and I want to emulate it with my phone (Redmi note 11S, with nfc).
As you can see, only the first sector of this card is write
I find an app name "Ndef tag emulator" for emulate card. I try to emulate with only the UID (D4ECCFCC) but it didn't work.
Have you an idea for writing this on "NDEF syntaxe", oh just khnow a better way to emulate a nfc card?
This information may help you. The Sector 0 is the so called MAD (Mifare Application Directory) which says where the Applications are stored. Within the Sector 0 the first Block (0-15 Bytes) is the Manufactor-Code followed by byte 16 which is an CRC for the MAD and then the Information-Byte which is blocked for further development. Then the Application-Ids (AIDs) starts, where 2 Bytes represent an Application and the Sector to find the Application. By this logic your Data is stored in Sector 1 which is uncommonly not present in your picture.

How to send data between two phones using NFC in Flutter?

I am building a flutter where an app transfers user details from one phone to another. Initially I built this using a qr code scanner and generator setup.
Now I am trying to pass the data between the devices using NFC.
Could someone tell me how to send an NFC message from a device, and how to accept this message from another device?
I did read through github.com/matteocrippa/flutter-nfc-reader, and I understood how to read NFC data, but how can we send NFC data from a device?
I know this is an old question but I've encountered it and if someone is still searching - flutter_nfc_kit.
Yet another plugin to provide NFC functionality on Android and iOS.
This plugin's functionalities include:
read metadata and read & write NDEF records of tags / cards complying with:
ISO 14443 Type A & Type B (NFC-A / NFC-B / MIFARE Classic / MIFARE Plus / > MIFARE Ultralight / MIFARE DESFire)
ISO 18092 (NFC-F / FeliCa)
ISO 15963 (NFC-V)
transceive commands with tags / cards complying with:
ISO 7816 Smart Cards (layer 4, in APDUs)
other device-supported technologies (layer 3, in raw commands, Android only)
Note that due to API limitations not all operations are supported on both platforms.
This library uses ndef for NDEF record encoding & decoding.
Note: NDEF (NFC Data Exchange Format) is a light-weight binary format, used to encapsulate typed data. It is specified by the NFC Forum, for transmission and storage with NFC, however it is transport agnostic. (source: developer.android.com)

Reading tag from Ionic NFC plugin gives different information than if I use reader

I am developing an Ionic 2+ application using the NFC plugin.
The issue I run into is how the tag is read differently by a simple USB reader and by the device. The tag IDs are different.
In Ionic I use:
this.nfc.bytesToHexString(event.tag.id)
It is read correctly and I log the result:
From USB reader I get:
On the left is the software for the RFID reader, and on the right are reads with different settings.
What I need is to get the same information for both, the USB reader and the NFC plugin. I don't care about the format.
The IDs that you read are the same except that your USB RFID reader seems to only reads 4 bytes of the 7 byte UID. Since your USB reader doesn't seem to support any other formats, you won't be able to infer the remaining 3 bytes from nowhere. However, you can easily chop off the last three bytes of the UID in your ionic application:
this.nfc.bytesToHexString(event.tag.id.slice(0, 4))
You would then get the same value as for format "8 no. in HEX reverse".

Bad block detection in SD card using SPI interface?

I know that SandDisk Micro SD cards have bad block detection and re-mapping capability. The default mode for an SD card is the 4 bit SD interface. When using the SPI interface does anyone know if the SD card will still do this automatic bad block detection and re-mapping? Based on my reading the SanDisk OEM Product Manual
"The SPI Mode is a secondary communication protocol for cards in the SanDisk
microSD Card Product Family. This mode is a subset of the SD Protocol, designed to
communicate with an SPI channel, commonly found in Motorola and other vendors'
microcontrollers. Detailed information about SPI Mode can be found in Section 7 or
the SDA Physical Layer Specification, Version 3.01."
This does not seem to clarify my doubt. Does anyone know the answer?
Using a different interface with the card should not prevent the card from doing its internal wear leveling and bad block management as the commands do not change, only the physical link.
From section 7.1 of the Physical Layer Simplified Specification Version 4.10
The SPI standard defines the physical link only, and not the complete data transfer protocol.
https://www.sdcard.org/downloads/pls/part1_410.pdf

Is there a way to detect rfid chip on an iphone?

i know iphone 4 does not have a NFC chip built in but i am wondering if i can still detect a rfid chip maybe using wifi signal or celluar signal?
You don’t really get low-level enough access to the phone’s radios to let you communicate directly with an RFID tag. Your best bet is to look into external hardware, possibly an Arduino or similar talking to your app via the headphone jack.
Only the iPhone 6 has the required NFC controller to communicate with NFC tags. At this time, it's unclear what SDK might be available to developers:
Reading NFC Tags with iPhone 6 / iOS 8
RFID or NFC chips cannot be detected by WiFi or cellular. This is not possible due to different technology they use. There are external NFC readers available for the iPhone.
Check e.g. here: http://www.icarte.ca/