Open WeiChengLiao opened 2 years ago
hi, how did you generate the virtual HID device? I also followed the steps from the guide, but it failed to generate. Any hints?
hi, how did you generate the virtual HID device? I also followed the steps from the guide, but it failed to generate. Any hints?
Hi, I just follow the steps in document.
To make the tool work with a virtual device, you need to make a change to the tool.
You need to update the code that checks for PID/VID to add the "VHF" component of the string. If you want to make this change and submit a PR you are welcome to. We will eventually update this tool to do this.
This is the code that would need to be updated... The issue is that it does not account for the "VHF" part of the HWID string.
// Filter on both if both set
if (ProtocolSettings.Vid && ProtocolSettings.Pid)
{
swprintf(vidPidFilterString, 256, L"VID_%04X&PID_%04X",
ProtocolSettings.Vid, ProtocolSettings.Pid);
if (!wcsstr(DevicePath, vidPidFilterString))
{
// The device found doesn't match the vid and pid
//wprintf(L"The device found does not match the VID/PID\n");
hr = HRESULT_FROM_WIN32(ERROR_NOT_FOUND);
goto Exit;
}
}
// Filter on vid only (vid is mandatory)
else
{
swprintf(vidPidFilterString, 256, L"VID_%04X", ProtocolSettings.Vid);
if (!wcsstr(DevicePath, vidPidFilterString))
{
// The device found doesn't match the vid
hr = HRESULT_FROM_WIN32(ERROR_NOT_FOUND);
goto Exit;
}
}
I am facing same issue. Is this fixed by any chance?
Hi All,
I follow the steps from CFU virtual HID device firmware update simulation and create a virtual device in device manager.![image](https://user-images.githubusercontent.com/16681346/183620450-645993aa-e3ec-46f6-810d-bb267ca9d497.png)
Than, I build the solutions "VirtualDeviceFirmwareUpdate.sln & CfuExample.sln" to generate .inf, .cat, .dll, two offers, two payloads and FwUpdateCfu.exe.![image](https://user-images.githubusercontent.com/16681346/183621263-1799f261-2e8c-4898-883f-ee000cf581af.png)
\CFU\Host\MonolithicPackageExample\VirtualDeviceFwUpdate\Debug\x64\VirtualDeviceFirmwareUpdatePackage\VirtualDeviceFirmwareUpdatePackage
When I try to execute tool, there is an error message:
FwUpdateCfu.exe version protocolCfgExample.cfg
Here is content of my config:
Is there any advice ?
Thanks