AdamLaurie / RFIDIOt

python RFID / NFC library & tools
http://www.rfidiot.org/
1.04k stars 224 forks source link

AttributeError: rfidiot instance has no attribute 'ser' #21

Open Shaggs opened 8 years ago

Shaggs commented 8 years ago

got this today trying to wipe a card

`shane@laptop:~/nfc/RFIDIOt$ sudo python formatmifare1kvalue.py
formatmifare1k v0.1c (using RFIDIOt v1.0i)
  Reader: PCSC ACS ACR122U PICC Interface 00 00
          (Firmware: ACR122U214)

Card ID: XXXXXXXX

*** Warning! This will overwrite all data blocks! Proceed (y/n)? y
 sector 01: Keytype: FF 
  block 04:  Value: 00000000
Traceback (most recent call last):
  File "formatmifare1kvalue.py", line 55, in <module>
    if card.writevalueblock((sector * 4) + block,data):
  File "/home/shane/nfc/RFIDIOt/rfidiot/RFIDIOt.py", line 1770, in writevalueblock
    self.ser.write('wv%02x%s' % (block,data))
AttributeError: rfidiot instance has no attribute 'ser'