0x6a77 / JD2XX

A JD2XX fork that supports OS X (x86_64) and Linux (x86, x86_64, arm7hf, arm7sf)
10 stars 10 forks source link

java.io.IOException: device not opened (3) #7

Open FrimJo opened 8 years ago

FrimJo commented 8 years ago

Hi

I have added the JD2XX.jar found in JD2XX/prebuilt.jnilibs/ and set its Native library location to a folder containing the libjd2xx.jnilib found in JD2XX/prebuilt.jnilibs/osx/.

After importing jd2xx.JD2XX to my class-file and ran the following code:

JD2XX jd = new JD2XX();

Object[] devs = jd.listDevicesBySerialNumber();
for (int i=0; i<devs.length; ++i)
  System.out.println(devs[i]);

jd.open(0);

I get java.io.IOException: device not opened (3), even though i get DA01E0C7 as output from sys out. So clearly my system finds the device but can't open it, any ideas?

I'm on Mac OS X El Capitan Version 10.11.3 using Eclipse Version Mars.2 Release (4.5.2). and the FDTI drivers provided in JD2XX/ftdi/

ravaz commented 7 years ago

I'm having the same problem on Ubuntu x64, did you find a solution meanwhile?

chadianscot commented 5 years ago

I'm about test this, but my best guess is that you need the d2xx driver from FTDI installed before you can use the JD2xx library. The linux kernel comes precompiled with the VCP driver installed, so you have to uninstall that before installing the D2XX driver. See the PDF from FTDI: http://www.ftdichip.com/Support/Documents/AppNotes/AN_220_FTDI_Drivers_Installation_Guide_for_Linux.pdf

DearChrisHsu commented 4 years ago

I had installed FTDI d2xx driver, but I still have same problem, no idea how to fix it.