Reading NDEF-Message using PN532 #1094
              
                Unanswered
              
          
                  
                    
                      espruino-discuss2
                    
                  
                
                  asked this question in
                Interfacing
              
            Replies: 1 comment
-
| Posted at 2024-05-20 by @gfwilliams Hi Martin, I'm afraid I don't personally, but maybe looking at another library would help. For example Adafruit have a library, and if you're reading mifare (example at https://github.com/adafruit/Adafruit-PN532/blob/master/examples/readMifare/readMifare.ino) they seem to authenticate and then read, which both seem to be done with PN532_COMMAND_INDATAEXCHANGE: | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2024-05-18 by user155724
Hi,
I would like to create an NFC tag reader using a PN532. In the end I would like to read NDEF messages from any NDEF tag.
The general interfacing already works. I wired up the MDBT42Q breakout and a PN532 breakout board.
Using the PN532 module I am able to read the card id, as it's shown in the tutorial.
Now, I would like to read all bytes and parse an NDEF message with the library https://github.com/andijakl/ndef-nfc/.
The idea is to read all bytes of the NDEFMessage and then parse them with the following call:
I managed to load the minified version of the library within espruino, I just need to read all the bytes of the tag.
So I started modifying the PN532 module in an own fork and created the function findCardsAllBytes, which looks like this:
Do you have an idea which I2C commands I need to read all the raw bytes of the tag?
Thank you!
Martin
Beta Was this translation helpful? Give feedback.
All reactions