Skip to main content
Associate II
Dec 23, 2024 5:56 PM UTC
Solved

M24LR64E-R read with flutter

Hello, I'm having trouble reading single blocks in the M24LR64E-R tag

I'm developing the app in Flutter and I'm trying to send the command in the following structure

final command = [

flags, // flags

0x20, // Command: "Read Single Block"

...uid, // UID of NFC tag

blockAddress // BlockAddress

];

However, it doesn't read it, I tested it with other tags in both the NfcA and NfcV standards and they read it, but this specific tag didn't


Has anyone worked with this ic?

This topic has been closed for replies.
GabrielGranzottoBest answer
Associate II
Jan 2, 2025 6:49 PM UTC

Hello

I find a solution to read a single or multiple block:

[0x0a, 0x20, 0x00, 0x00], // Read Single Block ---- [0x0A, 0x23, StartAddress_LSB, StartAddress_MSB]
[0x0a, 0x23, 0x2, 0x00, 0x4],// Read Multiple Blocks ---- [0x0A, 0x23, StartAddress_LSB, StartAddress_MSB, NbOfBlockToRead]

i send this comand on flutter with this command:

Future<Uint8List> _sendCommandNfcV(NfcV tag, Uint8List command) async {
try {
final response = await tag.transceive(data: command);
return response;
} catch (e) {
rethrow;
}
}

Best regards

2 replies

victor laraison
ST Employee
Jan 2, 2025 8:17 AM UTC

Hi gabriel,

What is your smartphone type ? iOS or Android ? 

On iOS/iPhone, M24LR64 is not supported at all. 

Br,

 

GabrielGranzottoAuthorBest answer
Associate II
Jan 2, 2025 6:49 PM UTC

Hello

I find a solution to read a single or multiple block:

[0x0a, 0x20, 0x00, 0x00], // Read Single Block ---- [0x0A, 0x23, StartAddress_LSB, StartAddress_MSB]
[0x0a, 0x23, 0x2, 0x00, 0x4],// Read Multiple Blocks ---- [0x0A, 0x23, StartAddress_LSB, StartAddress_MSB, NbOfBlockToRead]

i send this comand on flutter with this command:

Future<Uint8List> _sendCommandNfcV(NfcV tag, Uint8List command) async {
try {
final response = await tag.transceive(data: command);
return response;
} catch (e) {
rethrow;
}
}

Best regards