read the sector of a 7byte 4k card using pn532
Moderators: adafruit_support_bill, adafruit
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
- Pradeep_C
- Posts: 2
- Joined: Sat Feb 18, 2023 12:48 pm
read the sector of a 7byte 4k card using pn532
when I try to read the sector of a 7byte 4k card using pn532 it's giving error.but 4byte 4k card working fine . i am using raspberry Pi. anyone can help me
- mikeysklar
- Posts: 14169
- Joined: Mon Aug 01, 2016 8:10 pm
Re: read the sector of a 7byte 4k card using pn532
Are you using libnfc? There uidLength seems like the thing to change, but another user post suggested the got a 7 byte tag going another way.
Code: Select all
uint8_t uidLength; // Length of the UID (4 or 7 bytes depending on ISO14443A card type)
// Wait for an ISO14443A type cards (Mifare, etc.). When one is found
// 'uid' will be populated with the UID, and uidLength will indicate
// if the uid is 4 bytes (Mifare Classic) or 7 bytes (Mifare Ultralight)
success = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A, &uid[0], &uidLength)
- Pradeep_C
- Posts: 2
- Joined: Sat Feb 18, 2023 12:48 pm
Re: read the sector of a 7byte 4k card using pn532
Thank you for the reply .it has been resolved .
- mikeysklar
- Posts: 14169
- Joined: Mon Aug 01, 2016 8:10 pm
Re: read the sector of a 7byte 4k card using pn532
What was your resolution?
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/