Skip to content

felica读取4block时出错 #147

Closed
Closed
@QHPaeek

Description

@QHPaeek

如题。经过调查,发现:
PN532::felica_SendCommand返回-3,报告Could not receive response
PN532_SWHSU::readResponse返回PN532_NO_SPACE
于是发现PN532.h中uint8_t pn532_packetbuffer[64]; 也就是是缓冲区只有64字节,而felica同时读取4个区块是校验MACA的重要操作,4个区块内容加在一起就已经是64字节了,因此超出缓冲区。修改为uint8_t pn532_packetbuffer[128];后,int8_t result = nfc.felica_ReadWithoutEncryption(1, serviceCodeList,4 , blockList, blockData);不再报错。

Metadata

Metadata

Assignees

Labels

PN532Label for PN532UAYUnassigned yet

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions