Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-107793

NFC examples don't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.15.2
    • Connectivity: NFC
    • None

    Description

      Been trying to get an NFC card reader working on Qt Creator just using the NFC examples "Annotated URL Example" and "NDEF Editor Example".  It appears that Qt never detects my card reader and I get the following messages in my Application Output Window when I run the examples.

       

      Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
      QSocketNotifier: Can only be used with threads started with QThread
      qt.nfc.neard: dbus object manager invalid
      qt.nfc.neard: Error getting managed objects
      qt.nfc.neard: dbus object manager invalid or adapter path invalid
      NFC not available

       

      I have installed the App NFC Tools from wakdev.com and that works fine every time with two different readers. 

       

      Qt documentation says I need Neard.  The link they have on their documentation is invalid on the following link so please update the documentation: https://doc.qt.io/qt-5/qtnfc-index.html

       

      I installed neard version 0.16-0.1 which is newer than the lowest version 0.14 they recommend.

       

      One odd thing is that after I install neard from https://debian.pkgs.org/10/debian-main-amd64/neard-dev_0.16-0.1_amd64.deb.html, I then check the status and it shows as not installed.  Not sure why?

      $ sudo dpkg -i neard-dev_0.16-0.1_amd64.deb
      (Reading database ... 300616 files and directories currently installed.)
      Preparing to unpack neard-dev_0.16-0.1_amd64.deb ...
      Unpacking neard-dev (0.16-0.1) over (0.16-0.1) ...
      Setting up neard-dev (0.16-0.1) ...

       

      $ dpkg -s neard
      dpkg-query: package 'neard' is not installed and no information is available
      Use dpkg --info (= dpkg-deb --info) to examine archive files.

       

       

      Running Ubuntu 22.04.1

       

      What am I missing and is there anything that I need to do/add to have Qt recognize specific NFC readers?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ablasche Alex Blasche
            bpatri Benjamin Patri
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes