UltralightCard Class

Definition

A Ultralight card class

public class UltralightCard
type UltralightCard = class
Public Class UltralightCard
Inheritance
UltralightCard

Constructors

UltralightCard(CardTransceiver, Byte)

Constructor for Ultralight

Fields

DefaultPassword

Default password used for write and read

Properties

AuthenticationKey

Authentication key

BlockNumber

The block number to authenticate or read or write

Command

The command to execute on the card

Counter

The counter to read or increment

Data

The Data which has been read or to write for the specific block

NdefCapacity

The NDEF capacity in bytes

NumberBlocks

Get the number of blocks for a specific sector

ReselectAfterError

Reselect the card after a card command fails After an error, the card will not respond to any further commands until it is reselected. If this property is false, the caller is responsible for calling ReselectCard when RunUltralightCommand returns an error (-1).

SerialNumber

UUID is the Serial Number, called MAC sometimes

Target

The tag number detected by the reader, only 1 or 2

UltralightCardType

The type of card

Methods

FormatNdef(ReadOnlySpan<Byte>)

Format the Card to NDEF

GetCounter(Byte)

Get the counter value

GetSignature()

Get the chip signature

GetVersion()

Get the version data

IncreaseCounter(Byte, Int32)

Increase a counter by a specified amount

IsFormattedNdef()

Check if the card formated to NDEF

IsPageReadOnly(Byte)

Check if a page is read only

IsUltralightCard(UInt16, Byte)

Check if this is a Ultralight card type

ProcessAuthentication(ReadOnlySpan<Byte>)

Process authentication

ReadFast(Byte, Byte)

Read at once multiple pages blocks of 4 bytes

ReselectCard()

Select the card. Needed if authentication or read/write failed

RunUltralightCommand()

Run the last setup command. In case of reading bytes, they are automatically pushed into the Data property

SetPassword(ReadOnlySpan<Byte>)

Set the password, the AuthenticationKey is used as the old password

TryGetConfiguration(Configuration)

Try to get the configuration

TryReadNdefMessage(NdefMessage)

Try to read a NDEF Message from a Mifare card

WriteConfiguration(Configuration)

Write the configuration

WriteDataBlock(Byte)

Perform a write using the 16 bytes present in Data on a specific block

WriteNdefMessage(NdefMessage)

Write an NDEF Message

Applies to