Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-2074

The native commands on type4 MIFARE DESFire NFC cards are ignored

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 1.2.2
    • 1.1.2
    • None
    • d262f8602661f222819c5d4b468a1c23257e643c

    Description

      The native command responses are ignored with the Qt mobility layer.

      For example (from the attached document chapter 8.1):

      MIFARE DESFire SelectApplication with AID equal to 000000h (PICC level)

      Command: 90 5a 00 00 03 00 00 00 00h
      Expected Response: 91 00h

      Currently the response is false

      Current implementation:

      QVariant QNearFieldTagType4Symbian::decodeResponse(const QByteArray &command, const QByteArray &response)
      {
      BEGIN
      QVariant result;

      OutputByteArray(response);
      if ((command.count() > 2) && (0x00 == command.at(0)))
      {
      if ( (0xA4 == command.at(1)) || (0xD6 == command.at(1)) )
      {
      if (response.count() >= 2)

      { LOG("select or write command"); QByteArray resp = response.right(2); result = ((resp.at(0) == 0x90) && (resp.at(1) == 0x00)); }

      }
      else

      { LOG("read command"); result = response; }

      }
      END
      return result;
      }

      Attachments

        1. AN11004.pdf
          570 kB
          Eero Bragge

        Activity

          People

            jukukkon Juha Kukkonen
            ebragge Eero Bragge
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: