OpenICE Community Support Forum

Welcome to the OpenICE community support forum. Use this forum for submitting bugs, asking for help, and solving problems you are having with OpenICE software. For ideas, general questions, and conversation please use the discussion forum.
0
Answered
Rado 3 years ago in OpenICE • updated by Jeff Plourde 3 years ago 8
Hi all,

We are having trouble getting OpenICE to work on Ubuntu 14.04. We haven't had this problem on our Windows/MAC machines, where we have been able to communicate with multiple devices already.

In particular, I am testing with Nellcore N595, which is just sending data on the serial port. I am able to see the data come in if I just print the stream using minicom (a small tool for printing data coming in on a serial port). But if I try to use OpenICE, I get a PortInUseException on line 198 of the PureJavaCommSerialProvider file. Do you guys know why that might be happening? Do I have to include some other jar files that I am missing?

BTW, I am pretty sure the port is not used by anything else. I have tested with both my usb ports, and I get the same error.

Thanks,
Rado
OpenICE device-adapter
0
Answered
Vasanth Jaisingh 3 years ago in OpenICE • updated 3 years ago 4
I get the following error while running gradlew command.

Please help..

Where:
uild file 'D:\OpenICE\mdpnp-code\data-types\x73-idl-rti-dds\build.gradle' line:
72

