我正在尝试通过 NFC-V从M24LR芯片读取多个块(所有这些块都在一个 READ MULTIPLE BLOCKS 命令中)。
let writeData = new Uint8Array(5);
writeData[0] = 0x0A; // Flags
writeData[1] = 0x23; // Read multiple block
writeData[2] = 0x00; // Address of starting block (first 8bit)
writeData[3] = 0x00; // Address (second 8bit)
writeData[4] = 0x1F; // Numbers of block (0x20 is not working)
nfc.transceive(writeData.buffer)
.then(response => {
console.log('response: ' + response);
})
.catch(error => {
console.log('error transceive: ' + JSON.stringify(error));
});
如果我要求 32 个块,它运行良好,如果我要求 33 个块,则命令失败并出现错误。
我做错了什么吗?READ MULTIPLE BLOCKS 命令是否有限制?