-
Notifications
You must be signed in to change notification settings - Fork 35
Description
The device log:
[19:15:28] HID device detected: vendorId=2362, productId=628, name='hid-over-i2c 093A:0274', serial='', deviceIds=[/sys/devices/pci0000:00/0000:00:17.2/i2c_designware.3/i2c-9/9-002c/0018:093A:0274.0002/hidraw/hidraw1']
[19:15:30] Permission broker failed to open '/dev/hidraw1': org.freedesktop.DBus.Error.Failed: permission_broker/permission_denied:Permission to open '/dev/hidraw1' denied
The same code can work in Windows, but failed in ChromeOS.
I find some documents said I must set the udev-rules, I have tried to create a file(50-webhid.rules) as below:
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="2362", MODE="0666"
SUBSYSTEM=="hidraw1", ATTRS{idVendor}=="2362", MODE="0666"
SUBSYSTEM=="hidraw", ATTRS{idVendor}=="093A", MODE="0666"
SUBSYSTEM=="hidraw1", ATTRS{idVendor}=="093A", MODE="0666"
KERNEL=="hidraw*", ATTRS{idVendor}=="093A", MODE="0666"
KERNEL=="hidraw*", ATTRS{idVendor}=="2362", MODE="0666"
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="093A", MODE="0666"
KERNEL=="hidraw*", SUBSYSTEN=="hidraw", ATTRS{idVendor}=="2362", MODE="0666"
After creating this file, I am still unable to open the device and receive the same error message. Do you have any suggestions? Thank you for your help.