What went wrong:
problem occurred evaluating project ':data-types:x73-idl-rti-dds'.
Could not resolve all dependencies for configuration ':data-types:x73-idl-rti-
ds:rtiddsgen'.
> Could not resolve com.rti.dds:rtiddsgen-resource:5.1.
Required by:
org.mdpnp:x73-idl-rti-dds:0.4.3
> Could not GET 'https://build.openice.info/artifactory/libs-snapshot/com/
ti/dds/rtiddsgen-resource/5.1/rtiddsgen-resource-5.1.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/libs-release/com/r
i/dds/rtiddsgen-resource/5.1/rtiddsgen-resource-5.1.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/remote-repos/com/r
i/dds/rtiddsgen-resource/5.1/rtiddsgen-resource-5.1.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'http://www.sparetimelabs.com/maven2/com/rti/dds/rtiddsgen
resource/5.1/rtiddsgen-resource-5.1.pom'.
> Connection to http://www.sparetimelabs.com refused
> Could not GET 'http://maven2.javacv.googlecode.com/git/com/rti/dds/rtidd
gen-resource/5.1/rtiddsgen-resource-5.1.pom'.
> Network is unreachable: connect
> Could not GET 'http://www.jogamp.org/deployment/maven/com/rti/dds/rtidds
en-resource/5.1/rtiddsgen-resource-5.1.pom'.
> Network is unreachable: connect
> Could not GET 'http://maven.restlet.org/com/rti/dds/rtiddsgen-resource/5
1/rtiddsgen-resource-5.1.pom'.
> Connection to http://maven.restlet.org refused
> Could not GET 'http://download.java.net/maven/2/com/rti/dds/rtiddsgen-re
ource/5.1/rtiddsgen-resource-5.1.pom'.
> Connection to http://download.java.net refused
> Could not GET 'http://repo1.maven.org/maven2/com/rti/dds/rtiddsgen-resou
ce/5.1/rtiddsgen-resource-5.1.pom'.
> Connection to http://repo1.maven.org refused
> Could not resolve com.rti.dds:rtiddsgen:5.1.
Required by:
org.mdpnp:x73-idl-rti-dds:0.4.3
> Could not GET 'https://build.openice.info/artifactory/libs-snapshot/com/
ti/dds/rtiddsgen/5.1/rtiddsgen-5.1.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/libs-release/com/r
i/dds/rtiddsgen/5.1/rtiddsgen-5.1.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/remote-repos/com/r
i/dds/rtiddsgen/5.1/rtiddsgen-5.1.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'http://www.sparetimelabs.com/maven2/com/rti/dds/rtiddsgen
5.1/rtiddsgen-5.1.pom'.
> Connection to http://www.sparetimelabs.com refused
> Could not GET 'http://maven2.javacv.googlecode.com/git/com/rti/dds/rtidd
gen/5.1/rtiddsgen-5.1.pom'.
> Network is unreachable: connect
> Could not GET 'http://www.jogamp.org/deployment/maven/com/rti/dds/rtidds
en/5.1/rtiddsgen-5.1.pom'.
> Network is unreachable: connect
> Could not GET 'http://maven.restlet.org/com/rti/dds/rtiddsgen/5.1/rtidds
en-5.1.pom'.
> Connection to http://maven.restlet.org refused
> Could not GET 'http://download.java.net/maven/2/com/rti/dds/rtiddsgen/5.
/rtiddsgen-5.1.pom'.
> Connection to http://download.java.net refused
> Could not GET 'http://repo1.maven.org/maven2/com/rti/dds/rtiddsgen/5.1/r
iddsgen-5.1.pom'.
> Connection to http://repo1.maven.org refused
> Could not resolve org.anarres:cpp-bin:1.2.8-SNAPSHOT.
Required by:
org.mdpnp:x73-idl-rti-dds:0.4.3
> Unable to load Maven meta-data from https://build.openice.info/artifacto
y/libs-snapshot/org/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
> Could not GET 'https://build.openice.info/artifactory/libs-snapshot/o
g/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml'.
> Connection to https://build.openice.info refused
> Unable to load Maven meta-data from https://build.openice.info/artifacto
y/libs-release/org/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
> Could not GET 'https://build.openice.info/artifactory/libs-release/or
/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml'.
> Connection to https://build.openice.info refused
> Unable to load Maven meta-data from https://build.openice.info/artifacto
y/remote-repos/org/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
> Could not GET 'https://build.openice.info/artifactory/remote-repos/or
/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml'.
> Connection to https://build.openice.info refused
> Unable to load Maven meta-data from http://www.sparetimelabs.com/maven2/
rg/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
> Could not GET 'http://www.sparetimelabs.com/maven2/org/anarres/cpp-bi
/1.2.8-SNAPSHOT/maven-metadata.xml'.
> Connection to http://www.sparetimelabs.com refused
> Unable to load Maven meta-data from http://maven2.javacv.googlecode.com/
it/org/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
> Could not GET 'http://maven2.javacv.googlecode.com/git/org/anarres/cp
-bin/1.2.8-SNAPSHOT/maven-metadata.xml'.
> Network is unreachable: connect
> Unable to load Maven meta-data from http://www.jogamp.org/deployment/mav
n/org/anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
> Could not GET 'http://www.jogamp.org/deployment/maven/org/anarres/cpp
bin/1.2.8-SNAPSHOT/maven-metadata.xml'.
> Network is unreachable: connect
> Unable to load Maven meta-data from http://maven.restlet.org/org/anarres
cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
> Could not GET 'http://maven.restlet.org/org/anarres/cpp-bin/1.2.8-SNA
SHOT/maven-metadata.xml'.
> Connection to http://maven.restlet.org refused
> Unable to load Maven meta-data from http://download.java.net/maven/2/org
anarres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
> Could not GET 'http://download.java.net/maven/2/org/anarres/cpp-bin/1
2.8-SNAPSHOT/maven-metadata.xml'.
> Connection to http://download.java.net refused
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/an
rres/cpp-bin/1.2.8-SNAPSHOT/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/anarres/cpp-bin/1.2.
-SNAPSHOT/maven-metadata.xml'.
> Connection to http://repo1.maven.org refused
> Could not resolve xalan:xalan:2.7.1.
Required by:
org.mdpnp:x73-idl-rti-dds:0.4.3
> Could not GET 'https://build.openice.info/artifactory/libs-snapshot/xala
/xalan/2.7.1/xalan-2.7.1.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/libs-release/xalan
xalan/2.7.1/xalan-2.7.1.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/remote-repos/xalan
xalan/2.7.1/xalan-2.7.1.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'http://www.sparetimelabs.com/maven2/xalan/xalan/2.7.1/xal
n-2.7.1.pom'.
> Connection to http://www.sparetimelabs.com refused
> Could not GET 'http://maven2.javacv.googlecode.com/git/xalan/xalan/2.7.1
xalan-2.7.1.pom'.
> Network is unreachable: connect
> Could not GET 'http://www.jogamp.org/deployment/maven/xalan/xalan/2.7.1/
alan-2.7.1.pom'.
> Network is unreachable: connect
> Could not GET 'http://maven.restlet.org/xalan/xalan/2.7.1/xalan-2.7.1.po
'.
> Connection to http://maven.restlet.org refused
> Could not GET 'http://download.java.net/maven/2/xalan/xalan/2.7.1/xalan-
.7.1.pom'.
> Connection to http://download.java.net refused
> Could not GET 'http://repo1.maven.org/maven2/xalan/xalan/2.7.1/xalan-2.7
1.pom'.
> Connection to http://repo1.maven.org refused
> Could not resolve org.antlr:antlr:3.5.
Required by:
org.mdpnp:x73-idl-rti-dds:0.4.3
> Could not GET 'https://build.openice.info/artifactory/libs-snapshot/org/
ntlr/antlr/3.5/antlr-3.5.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/libs-release/org/a
tlr/antlr/3.5/antlr-3.5.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/remote-repos/org/a
tlr/antlr/3.5/antlr-3.5.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'http://www.sparetimelabs.com/maven2/org/antlr/antlr/3.5/a
tlr-3.5.pom'.
> Connection to http://www.sparetimelabs.com refused
> Could not GET 'http://maven2.javacv.googlecode.com/git/org/antlr/antlr/3
5/antlr-3.5.pom'.
> Network is unreachable: connect
> Could not GET 'http://www.jogamp.org/deployment/maven/org/antlr/antlr/3.
/antlr-3.5.pom'.
> Network is unreachable: connect
> Could not GET 'http://maven.restlet.org/org/antlr/antlr/3.5/antlr-3.5.po
'.
> Connection to http://maven.restlet.org refused
> Could not GET 'http://download.java.net/maven/2/org/antlr/antlr/3.5/antl
-3.5.pom'.
> Connection to http://download.java.net refused
> Could not GET 'http://repo1.maven.org/maven2/org/antlr/antlr/3.5/antlr-3
5.pom'.
> Connection to http://repo1.maven.org refused
> Could not resolve org.aspectj:aspectjrt:1.7.2.
Required by:
org.mdpnp:x73-idl-rti-dds:0.4.3
> Could not GET 'https://build.openice.info/artifactory/libs-snapshot/org/
spectj/aspectjrt/1.7.2/aspectjrt-1.7.2.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/libs-release/org/a
pectj/aspectjrt/1.7.2/aspectjrt-1.7.2.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'https://build.openice.info/artifactory/remote-repos/org/a
pectj/aspectjrt/1.7.2/aspectjrt-1.7.2.pom'.
> Connection to https://build.openice.info refused
> Could not GET 'http://www.sparetimelabs.com/maven2/org/aspectj/aspectjrt
1.7.2/aspectjrt-1.7.2.pom'.
> Connection to http://www.sparetimelabs.com refused
> Could not GET 'http://maven2.javacv.googlecode.com/git/org/aspectj/aspec
jrt/1.7.2/aspectjrt-1.7.2.pom'.
> Network is unreachable: connect
> Could not GET 'http://www.jogamp.org/deployment/maven/org/aspectj/aspect
rt/1.7.2/aspectjrt-1.7.2.pom'.
> Network is unreachable: connect
> Could not GET 'http://maven.restlet.org/org/aspectj/aspectjrt/1.7.2/aspe
tjrt-1.7.2.pom'.
> Connection to http://maven.restlet.org refused
> Could not GET 'http://download.java.net/maven/2/org/aspectj/aspectjrt/1.
.2/aspectjrt-1.7.2.pom'.
> Connection to http://download.java.net refused
> Could not GET 'http://repo1.maven.org/maven2/org/aspectj/aspectjrt/1.7.2
aspectjrt-1.7.2.pom'.
> Connection to http://repo1.maven.org refused

