- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is the test code.
when I didn't load the IMG the result is like this:
but when I loaded the IMG ,the reslut is like this:
This IMG can work!
Could you tell me why the empty it can find the device,instead the loading right IMG can't find device?
Thank you !
The console code:
#include "stdafx.h"
#include <iostream>
using namespace std;
#include "CyAPI.h"
int _tmain(int argc, _TCHAR* argv[])
{
CCyUSBDevice* pUSB = new CCyUSBDevice;
int nDeviceCount = pUSB->DeviceCount();
cout<<nDeviceCount<<endl;
for (int nIdx = 0; nIdx < pUSB->DeviceCount(); nIdx++)
{
pUSB->Open(nIdx);
printf("%s\n", pUSB->DeviceName);
printf("%d\n", pUSB->VendorID);
printf("%d\n", pUSB->ProductID);
}
getchar();
return 0;
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The IMG file that you have loaded complies to the UVC class and the device gets bound to the UVC driver. CyAPI library can only identify devices that are bound to the CYUSB3 driver.
Best regards,
Srinath S