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

this sequence goes on endlessly after the device is connected #52

Open
ferakond opened this issue Jun 13, 2024 · 2 comments
Open

this sequence goes on endlessly after the device is connected #52

ferakond opened this issue Jun 13, 2024 · 2 comments

Comments

@ferakond
Copy link

New device detected on USB#0
desc.bcdUSB = 0x0100
desc.bDeviceClass = 0x00
desc.bDeviceSubClass = 0x00
desc.bDeviceProtocol = 0x00
desc.bMaxPacketSize0 = 0x08
desc.idVendor = 0x081f
desc.idProduct = 0xe401
desc.bcdDevice = 0x0106
desc.iManufacturer = 0x00
desc.iProduct = 0x02
desc.iSerialNumber = 0x00
desc.bNumConfigurations = 0x01
Config Descriptor #1
cfg.wLength = 0x22
cfg.bNumIntf = 0x01
cfg.bCV = 0x01
cfg.bMaxPower = 250
Interface Descriptor #1
sIntf.bLength = 0x09
sIntf.bType = 0x04
sIntf.iNum = 0x00
sIntf.iAltString = 0x00
sIntf.bEndPoints = 0x01
sIntf.iClass = 0x03
sIntf.iSub = 0x00
sIntf.iProto = 0x00
sIntf.iIndex = 0x00
HID Device Descriptor #1
hid.bLength = 0x09
hid.bDescriptorType = 0x21
hid.bcdHID = 0x110
hid.bCountryCode = 0x21
hid.bNumDescriptors = 0x01
hid.bReportDescriptorType = 0x22
hid.wItemLengthL = 0x62
hid.wItemLengthH = 0x00
EndPoint Descriptor #1
epd.bLength = 0x07
epd.bType = 0x05
epd.bEPAdd = 0x81
epd.bAttr = 0x03
epd.wPayLoad = 0x08
epd.bInterval = 0x0a
in: 0x7f 0x7f 0x00 0x80 0x80 0x0f 0x00 0x00
in: 0x7f 0x7f 0x00 0x80 0x80 0x0f 0x00 0x00
in: 0x7f 0x7f 0x00 0x80 0x80 0x0f 0x00 0x00
in: 0x7f 0x7f 0x00 0x80 0x80 0x0f 0x00 0x00
in: 0x7f 0x7f 0x00 0x80 0x80 0x0f 0x00 0x00
in: 0x7f 0x7f 0x00 0x80 0x80 0x0f 0x00 0x00

@tobozo
Copy link
Owner

tobozo commented Jun 14, 2024

from the vendor database:

idVendor 0x081f
idProduct 0xe401
Generic Controllers / SNES USB Controller
MaxPower 500mA

from the init:

cfg.bMaxPower = 250

could it mean the ESP cannot provide 500mA and the snes gamepad negociates a lower voltage it can't sustain?

@ferakond
Copy link
Author

I'll try another power source. If I understood you correctly, of course. When powered by usb 3.0, it was the same

Repository owner deleted a comment from ferakond Jun 17, 2024
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