No Compatible Devices Found using WebHID on Chrome

1.4k views Asked by At

I am trying to use the ACR122U NFC Reader with the WebHID API but I cannot seem to get it to be found by Chrome 91 Desktop on both Linux nor Windows.

I know the browser is seeing the reader from chrome://usb-internals showing me this screen:

chrome://usb-internals

The two pieces of code that I have tried so far is here seen through the Inspect Element tools in the script tag. The VendorID and ProductID in the scripts match that which Chrome can recognise it through, so I'm not sure why it is not working for this.

The only popup dialog that I have gotten the reader to appear within is the Chrome NFC WebUSB but I cannot use that API as it implements a protected class, which is why I am using WebHID as the alternative in hopes it may work.

How do I correct my code to allow Chrome to recognise this device; what am I missing?

2

There are 2 answers

0
nondebug On

I think this won't work because ARC122U NFC Reader doesn't implement the HID protocol. According to the product page, it uses the USB CCID protocol.

3
François Beaufort On

I was able to control the ACR122U NFC Reader through WebUSB. See the library I've updated at https://github.com/beaufortfrancois/chrome-nfc

What is not working for you?