基于windows平台java for usb开发

时间:2013-05-11 10:50:55
【文件属性】:
文件名称:基于windows平台java for usb开发
文件大小:286KB
文件格式:RAR
更新时间:2013-05-11 10:50:55
java usb 源代码 jsr80 jusb 1,执行InstallationFiles\JusbDriver下的jusb.reg,将必要信息导入注册表 2,将InstallationFiles\JusbDll下的两个文件复制到system32文件夹下面 JavaSources里面是源代码 直接执行RunUSBControllerTest.java即可 以下是我的执行结果 >>> RunUSBControllerTest: Observation Time = 1s <<< No Configuration Descriptor Builded for that device >>> USB Device Stack at the End: <<< Bus[ 5 ] [ 0 ] : [ROOT] numOfPort:2 Address:0 [ 1 ] : [NULL] [ 2 ] : [NULL] [ 3 ] : [NULL] [ 4 ] : [NULL] Bus[ 2 ] [ 0 ] : [ROOT] numOfPort:2 Address:0 [ 1 ] : [NULL] [ 2 ] : [NULL] [ 3 ] : [NULL] [ 4 ] : [NULL] Bus[ 1 ] [ 0 ] : [ROOT] numOfPort:10 Address:0 [ 1 ] : [USB DEVICE] on Port 1 Address : 1 uniqueID : USB/Adr_1&Port_1&Vid_04e8&Pid_6708&Rev_0101&Ver_0200&DevClass_00&DevSubClass_00&NumC_01 driverKeyName : {36FC9E60-C465-11CF-8056-444553540000}\0015 friendlyDeviceName: USB Mass Storage Device Object Type : Device, DeviceImpl, NonJUSB Device Descriptor: bcdUSB : 2.0 Device Class : 0 ( device ) Device Subclass : 0 Device Protocol : 0 Max Packet Size : 64 idVendor : 1256 0x4e8 idProduct : 26376 0x6708 bcdDevice release number : 1.01 iManufacturer : 1 iProduct : 2 iSerialNumber : 3 NumConfiguration : 1 [ 2 ] : [NULL] [ 3 ] : [NULL] [ 4 ] : [NULL] Bus[ 4 ] [ 0 ] : [ROOT] numOfPort:2 Address:0 [ 1 ] : [USB DEVICE] on Port 1 Address : 1 uniqueID : USB/Adr_1&Port_1&Vid_08ff&Pid_2580&Rev_0623&Ver_0110&DevClass_ff&DevSubClass_ff&NumC_01 driverKeyName : {53D29EF7-377C-4D14-864B-EB3A85769359}\0000 friendlyDeviceName: AuthenTec Inc. AES2501A Object Type : Device, DeviceImpl, NonJUSB Device Descriptor: bcdUSB : 1.1 Device Class : 255 ( vendor-specific ) Device Subclass : 255 Device Protocol : 255 Max Packet Size : 8 idVendor : 2303 0x8ff idProduct : 9600 0x2580 bcdDevice release number : 6.23 iManufacturer : 0 iProduct : 1 iSerialNumber : 0 NumConfiguration : 1 [ 2 ] : [NULL] [ 3 ] : [NULL] [ 4 ] : [NULL] Bus[ 6 ] [ 0 ] : [ROOT] numOfPort:2 Address:0 [ 1 ] : [NULL] [ 2 ] : [NULL] [ 3 ] : [NULL] [ 4 ] : [NULL] Bus[ 3 ] [ 0 ] : [ROOT] numOfPort:2 Address:0 [ 1 ] : [USB DEVICE] on Port 1 Address : 1 uniqueID : USB/Adr_1&Port_1&Vid_046d&Pid_c062&Rev_3100&Ver_0200&DevClass_00&DevSubClass_00&NumC_01 driverKeyName : {745A17A0-74D3-11D0-B6FE-00A0C90F57DA}\0015 friendlyDeviceName: Logitech USB LS1 Laser Mouse Object Type : Device, DeviceImpl, NonJUSB Device Descriptor: bcdUSB : 2.0 Device Class : 0 ( device ) Device Subclass : 0 Device Protocol : 0 Max Packet Size : 8 idVendor : 1133 0x46d idProduct : 49250 0xc062 bcdDevice release number : 31.0 iManufacturer : 1 iProduct : 2 iSerialNumber : 0 NumConfiguration : 1 [ 2 ] : [NULL] [ 3 ] : [NULL] [ 4 ] : [NULL]
【文件预览】:
java for usb
----InstallationFiles()
--------JusbDriver()
--------JusbDll()
----ReadMe.txt(4KB)
----JavaSources()
--------usb()
--------RunUSBControllerTest.java(18KB)

网友评论

  • 没有测试成功,不知道是少了哪一步
  • 不懂不懂不懂
  • 还不错的资源,很好。
  • 这方面资料比较少,感谢分享
  • 感谢分享,试试。把源码导入java项目下jdK1.6环境下,有两个类DevicImpl.java和HostProxy.java有方法未实现。
  • java怎么能直接运行呢?我编译成.class文件执行错误,楼主要不要解释下
  • 楼主不说下要放入哪些个jar包么,太坑了 10分
  • 有源码包,不过我也没调试出来,不知道是不是机器的原因 ,哎!
  • 不能用。还是没能发送接收成功。只能看USB枚举
  • 64位的环境下不行啊
  • 测试成功,但看不懂
  • java涉及usb硬件的相关内容很宝贵啊,感谢分享,参考参考
  • 非常感谢分享,不过对我的问题不能用
  • 64位的不能用
  • 非常感谢分享 按照楼主的方法,我读取USB成功了哈
  • 囧了,当时没看下面的评论,下下来之后运行了一下,才发现是usb的测试程序。。。
  • 就读成功了,关键是我想通过usb通讯,你这只是一个测试usb的程序!
  • 哥第一次读USB,参照你的这个成功了。
  • 很不错的资源,按照楼主的方法,我读取USB成功了哈。谢谢了
  • java usb 的一些配置文件 没试过 不知道能不能用 后来我用了libusb了