Skip to content
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

GreatFET One: host mode: failed to read data from endpoint 1 #74

Open
Tracked by #97
0xZm1t53r opened this issue Oct 25, 2023 · 1 comment
Open
Tracked by #97

GreatFET One: host mode: failed to read data from endpoint 1 #74

0xZm1t53r opened this issue Oct 25, 2023 · 1 comment

Comments

@0xZm1t53r
Copy link

Device: GreatFET One
Target device: Khadas VIM3 board in fastboot mode (any other device in fastboot mode will work)
Running code:

from facedancer import FacedancerUSBHostApp

# Enumerate and configure the attached device.
u = FacedancerUSBHostApp(verbose=3)
u.initialize_device(assign_address=1, apply_configuration=1)

# Print the device state.
print("Device initialized: ")
print("\tDevice is: {}".format("Connected" if u.device_is_connected() else "Disconnected"))

# Print information about the attached device...
print("Attached device: {}".format(u.get_device_descriptor()))

u.send_on_endpoint(1, b"getvar:version\x00")
u.read_from_endpoint(1, expected_read_size=64)

The execution stalls at u.read_from_endpoint(1, expected_read_size=64). Debug analysis indicates that self._get_read_status() doesn't return a 'complete' status.
USB Analyzer shows that the response was send:
usb-log

Did I skip any setup actions, or is the problem caused by a different factor?

@antoinevg
Copy link
Member

Your code looks good, I'm trying to reproduce this on my side but I don't have access to a Khadas VIM3 board.

Have you come across any other device(s) that are failing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants