radiacode
radiacode copied to clipboard
Cannot use after disconnecting, reconnecting device by USB
There seems to be an issue once a device has been disconnected and reconnected by USB.
When I try to initialize a measurement e.g. with python3 -m radiacode-examples.basic It immediately bails with
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/usb/core.py", line 236, in get_interface_and_endpoint
return self._ep_info[endpoint_address]
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 129
Modifying the provided udev rule to
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="f123", TAG+="uaccess", MODE="0666"
seems to fix the problem (Last digit in MODE chaged from 0 to 6).