OPC-UA Device Service is implemented based on Device Service SDK.
OPC-UA devices to generate Events and Readings to Core Data Micro Service. Furthermore, users can send commands and get responses through Command and Control Micro Service.
- JDK
- Version : 1.8
- How to install
- Maven
- Version : 3.5.2
- Where to download
- How to install
- Setting up proxy for maven
- Certificates
- Access https://nexus.edgexfoundry.org/ using browser(ex. firefox, google Chrome)
- Extract certificate file (DST Root CA X3)
- add certificate file to jre using keytool
sudo keytool -importcert -noprompt -trustcacerts -alias ALIASNAME -file /PATH/TO/YOUR/DESKTOP/CertificateName.cer -keystore /PATH/TO/YOUR/JDK/jre/lib/security/cacerts -storepass changeit
$ ./build.sh
If source codes are successfully built, you can find an output binary file, target, on a root of project folder. Note that, you can find other build scripts, build_arm.sh and build_arm64, which can be used to build the codes for ARM and ARM64 machines, respectively.
- OPC-UA Device Service
- device-opcua-java.jar
- Protocol stack
- OPC-UA : opcua-adapter-0.0.1-SNAPSHOT-jar-with-dependencies.jar
- Messaging interface
- ezmq : edgex-ezmq-0.0.1-SNAPSHOT.jar
- Command data model
- datamodel-command-java-0.0.1-SNAPSHOT.jar
Next, you can create it to a Docker image.
$ docker build -t device-opcua-java -f Dockerfile .
If it succeeds, you can see the built image as follows:
$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
device-opcua-java latest bb7c3f3860ab 6 seconds ago 715MB
Note that, you can find other Dockerfiles, Dockerfile_arm and Dockerfile_arm64, which can be used to dockerize for ARM and ARM64 machines, respectively.
$ docker-compose -f ./docker-compose.yml up
- OPC-UA Device Service : 49997