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

CreateUsbDriver throwing exception The Corresponding device could not be found #10

Open
mawestwood opened this issue Nov 24, 2024 · 3 comments

Comments

@mawestwood
Copy link

mawestwood commented Nov 24, 2024

When calling UsbDriverFactory.CreateUsbDriver using vid 1027 and pid 25477 an exception being thrown.

UsbDriverBase usbDriver = UsbDriverFactory.CreateUsbDriver(1027,25477);

The exception message thrown is "The corresponding device could not be found"

"UsbManagerHelper.GetAllUsbDevices();" returns a device with specific vid and pid.

@LUJIAN2020
Copy link
Owner

Unsupported driver

@mawestwood
Copy link
Author

This a FTDI device, when connected to windows VID = 0403 PID = 6001. When device is connected to android, the GetAllUsbDevices shows a VID = 1027 and PID 25477. you show 0403 and 6001 in your example hence I believed it is supported.

@Wertyuud
Copy link

0x6001 = 24577 . I think you made a typo and swapped two digits, and thats why it is not working.

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

3 participants