Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with emulate ACR122 #49

Open
alhkytran opened this issue Mar 23, 2021 · 1 comment
Open

Problems with emulate ACR122 #49

alhkytran opened this issue Mar 23, 2021 · 1 comment

Comments

@alhkytran
Copy link

I tried to use pn532mitm.py with 2 acr122 to read and emulated.
The part to read no have problem, wait for a card and when the card is closed read and wait for emulated, in this step get trouble in

emulator.acs_send_apdu(PN532_APDU['TG_INIT_AS_TARGET']+mode+sens_res+uid+sel_res+felica+nfcid+lengt+gt+lentk+tk

The error is:

Traceback (most recent call last):
  File "pn532mitm.py", line 315, in <module>
    status= emulator.acs_send_apdu(PN532_APDU['TG_INIT_AS_TARGET']+mode+sens_res+uid+sel_res+felica+nfcid+lengt+gt+lentk+tk)
  File "$HOME/RFIDIOt/rfidiot/RFIDIOt.py", line 1212, in acs_send_apdu
    result, sw1, sw2= self.acs_transmit_apdu(apduout)
  File "$HOME/RFIDIOt/rfidiot/RFIDIOt.py", line 1258, in acs_transmit_apdu
    sw1 = response[-2]
IndexError: list index out of range

The readers information is:

Reader NXP PN532 Firmware:
       IC: 32
      Rev: 1.6

And the command that used was
python pn532mitm.py -r 0 1

Can someone help me with this problem??

@AlfonsoLopezContreras
Copy link

I have the same issue, anyone found a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants