-
-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CH546 usb.core.USBTimeoutError: [Errno 110] Operation timed out Segmentation fault #51
Comments
I have the same problem. Also the program does not seem to use hidapi although it is installed and the symlink is set as stated in the instructions. |
I have the same Issue |
I have the same Issue (using Ubuntu 24.04) I tried to increase the timeout time (line 664) self.endpoint.write(buf[i * 64:i * 64 + 64], timeout=5000) But then I only get a different error: Module usb.core detected
Type: 11x44
Libusb device initialized
Write using wch.cn - CH546 (bus=1 dev=15 endpoint=2) via libusb
Traceback (most recent call last):
File "/home/user/Documents/Workspace/led-name-badge-ls32/./led-badge-11x44.py", line 3, in <module>
lednamebadge.main()
File "/home/samuel/Documents/Workspace/led-name-badge-ls32/lednamebadge.py", line 1135, in main
LedNameBadge.write(buf, method, args.device_id)
File "/home/user/Documents/Workspace/led-name-badge-ls32/lednamebadge.py", line 828, in write
write_method.write(buf)
File "/home/user/Documents/Workspace/led-name-badge-ls32/lednamebadge.py", line 539, in write
self._write(buf)
File "/home/user/Documents/Workspace/led-name-badge-ls32/lednamebadge.py", line 664, in _write
self.endpoint.write(buf[i * 64:i * 64 + 64], timeout=5000)
File "/home/user/Documents/Workspace/led-name-badge-ls32/ledtag/lib/python3.12/site-packages/usb/core.py", line 408, in write
return self.device.write(self, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Documents/Workspace/led-name-badge-ls32/ledtag/lib/python3.12/site-packages/usb/core.py", line 989, in write
return fn(
^^^
File "/home/user/Documents/Workspace/led-name-badge-ls32/ledtag/lib/python3.12/site-packages/usb/backend/libusb1.py", line 855, in intr_write
return self.__write(self.lib.libusb_interrupt_transfer,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Documents/Workspace/led-name-badge-ls32/ledtag/lib/python3.12/site-packages/usb/backend/libusb1.py", line 938, in __write
_check(retval)
File "/home/user/Documents/Workspace/led-name-badge-ls32/ledtag/lib/python3.12/site-packages/usb/backend/libusb1.py", line 604, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 19] No such device (it may have been disconnected)
libusb: debug [libusb_open] open 1.15
Speicherzugriffsfehler (Speicherabzug geschrieben) |
Same issue here |
hi,
try to use it on CH546 devices on Ubuntu 24 ends in Segmentation fault:
The text was updated successfully, but these errors were encountered: