然后去下载DLL,地址http://download.csdn.net/detail/yuanchunze/7009269
先建一个QT程序,添加已经下载的HidApi.h的头文件的引用
同时在需要调用该API的地方添加
#pragma comment(lib, "hidapi.lib")
首先我们要打开这个设备
handle = hid_open(0x2033, 0x3331, L"485323323232434232");
然后我们读取当前设备的状态
res = hid_read(handle, outbuf, sizeof(outbuf));
outbuf[0]=0x39; outbuf[1]=0x0C;
而写命令则是hid_write方法。
原文:http://blog.csdn.net/yuanchunze/article/details/20776171