0

I have a USB scale of type Mettler/Toledo PS60 which I'm trying to connect to using the WebHID API in order to receive scale values for my web app. However it doesn't show up in the list of devices when calling requestDevice().

navigator.hid.requestDevice({ filters: [] })

The device DOES show up when using the WebUSB API however I can't connect to it with error message "The requested interface implements a protected class." Ok makes sense since the interface shows as HID and "blocked by WebUSB" in chrome://usb-internals/ but then why doesn't it show up when using WebHID?

enter image description here

I tried changing drivers to WinUSB but that didn't seem to make any difference. Anyone have a clue as to what the issue is or some way I can get more information about why the device is not listed? Or is it simply not possible to use this device with WebHID/WebUSB?

asked Jul 24, 2023 at 15:21
10
  • 1
    Check chrome://device-log to see if the device was detected as an HID device. Make sure to uncheck "USB" so you only see logs from the HID subsystem. Also check the JavaScript console for any warnings when you call navigator.hid.requestDevice(). Commented Jul 25, 2023 at 5:03
  • It only shows up in the device log with the USB tag. There are no warnings in the console for navigator.hid.requestDevice(). Commented Jul 25, 2023 at 6:52
  • @ReillyGrant I noticed the device is using USB version 1.1.0. Is that perhaps too old to work with WebHID? My keyboard with 2.0 shows up just fine. Commented Jul 26, 2023 at 7:03
  • The USB HID protocol works over USB 1.1. You must have a fancy keyboard for it to be USB 2.0. What platform are you on? We've seen some issues with Chrome discovering HID devices on Windows if the system recognizes them as a keyboard rather than a generic HID device and therefore doesn't expose them through the necessary userspace APIs. Commented Jul 26, 2023 at 21:23
  • I'm on Windows 10 Commented Jul 27, 2023 at 14:40

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.