Your comments

Hi Allistair,

Thanks for the reply. If you got to that point, then presumably you were at least able to start openICE? What version of ubuntu and java are you using?

Thanks,
Rado
Hi Jeff,

Thanks for the answer. We'll try this in a couple of days and will let you know how it goes. We do have the same machine with the three ports. We hadn't seen the waveform option, though. Perhaps we didn't look at port 3.

Rado
OK, I figured it out. It turned out it was a port permission issue. When I changed the permission of /ttyUSB0 to read/write for all, it worked. A more permanent solution is to add the user to the dialout group: sudo usermod -a -G dialout username

I wonder if this is a purejavacomm bug that they haven't fixed for Ubuntu 14 yet. Have you guys tested this on a laptop running ubuntu?
Here's the stack trace (didn't have a detailed message). Nothing interesting there:

purejavacomm.PortInUseException
at purejavacomm.PureJavaSerialPort.<init>(PureJavaSerialPort.java:1093)
at purejavacomm.CommPortIdentifier.open(CommPortIdentifier.java:159)
at org.mdpnp.data.serial.PureJavaCommSerialProvider.connect(PureJavaCommSerialProvider.java:198)
at org.mdpnp.devices.serial.AbstractSerialDevice$SerialDevice.run(AbstractSerialDevice.java:285)
at java.lang.Thread.run(Thread.java:745)
Hi Jeff,

Thanks for the quick response! I am running Ubuntu 14.04 on my x64 laptop. I ran OpenICE with the UI, and I selected /ttyUSB0 (I connected with a DB9-usb cable that I use on my Windows machine as well).

There is no message included, as the exception is caught in the code. I had to print the exception to see what it is but it only says PortInUseException. Perhaps I should also print the stack trace (didn't think of that before).

Let me know if you need any other information to debug this.

Thanks,
Rado 
Another note that may help is that this problem is not specific to the Nellcore, I am just testing with it because we have it in our lab and it has no communication protocol. But we have had the same problem on Ubuntu with other devices, too.
Hi Jeff,

My Eclipse is set up to use java 8 by default and, after generating those new java files, I got a lot of errors "duplicate methods named spliterator" (e.g., AlarmSettings class in the ice package, which implements two interfaces that I'm guessing have a method with the same name). When I switched back to Java 7, the problem disappeared.

As for the build process, I'm not a gradle expert, so I can't give great advice. Maybe the fix is as simple as including a "use plugin eclipse" somewhere, I don't know. But since the manual step was just to build that x73-idl project again, I'm guessing this can be included in some of the scripts.

Thanks again for all the help!

Rado
Hi Jeff,

Thanks for the reply, I was now able to build the project in Eclipse! I wonder if there is any way to automate this process and avoid this extra step.

BTW, openICE only compiles in Java 7. If you use Java 8, there are some inheritance problems in the newly generated classes, some of which implement two different interfaces.

Thanks,
Rado