adafruit / adafruit/Adafruit_CircuitPython_PN532

Reading Encrypted card error

Open
#60 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
105
Forks
46
PR merge metrics
No merged PRs in 30d

Description

Hi,

Having a bit of a problem reading the encrypted data on a MiFare card, wondering if anyone can help. Using a Raspberry Pi with the PN532 Breakout, and the Adafruit 359 Classic 1K card that came with it.

I'm just attempting to use the sample [pn532_readwrite_mifare.py](https://github.com/adafruit/Adafruit_CircuitPython_PN532/blob/main/examples/pn532_readwrite_mifare.py). It's able to read the UID of the card just fine, but returns a error with a "Received Unexpected Command Response!" error every time it runs once it gets to the mifare_classic_authenticate_block() function. Tried a few different blocks, but still no luck.

I've attached a screenshot with the error, and would be grateful for any help with it.
Thanks!

![2023-01-23-160509](https://user-images.githubusercontent.com/123370156/214089972-d5696c4e-ffb3-4b59-8e13-36b3fd78107d.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with examples/pn532_readwrite_mifare.py and the mifare_classic_authenticate_block() call, reproducing the error with the Raspberry Pi, PN532 Breakout, and Adafruit 359 Classic 1K card described. Investigate why authentication returns "Received Unexpected Command Response!"; done means the sample authenticates a block and proceeds past the error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, raspberry-pi
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.