ATrappmann / PN5180-Library

PN5180 library for Arduino
GNU Lesser General Public License v2.1
105 stars 92 forks source link

ISSUE WITH 'INVENTORY READ' COMMAND 'ICODE SLIX ISO 15693' #47

Open d-hormilleja opened 2 years ago

d-hormilleja commented 2 years ago

Hello everyone, I'm developing a mobile app for reading and writting tags ICODE SLIX SL2S2002 ISO 15693. I'm having trouble getting the raw Inventory Read command for 'Inventory Read'.

2021-11-17_10-03 2021-11-17_10-05

componentDidMount() {
    NfcManager.start();
  }

  // attached to a button
  readData = async () => {
    try {
      let tech = NfcTech.NfcV;
      let resp = await NfcManager.requestTechnology(tech, {
        alertMessage: "Ready for magic",
      });

   let cmd = NfcManager.transceive;

   resp = cmd(rawCommand)
        .then( response => {
          console.log(response)
        })
        .catch( error => {
          console.log('error cmd', error);
        }

The other issue could be related to timing.

I dont get any response from the TAG, neither the data response nor the response of the error byte array. I get:

[Error: transceive fail]

I would appreciate any help, thanks!