Skip to content

Couldn't initialize device #245

Description

@Mrf2233

Describe the issue
There was a problem when I connected an Android device. It cannot be initialized. Because the capacity of the device is more than 100g?

Your Code

   var DeviceManager = new FilterDeviceDefinition().CreateWindowsUsbDeviceFactory(Loggers._loggerFactory, classGuid: WindowsDeviceConstants.WinUSBGuid);
            var devices = await DeviceManager.GetConnectedDeviceDefinitionsAsync();
            if (devices.Any())
            {
                _connectedDevice = devices.FirstOrDefault();
               
                _device = await DeviceManager.GetDeviceAsync(_connectedDevice);
             
                await    _device.InitializeAsync();
           }

Log / Stack Trace
[10:24:50 INF] Getting device for connected device Device Id: \?\usb#vid_2d95&pid_6013&mi_02#7&34ced257&1&0002#{dee824ef-729b-4a0e-9c14-b7117d33a817} Label: Vid: 11669 Pid: 24595
Read Buffer Size: Write Buffer Size:
Manufacturer: Product Name:
[10:24:50 ERR] Couldn't initialize device.
Device.Net.Exceptions.ApiException: Device handle no good. Error code: 5
at Usb.Net.Windows.WindowsUsbInterfaceManager.Initialize() in /_/src/Usb.Net/Windows/WindowsUsbInterfaceManager.cs:line 71
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)

Info

  • Platform: [Windows10]
  • Device Type: [USB]
  • Version: [4.2.1]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions