LibUsb claim interface access denied Java

后端 未结 2 1065
不知归路
不知归路 2021-02-19 06:22

I want to be able to read data from an USB pedometer. I\'m trying this in Java and I\'m using the LibUsb and Usb4Java libraries. I can\'t seem to claim the usb pipe or anything

2条回答
  •  情深已故
    2021-02-19 06:47

    It could be related to an issue due to wrong permissions.
    Here is an interesting comment from someone that incurred in a similar problem.
    They suggest to edit the file /etc/udev/rules.d/90-usbpermission.rules by adding the following line:

    SUBSYSTEM==“usb”,GROUP=“users”,MODE=“0666”
    

    Hoping it helps, it mostly depends on the host system.


    Another interesting thread is this one.
    Someone simply got around the issue by not claiming the ownership of the interface.
    I guess this would work also in your case, at least as a workaround until a definitive solution has been found.

提交回复
热议问题