trasferimenti dati arduino-pc (programma in java)

Sto provando a trasferire dati da arduino al pc e non riesco a rilevarli con un programmino scritto in java.

Sul sito seguente IBM Developer
(sezione "The jUSB API"), ho svolto 4 dei 5 punti della procedura per accedere a un dispositivo usb tramite jUSB driver...

La parte che mi dà qualche problema in termini di lettura dei dati da arduino è la seguente: (ho evidenziato anche le righe con frecce)

if (device != null)
{
// Obtain the current Configuration of the device and the number of
// Interfaces available under the current Configuration.
Configuration config = device.getConfiguration();
int total_interface = config.getNumInterfaces();

// Traverse through the Interfaces
for (int k=0; k<total_interface; k++)
{
// Access the currently Interface and obtain the number of
// endpoints available on the Interface.
Interface itf = config.getInterface(k, 0);
int total_ep = itf.getNumEndpoints();

// Traverse through all the endpoints.
for (int l=0; l<total_ep; l++)
{
// Access the endpoint, and obtain its I/O type.
Endpoint ep = itf.getEndpoint(l);
String io_type = ep.getType();
boolean input = ep.isInput();

// If the endpoint is an input endpoint, obtain its
// InputStream and read in data.
if (input)
{
InputStream in;
in = ep.getInputStream();
// Read in data here <------------
in.close();
}
// If the Endpoint is and output Endpoint, obtain its
// OutputStream and write out data.
else
{
OutputStream out;
out = ep.getOutputStream();
// Write out data here. <------------
out.close();
}
}
}
}

Avreste qualche consiglio?
Magari devo usare il serial monitor dell'IDE di arduino?

Grazie

P.S.: Sto modificando l'esercizio 3 del libro "Getting started with Arduino" in cui premendo un pulsante si cambia lo stato del led da spento a acceso e viceversa... vorrei rilevare da pc lo stato del led.
E' possibile effettuare una cosa simile?