HID Control Msg & LibusbJava

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
conail
Posts: 3
Joined: Fri Nov 16, 2007 1:36 am

HID Control Msg & LibusbJava

Post by conail » Wed Nov 21, 2007 1:26 pm

Hi,

I've modified the Easylogger project's descriptor to a gamepad with 4 buttons. I'm intending to continue using control transfers to communicate with the device from a java application.

I'm having trouble getting the controlMsg() method of libusbJava to work. I'm not clear what I should specify as parameters (method signature below) - particularly request, value and index.

public int controlMsg(int requestType,
int request,
int value,
int index,
byte[] data,
int size,
int timeout,
boolean reopenOnTimeout)

Thanks,
Conail

Post Reply