日期:2014-05-20  浏览次数:20725 次

JUSB报错
我在用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的不多,有那位兄弟用过的,能指点一下

------解决方案--------------------
顶个~我也有类似的问题,望高手能解答。
我的jusb驱动已经安装了。
------解决方案--------------------
各位仁兄,出了JUSB还有哪些能对USB进行操作?支持windows的