usb host hid demo

时间:2017-10-02 11:07:23
【文件属性】:
文件名称:usb host hid demo
文件大小:1.47MB
文件格式:ZIP
更新时间:2017-10-02 11:07:23
usb host hid adk 主要研究usb host的数据传送问题,里面有对 相关usb传送关系进行解析,并对 关键函数 : //first field ox21 is bin 00100001 which splits into 0 01 00001 for direction(1bit)/type(2b)/recipient(5b) //To set direction as 'host to Device' we need 0, To set type to HID we need 11 (3), and for recipient we want 00001 //second field 0x09 is class specific request code, 0x09 is listed as 'reserved for future use' //third field 0x200 is value //int transfer = mConnectionRead.controlTransfer(0x21, 0x9, 0x200, 0, message, message.length, 0); //try with type set to HID int transfer = mConnectionRead.controlTransfer(0xC1, 0x9, 0x200, 0, message, message.length, 0); controlTransfer(USB_DIR_OUT, VENDOR_DEFINED_REQUEST, VENDOR_DEFINED_VALUE, USB_INTERFACE_INDEX, message, message.length, 1000);
【文件预览】:
xxxx
----bin()
--------classes.dex(686KB)
--------res()
--------jarlist.cache(120B)
--------dexedLibs()
--------classes()
--------resources.ap_(41KB)
--------xxxx.apk(293KB)
--------AndroidManifest.xml(1KB)
----res()
--------drawable-ldpi()
--------menu()
--------drawable-hdpi()
--------drawable-xhdpi()
--------drawable-xxhdpi()
--------values()
--------drawable-mdpi()
--------layout()
--------xml()
--------values-w820dp()
----proguard-project.txt(781B)
----Test(9KB)
----ic_launcher-web.png(50KB)
----assets()
----gen()
--------com()
----src()
--------com()
----.project(840B)
----说明(998B)
----.classpath(475B)
----project.properties(564B)
----AndroidManifest.xml(1KB)
----libs()
--------android-support-v4.jar(613KB)

网友评论

  • 有点用,谢谢。
  • controlTransfer能用很棒!
  • 还行可以用不过只是读取U盘数据不能读取文件
  • HID SDK Demo program
  • 能用,挺不错的
  • 做USB传输开发商遇到问题了,帮助挺大
  • 不是很详细,谢谢
  • 有帮助,谢谢