I'm trying to communicate with th DLP-IO20 board on linux (ubuntu) but I get an error every time. The same program under windows works well.
In order to communicate with the board, I first installed all the FTDI drivers, then I generated a library for linux libjd2xx.so
Now when I try to run the Main program of the JD2XX.java file I get the following error:
index: 0, flags: 0x0, type: 0x5, id: 0x4036001, location: 0x204, serial: 12345678, description: DLP-IO20, handle: 0x0 Exception in thread "main" java.io.IOException: invalid handle (1)
As you can see the board information are read by the program but when it tries to send a command to the board the above exception is thrown. The row that thrown an exception is the last one on the following code:
DeviceInfo di = jd.getDeviceInfoDetail(0);
System.out.println(di.toString());
jd.open(0);
String msg = "Hello dude. This is the message.";
int ret = jd.write(msg.getBytes());
Any suggestion?