Try:
un with --stacktrace option to get the stack trace. Run with --info or --debug
ption to get more log output.

UILD FAILED

otal time: 21 mins 33.581 secs

Answer
Jeff Plourde 3 years ago
Hi Vasanth,

You can create a gradle.properties in your home directory that specifies your HTTP proxy information.  More information is available at this link: https://gradle.org/docs/current/userguide/build_environment.html#sec:accessing_the_web_via_a_proxy

Please let us know if that information helps you to build successfully.

Cheers
Jeff Plourde
0
Under review
Alejandro Figar 3 years ago in DDS • updated by Jeff Plourde 3 years ago 1
I'm writing my own device adapter in C++. I've been able to receive demo_apps supervisor HeartBeat data. Also I'm able to publish my own HeartBeat topic data every two seconds, along with DeviceIdentity topic, with the image icon and all. I haven't published to TimeSync topic from my c++ app yet.
Could you point me in the right direction?
What are the steps I should follow to be able to see my c++ app as a connected device on your MDPnP demo_app? 

Thanks,
DDS OpenICE demo-apps
0
Fixed
openice 3 years ago in OpenICE • updated by Jeff Plourde 3 years ago 1
>
> Hi Jeff,
>
> I’m a contractor at NIST working on the ICE project. I have been tracking and using your OpenICE code releases here for some time. Your recent addition of reading /etc/issue for operating system information on Linux systems broke the code running here. Locally, /etc/issue is over 800 bytes long and contains a warning about accessing a federal government owned computer.
>
> After a little research, I found the file /etc/os-release has become a standard file in most all the major Linux distributions. The file was originally introduced for systemd, but it has since been picked up even by distributions that have not converted to using systemd. Ubuntu 12.04 LTS has the file, for instance. The file format is defined at http://www.freedesktop.org/software/systemd/man/os-release.html .
>
> I have attached a patch that reads this file instead of /etc/issue. I’m a C++ programmer and not a Java programmer so perhaps the code could be improved. But I have tested it here and it works. I hope you this useful.
>
> Dennis

