收藏
回答

请问通过NfcA.transceive发送数据,data需要怎么写才能成功写入?

还有会出现13017 相关读写操作失败的原因是因为写入失败?还是因为写入成功,但是没有返回才会报错?

回答关注问题邀请回答
收藏

2 个回答

  • 旱獭
    旱獭
    2021-02-13

    需要用nfc指令写入

    2021-02-13
    有用
    回复 2
    • var_dump
      var_dump
      2021-06-03
      大佬能吧写入指令和读取指令分享一下吗
      2021-06-03
      回复
    • Genosse.
      Genosse.
      2022-01-17
      Read ID 0x78
      Read all bytes 0x00
      Read 8 bytes 0x02
      Read 1 bytes 0x01
      Read 16 bytes 0x30
      Read segment 0x10
      Write 4 bytes 0xa2
      Write 1 bytes with erase 0x53
      Write 1 bytes without erase 0x1a
      Write 8 bytes with erase 0x54
      Write 8 bytes without erase 0x1b
      Sector select 0xc2
      Get version 0x60
      eg:
       Read 16 bytes from block 0x04 0x30:0x04
      eg:
       Write FF:FF:FF:FF on block 0x04 0xa2:0x04:0xff:0xff:0xff:0xff
      Check command 0x06
      Check response 0x07
      Update command 0x08
      Update response 0x09
      Select 0xa4
      Select by name 0x04
      Select by file id 0x00
      Read binary 0xb0
      Update binary 0xd6
      Read ECC Signature 0x3c:0x00
      Read counter 0x39:0x02
      2022-01-17
      回复
  • Cjiang
    Cjiang
    2021-01-22

    你好,可以先根据状态码进行自查下:

    2021-01-22
    有用
    回复 4
    • 空★壳
      空★壳
      2021-01-22
      现在就是不知道怎么写入数据
      2021-01-22
      回复
    • 空★壳
      空★壳
      2021-01-22
      一开始var buffer = new ArrayBuffer(“F0E2010130”)这样写是会出现13017的,现在没有出现了,不过打印出来的buffer是空的,NfcA.transceive也没有成功过
      2021-01-22
      回复
    • Cjiang
      Cjiang
      2021-01-25回复空★壳
      你好,请参考一下帖子:
      https://developers.weixin.qq.com/community/develop/doc/00004a64c446a8f0916bc29d35bc00
      2021-01-25
      回复
    • 陌
      2021-12-31
      根本都没解决,啥子都是需要开发者自行了解
      2021-12-31
      回复
登录 后发表内容
问题标签