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

    Pyscan NFC/Rfid reading Issue

    Scheduled Pinned Locked Moved Support & Troubleshooting
    5 Posts 2 Posters 52 Views 2 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.
    • S Offline
      SSerravezza SSerravezza
      last edited by

      Good evening,
      I'm getting an Issue when trying to read a standard ISO 14443-3A tag.
      I'm using attached main.py with latest MFRC630
      I'm getting correct Uid but after authentication the tag return every block at ZERO.
      The tag is properly written on sector 2 (see dump.png and is perfectly readable with a variety of tag readers.
      Tried with Lopy and Wipy.. no way.
      Any ideas?
      Thanks.
      Saverio

      A card has been detected, reading its UID ...
      UID has length 4
      1       UID [4]: E6 51 3D 30 
              Sector 00 : Block: 00 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
              Sector 00 : Block: 01 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
              Sector 00 : Block: 02 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
              Sector 00 : Block: 03 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
              ________________________________
              Sector 01 : Block: 00 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
              Sector 01 : Block: 01 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
              Sector 01 : Block: 02 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
              Sector 01 : Block: 03 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
              ________________________________
              Sector 02 : Block: 00 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
              Sector 02 : Block: 01 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
              Sector 02 : Block: 02 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
              Sector 02 : Block: 03 : 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
              ............
      
      1 Reply Last reply Reply Quote 0
      • G Offline
        Gijs
        last edited by

        Hi,
        Could you instantiate the MFRC card reader with the flag debug=True, this should give more debug output on what is actually happening. I was not able to find a readable card in the office at this time, so. I cannot check it for you right now.

        S 2 Replies Last reply Reply Quote 0
        • S Offline
          SSerravezza SSerravezza @Gijs
          last edited by

          @Gijs Here the debug:
          attached to pyscan_debug.py

          1 Reply Last reply Reply Quote 0
          • S Offline
            SSerravezza SSerravezza @Gijs
            last edited by

            @Gijs here is the bug in MFRC630: you are printing the lenght of response instead of the value...

            Schermata 2021-04-19 alle 18.19.48.png
            On line 374 it should be:

            return dest
            
            1 Reply Last reply Reply Quote 1
            • G Offline
              Gijs
              last edited by

              Great work! I was indeed expecting the issue to be something like this, but had a hard time testing without a working sample. Let me know if that works for you, and I'll have it changed in the libraries!

              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