双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

USB HID设备数据读取

u010423818 u010423818 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
罗技科技的G29游戏方向盘的数据接口为USB类型的,是否可以通过VC++将操作员操作G29游戏用方向盘的方向盘转角,加速踏板、制动踏板、离合器踏板行程或负荷率等信息,档位信息采集出来。如果可以,请问采集信息操作步骤大致是怎样的。
本人没用过G29游戏用方向盘,求科普。
...全文

相关推荐

qt 通过hid获取指定usb设备 并读取数据

文件夹中包含hidapi.h hidapi.dll hidapi.lib,我是在windows10系统中用VS2013编译的release版本,我用于qt的调用,是可以实现的。 调用过程: int res; res = hid_init(); wchar_t wstr[MAX_STR]; int i; // Open the device using the VID, PID, // and optionally the Serial number. handle = hid_open(0x0483, 0x5750, NULL); if(handle == NULL) { qDebug() << "NULL-----------------------NULL" ; return; } else { qDebug() << " not ------------NULL-----------------------NULL" ; } // Read the Manufacturer String res = hid_get_manufacturer_string(handle, wstr, MAX_STR); wprintf(L"Manufacturer String: %s\n", wstr); // Read the Product String res = hid_get_product_string(handle, wstr, MAX_STR); wprintf(L"Product String: %s\n", wstr); // Read the Serial Number String res = hid_get_serial_number_string(handle, wstr, MAX_STR); wprintf(L"Serial Number String: (%d) %s\n", wstr[0], wstr); // Read Indexed String 1 res = hid_get_indexed_string(handle, 1, wstr, MAX_STR); wprintf(L"Indexed String 1: %s\n", wstr); qDebug("hid read start"); int res = hid_set_nonblocking(handle, 0); while (1) { res = hid_read(handle,buf,sizeof(buf)); QString asd ; for(int i = 0;i < sizeof(buf);i++) { char str[20]; sprintf(str , "%02x",buf[i]); asd+=str ; } if(!cardInfo.contains(asd.toUpper())) { cardInfo.append(asd.toUpper() ); for(int i = 0;i < cardInfo.size() ;i++) { dealWithData( cardInfo[i]); } } }

紫色_麦迪

usb hid 数据读取

usb hid 数据读取 完整的demo

hugo1210

usb hid调试工具

一个USB-HID设备进行数据读取以及写入的通讯示例,操作简单方便。

jxw-soft

HID USB数据读取(同步读取)类库

读取HID设备来的,一经做成类库了,因为是同步读取,所以需要实现接口,否则无法获取数据,不能跳出等待的,具体代码和用法看程序吧; 最近我CSDN没积分下载了,大家多多支持。。

viki117

USB HID协议数据读取

本文件包含.h 和.cpp 可实现USBHID协议设备的读取

mas17kaworu
评论
收藏 已收藏
分享
返回顶部