Reputation: 5
I have accessed a scale with WebUSB and received my demanded output (aka the weight). It perfectly runs on Windows but I want to deploy it on an ASUS ChromeBox. I have set up an udev- rule and unbinded the device from the cdc_acm driver. The problem is that the cdc_acm claims the interface again every time I reconnect the device.
What can/should I do?
Upvotes: 0
Views: 798
Reputation: 852
WebUSB doesn't currently support detaching kernel drivers on Linux, but it is being considered: https://bugs.chromium.org/p/chromium/issues/detail?id=1099521
You could add cdc_acm
to the kernel module blacklist in /etc/modprobe.d/blacklist.conf
to prevent it from loading. Alternatively you could consider using the Web Serial API to interact with the CDC ACM driver instead of WebUSB.
Upvotes: 1