Hello,
I'm not having much luck with getting this going on linux
I run the script (tried headless and gui)
Waiting for switch
Entering command loop
Traceback (most recent call last):
File "/home/pikmin/Downloads/Switch/headless_dbibackend.py", line 210, in
main()
File "/home/pikmin/Downloads/Switch/headless_dbibackend.py", line 203, in main
poll_commands(
File "/home/pikmin/Downloads/Switch/headless_dbibackend.py", line 147, in poll_commands
cmd_header = bytes(context.read(16, timeout=0))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pikmin/Downloads/Switch/headless_dbibackend.py", line 60, in read
return self._in.read(data_size, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/usb/core.py", line 423, in read
return self.device.read(self, size_or_buffer, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/usb/core.py", line 1029, in read
ret = fn(
^^^
File "/usr/lib/python3.12/site-packages/usb/backend/libusb1.py", line 846, in bulk_read
return self.read(self.lib.libusb_bulk_transfer,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/usb/backend/libusb1.py", line 954, in read
_check(retval)
File "/usr/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 5] Input/Output Error
On the switch side I get
An error occurred:
write: USB communication failed
Press any button to exit
I tried both USB ports on my laptop (only have two). The USB C cable works on Windows version of dbibackend
Hello, I'm not having much luck with getting this going on linux I run the script (tried headless and gui)
Waiting for switch Entering command loop Traceback (most recent call last): File "/home/pikmin/Downloads/Switch/headless_dbibackend.py", line 210, in
main()
File "/home/pikmin/Downloads/Switch/headless_dbibackend.py", line 203, in main
poll_commands(
File "/home/pikmin/Downloads/Switch/headless_dbibackend.py", line 147, in poll_commands
cmd_header = bytes(context.read(16, timeout=0))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pikmin/Downloads/Switch/headless_dbibackend.py", line 60, in read
return self._in.read(data_size, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/usb/core.py", line 423, in read
return self.device.read(self, size_or_buffer, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/usb/core.py", line 1029, in read
ret = fn(
^^^
File "/usr/lib/python3.12/site-packages/usb/backend/libusb1.py", line 846, in bulk_read
return self.read(self.lib.libusb_bulk_transfer,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/usb/backend/libusb1.py", line 954, in read
_check(retval)
File "/usr/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 5] Input/Output Error
On the switch side I get An error occurred: write: USB communication failed Press any button to exit
I tried both USB ports on my laptop (only have two). The USB C cable works on Windows version of dbibackend
Thanks/Spasiba