Fez Cobra II SDK 4.3 Usb Host Doesn't Work!

Hi,
I want make a usb driver for Xbox controller with SDK 4.3, but when “Controller.DeviceConnected” it’s call, “e.Device” it’s incomplet :

e.Device.PortNumber return System.NullReferenceException and I can’t make “Configuration” with “GetConfigurationDescriptor(0x00)”

Debug :
#### Exception System.ArgumentException - 0x00000000 (4) ####
#### Message: buffer
#### GHI.Usb.Descriptors.Configuration::.ctor [IP: 0014] ####
#### GHI.Usb.Descriptors.Configuration::.ctor [IP: 0006] ####
#### GHI.Usb.Host.RawDevice::GetConfigurationDescriptor [IP: 0026] ####
#### GadgeteerApp2.Program::Controller_DeviceConnected [IP: 0069] ####
#### GHI.Usb.Host.Controller::OnConnect [IP: 0050] ####
#### GHI.Utilities.InternalEvent::RaiseEvent [IP: 000d] ####
#### GHI.Utilities.InternalEvent::OnEvent [IP: 003e] ####
Une exception de première chance de type ‘System.ArgumentException’ s’est produite dans GHI.Hardware.dll
Une exception non gérée du type ‘System.ArgumentException’ s’est produite dans GHI.Hardware.dll
Informations supplémentaires : buffer

Someone operated the usb host with success?
What’s the procedure to follow ?

PS: Sorry for my little English

1 Like

There is a bug in the code that gets the descriptors and there is no workaround regretfully. It’ll be fixed in the next SDK.