Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    NFC Reading

    Scheduled Pinned Locked Moved Discussion
    ntag203nfcpyscan
    8 Posts 6 Posters 639 Views 6 Watching
    Loading More Posts
    • 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.
    • P Offline
      pcraven
      last edited by

      I've got a Pyscan and a NTAG203 NFC tag. I can read and write to the NFC tag just fine with my phone. I try to read from the NFC tag, and instead of getting the 7 byte UID of the tag, I get 4 bytes, only 3 of which are correct. The other byte is 0x00.

      The example at:

      https://github.com/pycom/pycom-libraries/blob/master/pyscan/nfc.py

      ...wants some authentication with mfrc630_MF_auth, which I can't get to work and don't understand. My understanding is I should be able to read blocks from the tag, but I can't do that without some authentication? There's not much in the way of examples out there. Anyone have luck with NFC?

      1 Reply Last reply Reply Quote 1
      • P Offline
        Paul Thornton
        last edited by

        When writing to the NFC tag you can specify an Encryption key for the reader/writer to use. by default on the MiFaire cards its just [ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF ], (if the feature is even enabled).

        To turn it on based on that demo you'd want to put the correct key on line 17 and change line 18 to True.

        Most of the NFC apps on phones just leave it off by default so I Imagine your having another issue but its worth checking.

        V 1 Reply Last reply Reply Quote 1
        • M Offline
          mia1913
          last edited by

          Hi,

          I have the same problem with you. Have you solved this problem?

          R 1 Reply Last reply Reply Quote 1
          • R Offline
            rskoniec @mia1913
            last edited by

            @mia1913 @pcraven @mia1913 Did you try @Paul-Thornton suggestions?

            The machine is working as good as it's code.

            P M 2 Replies Last reply Reply Quote 1
            • P Offline
              Paul Thornton @rskoniec
              last edited by

              @rskoniec On further investigation im not sure what I posted will help this issue. Looking into this still.

              1 Reply Last reply Reply Quote 1
              • M Offline
                mia1913 @rskoniec
                last edited by

                @rskoniec Yes, I tried it, but it did not work. The type of NFC tage I use is Ntag213.

                A 1 Reply Last reply Reply Quote 1
                • V Offline
                  vidah vidah Banned @Paul Thornton
                  last edited by vidah vidah

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    awais khanq Banned @mia1913
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    • 1 / 1
                    • First post
                      Last post

                    Pycom on Twitter

                    Pycom