radiacode icon indicating copy to clipboard operation
radiacode copied to clipboard

Cannot use after disconnecting, reconnecting device by USB

Open insta256 opened this issue 6 months ago • 0 comments

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).

insta256 avatar Jul 29 '25 14:07 insta256