Jump to content

connection MFRC522 and Mifare DESFire EV1 with python


stalnoj

Recommended Posts

I need connection MFRC522 and Mifare DESFire EV1 with python. Use code this project

def __init__(self, dev='/dev/spidev1.0', spd=1000000):
    spi.openSPI(device=dev,speed=spd)
    GPIO.setmode(GPIO.BOARD)
    GPIO.setup(22, GPIO.OUT)
    GPIO.output(self.NRSTPD, 1)
self.MFRC522_Init()

 def MFRC522_Init(self):
    GPIO.output(self.NRSTPD, 1)

    self.MFRC522_Reset();


    self.Write_MFRC522(self.TModeReg, 0x8D)
    self.Write_MFRC522(self.TPrescalerReg, 0x3E)
    self.Write_MFRC522(self.TReloadRegL, 30)
    self.Write_MFRC522(self.TReloadRegH, 0)

    self.Write_MFRC522(self.TxAutoReg, 0x40)
    self.Write_MFRC522(self.ModeReg, 0x3D)
self.AntennaOn()

Code for Tags Information:

(status,TagType) = MIFAREReader.MFRC522_Request(MIFAREReader.PICC_REQIDL)

It will return (status,TagType): (2,0) for DESFIre - its NO DATA. (0, 16) for mifare classis - GOod data

Dont see MIFARE DESFire and good work with china classic mifare cards

I need help and pay 100$ for real solution

 
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines