Menu

#12 no listDevices****() method work if...

open
nobody
None
5
2010-06-25
2010-06-25
Anonymous
No

The scenario is:

I have two similar FTDI chips connected to the same laptop. I open a connection through a terminal Client to one of them and by the other hand I launch my program which make a listDevices() call, when that happen, listDevices throws:

25-jun-2010 17:30:26 com.ftdichip.ftd2xx.Device open
INFO: Open device 0.
java.lang.IllegalArgumentException: The device handle is invalid.
at com.ftdichip.ftd2xx.FTStatus.throwNewException(FTStatus.java:187)
at com.ftdichip.ftd2xx.FTStatus.throwException(FTStatus.java:162)
at com.ftdichip.ftd2xx.Device.open(Native Method)
at com.ftdichip.ftd2xx.Device.open(Device.java:160)
at com.ftdichip.ftd2xx.Device.<init>(Device.java:90)
at com.ftdichip.ftd2xx.Service.listDevices(Native Method)
at microbiro.SerialComm.<init>(SerialComm.java:57)
at microbiro.rcmicro.<init>(rcmicro.java:55)
at microbiro.GUI.MyInit(GUI.java:189)
at microbiro.GUI.open(GUI.java:976)
at microbiro.GUI$5.run(GUI.java:959)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at microbiro.GUI.main(GUI.java:955)

I assume that it shouldn't happen since im not trying to open it, just to list available FTDIs. I dont want to close the Com of the other FTDI if I want to open a connection through ftd2xxj to the other... Any idea?

Discussion


Log in to post a comment.

MongoDB Logo MongoDB