Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Registered User
    Join Date
    Mar 2012

    Question Reading bytes from Mifare Ultralight

    Im developing on Qt Meego for Nokia n9.
    I need to read Mifare Ultralight tags.
    (they have 16 sectors/pages from 0-15 and each have 4 bytes)
    I can read UID correctly and type gives me TagType2. (hopefully the returned tag type is correct) http://doc.qt.nokia.com/qtmobility/q...dtagtype2.html

    Now i would like to read bytes from different sectors.
        QNearFieldTarget::RequestId page3 = target->readBlock(3);
        QVariant response = target->requestResponse(page3);
        QByteArray p = response.toByteArray();
        nfcInfo.append("Bytes on page3: " + QString::QString(p));
    target is QNearFieldTagType2*

    but target->readBlock(3) is not working at all.
    just to be clear target->uid() works so reading is happening kinda correctly.
    In what way i could fix the readBlock() or implement it differently to get the bytes out from my card?

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2010

    Re: Reading bytes from Mifare Ultralight

    Unfortunately, tag-type specific access is not possible in MeeGo Harmattan through the Qt Mobility NFC APIs (see: http://doc.qt.nokia.com/qtmobility/c...y-api.html#nfc ).

    The code works on Symbian, but directly accessing bytes of NFC tags is unfortunately not available on the N9.

Similar Threads

  1. Nokia 6112 and Mifare Ultralight
    By TayfunKalkanci in forum Near Field Communication
    Replies: 2
    Last Post: 2011-07-13, 11:23
  2. Reading 'N' no of bytes from a file
    By rajeev123in in forum Symbian
    Replies: 3
    Last Post: 2010-05-21, 08:32
  3. recordDetected with Mifare Ultralight
    By petteriko1 in forum Near Field Communication
    Replies: 2
    Last Post: 2009-09-24, 05:07
  4. Read Write Mifare Ultralight
    By trentsamone in forum Near Field Communication
    Replies: 3
    Last Post: 2008-07-04, 09:34
  5. Reading given number of bytes with RSocket::Read()
    By luweiewul in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2005-07-15, 05:57

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts