Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. NFC, NearField and uuid
Forum Updated to NodeBB v4.3 + New Features

NFC, NearField and uuid

Scheduled Pinned Locked Moved Solved QML and Qt Quick
6 Posts 4 Posters 869 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mrdebugM Offline
    mrdebugM Offline
    mrdebug
    wrote on last edited by
    #1

    Hi, I need to get the uuid of the tag on signal "onTagFound".
    Can you suggest me the way? Up to now I can't find it.

        NearField {
            polling: true
            onTagFound: {
                console.log("TAG found !!")
            }
        }
    

    Need programmers to hire?
    www.labcsp.com
    www.denisgottardello.it
    GMT+1
    Skype: mrdebug

    1 Reply Last reply
    0
    • IntruderExcluderI Offline
      IntruderExcluderI Offline
      IntruderExcluder
      wrote on last edited by
      #2

      I've never tried to work with NFC, but according to code you should listen onMessageRecordsChanged signal.

      Gojir4G 1 Reply Last reply
      0
      • IntruderExcluderI IntruderExcluder

        I've never tried to work with NFC, but according to code you should listen onMessageRecordsChanged signal.

        Gojir4G Offline
        Gojir4G Offline
        Gojir4
        wrote on last edited by
        #3

        @IntruderExcluder Hi,

        The QML API doesn't seem providing a way for accessing this information. But you could use the C++ API which seems to provide it through QNearFIeldTarget::uid().

        See QNearFieldManager::targetDetected(QNearFieldTarget *target) and QNearFieldTarget

        1 Reply Last reply
        0
        • mrdebugM Offline
          mrdebugM Offline
          mrdebug
          wrote on last edited by
          #4

          Perfect, now I can get the uuid of my mifare badge.
          Now my mifare badge has got some data stored in a particular secor. In order to read that sector I have to use a particular password.
          How can I pass to the component the number of the sector that I want to read and the sector password?

          Another problem. In order to use the nfc reader I use the lines of the code below:

              NearFieldManager= new QNearFieldManager(this);
              connect(NearFieldManager, SIGNAL(targetDetected(QNearFieldTarget*)), this, SLOT(targetDetected(QNearFieldTarget*)));
              NearFieldManager->startTargetDetection();
          

          and then

                  NearFieldManager->stopTargetDetection();
                  delete NearFieldManager;
          

          The nfc reader works only the first app start. After that I have to restart the mobile.

          Need programmers to hire?
          www.labcsp.com
          www.denisgottardello.it
          GMT+1
          Skype: mrdebug

          Pablo J. RoginaP 1 Reply Last reply
          0
          • mrdebugM mrdebug

            Perfect, now I can get the uuid of my mifare badge.
            Now my mifare badge has got some data stored in a particular secor. In order to read that sector I have to use a particular password.
            How can I pass to the component the number of the sector that I want to read and the sector password?

            Another problem. In order to use the nfc reader I use the lines of the code below:

                NearFieldManager= new QNearFieldManager(this);
                connect(NearFieldManager, SIGNAL(targetDetected(QNearFieldTarget*)), this, SLOT(targetDetected(QNearFieldTarget*)));
                NearFieldManager->startTargetDetection();
            

            and then

                    NearFieldManager->stopTargetDetection();
                    delete NearFieldManager;
            

            The nfc reader works only the first app start. After that I have to restart the mobile.

            Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on last edited by
            #5

            @mrdebug said in NFC, NearField and uuid:

            How can I pass to the component the number of the sector that I want to read and the sector password?
            Another problem. In order to use the nfc reader I use the lines of the code below:

            could it be possible that you create separate topics for these two issues?

            You're burying them in this topic related to getting the uuid from your NFC badge, which by the way seems solved.

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            0
            • mrdebugM Offline
              mrdebugM Offline
              mrdebug
              wrote on last edited by
              #6

              In order to get the uid of the mifare badge readed by nfc reader these lines of codes are enough

               NearFieldManager= new QNearFieldManager(this);
                  connect(NearFieldManager, SIGNAL(targetDetected(QNearFieldTarget*)), this, SLOT(targetDetected(QNearFieldTarget*)));
                  NearFieldManager->startTargetDetection();
              
              
              void QCMainForm::targetDetected(QNearFieldTarget *target) {
                  ...
                  target->uid()
                  ...
              }
              
              

              Need programmers to hire?
              www.labcsp.com
              www.denisgottardello.it
              GMT+1
              Skype: mrdebug

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved