cancel
Showing results for 
Search instead for 
Did you mean: 

M24LR64E-R read with flutter

GabrielGranzotto
Associate

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 discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions
GabrielGranzotto
Associate

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

View solution in original post

2 REPLIES 2
victor laraison
ST Employee

Hi gabriel,

What is your smartphone type ? iOS or Android ? 

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

Br,

 

GabrielGranzotto
Associate

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