Skip to content

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

Description

@patchvara

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions