NordicID / nur_sample_android

Nur Android Samples
MIT License
10 stars 12 forks source link

Error: NUR API error 4097: Transport error #13

Open MASP3000 opened 3 years ago

MASP3000 commented 3 years ago

Hi

I am trying to program a Capacitor Android Plugin to use RFID using HH83.

I receive the error "Error: NUR API error 4097: Transport error" when I run this code:

try {
          mNurApi.clearIdBuffer(); // <-- here is the error and it goes to the catch Exception
          mNurApi.startInventoryStream(); <-- if I comment the last line, then here is the error and it goes to the catch Exception
          mTriggerDown = true; //Flag to indicate inventory stream running
          mTagsAddedCounter = 0;
          Log.d(TAG, "Tags:" + String.valueOf(mTagsAddedCounter));
          Log.d(TAG, "Inventory streaming...");
          JSObject ret = new JSObject();
          ret.put("value", "ok");
          call.success(ret);

      }
      catch (Exception ex)
      {
          Log.d(TAG, ex.getMessage());
          call.reject(ex.getMessage());

      }

When I debug I can see that mNurApi was loaded. I updated the device's firmware.

What is wrong?

Is there a sample code to connect direct the integrated_reader without pass through startDeviceRequest?

Thank you

Miguel