Closed GoogleCodeExporter closed 9 years ago
This issue was updated by revision af7eef0c54b1.
The driver now check that Status Word (SW1) is equals to 0x61 (more data
available) before using SW2 as length.
If SW is not as expected, it show SW1 and SW2.
Original comment by romu...@libnfc.org
on 13 Jun 2013 at 1:57
Thanks for reporting.
This issue is not fixed but libnfc does now handle SW and display a better
message.
Original comment by romu...@libnfc.org
on 13 Jun 2013 at 1:59
I'm not sure we can achieve better error handling
In this example a wrong command was sent to a ULC
The ULC replies with a 0x0 (4bits) = "any other error (NAK)"
But with a MFC, the card stays silent in case of wrong command.
Then the PN532 does not send back those 4 bits (or no response in case of MFC)
but it replies to the reader microcontroller a standard error frame
(0000FF01FF7F8100) to inform the controller that it has detected an error at
the application level.
The controller encapsulates this 7F into a SW=637F as it is using pseudo-APDUs.
(63xx errors are ISO7861-4 warnings)
So we just know an error occurred but we cannot know more.
Now maybe it's better to send something like "PN532 has detected an error at
the application level" rather than "Unexpected SW".
I'll capture specifically the 637F and leave Unexpected SW for the other cases
if any.
Original comment by yob...@gmail.com
on 13 Jun 2013 at 6:48
This issue was closed by revision f0471ebc894d
Original comment by yob...@gmail.com
on 13 Jun 2013 at 7:02
Original issue reported on code.google.com by
djo...@gmail.com
on 4 Jun 2013 at 2:45