jeanthom / jeanthom/ibugger

Error usb timeout

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Assembly
Stars
7
Forks
1
PR merge metrics
No merged PRs in 30d

Description

C:\WINDOWS\system32>cd C:\Users\Peter\ibugger-master\ibugger-master

C:\Users\Peter\ibugger-master\ibugger-master>python ibugger.py startup
Traceback (most recent call last):
File "ibugger.py", line 137, in
dev = libibugger.ibugger()
File "C:\Users\Peter\ibugger-master\ibugger-master\libibugger.py", line 44, in __init__
data = self.__getbulk(handle, 0x83, 0x10)
File "C:\Users\Peter\ibugger-master\ibugger-master\libibugger.py", line 70, in __getbulk
data = handle.bulkRead(endpoint, size, 1000)
File "C:\python27-x64\lib\site-packages\usb\legacy.py", line 165, in bulkRead
return self.dev.read(endpoint, size, timeout)
File "C:\python27-x64\lib\site-packages\usb\core.py", line 988, in read
self.__get_timeout(timeout))
File "C:\python27-x64\lib\site-packages\usb\backend\libusb1.py", line 833, in bulk_read
timeout)
File "C:\python27-x64\lib\site-packages\usb\backend\libusb1.py", line 936, in __read
_check(retval)
File "C:\python27-x64\lib\site-packages\usb\backend\libusb1.py", line 595, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 10060] Operation timed out

did you ever get this issue ? I have libusb1 pyusb 1 and python 2.7 same issue if I use a vm from windows however on kali linux I had no issue. Since the path is in cydrive a assume you used this with cygwin any idea what could cause this issue

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with ibugger.py and libibugger.py, especially libibugger.py lines 44 and 70 where the bulk read is called. Reproduce the startup command under Windows or Cygwin and compare it with Kali Linux, using the reported PyUSB/libusb traceback. Done means identifying and documenting the cause of the Windows timeout or providing a verified fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.