JavalibUsb库-getDevice函数

JavalibUsb库-getDevice函数,usb,java,Usb,Java,我想使用Javalibusb库通过USB连接将PIC18f4550连接到电脑 我对以下代码行有问题: // get a device instance with vendor id and product id Device dev = USB.getDevice((short) 0x8235, (short) 0x0222); 从哪里可以知道我必须使用的要插入函数的供应商ID和产品ID。dev.open(1,0,-1);什么是合适的值?

我想使用Javalibusb库通过USB连接将PIC18f4550连接到电脑 我对以下代码行有问题:

  // get a device instance with vendor id and product id
 Device dev = USB.getDevice((short) 0x8235, (short) 0x0222);
从哪里可以知道我必须使用的要插入函数的供应商ID和产品ID。

dev.open(1,0,-1);什么是合适的值?