Attachments:
0001-Use-etc-os-release-instead-of-etc-issue-for-OS-infor.patch
Answer
Jeff Plourde 3 years ago
Hi Dennis,
I’m sorry that the recent change broke the code for you and I greatly appreciate your reporting it and even including a patch. In our lab we’re still working on a really flexible deployment strategy for our ‘fleet’ of beaglebones. I added the /etc/issue as a quick way to see which had been upgraded to 14.04LTS. I should have done more research on the /etc/issue file in general before including it. I know a lot of folks at NIST who use CentOS, is that the distro you are using?

If I understand correctly what broke down was the lengthy string … probably throwing an exception in the CdrOutputStream? I’m really not thrilled about RTI’s API support for java programmers. On the plus side they have bound their underlying CDR (common data representation) libraries to java which is great. It means I can generate types natively in java (other implementations such as OpenDDS require types be generated in C++ first; then a JNI binding library is built specifically for those types … which is a multi-platform deployment nightmare). But on the other hand they do not support the standard java DDS API (I believe they plan to in the future) So as you can see the one adjustment I made to your patch was to jump some hurdles to avoid hardcoding the length (128). It would be nicer in java if they annotated max lengths in a way that facilitated validation. The commit in SourceForge git viewer:
http://sourceforge.net/p/mdpnp/code/ci/5757b04fabe6c870e748e7922a8573cc45a152b3/

If you wouldn’t mind I’d love to hear more about how you are using the code. Should I expedite a new release for you or are you building from source? If I know your particular areas of interest I can try to involve you in relevant discussions about how OpenICE should evolve. Also if you have issues or comments we’ve set up a website at http://community.openice.info that you can use in the future.

Thanks again,
Jeff
0
Under review
Alistair MacDonald 3 years ago in OpenICE • updated by Jeff Peterson 3 years ago 1
Dear MDPnP -

Is there any solution for adding a device adaptor to a Philips Intellivue MP70 if the RJ45 port is in use for EMR/Epic? Can the data out be sent to both the OpenICE adaptor and the EMR using some type of splitter?
0
Answered
Rado 3 years ago in OpenICE • updated by Jeff Plourde 3 years ago 6
Hello,

We are trying to use openICE for integration with several different medical devices at the University of Pennsylvania and the surrounding hospitals. We are able to use the demo app that is pre-built but we are having trouble building the code from source.

We have tested this on Windows, Mac and Ubuntu and get to the same stage. We are able to import the project using the eclipse plugin for gradle but there are some bits that don't compile. In particular, the main problem is that the ice environment that is defined in a few idl files is not correctly recognized by the java files (so the most common error is "ice cannot be resolved to a type"). As far as I understand, some java code has to be generated by these specifications but we cannot get eclipse to do it.

Is there some other pluging that we need to install? Or do you think there is some other problem?

Thanks,
Rado
OpenICE
0
Answered
Dave 3 years ago • updated by Jeff Peterson 3 years ago 2
I'd like to email in questions. Is this supported?