proempiet
February 11th, 2011, 10:57 PM
I am trying to got RIFIOt running with an ACR122 I get to the last point in reading the tags then I get the message below.
>>>
proempiet@ubuntu:~/RFIDIOt-1.0a$ ./readtag.py -d -r 0
Reader Subtype: 5
connecting to ACS ACR122U 00 00
readtag v0.1e (using RFIDIOt v1.0a)
Reader: PCSC ACS ACR122U 00 00
disconnecting from ACS ACR122U 00 00
connecting to ACS ACR122U 00 00
> FF CA 00 00 00
ID:
Data:
disconnecting from ACS ACR122U 00 00
connecting to ACS ACR122U 00 00
> FF CA 00 00 00
Block 00: > FF B0 00 00 00
Traceback (most recent call last):
File "./readtag.py", line 41, in <module>
if card.readblock(x):
File "/home/proempiet/RFIDIOt-1.0a/RFIDIOt.py", line 1516, in readblock
ret= self.pcsc_send_apdu(apdu)
File "/home/proempiet/RFIDIOt-1.0a/RFIDIOt.py", line 1321, in pcsc_send_apdu
result, sw1, sw2= self.pcsc_connection.transmit(apduout,protocol= self.pcsc_protocol)
File "/usr/local/lib/python2.6/dist-packages/smartcard/CardConnectionDecorator.py", line 82, in transmit
return self.component.transmit(bytes, protocol)
File "/usr/local/lib/python2.6/dist-packages/smartcard/CardConnection.py", line 140, in transmit
data, sw1, sw2 = self.doTransmit(bytes, protocol)
File "/usr/local/lib/python2.6/dist-packages/smartcard/pcsc/PCSCCardConnection.py", line 175, in doTransmit
raise CardConnectionException('Failed to transmit with protocol ' + dictProtocolHeader[pcscprotocolheader] + '. ' + SCardGetErrorMessage(hresult))
smartcard.Exceptions.CardConnectionException: Failed to transmit with protocol T1. Card protocol mismatch.
Exception AttributeError: AttributeError("'NoneType' object has no attribute 'disconnect'",) in <bound method PCSCCardConnection.__del__ of <smartcard.pcsc.PCSCCardConnection.PCSCCardConnecti on instance at 0x99c9bac>> ignored
>>>
Does anybody know what is wrong?
>>>
proempiet@ubuntu:~/RFIDIOt-1.0a$ ./readtag.py -d -r 0
Reader Subtype: 5
connecting to ACS ACR122U 00 00
readtag v0.1e (using RFIDIOt v1.0a)
Reader: PCSC ACS ACR122U 00 00
disconnecting from ACS ACR122U 00 00
connecting to ACS ACR122U 00 00
> FF CA 00 00 00
ID:
Data:
disconnecting from ACS ACR122U 00 00
connecting to ACS ACR122U 00 00
> FF CA 00 00 00
Block 00: > FF B0 00 00 00
Traceback (most recent call last):
File "./readtag.py", line 41, in <module>
if card.readblock(x):
File "/home/proempiet/RFIDIOt-1.0a/RFIDIOt.py", line 1516, in readblock
ret= self.pcsc_send_apdu(apdu)
File "/home/proempiet/RFIDIOt-1.0a/RFIDIOt.py", line 1321, in pcsc_send_apdu
result, sw1, sw2= self.pcsc_connection.transmit(apduout,protocol= self.pcsc_protocol)
File "/usr/local/lib/python2.6/dist-packages/smartcard/CardConnectionDecorator.py", line 82, in transmit
return self.component.transmit(bytes, protocol)
File "/usr/local/lib/python2.6/dist-packages/smartcard/CardConnection.py", line 140, in transmit
data, sw1, sw2 = self.doTransmit(bytes, protocol)
File "/usr/local/lib/python2.6/dist-packages/smartcard/pcsc/PCSCCardConnection.py", line 175, in doTransmit
raise CardConnectionException('Failed to transmit with protocol ' + dictProtocolHeader[pcscprotocolheader] + '. ' + SCardGetErrorMessage(hresult))
smartcard.Exceptions.CardConnectionException: Failed to transmit with protocol T1. Card protocol mismatch.
Exception AttributeError: AttributeError("'NoneType' object has no attribute 'disconnect'",) in <bound method PCSCCardConnection.__del__ of <smartcard.pcsc.PCSCCardConnection.PCSCCardConnecti on instance at 0x99c9bac>> ignored
>>>
Does anybody know what is wrong?