You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noticed that the buffer used for PN532 communication is limited by 64 bytes:
#define PN532_PACKBUFFSIZ 64
The C-APDU command length can be up to 261 bytes (CLA-INS-P1-P2-P3-255 data bytes-Le)
The R-APDU returned to the host controller can have a length of 258 bytes (256 data bytes-SW1-SW2)
By design, the library uses just one buffer for commands and answers with fixed size(PN532_PACKBUFFSIZ) but a very low one.
Using only 64 bytes from the PN532 buffer is almost four times less its limit. This limitation affects directly the ISO/14443A or raw communication projects.
Making some tests, I noticed that the actual library design could be implemented with a buffer size of 255 without changing anything else:
#define PN532_PACKBUFFSIZ 255
The text was updated successfully, but these errors were encountered:
can you confirm/deny that sending a large apdu (say 80 bytes) is possible? In my setup ( #73 ) increasing the command buffer for receiving apdus works fine (large apdu replies are received ok), but sending large apdus fails.
can you confirm/deny that sending a large apdu (say 80 bytes) is possible? In my setup ( #73 ) increasing the command buffer for receiving apdus works fine (large apdu replies are received ok), but sending large apdus fails.
see the manual reference in #124 which is unambiguous
Noticed that the buffer used for PN532 communication is limited by 64 bytes:
#define PN532_PACKBUFFSIZ 64
By design, the library uses just one buffer for commands and answers with fixed size(PN532_PACKBUFFSIZ) but a very low one.
Using only 64 bytes from the PN532 buffer is almost four times less its limit. This limitation affects directly the ISO/14443A or raw communication projects.
Making some tests, I noticed that the actual library design could be implemented with a buffer size of 255 without changing anything else:
#define PN532_PACKBUFFSIZ 255
The text was updated successfully, but these errors were encountered: