且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

需要有关使用Windows API的C#中的USB通信的帮助

更新时间:1970-01-01 07:58:12

请尝试查看该代码,

通过HidD_GetHidGuid获取HID GUID.

调用SetupDiGetClassDevs和

使用SetupDiEnumDeviceInfo和SetupDiGetDeviceRegistryProperty查看结果.

调用SetupDiEnumDeviceInterfaces,确保使用GUID参数
Please try to look onto that,

 Get the HID GUID with HidD_GetHidGuid.

 Call SetupDiGetClassDevs and

 See the results with SetupDiEnumDeviceInfo and SetupDiGetDeviceRegistryProperty.

 Call SetupDiEnumDeviceInterfaces, making sure to use the GUID parameter


亲爱的所有人,

我想我找到了USB通信的解决方案.我将尽快将C#中的软件源代码,PIC C中的固件代码以及使用PIC18f4550实现的硬件电路上载到该论坛.非常感谢!!!
Dear All,

I think i found the solution for USB communication.I will upload the software source codes in C#,firmware codes in PIC C and hardware circuits implemented using PIC18f4550 to this forum as soon as possible.Thank you very much!!!