webUSB_plugin icon indicating copy to clipboard operation
webUSB_plugin copied to clipboard

USB NFC reader Accessed denied

Open IvanoiuAlexandruPaul opened this issue 3 years ago • 4 comments
trafficstars

Hello everyone I managed to connect my NFC reader via USB but I have a problem, I get access denied.

As you can see in the picture below: Screenshot (220) Screenshot (221) Screenshot (222) Screenshot (223)

Is it a way to make this work?

The NFC reader is the following model: ACR122U PICC interface

Thank you in advance.

IvanoiuAlexandruPaul avatar Jan 30 '22 18:01 IvanoiuAlexandruPaul

Hi, you can have this error on windows if the driver is not properly installed on your system. or

_"Open chrome://system and expand the "syslog" section. You will find a series of messages from "permission_broker" for each device you try to open and the rule that caused it to deny access.

The most common reason is "DenyClaimedUsbDeviceRule" which denies access to devices that are claimed by another application or a kernel driver. Access is denied in this case for security reasons. Chrome OS does not want a Chrome App to be able to override any policies normally enforced by the kernel for devices that it has support for. You should use a higher level API (such as chrome.fileSystem for storage devices or navigator.getUserMedia for webcams and audio adapters)."_

see this thread

g-apparence avatar Jan 31 '22 20:01 g-apparence

I managed to make it work to get detected but I have a problem or at least I think I have one. Once it says connected if I put the tag on it nothing happens.

Now the question comes.

Am I doing something wrong or I just don't say to the program to do something useful with the tag? As a code example, I just used the code that you provided on the Flutter package, so I think that the action of reading from the tag is not covered that is why nothing happens? and obv I have to program that part using the functions you build in the package right?

Can that be a possibility?

Thank you in advance for your help.

IvanoiuAlexandruPaul avatar Jan 31 '22 22:01 IvanoiuAlexandruPaul

Hello so I did the following:

  1. Connected to the NFC reader/writer 1 2
  2. Once I connected my NFC reader has the red light, not gree in order to be able to read data (at least this happens when using a normal NFC program on windows) 8 9
  3. The thing I want | it is critical for my thesis: I need to be able to read the info from the tag and be able to write data to the tag. I saw these two functions: 5 And I think these are the 2 functions that I need to use in order to read and write data to the tag.

Now comes the big problem at least for me.

  1. These are the functions that you suggested to use right? 3
  2. I tried to use them but I always get errors ( can you upload a pic of how it is the right way to use these functions? please because I am really lost.
  3. Some of the fields that I have to use like in the pic don't have a description so I don't know what to use. Can you explain to me a little bit what did you wanted us to write inside that fields? 4

These are the errors that I was talking about when reading and it will get me the same when I want to write on. 1. 6 2. You can see that in the pic it says endpoint 1 size 8 and I use that but it does not work. 7

Thank you in advance for all the help. It means very very much to me and it will help me with my master's thesis if you explain to me how the functions are meant to be used so I can read on the tag the codes I want to.

IvanoiuAlexandruPaul avatar Feb 02 '22 19:02 IvanoiuAlexandruPaul

Hi, there's no documentation for transferIn or other functions because they are part of javascript.

Take a look for example there : https://developer.mozilla.org/en-US/docs/Web/API/USBDevice/transferIn Our plugin is just a way to call these functions from dart and abstract some concepts.

g-apparence avatar Feb 08 '22 15:02 g-apparence