Skip to content

s5uishida/milo-example-server

Repository files navigation

milo-example-server

milo-example-server is Eclipse Milo OPC-UA sample server that runs on Apache Felix (OSGi). The Milo version is 0.3.3. Some properties can be specified in the file. That is the only difference from the original. The purpose is to verify the OPC-UA client function of rainy. I releases this in the form of the Eclipse plug-in project. You need Java 8 or higher.

Configuration - conf/opcua.properties

Edit the default values for the following properties by uncommenting them as necessary.

#-------------------------------------------------
# URI: opc.tcp://hostPort/milo
#
# for example) opc.tcp://192.168.1.1:12686/milo
#-------------------------------------------------
#tcpPortEnable=true
#tcpPort=12686
#
#httpsPortEnable=false
#httpsPort=8443
#
# PKCS12 or JKS or JCEKS
#keyStoreType=PKCS12
#
#keyStoreAlias=server-ai
#
#keyStorePassword=password
#
#certificate=example-certs.pfx
#
#userName=user
#userPassword=password1
#
#adminName=admin
#adminPassword=password2

Run milo-example-server

  • start
    Start milo-example-server as follows.
# cd /path/to/milo-example-server-felix/bin
# sh server-start.sh
-> ps
START LEVEL 1
   ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (6.0.3)
[   1] [Active     ] [    1] bcpkix (1.62)
[   2] [Active     ] [    1] bcprov (1.62)
[   3] [Active     ] [    1] bsd-parser-core (0.3.4)
[   4] [Active     ] [    1] bsd-parser-gson (0.3.4)
[   5] [Active     ] [    1] Gson (2.8.5)
[   6] [Active     ] [    1] Guava: Google Core Libraries for Java (26.0.0.jre)
[   7] [Active     ] [    1] JavaBeans Activation Framework (1.2.0)
[   8] [Active     ] [    1] jaxb-api (2.3.1)
[   9] [Active     ] [    1] file:/home/pi/milo-example-server-felix/bundle/jaxb-runtime-2.3.2.jar
[  10] [Active     ] [    1] milo-example-server (0.3.3)
[  11] [Active     ] [    1] Netty/Buffer (4.1.38.Final)
[  12] [Active     ] [    1] netty-channel-fsm-osgi (0.3.0)
[  13] [Active     ] [    1] Netty/Codec (4.1.38.Final)
[  14] [Active     ] [    1] Netty/Codec/HTTP (4.1.38.Final)
[  15] [Active     ] [    1] Netty/Common (4.1.38.Final)
[  16] [Active     ] [    1] Netty/Handler (4.1.38.Final)
[  17] [Active     ] [    1] Netty/Resolver (4.1.38.Final)
[  18] [Active     ] [    1] Netty/Transport (4.1.38.Final)
[  19] [Active     ] [    1] Apache Felix Shell Service (1.4.3)
[  20] [Active     ] [    1] Apache Felix Shell TUI (1.4.1)
[  21] [Active     ] [    1] Apache ServiceMix :: Bundles :: jsr305 (3.0.2.1)
[  22] [Active     ] [    1] OSGi LogService implemented over SLF4J (1.7.26)
[  23] [Active     ] [    1] sdk-core (0.3.4)
[  24] [Active     ] [    1] sdk-server (0.3.4)
[  25] [Active     ] [    1] slf4j-api (1.7.26)
[  26] [Resolved   ] [    1] slf4j-jdk14 (1.7.26)
[  27] [Active     ] [    1] stack-core (0.3.4)
[  28] [Active     ] [    1] stack-server (0.3.4)
[  29] [Active     ] [    1] strict-machine-osgi (0.1.0)
->
  • stop
    Stop milo-example-server as follows.
-> stop 0

Use this with the following bundles

The license file for Eclipse Milo is located below.

Please check each license for the following bundles used.

I would like to thank the authors of these very useful codes, and all the contributors.

How to use

See milo-example-server-felix.zip for how to use milo-example-server.