Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB NFC reader Accessed denied #3

Open
IvanoiuAlexandruPaul opened this issue Jan 30, 2022 · 4 comments
Open

USB NFC reader Accessed denied #3

IvanoiuAlexandruPaul opened this issue Jan 30, 2022 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@IvanoiuAlexandruPaul
Copy link

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.

@g-apparence
Copy link

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 g-apparence added the help wanted Extra attention is needed label Jan 31, 2022
@IvanoiuAlexandruPaul
Copy link
Author

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
Copy link
Author

IvanoiuAlexandruPaul commented Feb 2, 2022

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.

@g-apparence
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants