Skip to content

Cannot use after disconnecting, reconnecting device by USB #54

@insta256

Description

@insta256

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions