【发布时间】:2019-01-06 08:51:12
【问题描述】:
我正在尝试通过 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 命令有限制吗?
【问题讨论】: