Skip to main content
Visitor II
December 23, 2024
Solved

M24LR64E-R read with flutter

  • December 23, 2024
  • 2 replies
  • 779 views

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.
    Best answer by GabrielGranzotto

    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

    ST Employee
    January 2, 2025

    Hi gabriel,

    What is your smartphone type ? iOS or Android ? 

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

    Br,

     

    GabrielGranzottoAuthorAnswer
    Visitor II
    January 2, 2025

    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