我在用JUSB向U盘的ENDPOINT写如数据的时候,报如下错如:
java.io.IOException: NonJusb.writeBulk() >>> NO JUSB DRIVER SUPPORT! Install jusb driver for that device to use this method.我的U盘有两个ENDPOINT
写入代码如下:
............
for(int l=0;l<interfaces.getNumEndpoints();l++)
{
Endpoint endpoint = interfaces.getEndpoint(l);
System.out.println("Endpoint (" + l + ") Input:" + endpoint.isInput());
if(endpoint.isInput())
{
InputStream inputstream;
inputstream = endpoint.getInputStream();
inputstream.close();
}
else
{ byte[] CBW = new byte[32];
CBW[0] = (byte)0x80;
OutputStream outputstream;
outputstream = endpoint.getOutputStream();
outputstream.write(CBW);
outputstream.close();
}
}
........
好像国内用JUSB的不多,有那位兄弟用过的,能指点一下
java.io.IOException: NonJusb.writeBulk() >>> NO JUSB DRIVER SUPPORT! Install jusb driver for that device to use this method.我的U盘有两个ENDPOINT
写入代码如下:
............
for(int l=0;l<interfaces.getNumEndpoints();l++)
{
Endpoint endpoint = interfaces.getEndpoint(l);
System.out.println("Endpoint (" + l + ") Input:" + endpoint.isInput());
if(endpoint.isInput())
{
InputStream inputstream;
inputstream = endpoint.getInputStream();
inputstream.close();
}
else
{ byte[] CBW = new byte[32];
CBW[0] = (byte)0x80;
OutputStream outputstream;
outputstream = endpoint.getOutputStream();
outputstream.write(CBW);
outputstream.close();
}
}
........
好像国内用JUSB的不多,有那位兄弟用过的,能指点一下
解决方案 »
- 排序问题(进来看看吧)
- JTextArea怎么设置行与行之间的间距
- java 写类似资源管理器的问题
- css处理事件!!!
- 急啊!希望大虾,进来卡看啊~~在线等啊 ~!关于STATIC
- 高分求答案:即时通讯中遇到的线程及网络连接问题
- ~~拿了JAVA程序员的朋友进来逛逛!!!!~~~~
- swing的问题求助各位大神!!!
- jbuilder and sql2000 server
- 程序运行到一半报错,An unexpected error has been detected by Java Runtime Environment:
- 跪求. java编译是无法使用汉字.
- JMF播放器怎么播网络歌曲?
我的jusb驱动已经安装了。