mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-30 00:00:11 +01:00
Harmonize formatting and style of example configuration files
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
parent
a2d55a9b6e
commit
4af275ef2d
52 changed files with 647 additions and 531 deletions
|
@ -53,9 +53,6 @@ paths = (
|
||||||
offset = 0,
|
offset = 0,
|
||||||
signals = ["f0", "f1", "f2", "f3"]
|
signals = ["f0", "f1", "f2", "f3"]
|
||||||
}
|
}
|
||||||
# {
|
|
||||||
# type = "print"
|
|
||||||
# }
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,24 +4,21 @@
|
||||||
# Please note, that using all options at the same time does not really
|
# Please note, that using all options at the same time does not really
|
||||||
# makes sense. The purpose of this example is to serve as a reference.
|
# makes sense. The purpose of this example is to serve as a reference.
|
||||||
#
|
#
|
||||||
# The syntax of this file is similar to JSON.
|
|
||||||
# A detailed description of the format can be found here:
|
|
||||||
# http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
|
|
||||||
#
|
|
||||||
# Author: Steffen Vogel <post@steffenvogel.de>
|
# Author: Steffen Vogel <post@steffenvogel.de>
|
||||||
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
name = "villas-acs" # The name of this VILLASnode. Might by used by node-types
|
# The name of this VILLASnode. Might by used by node-types
|
||||||
# to identify themselves (default is the hostname).
|
# to identify themselves (default is the hostname)
|
||||||
|
name = "villas-acs"
|
||||||
|
|
||||||
logging = {
|
logging = {
|
||||||
level = "debug"
|
level = "debug"
|
||||||
}
|
}
|
||||||
|
|
||||||
http = {
|
http = {
|
||||||
port = 80 # Port for HTTP connections
|
# Port for HTTP connections
|
||||||
|
port = 80
|
||||||
}
|
}
|
||||||
|
|
||||||
## Dictionary of nodes
|
## Dictionary of nodes
|
||||||
|
|
|
@ -4,10 +4,6 @@
|
||||||
# Please note, that using all options at the same time does not really
|
# Please note, that using all options at the same time does not really
|
||||||
# makes sense. The purpose of this example is to serve as a reference.
|
# makes sense. The purpose of this example is to serve as a reference.
|
||||||
#
|
#
|
||||||
# The syntax of this file is similar to JSON.
|
|
||||||
# A detailed description of the format can be found here:
|
|
||||||
# http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
|
|
||||||
#
|
|
||||||
# Author: Steffen Vogel <post@steffenvogel.de>
|
# Author: Steffen Vogel <post@steffenvogel.de>
|
||||||
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
@ -19,5 +15,5 @@
|
||||||
# An example node. Define multiple nodes in the "nodes" dictionary
|
# An example node. Define multiple nodes in the "nodes" dictionary
|
||||||
@include "nodes/socket.conf"
|
@include "nodes/socket.conf"
|
||||||
|
|
||||||
# A list of example paths. Define multiple paths by appending them to the "paths" list.
|
# A list of example paths. Define multiple paths by appending them to the "paths" list
|
||||||
@include "paths.conf"
|
@include "paths.conf"
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
# Global configuration file for VILLASnode.
|
# Global configuration file for VILLASnode
|
||||||
#
|
|
||||||
# The syntax of this file is similar to JSON.
|
|
||||||
# A detailed description of the format can be found here:
|
|
||||||
# http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
|
|
||||||
#
|
#
|
||||||
# Author: Steffen Vogel <post@steffenvogel.de>
|
# Author: Steffen Vogel <post@steffenvogel.de>
|
||||||
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
||||||
|
@ -10,32 +6,39 @@
|
||||||
|
|
||||||
## Global Options
|
## Global Options
|
||||||
|
|
||||||
affinity = 0x01 # Mask of cores the server should run on
|
# Mask of cores the server should run on
|
||||||
# This also maps the NIC interrupts to those cores!
|
# This also maps the NIC interrupts to those cores!
|
||||||
|
affinity = 0x01
|
||||||
|
|
||||||
#priority = 50 # Priority for the server tasks.
|
# Priority for the server tasks
|
||||||
# Usually the server is using a real-time FIFO
|
# Usually the server is using a real-time FIFO
|
||||||
# scheduling algorithm
|
# scheduling algorithm
|
||||||
|
|
||||||
# See: https://github.com/docker/docker/issues/22380
|
# See: https://github.com/docker/docker/issues/22380
|
||||||
# on why we cant use real-time scheduling in Docker
|
# on why we cant use real-time scheduling in Docker
|
||||||
|
#priority = 50
|
||||||
|
|
||||||
name = "villas-acs" # The name of this VILLASnode. Might by used by node-types
|
|
||||||
# to identify themselves (default is the hostname).
|
|
||||||
|
|
||||||
|
# The name of this VILLASnode. Might by used by node-types
|
||||||
|
# to identify themselves (default is the hostname)
|
||||||
|
name = "villas-acs"
|
||||||
|
|
||||||
logging = {
|
logging = {
|
||||||
level = "debug" # The level of verbosity for debug messages
|
# The level of verbosity for debug messages
|
||||||
# One of: "warn", "info", "error", "off", "info"
|
# One of: "warn", "info", "error", "off", "info"
|
||||||
|
level = "debug"
|
||||||
|
|
||||||
|
# File for logs
|
||||||
|
file = "/tmp/villas-node.log"
|
||||||
|
|
||||||
file = "/tmp/villas-node.log" # File for logs
|
# Log to syslogd
|
||||||
|
syslog = true
|
||||||
syslog = true # Log to syslogd
|
|
||||||
}
|
}
|
||||||
|
|
||||||
http = {
|
http = {
|
||||||
enabled = true, # Do not listen on port if true
|
# Do not listen on port if true
|
||||||
|
enabled = true,
|
||||||
|
|
||||||
port = 80 # Port for HTTP connections
|
# Port for HTTP connections
|
||||||
|
port = 80
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ paths = (
|
||||||
out = "file_node"
|
out = "file_node"
|
||||||
|
|
||||||
hooks = (
|
hooks = (
|
||||||
# Use a frame hook to generate NEW_FRAME annotations.
|
# Use a frame hook to generate NEW_FRAME annotations
|
||||||
"frame",
|
"frame",
|
||||||
{
|
{
|
||||||
type = "digest"
|
type = "digest"
|
||||||
|
|
|
@ -13,8 +13,8 @@ paths = (
|
||||||
type = "dp"
|
type = "dp"
|
||||||
|
|
||||||
signal = "sine"
|
signal = "sine"
|
||||||
f0 = 50 # Hz
|
f0 = 50 # In Hz
|
||||||
dt = 0.1 # seconds
|
dt = 0.1 # In seconds
|
||||||
|
|
||||||
# Alternative to dt
|
# Alternative to dt
|
||||||
# rate = 10 Hz
|
# rate = 10 Hz
|
||||||
|
|
|
@ -17,8 +17,8 @@ paths = (
|
||||||
threshold = 0.5
|
threshold = 0.5
|
||||||
|
|
||||||
# Once triggered, keep active for:
|
# Once triggered, keep active for:
|
||||||
duration = 5 # in seconds
|
duration = 5 # In seconds
|
||||||
samples = 100 # in number of samples
|
samples = 100 # In number of samples
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,14 +16,23 @@ paths = (
|
||||||
"sine"
|
"sine"
|
||||||
)
|
)
|
||||||
|
|
||||||
sample_rate = 1000, # sample rate of the input signal
|
# Sample rate of the input signal
|
||||||
dft_rate = 10, # number of phasors calculated per second
|
sample_rate = 1000,
|
||||||
|
|
||||||
estimation_range = 10, # the range around the nominal_freq in with the estimation is done
|
# Number of phasors calculated per second
|
||||||
nominal_freq = 50, # the nominal grid frequnecy
|
dft_rate = 10,
|
||||||
number_plc = 10., # the number of power line cylces stored in the buffer
|
|
||||||
|
|
||||||
angle_unit = "rad" # one of: rad, degree
|
# Yhe range around the nominal_freq in with the estimation is done
|
||||||
|
estimation_range = 10,
|
||||||
|
|
||||||
|
# Yhe nominal grid frequnecy
|
||||||
|
nominal_freq = 50,
|
||||||
|
|
||||||
|
# Yhe number of power line cylces stored in the buffer
|
||||||
|
number_plc = 10.,
|
||||||
|
|
||||||
|
# One of: rad, degree
|
||||||
|
angle_unit = "rad"
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,12 +15,12 @@ paths = (
|
||||||
type = "lua"
|
type = "lua"
|
||||||
|
|
||||||
# Enables or disables the use of signal names in the process() function
|
# Enables or disables the use of signal names in the process() function
|
||||||
# of the Lua script. If disabled, numeric indices will be used.
|
# of the Lua script. If disabled, numeric indices will be used
|
||||||
use_names = true
|
use_names = true
|
||||||
|
|
||||||
# The Lua hook will pass the complete hook configuration to the prepare()
|
# The Lua hook will pass the complete hook configuration to the prepare()
|
||||||
# function. So you can add arbitrary settings here which are then
|
# function. So you can add arbitrary settings here which are then
|
||||||
# consumed by the Lua script.
|
# consumed by the Lua script
|
||||||
some_setting = "Hello World"
|
some_setting = "Hello World"
|
||||||
this = {
|
this = {
|
||||||
is = {
|
is = {
|
||||||
|
@ -39,14 +39,14 @@ paths = (
|
||||||
#
|
#
|
||||||
# stop() Called when the node/path is stopped
|
# stop() Called when the node/path is stopped
|
||||||
#
|
#
|
||||||
# restart() Called when the node/path is restarted.
|
# restart() Called when the node/path is restarted
|
||||||
# Falls back to stop() + start() if absent.
|
# Falls back to stop() + start() if absent
|
||||||
#
|
#
|
||||||
# process(smp) Called for each sample which is being processed.
|
# process(smp) Called for each sample which is being processed
|
||||||
# The sample is passed as a Lua table with the following
|
# The sample is passed as a Lua table with the following
|
||||||
# fields:
|
# fields:
|
||||||
# - sequence The sequence number of the sample.
|
# - sequence The sequence number of the sample
|
||||||
# - flags The flags field of the sample.
|
# - flags The flags field of the sample
|
||||||
# - ts_origin The origin timestamp as a Lua table containing
|
# - ts_origin The origin timestamp as a Lua table containing
|
||||||
# the following keys:
|
# the following keys:
|
||||||
# 0: seconds
|
# 0: seconds
|
||||||
|
@ -57,14 +57,14 @@ paths = (
|
||||||
# 1: nanoseconds
|
# 1: nanoseconds
|
||||||
# - data The sample data as a Lua table container either
|
# - data The sample data as a Lua table container either
|
||||||
# numeric indices or the signal names depending
|
# numeric indices or the signal names depending
|
||||||
# on the 'use_names' option of the hook.
|
# on the 'use_names' option of the hook
|
||||||
#
|
#
|
||||||
# periodic() Called periodically with the rate of the global 'stats' option.
|
# periodic() Called periodically with the rate of the global 'stats' option
|
||||||
script = "../lua/hooks/test.lua"
|
script = "../lua/hooks/test.lua"
|
||||||
|
|
||||||
# Expression mode: We provide a mangled signal list including Lua expressions
|
# Expression mode: We provide a mangled signal list including Lua expressions
|
||||||
signals = (
|
signals = (
|
||||||
{ name = "sum", type="float", unit = "V", expression = "smp.data.square * 10" },
|
{ name = "sum", type="float", unit = "V", expression = "smp.data.square * 10" },
|
||||||
|
|
||||||
# You can access any global variable set by the script
|
# You can access any global variable set by the script
|
||||||
{ name = "sequence", type="float", unit = "V", expression = "global_var" },
|
{ name = "sequence", type="float", unit = "V", expression = "global_var" },
|
||||||
|
@ -76,7 +76,7 @@ paths = (
|
||||||
{ name = "sum", type="float", unit = "V", expression = "math.sin(2 * math.pi * f * t)" },
|
{ name = "sum", type="float", unit = "V", expression = "math.sin(2 * math.pi * f * t)" },
|
||||||
|
|
||||||
{ name = "random", expression = "smp.data.random" }
|
{ name = "random", expression = "smp.data.random" }
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type = "print"
|
type = "print"
|
||||||
|
|
|
@ -16,13 +16,20 @@ paths = (
|
||||||
"sine"
|
"sine"
|
||||||
)
|
)
|
||||||
|
|
||||||
sample_rate = 1000, # sample rate of the input signal
|
# Sample rate of the input signal
|
||||||
dft_rate = 10, # number of phasors calculated per second
|
sample_rate = 1000,
|
||||||
|
|
||||||
nominal_freq = 50, # the nominal grid frequnecy
|
# Number of phasors calculated per second
|
||||||
number_plc = 10., # the number of power line cylces stored in the buffer
|
dft_rate = 10,
|
||||||
|
|
||||||
angle_unit = "rad" # one of: rad, degree
|
# The nominal grid frequnecy
|
||||||
|
nominal_freq = 50,
|
||||||
|
|
||||||
|
# The number of power line cylces stored in the buffer
|
||||||
|
number_plc = 10.,
|
||||||
|
|
||||||
|
# One of: rad, degree
|
||||||
|
angle_unit = "rad"
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,21 +16,38 @@ paths = (
|
||||||
"sine"
|
"sine"
|
||||||
)
|
)
|
||||||
|
|
||||||
sample_rate = 1000, # sample rate of the input signal
|
# Sample rate of the input signal
|
||||||
dft_rate = 10, # number of phasors calculated per second
|
sample_rate = 1000,
|
||||||
|
|
||||||
start_frequency = 49.7, # lowest frequency bin
|
# Number of phasors calculated per second
|
||||||
end_frequency = 50.3, # highest frequency bin
|
dft_rate = 10,
|
||||||
frequency_resolution = 0.1, # frequency bin resolution
|
|
||||||
|
|
||||||
window_size_factor = 1, # a factor with which the window will be increased
|
# Lowest frequency bin
|
||||||
window_type = "hamming", # one of: flattop, hamming, hann
|
start_frequency = 49.7,
|
||||||
padding_type = "zero", # one of: signal_repeat, zero
|
|
||||||
frequency_estimate_type = "quadratic", # one of: quadratic
|
|
||||||
|
|
||||||
pps_index = 0, # signal index of the PPS signal
|
# Highest frequency bin
|
||||||
|
end_frequency = 50.3,
|
||||||
|
|
||||||
angle_unit = "rad" # one of: rad, degree
|
# Frequency bin resolution
|
||||||
|
frequency_resolution = 0.1,
|
||||||
|
|
||||||
|
# A factor with which the window will be increased
|
||||||
|
window_size_factor = 1,
|
||||||
|
|
||||||
|
# One of: flattop, hamming, hann
|
||||||
|
window_type = "hamming",
|
||||||
|
|
||||||
|
# One of: signal_repeat, zero
|
||||||
|
padding_type = "zero",
|
||||||
|
|
||||||
|
# One of: quadratic
|
||||||
|
frequency_estimate_type = "quadratic",
|
||||||
|
|
||||||
|
# Signal index of the PPS signal
|
||||||
|
pps_index = 0,
|
||||||
|
|
||||||
|
# One of: rad, degree
|
||||||
|
angle_unit = "rad"
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ paths = (
|
||||||
|
|
||||||
output = "print_output_file.log"
|
output = "print_output_file.log"
|
||||||
format = "villas.human"
|
format = "villas.human"
|
||||||
# prefix = "[file_node] " # prefix and output are exclusive settings!
|
# prefix = "[file_node] " # Prefix and output are exclusive settings!
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,16 +8,25 @@ nodes = {
|
||||||
in = {
|
in = {
|
||||||
signals = (
|
signals = (
|
||||||
{
|
{
|
||||||
name = "" # Same as 'id' in uAPI context
|
# Same as 'id' in uAPI context
|
||||||
description = "Volts on Bus A" # A human readable description of the channel
|
name = ""
|
||||||
type = "float" # Same as 'datatype' in uAPI context
|
|
||||||
|
# A human readable description of the channel
|
||||||
|
description = "Volts on Bus A"
|
||||||
|
|
||||||
|
# Same as 'datatype' in uAPI context
|
||||||
|
type = "float"
|
||||||
unit = "V"
|
unit = "V"
|
||||||
payload = "events" # or 'samples'
|
payload = "events" # Or 'samples'
|
||||||
rate = 100.0 # An expected refresh/sample rate of the signal
|
|
||||||
|
# An expected refresh/sample rate of the signal
|
||||||
|
rate = 100.0
|
||||||
|
|
||||||
range = {
|
range = {
|
||||||
min = 20.0
|
min = 20.0
|
||||||
max = 100.0
|
max = 100.0
|
||||||
}
|
}
|
||||||
|
|
||||||
readable = true
|
readable = true
|
||||||
writable = false
|
writable = false
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ nodes = {
|
||||||
rate = 1000,
|
rate = 1000,
|
||||||
|
|
||||||
signals = (
|
signals = (
|
||||||
# note: order in this array defines order in villas sample
|
# Note: order in this array defines order in villas sample
|
||||||
{ channel = 0, range = 0, aref = 0, name = "temperature_int" },
|
{ channel = 0, range = 0, aref = 0, name = "temperature_int" },
|
||||||
{ channel = 1, range = 0, aref = 0, name = "loopback_ao0" },
|
{ channel = 1, range = 0, aref = 0, name = "loopback_ao0" },
|
||||||
{ channel = 2, range = 0, aref = 0, name = "loopback_ao1" },
|
{ channel = 2, range = 0, aref = 0, name = "loopback_ao1" },
|
||||||
|
@ -23,11 +23,11 @@ nodes = {
|
||||||
# Note: buffer size and rate shouldn't be changed at the moment
|
# Note: buffer size and rate shouldn't be changed at the moment
|
||||||
# output sample rate
|
# output sample rate
|
||||||
rate = 40000,
|
rate = 40000,
|
||||||
# comedi write buffer in kilobytes
|
# Comedi write buffer in kilobytes
|
||||||
bufsize = 24,
|
bufsize = 24,
|
||||||
|
|
||||||
signals = (
|
signals = (
|
||||||
# note: order in this array corresponds to order in villas sample
|
# Note: order in this array corresponds to order in villas sample
|
||||||
{ name = "ao0", channel = 0, range = 0, aref = 0 },
|
{ name = "ao0", channel = 0, range = 0, aref = 0 },
|
||||||
{ name = "ao1", channel = 1, range = 0, aref = 0 },
|
{ name = "ao1", channel = 1, range = 0, aref = 0 },
|
||||||
{ name = "ao2", channel = 2, range = 0, aref = 0 },
|
{ name = "ao2", channel = 2, range = 0, aref = 0 },
|
||||||
|
@ -69,10 +69,10 @@ nodes = {
|
||||||
paths = (
|
paths = (
|
||||||
# 2-ch sine
|
# 2-ch sine
|
||||||
# {
|
# {
|
||||||
# in = [ "sine1.data[0]", "sine2.data[0]" ]
|
# in = [ "sine1.data[0]", "sine2.data[0]" ]
|
||||||
# out = "pcie6259"
|
# out = "pcie6259"
|
||||||
# rate = 10000
|
# rate = 10000
|
||||||
# mask = ()
|
# mask = ()
|
||||||
# }
|
# }
|
||||||
|
|
||||||
# Remote data via UDP
|
# Remote data via UDP
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
ethercat = {
|
ethercat = {
|
||||||
coupler = {
|
coupler = {
|
||||||
position = 0
|
position = 0
|
||||||
vendor_id = 0x00000002 # Backhoff
|
vendor_id = 0x00000002 # Beckhoff
|
||||||
product_code = 0x044c2c52 # EK1100
|
product_code = 0x044c2c52 # EK1100
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,31 +3,40 @@
|
||||||
|
|
||||||
nodes = {
|
nodes = {
|
||||||
file_node = {
|
file_node = {
|
||||||
type = "file"
|
type = "file"
|
||||||
|
|
||||||
### The following settings are specific to the file node-type!! ###
|
# These options specify the URI where the the files are stored
|
||||||
|
# The URI accepts all format tokens of (see strftime(3))
|
||||||
uri = "logs/input.log", # These options specify the URI where the the files are stored
|
uri = "logs/input.log",
|
||||||
#uri = "logs/output_%F_%T.log" # The URI accepts all format tokens of (see strftime(3))
|
# uri = "logs/output_%F_%T.log"
|
||||||
|
|
||||||
format = "csv"
|
format = "csv"
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
epoch_mode = "direct" # One of: direct (default), wait, relative, absolute
|
# One of: direct (default), wait, relative, absolute
|
||||||
epoch = 10 # The interpretation of this value depends on epoch_mode (default is 0).
|
epoch_mode = "direct"
|
||||||
# Consult the documentation of a full explanation
|
|
||||||
|
|
||||||
rate = 2.0 # A constant rate at which the lines of the input files should be read
|
# The interpretation of this value depends on epoch_mode (default is 0)
|
||||||
# A missing or zero value will use the timestamp in the first column
|
# Consult the documentation of a full explanation
|
||||||
# of the file to determine the pause between consecutive lines.
|
epoch = 10
|
||||||
eof = "rewind" # Rewind the file and start from the beginning.
|
|
||||||
|
|
||||||
buffer_size = 0 # Creates a stream buffer if value is positive
|
# A constant rate at which the lines of the input files should be read
|
||||||
|
# A missing or zero value will use the timestamp in the first column
|
||||||
|
# of the file to determine the pause between consecutive lines
|
||||||
|
rate = 2.0
|
||||||
|
|
||||||
|
# Rewind the file and start from the beginning
|
||||||
|
eof = "rewind"
|
||||||
|
|
||||||
|
# Creates a stream buffer if value is positive
|
||||||
|
buffer_size = 0
|
||||||
},
|
},
|
||||||
out = {
|
out = {
|
||||||
flush = false # Flush or upload contents of the file every time new samples are sent.
|
# Flush or upload contents of the file every time new samples are sent
|
||||||
|
flush = false
|
||||||
|
|
||||||
buffer_size = 0 # Creates a stream buffer if value is positive
|
# Creates a stream buffer if value is positive
|
||||||
|
buffer_size = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
nodes = {
|
nodes = {
|
||||||
iec104_node_seq = {
|
iec104_node_seq = {
|
||||||
type = "iec60870-5-104"
|
type = "iec60870-5-104"
|
||||||
address = "0.0.0.0"
|
address = "0.0.0.0"
|
||||||
port = 2404
|
port = 2404
|
||||||
|
@ -18,7 +18,7 @@ nodes = {
|
||||||
# Interpret the duplicate IOAs as a sequence by incrementing the
|
# Interpret the duplicate IOAs as a sequence by incrementing the
|
||||||
# IOA with each duplication. This only applies to two adjacent
|
# IOA with each duplication. This only applies to two adjacent
|
||||||
# signals with the same IOA. Specifying an IOA twice with other
|
# signals with the same IOA. Specifying an IOA twice with other
|
||||||
# IOAs inbetween is an error.
|
# IOAs inbetween is an error
|
||||||
duplicate_ioa_is_sequence = true
|
duplicate_ioa_is_sequence = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
|
|
||||||
nodes = {
|
nodes = {
|
||||||
iec104_node = {
|
iec104_node = {
|
||||||
type = "iec60870-5-104"
|
type = "iec60870-5-104"
|
||||||
|
|
||||||
# Network address and port of the server
|
# Network address and port of the server
|
||||||
|
@ -22,14 +22,16 @@ nodes = {
|
||||||
# Map signals to information object addresses and ASDU data types
|
# Map signals to information object addresses and ASDU data types
|
||||||
# one ASDU per specified asdu_type_id/asdu_type+with_timestamp is
|
# one ASDU per specified asdu_type_id/asdu_type+with_timestamp is
|
||||||
# send for each sample. Signals of the same type are collected
|
# send for each sample. Signals of the same type are collected
|
||||||
# in a single ASDU.
|
# in a single ASDU
|
||||||
signals = (
|
signals = (
|
||||||
{
|
{
|
||||||
# The ASDU data type
|
# The ASDU data type
|
||||||
asdu_type = "normalized-float"
|
asdu_type = "normalized-float"
|
||||||
# add 56 bit unix timestamp to ASDU
|
|
||||||
|
# Add 56 bit unix timestamp to ASDU
|
||||||
with_timestamp = false
|
with_timestamp = false
|
||||||
# the information object address of this signal
|
|
||||||
|
# The information object address of this signal
|
||||||
ioa = 4202832
|
ioa = 4202832
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,9 +3,14 @@
|
||||||
|
|
||||||
nodes = {
|
nodes = {
|
||||||
loopback_node = {
|
loopback_node = {
|
||||||
type = "loopback", # A loopback node will receive exactly the same data which has been sent to it.
|
# A loopback node will receive exactly the same data which has been sent to it
|
||||||
# The internal implementation is based on queue.
|
type = "loopback",
|
||||||
queuelen = 1024, # The queue length of the internal queue which buffers the samples.
|
|
||||||
mode = "polling" # Use busy polling for synchronization of the read and write side of the queue
|
# The internal implementation is based on queue
|
||||||
|
# The queue length of the internal queue which buffers the samples
|
||||||
|
queuelen = 1024,
|
||||||
|
|
||||||
|
# Use busy polling for synchronization of the read and write side of the queue
|
||||||
|
mode = "polling"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,20 +8,20 @@ nodes = {
|
||||||
# Required transport type. Can be either "rtu" or "tcp"
|
# Required transport type. Can be either "rtu" or "tcp"
|
||||||
transport = "tcp"
|
transport = "tcp"
|
||||||
|
|
||||||
# Optional timeout in seconds when waiting for responses from a modbus server.
|
# Optional timeout in seconds when waiting for responses from a modbus server
|
||||||
# Default is 1.0.
|
# Default is 1.0
|
||||||
response_timeout = 1.0
|
response_timeout = 1.0
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Settings for transport = "tcp".
|
# Settings for transport = "tcp"
|
||||||
#
|
#
|
||||||
|
|
||||||
# Required remote IP address.
|
# Required remote IP address
|
||||||
remote = "127.0.0.1"
|
remote = "127.0.0.1"
|
||||||
|
|
||||||
# Optional remote port.
|
# Optional remote port
|
||||||
# Default is 502.
|
# Default is 502
|
||||||
port = 502
|
port = 502
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,10 +29,10 @@ nodes = {
|
||||||
# Settings for transport = "rtu"
|
# Settings for transport = "rtu"
|
||||||
#
|
#
|
||||||
|
|
||||||
# Required device file.
|
# Required device file
|
||||||
device = "/dev/ttyS0"
|
device = "/dev/ttyS0"
|
||||||
|
|
||||||
# Required baudrate.
|
# Required baudrate
|
||||||
baudrate = 9600
|
baudrate = 9600
|
||||||
|
|
||||||
# Required parity. One of "none", "even" and "odd"
|
# Required parity. One of "none", "even" and "odd"
|
||||||
|
@ -44,102 +44,102 @@ nodes = {
|
||||||
# Required stop bits. One of 1, 2
|
# Required stop bits. One of 1, 2
|
||||||
stop_bits = 1
|
stop_bits = 1
|
||||||
|
|
||||||
# The modbus unit ID.
|
# The modbus unit ID
|
||||||
# Required for transport = "rtu".
|
# Required for transport = "rtu"
|
||||||
# Optional for transport = "tcp".
|
# Optional for transport = "tcp"
|
||||||
unit = 1
|
unit = 1
|
||||||
|
|
||||||
# Optional polling rate for the modbus remote reads.
|
# Optional polling rate for the modbus remote reads
|
||||||
# Defaults to 10.
|
# Defaults to 10
|
||||||
rate = 10
|
rate = 10
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
signals = (
|
signals = (
|
||||||
# A 32-bit IEEE 754 floating point value.
|
# A 32-bit IEEE 754 floating point value
|
||||||
# This spans 2 registers.
|
# This spans 2 registers
|
||||||
{
|
{
|
||||||
# Required type = "float".
|
# Required type = "float"
|
||||||
type = "float"
|
type = "float"
|
||||||
|
|
||||||
# Required address of the lowest register.
|
# Required address of the lowest register
|
||||||
address = 0x50
|
address = 0x50
|
||||||
|
|
||||||
# Optional endianess for joining the 2 16-bit registers into a 32-bit value.
|
# Optional endianess for joining the 2 16-bit registers into a 32-bit value
|
||||||
# Defaults to "big".
|
# Defaults to "big"
|
||||||
word_endianess = "big"
|
word_endianess = "big"
|
||||||
|
|
||||||
# Optional endianess for the 2 bytes within a register.
|
# Optional endianess for the 2 bytes within a register
|
||||||
# Defaults to "big".
|
# Defaults to "big"
|
||||||
byte_endianess = "big"
|
byte_endianess = "big"
|
||||||
|
|
||||||
# Optional scale that should be applied to the integer value.
|
# Optional scale that should be applied to the integer value
|
||||||
# Defaults to 1.
|
# Defaults to 1
|
||||||
scale = 10
|
scale = 10
|
||||||
|
|
||||||
# Optional offset that should be applied to the integer value after scaling.
|
# Optional offset that should be applied to the integer value after scaling
|
||||||
# Defaults to 0.
|
# Defaults to 0
|
||||||
offset = 2
|
offset = 2
|
||||||
},
|
},
|
||||||
# A single bit within a register as a boolean value.
|
# A single bit within a register as a boolean value
|
||||||
{
|
{
|
||||||
# Required type = "boolean".
|
# Required type = "boolean"
|
||||||
type = "boolean"
|
type = "boolean"
|
||||||
|
|
||||||
# Required address of the register.
|
# Required address of the register
|
||||||
address = 0x54
|
address = 0x54
|
||||||
|
|
||||||
# Required bit within the register.
|
# Required bit within the register
|
||||||
# Starting at 0.
|
# Starting at 0
|
||||||
bit = 0
|
bit = 0
|
||||||
},
|
},
|
||||||
# An integer value.
|
# An integer value
|
||||||
# This may span multiple registers.
|
# This may span multiple registers
|
||||||
{
|
{
|
||||||
# Required type = "integer".
|
# Required type = "integer"
|
||||||
type = "integer"
|
type = "integer"
|
||||||
|
|
||||||
# Required address of the lowest register.
|
# Required address of the lowest register
|
||||||
address = 0x52
|
address = 0x52
|
||||||
|
|
||||||
# Optional number of registers that should be joined to form the value.
|
# Optional number of registers that should be joined to form the value
|
||||||
# Defaults to 1.
|
# Defaults to 1
|
||||||
integer_registers = 1
|
integer_registers = 1
|
||||||
|
|
||||||
# Optional endianess for joining the 16-bit registers into a 32-bit value.
|
# Optional endianess for joining the 16-bit registers into a 32-bit value
|
||||||
# Defaults to "big".
|
# Defaults to "big"
|
||||||
word_endianess = "big"
|
word_endianess = "big"
|
||||||
|
|
||||||
# Optional endianess for the 2 bytes within a register.
|
# Optional endianess for the 2 bytes within a register
|
||||||
# Defaults to "big".
|
# Defaults to "big"
|
||||||
byte_endianess = "big"
|
byte_endianess = "big"
|
||||||
},
|
},
|
||||||
# An float value created by reading an integer and applying an optional offset and scale.
|
# An float value created by reading an integer and applying an optional offset and scale
|
||||||
# This may span multiple registers.
|
# This may span multiple registers
|
||||||
{
|
{
|
||||||
# Required type = "float".
|
# Required type = "float"
|
||||||
type = "float"
|
type = "float"
|
||||||
|
|
||||||
# Required address of the lowest register.
|
# Required address of the lowest register
|
||||||
address = 0x52
|
address = 0x52
|
||||||
|
|
||||||
# Required number of registers that should be joined to form the value.
|
# Required number of registers that should be joined to form the value
|
||||||
# A "float" value without the "integer_registers" settings is considered an IEEE 754 float, spanning 2 registers.
|
# A "float" value without the "integer_registers" settings is considered an IEEE 754 float, spanning 2 registers
|
||||||
integer_registers = 1
|
integer_registers = 1
|
||||||
|
|
||||||
# Optional endianess for joining the 16-bit registers into a 32-bit value.
|
# Optional endianess for joining the 16-bit registers into a 32-bit value
|
||||||
# Defaults to "big".
|
# Defaults to "big"
|
||||||
word_endianess = "big"
|
word_endianess = "big"
|
||||||
|
|
||||||
# Optional endianess for the 2 bytes within a register.
|
# Optional endianess for the 2 bytes within a register
|
||||||
# Defaults to "big".
|
# Defaults to "big"
|
||||||
byte_endianess = "big"
|
byte_endianess = "big"
|
||||||
|
|
||||||
# Optional scale that should be applied to the integer value.
|
# Optional scale that should be applied to the integer value
|
||||||
# Defaults to 1.
|
# Defaults to 1
|
||||||
scale = 10
|
scale = 10
|
||||||
|
|
||||||
# Optional offset that should be applied to the integer value after scaling.
|
# Optional offset that should be applied to the integer value after scaling
|
||||||
# Defaults to 0.
|
# Defaults to 0
|
||||||
offset = 2
|
offset = 2
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -147,18 +147,18 @@ nodes = {
|
||||||
|
|
||||||
out = {
|
out = {
|
||||||
signals = (
|
signals = (
|
||||||
# All register mappings described for "in" except for "boolean" are supported in the "out" signals.
|
# All register mappings described for "in" except for "boolean" are supported in the "out" signals
|
||||||
{
|
{
|
||||||
type = "float"
|
type = "float"
|
||||||
address = 0x50
|
address = 0x50
|
||||||
|
|
||||||
# Scale and offset a applied as attributes of the register that is written to.
|
# Scale and offset a applied as attributes of the register that is written to
|
||||||
# This means the value written to "register" for a "signal" with "offset" and "scale" will be:
|
# This means the value written to "register" for a "signal" with "offset" and "scale" will be:
|
||||||
#
|
#
|
||||||
# register = (signal - offset) / scale
|
# register = (signal - offset) / scale
|
||||||
#
|
#
|
||||||
# It is fairly common to specify a scale and offset for modbus registers in a device manual.
|
# It is fairly common to specify a scale and offset for modbus registers in a device manual
|
||||||
# You should be able to plug those values into this configuration without conversion.
|
# You should be able to plug those values into this configuration without conversion
|
||||||
scale = 10
|
scale = 10
|
||||||
offset = 2
|
offset = 2
|
||||||
},
|
},
|
||||||
|
|
|
@ -12,7 +12,8 @@ nodes = {
|
||||||
host = "localhost",
|
host = "localhost",
|
||||||
port = 1883,
|
port = 1883,
|
||||||
|
|
||||||
keepalive = 5, # Send ping every 5 seconds to keep connection alive
|
# Send ping every 5 seconds to keep connection alive
|
||||||
|
keepalive = 5,
|
||||||
retain = false,
|
retain = false,
|
||||||
qos = 0,
|
qos = 0,
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,14 @@ nodes = {
|
||||||
|
|
||||||
out = {
|
out = {
|
||||||
endpoints = [
|
endpoints = [
|
||||||
"tcp://*:12000", # TCP socket
|
# TCP socket
|
||||||
"ipc:///tmp/test.ipc", # Interprocess communication
|
"tcp://*:12000",
|
||||||
"inproc://test" # Inprocess communication
|
|
||||||
|
# Interprocess communication
|
||||||
|
"ipc:///tmp/test.ipc",
|
||||||
|
|
||||||
|
# Inprocess communication
|
||||||
|
"inproc://test"
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
in = {
|
in = {
|
||||||
|
|
|
@ -2,28 +2,39 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
nodes = {
|
nodes = {
|
||||||
udp_node = { # The dictionary is indexed by the name of the node.
|
udp_node = {
|
||||||
type = "socket", # For a list of available node-types run: 'villas-node -h'
|
type = "socket",
|
||||||
|
|
||||||
### The following settings are specific to the socket node-type!! ###
|
format = "gtnet",
|
||||||
|
|
||||||
format = "gtnet", # For a list of available node-types run: 'villas-node -h'
|
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "127.0.0.1:12001" # This node only received messages on this IP:Port pair
|
address = "127.0.0.1:12001"
|
||||||
},
|
},
|
||||||
out = {
|
out = {
|
||||||
address = "127.0.0.1:12000", # This node sends outgoing messages to this IP:Port pair
|
address = "127.0.0.1:12000",
|
||||||
|
|
||||||
netem = { # Network emulation settings
|
# Network emulation settings
|
||||||
|
# Those settings can be specified for each node individually!
|
||||||
|
netem = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
# Those settings can be specified for each node individually!
|
|
||||||
delay = 100000, # Additional latency in microseconds
|
# Additional latency in microseconds
|
||||||
jitter = 30000, # Jitter in uS
|
delay = 100000,
|
||||||
distribution = "normal", # Distribution of delay: uniform, normal, pareto, paretonormal
|
|
||||||
loss = 10 # Packet loss in percent
|
# Jitter in uS
|
||||||
duplicate = 10, # Duplication in percent
|
jitter = 30000,
|
||||||
corrupt = 10 # Corruption in percent
|
|
||||||
|
# Distribution of delay: uniform, normal, pareto, paretonormal
|
||||||
|
distribution = "normal",
|
||||||
|
|
||||||
|
# Packet loss in percent
|
||||||
|
loss = 10
|
||||||
|
|
||||||
|
# Duplication in percent
|
||||||
|
duplicate = 10,
|
||||||
|
|
||||||
|
# Corruption in percent
|
||||||
|
corrupt = 10
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,28 +5,33 @@ nodes = {
|
||||||
ngsi_node = {
|
ngsi_node = {
|
||||||
type = "ngsi",
|
type = "ngsi",
|
||||||
|
|
||||||
### The following settings are specific to the ngsi node-type!! ###
|
|
||||||
|
|
||||||
# The HTTP REST API endpoint of the FIRWARE context broker
|
# The HTTP REST API endpoint of the FIRWARE context broker
|
||||||
endpoint = "http://46.101.131.212:1026",
|
endpoint = "http://46.101.131.212:1026",
|
||||||
|
|
||||||
access_token: "aig1aaQuohsh5pee9uiC2Bae3loSh9wu" # Add an 'Auth-Token' token header to each request
|
# Add an 'Auth-Token' token header to each request
|
||||||
|
access_token = "aig1aaQuohsh5pee9uiC2Bae3loSh9wu"
|
||||||
|
|
||||||
entity_id = "S3_ElectricalGrid",
|
entity_id = "S3_ElectricalGrid",
|
||||||
entity_type = "ElectricalGridMonitoring",
|
entity_type = "ElectricalGridMonitoring",
|
||||||
|
|
||||||
create = true # Create the NGSI entities during startup
|
# Create the NGSI entities during startup
|
||||||
|
create = true
|
||||||
|
|
||||||
rate = 0.1 # Rate at which we poll the broker for updates
|
# Rate at which we poll the broker for updates
|
||||||
timeout = 1, # Timeout of HTTP request in seconds (default is 1, must be smaller than 1 / rate)
|
rate = 0.1
|
||||||
verify_ssl = false, # Verification of SSL server certificates (default is true)
|
|
||||||
|
# Timeout of HTTP request in seconds (default is 1, must be smaller than 1 / rate)
|
||||||
|
timeout = 1,
|
||||||
|
|
||||||
|
# Verification of SSL server certificates (default is true)
|
||||||
|
verify_ssl = false,
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
signals = (
|
signals = (
|
||||||
{
|
{
|
||||||
name = "attr1",
|
name = "attr1",
|
||||||
ngsi_attribute_name = "attr1", # defaults to signal 'name'
|
ngsi_attribute_name = "attr1", # Defaults to signal 'name'
|
||||||
ngsi_attribute_type = "Volts", # default to signal 'unit'
|
ngsi_attribute_type = "Volts", # Default to signal 'unit'
|
||||||
ngsi_attribute_metadatas = (
|
ngsi_attribute_metadatas = (
|
||||||
{ name="accuracy", type="percent", value="5" }
|
{ name="accuracy", type="percent", value="5" }
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,38 +2,17 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
nodes = {
|
nodes = {
|
||||||
opal_node = { # The server can be started as an Asynchronous process
|
# The server can be started as an Asynchronous process
|
||||||
type = "opal", # from within an OPAL-RT model.
|
# from within an OPAL-RT model
|
||||||
|
opal_node = {
|
||||||
|
type = "opal",
|
||||||
|
|
||||||
### The following settings are specific to the opal node-type!! ###
|
# It's possible to have multiple send / recv Icons per model
|
||||||
|
send_id = 1,
|
||||||
|
|
||||||
|
# Specify the ID here
|
||||||
|
recv_id = 1,
|
||||||
|
|
||||||
send_id = 1, # It's possible to have multiple send / recv Icons per model
|
|
||||||
recv_id = 1, # Specify the ID here.
|
|
||||||
reply = true
|
reply = true
|
||||||
},
|
|
||||||
file_node = {
|
|
||||||
type = "file",
|
|
||||||
|
|
||||||
### The following settings are specific to the file node-type!! ###
|
|
||||||
|
|
||||||
uri = "logs/input.log", # These options specify the path prefix where the the files are stored
|
|
||||||
|
|
||||||
in = {
|
|
||||||
epoch_mode = "direct" # One of: direct (default), wait, relative, absolute
|
|
||||||
epoch = 10 # The interpretation of this value depends on epoch_mode (default is 0).
|
|
||||||
# Consult the documentation of a full explanation
|
|
||||||
|
|
||||||
rate = 2.0 # A constant rate at which the lines of the input files should be read
|
|
||||||
# A missing or zero value will use the timestamp in the first column
|
|
||||||
# of the file to determine the pause between consecutive lines.
|
|
||||||
|
|
||||||
buffer_size = 1000000
|
|
||||||
|
|
||||||
eof = "rewind" # One of: rewind, exit (default) or wait
|
|
||||||
},
|
|
||||||
out = {
|
|
||||||
flush = true
|
|
||||||
buffer_size = 1000000
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,25 +5,36 @@ nodes = {
|
||||||
redis_node = {
|
redis_node = {
|
||||||
type = "redis",
|
type = "redis",
|
||||||
|
|
||||||
format = "json", # only valid for mode = 'channel' and 'key'
|
# Only valid for mode = 'channel' and 'key'
|
||||||
# With mode = 'hash' we will use a simple human readable format
|
# With mode = 'hash' we will use a simple human readable format
|
||||||
|
format = "json",
|
||||||
|
|
||||||
key = "my_key" # The Redis key to be used for mode = 'key' or 'hash' (default is the node name)
|
# The Redis key to be used for mode = 'key' or 'hash' (default is the node name)
|
||||||
channel = "my_channel" # the Redis channel tp be used for mode = 'channel' (default is the node name)
|
key = "my_key"
|
||||||
|
|
||||||
mode = "key", # one of:
|
# The Redis channel tp be used for mode = 'channel' (default is the node name)
|
||||||
# - 'channel' (publish/subscribe)
|
channel = "my_channel"
|
||||||
# - 'key' (set/get)
|
|
||||||
# - 'hash' (hmset/hgetall)
|
|
||||||
|
|
||||||
notify = false # Whether or not to use Redis keyspace event notifications to get notified about updates
|
# One of:
|
||||||
|
# - 'channel' (publish/subscribe)
|
||||||
|
# - 'key' (set/get)
|
||||||
|
# - 'hash' (hmset/hgetall)
|
||||||
|
mode = "key",
|
||||||
|
|
||||||
rate = 1.0 # The polling rate when notify = false
|
# Whether or not to use Redis keyspace event notifications to get notified about updates
|
||||||
|
notify = false
|
||||||
|
|
||||||
uri = "tcp://localhost:6379/0", # The Redis connection URI
|
# The polling rate when notify = false
|
||||||
|
rate = 1.0
|
||||||
|
|
||||||
# host = "localhost" # Alternatively the connection options can be specified independently
|
# The Redis connection URI
|
||||||
# port = 6379 # Note: options here will overwrite the respective part of the URI if both are given.
|
uri = "tcp://localhost:6379/0",
|
||||||
|
|
||||||
|
# Alternatively the connection options can be specified independently
|
||||||
|
# host = "localhost"
|
||||||
|
|
||||||
|
# Note: options here will overwrite the respective part of the URI if both are given
|
||||||
|
# port = 6379
|
||||||
# db = 0
|
# db = 0
|
||||||
|
|
||||||
# path = "/var/run/redis.sock"
|
# path = "/var/run/redis.sock"
|
||||||
|
@ -32,11 +43,11 @@ nodes = {
|
||||||
# password = "guest"
|
# password = "guest"
|
||||||
|
|
||||||
# ssl = {
|
# ssl = {
|
||||||
# enabled: true
|
# enabled = true
|
||||||
# cacert: "/etc/ssl/certs/ca-certificates.crt",
|
# cacert = "/etc/ssl/certs/ca-certificates.crt",
|
||||||
# cacertdir: "/etc/ssl/certs"
|
# cacertdir = "/etc/ssl/certs"
|
||||||
# cert: "./my_cert.crt",
|
# cert = "./my_cert.crt",
|
||||||
# key, "./my_key.key"
|
# key = "./my_key.key"
|
||||||
# }
|
# }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,11 +41,15 @@ nodes = {
|
||||||
out = {
|
out = {
|
||||||
address = "127.0.0.1:12000"
|
address = "127.0.0.1:12000"
|
||||||
|
|
||||||
netem = { # Network emulation settings
|
# Network emulation settings
|
||||||
|
netem = {
|
||||||
enabled = false,
|
enabled = false,
|
||||||
|
|
||||||
delay = 100000, # Additional latency in microseconds
|
# Additional latency in microseconds
|
||||||
loss = 10 # Packet loss in percent
|
delay = 100000,
|
||||||
|
|
||||||
|
# Packet loss in percent
|
||||||
|
loss = 10
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,18 +6,23 @@ nodes = {
|
||||||
type = "shmem",
|
type = "shmem",
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
|
# Name of shared memory segment for receiving side
|
||||||
name = "sn1_in"
|
name = "sn1_in"
|
||||||
}, # Name of shared memory segment for receiving side
|
},
|
||||||
out = {
|
out = {
|
||||||
name = "sn1_in" # Name of shared memory segment for sending side
|
# Name of shared memory segment for sending side
|
||||||
|
name = "sn1_in"
|
||||||
},
|
},
|
||||||
|
|
||||||
queuelen = 1024, # Length of the queues
|
# Length of the queues
|
||||||
mode = "pthread", # We can busy-wait or use pthread condition variables for synchronizations
|
queuelen = 1024,
|
||||||
|
|
||||||
|
# We can busy-wait or use pthread condition variables for synchronizations
|
||||||
|
mode = "pthread",
|
||||||
|
|
||||||
# Execute an external process when starting the node which
|
# Execute an external process when starting the node which
|
||||||
# then starts the other side of this shared memory channel
|
# then starts the other side of this shared memory channel
|
||||||
# Usually we also pass the shmem names as parameters.
|
# Usually we also pass the shmem names as parameters
|
||||||
exec = [ "villas-shmem", "sn1_in", "sn1_out" ]
|
exec = [ "villas-shmem", "sn1_in", "sn1_out" ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,9 +6,15 @@ nodes = {
|
||||||
type = "signal.v2",
|
type = "signal.v2",
|
||||||
|
|
||||||
rate = 10.0
|
rate = 10.0
|
||||||
realtime = true, # Wait between emitting each sample
|
|
||||||
limit = 1000, # Only emit 1000 samples, then stop
|
# Wait between emitting each sample
|
||||||
monitor_missed = true # Count and warn about missed steps
|
realtime = true,
|
||||||
|
|
||||||
|
# Only emit 1000 samples, then stop
|
||||||
|
limit = 1000,
|
||||||
|
|
||||||
|
# Count and warn about missed steps
|
||||||
|
monitor_missed = true
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
signals = (
|
signals = (
|
||||||
|
|
|
@ -8,14 +8,31 @@ nodes = {
|
||||||
# One of "sine", "square", "ramp", "triangle", "random", "mixed", "counter"
|
# One of "sine", "square", "ramp", "triangle", "random", "mixed", "counter"
|
||||||
signal = [ "sine", "pulse", "square" ],
|
signal = [ "sine", "pulse", "square" ],
|
||||||
|
|
||||||
values = 3, # Number of values per sample
|
# Number of values per sample
|
||||||
amplitude = [ 1.2, 0.0, 4.0 ], # Amplitude of generated signals
|
values = 3,
|
||||||
frequency = 10, # Frequency of generated signals
|
|
||||||
stddev = 2, # Standard deviation of random signals (normal distributed)
|
# Amplitude of generated signals
|
||||||
rate = 10.0, # Sample rate
|
amplitude = [ 1.2, 0.0, 4.0 ],
|
||||||
offset = 1.0, # Constant offset
|
|
||||||
realtime = true, # Wait between emitting each sample
|
# Frequency of generated signals in Hz
|
||||||
limit = 1000, # Only emit 1000 samples, then stop
|
frequency = 10,
|
||||||
monitor_missed = true # Count and warn about missed steps
|
|
||||||
|
# Standard deviation of random signals (normal distributed)
|
||||||
|
stddev = 2,
|
||||||
|
|
||||||
|
# Sample rate in Hz
|
||||||
|
rate = 10.0,
|
||||||
|
|
||||||
|
# Constant offset
|
||||||
|
offset = 1.0,
|
||||||
|
|
||||||
|
# Wait between emitting each sample
|
||||||
|
realtime = true,
|
||||||
|
|
||||||
|
# Only emit 1000 samples, then stop
|
||||||
|
limit = 1000,
|
||||||
|
|
||||||
|
# Count and warn about missed steps
|
||||||
|
monitor_missed = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,78 +2,94 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
nodes = {
|
nodes = {
|
||||||
udp_node = { # The dictionary is indexed by the name of the node.
|
udp_node = {
|
||||||
type = "socket", # For a list of available node-types run: 'villas-node -h'
|
type = "socket",
|
||||||
vectorize = 30, # Receive and sent 30 samples per message (combining).
|
|
||||||
samplelen = 10 # The maximum number of samples this node can receive
|
|
||||||
|
|
||||||
builtin = false, # By default, all nodes will have a few builtin hooks attached to them.
|
# Receive and sent 30 samples per message (combining)
|
||||||
# When collecting statistics or measurements these are undesired.
|
vectorize = 30,
|
||||||
|
|
||||||
### The following settings are specific to the socket node-type!! ###
|
# The maximum number of samples this node can receive
|
||||||
|
samplelen = 10
|
||||||
|
|
||||||
layer = "udp", # Layer can be one of:
|
# By default, all nodes will have a few builtin hooks attached to them
|
||||||
# - udp Send / receive L4 UDP packets
|
# When collecting statistics or measurements these are undesired
|
||||||
# - ip Send / receive L3 IP packets
|
builtin = false,
|
||||||
# - eth Send / receive L2 Ethernet frames (IEEE802.3)
|
|
||||||
|
|
||||||
format = "gtnet", # For a list of available node-types run: 'villas-node -h'
|
# Layer can be one of:
|
||||||
|
# - udp Send / receive L4 UDP packets
|
||||||
|
# - ip Send / receive L3 IP packets
|
||||||
|
# - eth Send / receive L2 Ethernet frames (IEEE802.3)
|
||||||
|
layer = "udp",
|
||||||
|
|
||||||
|
|
||||||
|
format = "gtnet",
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "127.0.0.1:12001" # This node only received messages on this IP:Port pair
|
# This node only received messages on this IP:Port pair
|
||||||
|
address = "127.0.0.1:12001"
|
||||||
|
|
||||||
verify_source = true # Check if source address of incoming packets matches the remote address.
|
# Check if source address of incoming packets matches the remote address
|
||||||
|
verify_source = true
|
||||||
},
|
},
|
||||||
out = {
|
out = {
|
||||||
address = "127.0.0.1:12000", # This node sends outgoing messages to this IP:Port pair
|
# This node sends outgoing messages to this IP:Port pair
|
||||||
|
address = "127.0.0.1:12000",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Raw Ethernet frames
|
||||||
ethernet_node = {
|
ethernet_node = {
|
||||||
type = "socket", # See above.
|
type = "socket",
|
||||||
|
|
||||||
### The following settings are specific to the socket node-type!! ###
|
layer = "eth",
|
||||||
|
|
||||||
layer = "eth",
|
|
||||||
in = {
|
in = {
|
||||||
address = "12:34:56:78:90:AB%lo:12002"
|
address = "12:34:56:78:90:AB%lo:12002"
|
||||||
},
|
},
|
||||||
out = {
|
out = {
|
||||||
address = "12:34:56:78:90:AB%lo:12002"
|
address = "12:34:56:78:90:AB%lo:12002"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
# Datagram UNIX domain sockets require two endpoints
|
||||||
unix_domain_node = {
|
unix_domain_node = {
|
||||||
type = "socket",
|
type = "socket",
|
||||||
layer = "unix", # Datagram UNIX domain sockets require two endpoints
|
layer = "unix",
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "/var/run/villas-node/node.sock"
|
address = "/var/run/villas-node/node.sock"
|
||||||
},
|
},
|
||||||
out = {
|
out = {
|
||||||
address = "/var/run/villas-node/client.sock"
|
address = "/var/run/villas-node/client.sock"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
udp_multicast_node = { # The dictionary is indexed by the name of the node.
|
udp_multicast_node = {
|
||||||
type = "socket", # For a list of available node-types run: 'villas-node -h'
|
type = "socket",
|
||||||
|
|
||||||
### The following settings are specific to the socket node-type!! ###
|
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "127.0.0.1:12001" # This node only received messages on this IP:Port pair
|
# This node only received messages on this IP:Port pair
|
||||||
|
address = "127.0.0.1:12001"
|
||||||
|
|
||||||
multicast = { # IGMP multicast is only support for layer = (ip|udp)
|
# IGMP multicast is only support for layer = (ip|udp)
|
||||||
enabled = true,
|
multicast = {
|
||||||
|
enabled = true,
|
||||||
|
|
||||||
group = "224.1.2.3", # The multicast group. Must be within 224.0.0.0/4
|
# The multicast group. Must be within 224.0.0.0/4
|
||||||
interface = "1.2.3.4", # The IP address of the interface which should receive multicast packets.
|
group = "224.1.2.3",
|
||||||
ttl = 128, # The time to live for outgoing multicast packets.
|
|
||||||
loop = false, # Whether or not to loopback outgoing multicast packets to the local host.
|
# The IP address of the interface which should receive multicast packets
|
||||||
|
interface = "1.2.3.4",
|
||||||
|
|
||||||
|
# The time to live for outgoing multicast packets
|
||||||
|
ttl = 128,
|
||||||
|
|
||||||
|
# Whether or not to loopback outgoing multicast packets to the local host
|
||||||
|
loop = false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
out = {
|
out = {
|
||||||
address = "127.0.0.1:12000", # This node sends outgoing messages to this IP:Port pair
|
# This node sends outgoing messages to this IP:Port pair
|
||||||
|
address = "127.0.0.1:12000",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,44 +2,50 @@
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
nodes = {
|
nodes = {
|
||||||
rtt_node = { # The "test_rtt" node-type runs a set of test cases for varying
|
|
||||||
type = "test_rtt", # sending rates, number of values and generates statistics.
|
|
||||||
cooldown = 2, # The cooldown time between each test case in seconds
|
|
||||||
|
|
||||||
prefix = "test_rtt_%y-%m-%d_%H-%M-%S", # An optional prefix in the filename
|
# The "test_rtt" node-type runs a set of test cases for varying
|
||||||
output = "./results", # The output directory for all results
|
# sending rates, number of values and generates statistics
|
||||||
# The results of each test case will be written to a separate file.
|
# The cooldown time between each test case in seconds
|
||||||
format = "villas.human", # The output format of the result files.
|
rtt_node = {
|
||||||
|
type = "test_rtt",
|
||||||
|
cooldown = 2,
|
||||||
|
|
||||||
cases = ( # The list of test cases
|
# An optional prefix in the filename
|
||||||
# Each test case can specify a single or an array of rates and values
|
prefix = "test_rtt_%y-%m-%d_%H-%M-%S",
|
||||||
# If arrays are used, we will generate multiple test cases with all
|
|
||||||
# possible combinations
|
# The output directory for all results
|
||||||
|
# The results of each test case will be written to a separate file
|
||||||
|
output = "./results",
|
||||||
|
|
||||||
|
# The output format of the result files
|
||||||
|
format = "villas.human",
|
||||||
|
|
||||||
|
# The list of test cases
|
||||||
|
# Each test case can specify a single or an array of rates and values
|
||||||
|
# If arrays are used, we will generate multiple test cases with all
|
||||||
|
# possible combinations
|
||||||
|
cases = (
|
||||||
{
|
{
|
||||||
rates = 55.0, # The sending rate in Hz
|
# The sending rate in Hz
|
||||||
values = [ 5, 10, 20], # The number of values which should be send in each sample
|
rates = 55.0,
|
||||||
limit = 100 # The number of samples which should be send during this test case
|
|
||||||
|
# The number of values which should be send in each sample
|
||||||
|
values = [ 5, 10, 20],
|
||||||
|
|
||||||
|
# The number of samples which should be send during this test case
|
||||||
|
limit = 100
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
rates = [ 5, 10, 30 ], # An array of rates in Hz
|
# An array of sending rates in Hz
|
||||||
values = [ 2, 10, 20 ],# An array of number of values
|
rates = [ 5, 10, 30 ],
|
||||||
duration = 5 # The duration of the test case in seconds (depending on the sending rate)
|
|
||||||
|
# An array of number of values
|
||||||
|
values = [ 2, 10, 20 ],
|
||||||
|
|
||||||
|
# The duration of the test case in seconds (depending on the sending rate)
|
||||||
|
duration = 5
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
paths = (
|
|
||||||
{
|
|
||||||
# Simple loopback path to test the node
|
|
||||||
in = "rtt_node"
|
|
||||||
out = "rtt_node"
|
|
||||||
|
|
||||||
# hooks = (
|
|
||||||
# {
|
|
||||||
# type = "print"
|
|
||||||
# }
|
|
||||||
# )
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
|
|
||||||
nodes = {
|
nodes = {
|
||||||
unix_domain_node = {
|
unix_domain_node = {
|
||||||
type = "socket",
|
type = "socket",
|
||||||
layer = "unix",
|
layer = "unix",
|
||||||
format = "protobuf",
|
format = "protobuf",
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "/var/run/villas-node.server.sock"
|
address = "/var/run/villas-node.server.sock"
|
||||||
|
|
|
@ -13,16 +13,16 @@ nodes = {
|
||||||
# Address to the websocket signaling server
|
# Address to the websocket signaling server
|
||||||
server = "https://villas.k8s.eonerc.rwth-aachen.de/ws/signaling"
|
server = "https://villas.k8s.eonerc.rwth-aachen.de/ws/signaling"
|
||||||
|
|
||||||
# Limit the number of times a channel will retransmit data if not successfully delivered.
|
# Limit the number of times a channel will retransmit data if not successfully delivered
|
||||||
# This value may be clamped if it exceeds the maximum value supported.
|
# This value may be clamped if it exceeds the maximum value supported
|
||||||
max_retransmits = 0
|
max_retransmits = 0
|
||||||
|
|
||||||
# Number of seconds to wait for a WebRTC connection before proceeding the start
|
# Number of seconds to wait for a WebRTC connection before proceeding the start
|
||||||
# of VILLASnode. Mainly used for testing
|
# of VILLASnode. Mainly used for testing
|
||||||
wait_seconds = 10 # in seconds
|
wait_seconds = 10 # In seconds
|
||||||
|
|
||||||
# Indicates if data is allowed to be delivered out of order.
|
# Indicates if data is allowed to be delivered out of order
|
||||||
# The default value of false, does not make guarantees that data will be delivered in order.
|
# The default value of false, does not make guarantees that data will be delivered in order
|
||||||
ordered = false
|
ordered = false
|
||||||
|
|
||||||
# Setting for Interactive Connectivity Establishment
|
# Setting for Interactive Connectivity Establishment
|
||||||
|
|
|
@ -5,27 +5,38 @@ nodes = {
|
||||||
zeromq_node = {
|
zeromq_node = {
|
||||||
type = "zeromq"
|
type = "zeromq"
|
||||||
|
|
||||||
pattern = "pubsub" # The ZeroMQ pattern. One of pubsub, radiodish
|
# The ZeroMQ pattern. One of pubsub, radiodish
|
||||||
ipv6 = false # Enable IPv6 support
|
pattern = "pubsub"
|
||||||
|
|
||||||
curve = { # Z85 encoded Curve25519 keys
|
# Enable IPv6 support
|
||||||
|
ipv6 = false
|
||||||
|
|
||||||
|
# Z85 encoded Curve25519 keys
|
||||||
|
curve = {
|
||||||
enabled = false,
|
enabled = false,
|
||||||
public_key = "Veg+Q.V-c&1k>yVh663gQ^7fL($y47gybE-nZP1L"
|
public_key = "Veg+Q.V-c&1k>yVh663gQ^7fL($y47gybE-nZP1L"
|
||||||
secret_key = "HPY.+mFuB[jGs@(zZr6$IZ1H1dZ7Ji*j>oi@O?Pc"
|
secret_key = "HPY.+mFuB[jGs@(zZr6$IZ1H1dZ7Ji*j>oi@O?Pc"
|
||||||
}
|
}
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
subscribe = "tcp://*:1234" # The subscribe endpoint.
|
# The subscribe endpoint
|
||||||
# See http://api.zeromq.org/2-1:zmq-bind for details.
|
# See http://api.zeromq.org/2-1:zmq-bind for details
|
||||||
filter = "ab184" # A filter which is prefix matched for each received msg
|
subscribe = "tcp://*:1234"
|
||||||
|
|
||||||
|
# A filter which is prefix matched for each received msg
|
||||||
|
filter = "ab184"
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
publish = [ # The publish endpoints.
|
# The publish endpoints
|
||||||
"tcp://localhost:1235", # See http://api.zeromq.org/2-1:zmq-connect for details.
|
# See http://api.zeromq.org/2-1:zmq-connect for details
|
||||||
|
publish = [
|
||||||
|
|
||||||
|
"tcp://localhost:1235",
|
||||||
"tcp://localhost:12444"
|
"tcp://localhost:12444"
|
||||||
]
|
]
|
||||||
|
|
||||||
filter = "ab184" # A prefix which is pre-pended to each message.
|
# A prefix which is pre-pended to each message
|
||||||
|
filter = "ab184"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,19 +3,29 @@
|
||||||
|
|
||||||
paths = (
|
paths = (
|
||||||
{
|
{
|
||||||
enabled = true, # Enable this path (default: true)
|
# Enable this path (default: true)
|
||||||
reverse = true, # Setup a path in the reverse direction as well (default: false)
|
enabled = true,
|
||||||
|
|
||||||
in = "udp_node", # Name of the node we receive messages from (see node dictionary)
|
# Setup a path in the reverse direction as well (default: false)
|
||||||
out = "ethernet_node", # Name of the node we send messages to.
|
reverse = true,
|
||||||
|
|
||||||
rate = 10.0 # A rate at which this path will be triggered if no input node receives new data
|
# Name of the node we receive messages from (see node dictionary)
|
||||||
|
in = "udp_node",
|
||||||
|
|
||||||
|
# Name of the node we send messages to
|
||||||
|
out = "ethernet_node",
|
||||||
|
|
||||||
|
# A rate at which this path will be triggered if no input node receives new data
|
||||||
|
rate = 10.0
|
||||||
|
|
||||||
queuelen = 128,
|
queuelen = 128,
|
||||||
|
|
||||||
mode = "all", # When this path should be triggered
|
# When this path should be triggered
|
||||||
# - "all": After all masked input nodes received new data
|
# - "all": After all masked input nodes received new data
|
||||||
# - "any": After any of the masked input nodes received new data
|
# - "any": After any of the masked input nodes received new data
|
||||||
mask = [ "udp_node" ], # A list of input nodes which will trigger the path
|
mode = "all",
|
||||||
|
|
||||||
|
# A list of input nodes which will trigger the path
|
||||||
|
mask = [ "udp_node" ],
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
#* GTNET-SKT test configuration.
|
#* GTNET-SKT test configuration
|
||||||
#
|
|
||||||
# The syntax of this file is similar to JSON.
|
|
||||||
# A detailed description of the format can be found here:
|
|
||||||
# http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
|
|
||||||
#
|
#
|
||||||
# Author: Steffen Vogel <post@steffenvogel.de>
|
# Author: Steffen Vogel <post@steffenvogel.de>
|
||||||
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
||||||
|
@ -18,7 +14,7 @@ nodes = {
|
||||||
format = "gtnet"
|
format = "gtnet"
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "*:12000" # Local ip:port, use '*' for random port
|
address = "*:12000"
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
address = "134.130.169.80:12001"
|
address = "134.130.169.80:12001"
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
# GTNET-SKT test configuration.
|
# GTNET-SKT test configuration
|
||||||
#
|
|
||||||
# The syntax of this file is similar to JSON.
|
|
||||||
# A detailed description of the format can be found here:
|
|
||||||
# http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
|
|
||||||
#
|
#
|
||||||
# Author: Steffen Vogel <post@steffenvogel.de>
|
# Author: Steffen Vogel <post@steffenvogel.de>
|
||||||
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
||||||
|
@ -18,7 +14,7 @@ nodes = {
|
||||||
format = "villas.binary"
|
format = "villas.binary"
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "192.168.88.128:12002" # Local ip:port, use '*' for random port
|
address = "192.168.88.128:12002"
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
address = "192.168.88.129:12001"
|
address = "192.168.88.129:12001"
|
||||||
|
@ -26,7 +22,7 @@ nodes = {
|
||||||
|
|
||||||
netem = {
|
netem = {
|
||||||
enabled = false
|
enabled = false
|
||||||
delay = 1000000 # In micro seconds!
|
delay = 1000000
|
||||||
jitter = 300000
|
jitter = 300000
|
||||||
distribution = "normal"
|
distribution = "normal"
|
||||||
}
|
}
|
||||||
|
@ -37,7 +33,7 @@ nodes = {
|
||||||
format = "villas.binary"
|
format = "villas.binary"
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "*:12004" # Local ip:port, use '*' for random port
|
address = "*:12004"
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
address = "192.168.88.129:12005"
|
address = "192.168.88.129:12005"
|
||||||
|
@ -47,8 +43,8 @@ nodes = {
|
||||||
|
|
||||||
paths = (
|
paths = (
|
||||||
{
|
{
|
||||||
in = "node1" # Name of the node we listen to (see above)
|
in = "node1"
|
||||||
out = "node1" # And we loop back to the origin
|
out = "node1"
|
||||||
|
|
||||||
hooks = (
|
hooks = (
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
# GTNET-SKT test configuration.
|
# GTNET-SKT test configuration
|
||||||
#
|
|
||||||
# The syntax of this file is similar to JSON.
|
|
||||||
# A detailed description of the format can be found here:
|
|
||||||
# http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
|
|
||||||
#
|
#
|
||||||
# Author: Steffen Vogel <post@steffenvogel.de>
|
# Author: Steffen Vogel <post@steffenvogel.de>
|
||||||
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
||||||
|
@ -18,7 +14,7 @@ nodes = {
|
||||||
format = "villas.binary"
|
format = "villas.binary"
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "192.168.88.128:12002" # Local ip:port, use '*' for random port
|
address = "192.168.88.128:12002"
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
address = "192.168.88.129:12001"
|
address = "192.168.88.129:12001"
|
||||||
|
@ -26,7 +22,7 @@ nodes = {
|
||||||
|
|
||||||
netem = {
|
netem = {
|
||||||
enabled = false
|
enabled = false
|
||||||
delay = 1000000 # In micro seconds!
|
delay = 1000000
|
||||||
jitter = 300000
|
jitter = 300000
|
||||||
distribution = "normal"
|
distribution = "normal"
|
||||||
}
|
}
|
||||||
|
@ -37,7 +33,7 @@ nodes = {
|
||||||
format = "villas.binary"
|
format = "villas.binary"
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "192.168.88.128:12004" # Local ip:port, use '*' for random port
|
address = "192.168.88.128:12004"
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
address = "192.168.88.129:12001"
|
address = "192.168.88.129:12001"
|
||||||
|
@ -47,8 +43,8 @@ nodes = {
|
||||||
|
|
||||||
paths = (
|
paths = (
|
||||||
{
|
{
|
||||||
in = "node1" # Name of the node we listen to (see above)
|
in = "node1"
|
||||||
out = "node2" # And we loop back to the origin
|
out = "node2"
|
||||||
|
|
||||||
hooks = (
|
hooks = (
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
# GTNET-SKT test configuration.
|
# GTNET-SKT test configuration
|
||||||
#
|
|
||||||
# The syntax of this file is similar to JSON.
|
|
||||||
# A detailed description of the format can be found here:
|
|
||||||
# http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
|
|
||||||
#
|
#
|
||||||
# Author: Steffen Vogel <post@steffenvogel.de>
|
# Author: Steffen Vogel <post@steffenvogel.de>
|
||||||
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
||||||
|
@ -19,7 +15,7 @@ nodes = {
|
||||||
format = "gtnet"
|
format = "gtnet"
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "192.168.88.128:12002" # Local ip:port, use '*' for random port
|
address = "192.168.88.128:12002"
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
address = "192.168.88.129:12001"
|
address = "192.168.88.129:12001"
|
||||||
|
@ -27,7 +23,7 @@ nodes = {
|
||||||
|
|
||||||
netem = {
|
netem = {
|
||||||
enabled = false
|
enabled = false
|
||||||
delay = 1000000 # In micro seconds!
|
delay = 1000000
|
||||||
jitter = 300000
|
jitter = 300000
|
||||||
distribution = "normal"
|
distribution = "normal"
|
||||||
}
|
}
|
||||||
|
@ -38,7 +34,7 @@ nodes = {
|
||||||
format = "gtnet"
|
format = "gtnet"
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "192.168.88.128:12004" # Local ip:port, use '*' for random port
|
address = "192.168.88.128:12004"
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
address = "192.168.88.129:12001"
|
address = "192.168.88.129:12001"
|
||||||
|
@ -48,8 +44,8 @@ nodes = {
|
||||||
|
|
||||||
paths = (
|
paths = (
|
||||||
{
|
{
|
||||||
in = "node1" # Name of the node we listen to (see above)
|
in = "node1"
|
||||||
out = "node2" # And we loop back to the origin
|
out = "node2"
|
||||||
|
|
||||||
hooks = (
|
hooks = (
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
# GTNET-SKT test configuration.
|
# GTNET-SKT test configuration
|
||||||
#
|
|
||||||
# The syntax of this file is similar to JSON.
|
|
||||||
# A detailed description of the format can be found here:
|
|
||||||
# http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
|
|
||||||
#
|
#
|
||||||
# Author: Steffen Vogel <post@steffenvogel.de>
|
# Author: Steffen Vogel <post@steffenvogel.de>
|
||||||
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
||||||
|
@ -19,7 +15,7 @@ nodes = {
|
||||||
format = "gtnet"
|
format = "gtnet"
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "134.130.169.31:12002" # Local ip:port, use '*' for random port
|
address = "134.130.169.31:12002"
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
address = "134.130.169.98:12001"
|
address = "134.130.169.98:12001"
|
||||||
|
@ -27,7 +23,7 @@ nodes = {
|
||||||
|
|
||||||
netem = {
|
netem = {
|
||||||
enabled = false
|
enabled = false
|
||||||
delay = 1000000 # In micro seconds!
|
delay = 1000000
|
||||||
jitter = 300000
|
jitter = 300000
|
||||||
distribution = "normal"
|
distribution = "normal"
|
||||||
}
|
}
|
||||||
|
@ -38,7 +34,7 @@ nodes = {
|
||||||
format = "gtnet"
|
format = "gtnet"
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "192.168.88.128:12004" # Local ip:port, use '*' for random port
|
address = "192.168.88.128:12004"
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
address = "192.168.88.129:12001"
|
address = "192.168.88.129:12001"
|
||||||
|
@ -48,8 +44,8 @@ nodes = {
|
||||||
|
|
||||||
paths = (
|
paths = (
|
||||||
{
|
{
|
||||||
in = "node1", # Name of the node we listen to (see above)
|
in = "node1",
|
||||||
out = "node1", # And we loop back to the origin
|
out = "node1",
|
||||||
|
|
||||||
hooks = (
|
hooks = (
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
# GTNET-SKT test configuration.
|
# GTNET-SKT test configuration
|
||||||
#
|
|
||||||
# The syntax of this file is similar to JSON.
|
|
||||||
# A detailed description of the format can be found here:
|
|
||||||
# http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
|
|
||||||
#
|
#
|
||||||
# Author: Steffen Vogel <post@steffenvogel.de>
|
# Author: Steffen Vogel <post@steffenvogel.de>
|
||||||
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
||||||
|
@ -22,7 +18,8 @@ nodes = {
|
||||||
}
|
}
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "134.130.169.31:12002" # Local ip:port, use '*' for random port
|
# Local ip:port, use '*' for random port
|
||||||
|
address = "134.130.169.31:12002"
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
address = "134.130.169.98:12001"
|
address = "134.130.169.98:12001"
|
||||||
|
@ -30,7 +27,7 @@ nodes = {
|
||||||
|
|
||||||
netem = {
|
netem = {
|
||||||
enabled = false
|
enabled = false
|
||||||
delay = 1000000 # In micro seconds!
|
delay = 1000000 # In micro seconds!
|
||||||
jitter = 300000
|
jitter = 300000
|
||||||
distribution = "normal"
|
distribution = "normal"
|
||||||
}
|
}
|
||||||
|
@ -41,7 +38,8 @@ nodes = {
|
||||||
format = "gtnet"
|
format = "gtnet"
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "192.168.88.128:12004" # Local ip:port, use '*' for random port
|
# Local ip:port, use '*' for random port
|
||||||
|
address = "192.168.88.128:12004"
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
address = "192.168.88.129:12001"
|
address = "192.168.88.129:12001"
|
||||||
|
@ -51,8 +49,11 @@ nodes = {
|
||||||
|
|
||||||
paths = (
|
paths = (
|
||||||
{
|
{
|
||||||
in = "node1" # Name of the node we listen to (see above)
|
# Name of the node we listen to (see above)
|
||||||
out = "node1" # And we loop back to the origin
|
in = "node1"
|
||||||
|
|
||||||
|
# And we loop back to the origin
|
||||||
|
out = "node1"
|
||||||
|
|
||||||
hooks = (
|
hooks = (
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# This is an example for a minimal loopback configuration.
|
# This is an example for a minimal loopback configuration
|
||||||
#
|
#
|
||||||
# All messages will be sent back to the origin using UDP packets.
|
# All messages will be sent back to the origin using UDP packets.
|
||||||
#
|
#
|
||||||
|
@ -38,7 +38,7 @@ nodes = {
|
||||||
}
|
}
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "134.130.169.31:12002" # Local ip:port, use '*' for random port
|
address = "134.130.169.31:12002"
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
address = "134.130.169.98:12001"
|
address = "134.130.169.98:12001"
|
||||||
|
@ -46,7 +46,7 @@ nodes = {
|
||||||
|
|
||||||
netem = {
|
netem = {
|
||||||
enabled = false
|
enabled = false
|
||||||
delay = 1000000 # In micro seconds!
|
delay = 1000000
|
||||||
jitter = 300000
|
jitter = 300000
|
||||||
distribution = "normal"
|
distribution = "normal"
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ nodes = {
|
||||||
}
|
}
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "134.130.169.31:12004", # Local ip:port, use '*' for random port
|
address = "134.130.169.31:12004",
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
address = "134.130.169.99:12003",
|
address = "134.130.169.99:12003",
|
||||||
|
@ -69,8 +69,8 @@ nodes = {
|
||||||
|
|
||||||
paths = (
|
paths = (
|
||||||
{
|
{
|
||||||
in = "node1" # Name of the node we listen to (see above)
|
in = "node1"
|
||||||
out = "node1" # And we loop back to the origin
|
out = "node1"
|
||||||
hooks = (
|
hooks = (
|
||||||
{
|
{
|
||||||
type = "print"
|
type = "print"
|
||||||
|
|
|
@ -8,10 +8,10 @@ nodes = {
|
||||||
rpi-1 = {
|
rpi-1 = {
|
||||||
type = "socket"
|
type = "socket"
|
||||||
layer = "udp"
|
layer = "udp"
|
||||||
format = "gtnet" # pre-built format to communicate in RTDS GTNET-SKT payload
|
format = "gtnet" # Pre-built format to communicate in RTDS GTNET-SKT payload
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "*:12005" # villas node machine IP and port number
|
address = "*:12005" # VILLASnode machine IP and port number
|
||||||
|
|
||||||
signals = {
|
signals = {
|
||||||
count = 8
|
count = 8
|
||||||
|
@ -26,16 +26,16 @@ nodes = {
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
out = {
|
out = {
|
||||||
address = "192.168.0.5:12005" # remote machine IP and port number
|
address = "192.168.0.5:12005" # Remote machine IP and port number
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
rpi-2 = {
|
rpi-2 = {
|
||||||
type = "socket"
|
type = "socket"
|
||||||
layer = "udp"
|
layer = "udp"
|
||||||
format = "gtnet" # pre-built format to communicate in RTDS GTNET-SKT payload
|
format = "gtnet" # Pre-built format to communicate in RTDS GTNET-SKT payload
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "*:12006" # villas node machine IP and port number
|
address = "*:12006" # VILLASnode machine IP and port number
|
||||||
|
|
||||||
signals = {
|
signals = {
|
||||||
count = 8
|
count = 8
|
||||||
|
@ -50,7 +50,7 @@ nodes = {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
address = "192.168.0.6:12006" # remote machine IP and port number
|
address = "192.168.0.6:12006" # Remote machine IP and port number
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
rtds-1 = {
|
rtds-1 = {
|
||||||
|
@ -59,7 +59,7 @@ nodes = {
|
||||||
format = "gtnet"
|
format = "gtnet"
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "*:12083" # villas node machine IP and port number
|
address = "*:12083" # VILLASnode machine IP and port number
|
||||||
|
|
||||||
signals = {
|
signals = {
|
||||||
count = 8
|
count = 8
|
||||||
|
@ -74,7 +74,7 @@ nodes = {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
address = "192.168.0.4:12083" # remote machine IP and port number
|
address = "192.168.0.4:12083" # Remote machine IP and port number
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,8 +18,8 @@ paths = (
|
||||||
# and set reverse = true
|
# and set reverse = true
|
||||||
# Example:
|
# Example:
|
||||||
# {
|
# {
|
||||||
# in = [ "rpi-1" ],
|
# in = [ "rpi-1" ],
|
||||||
# out = [ "rtds-1" ],
|
# out = [ "rtds-1" ],
|
||||||
# reverse = true
|
# reverse = true
|
||||||
# }
|
# }
|
||||||
)
|
)
|
||||||
|
|
|
@ -71,7 +71,7 @@ paths = (
|
||||||
reverse = false,
|
reverse = false,
|
||||||
|
|
||||||
# The mode of a path determines when the path is triggered
|
# The mode of a path determines when the path is triggered
|
||||||
# and forwarding samples to its destination nodes.
|
# and forwarding samples to its destination nodes
|
||||||
mode = "any",
|
mode = "any",
|
||||||
|
|
||||||
# List of nodes which trigger the path
|
# List of nodes which trigger the path
|
||||||
|
|
|
@ -14,31 +14,31 @@ nodes = {
|
||||||
address = "134.130.169.31:12000"
|
address = "134.130.169.31:12000"
|
||||||
|
|
||||||
signals = (
|
signals = (
|
||||||
{ name="trigger", type="integer" },
|
{ name="trigger", type="integer" },
|
||||||
{ name="if1_tx_phA_dp0_mag", type="float" },
|
{ name="if1_tx_phA_dp0_mag", type="float" },
|
||||||
{ name="if1_tx_phA_dp0_phase", type="float" },
|
{ name="if1_tx_phA_dp0_phase", type="float" },
|
||||||
{ name="if1_tx_phA_dp1_mag", type="float" },
|
{ name="if1_tx_phA_dp1_mag", type="float" },
|
||||||
{ name="if1_tx_phA_dp1_phase", type="float" },
|
{ name="if1_tx_phA_dp1_phase", type="float" },
|
||||||
{ name="if1_tx_phA_dp2_mag", type="float" },
|
{ name="if1_tx_phA_dp2_mag", type="float" },
|
||||||
{ name="if1_tx_phA_dp2_phase", type="float" },
|
{ name="if1_tx_phA_dp2_phase", type="float" },
|
||||||
{ name="if1_tx_phA_dp3_mag", type="float" },
|
{ name="if1_tx_phA_dp3_mag", type="float" },
|
||||||
{ name="if1_tx_phA_dp3_phase", type="float" },
|
{ name="if1_tx_phA_dp3_phase", type="float" },
|
||||||
{ name="if1_tx_phB_dp0_mag", type="float" },
|
{ name="if1_tx_phB_dp0_mag", type="float" },
|
||||||
{ name="if1_tx_phB_dp0_phase", type="float" },
|
{ name="if1_tx_phB_dp0_phase", type="float" },
|
||||||
{ name="if1_tx_phB_dp1_mag", type="float" },
|
{ name="if1_tx_phB_dp1_mag", type="float" },
|
||||||
{ name="if1_tx_phB_dp1_phase", type="float" },
|
{ name="if1_tx_phB_dp1_phase", type="float" },
|
||||||
{ name="if1_tx_phB_dp2_mag", type="float" },
|
{ name="if1_tx_phB_dp2_mag", type="float" },
|
||||||
{ name="if1_tx_phB_dp2_phase", type="float" },
|
{ name="if1_tx_phB_dp2_phase", type="float" },
|
||||||
{ name="if1_tx_phB_dp3_mag", type="float" },
|
{ name="if1_tx_phB_dp3_mag", type="float" },
|
||||||
{ name="if1_tx_phB_dp3_phase", type="float" },
|
{ name="if1_tx_phB_dp3_phase", type="float" },
|
||||||
{ name="if1_tx_phC_dp0_mag", type="float" },
|
{ name="if1_tx_phC_dp0_mag", type="float" },
|
||||||
{ name="if1_tx_phC_dp0_phase", type="float" },
|
{ name="if1_tx_phC_dp0_phase", type="float" },
|
||||||
{ name="if1_tx_phC_dp1_mag", type="float" },
|
{ name="if1_tx_phC_dp1_mag", type="float" },
|
||||||
{ name="if1_tx_phC_dp1_phase", type="float" },
|
{ name="if1_tx_phC_dp1_phase", type="float" },
|
||||||
{ name="if1_tx_phC_dp2_mag", type="float" },
|
{ name="if1_tx_phC_dp2_mag", type="float" },
|
||||||
{ name="if1_tx_phC_dp2_phase", type="float" },
|
{ name="if1_tx_phC_dp2_phase", type="float" },
|
||||||
{ name="if1_tx_phC_dp3_mag", type="float" },
|
{ name="if1_tx_phC_dp3_mag", type="float" },
|
||||||
{ name="if1_tx_phC_dp3_phase", type="float" }
|
{ name="if1_tx_phC_dp3_phase", type="float" }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,33 +60,32 @@ nodes = {
|
||||||
address = "134.130.169.31:12001"
|
address = "134.130.169.31:12001"
|
||||||
|
|
||||||
signals = (
|
signals = (
|
||||||
{ name="trigger", type="integer" },
|
{ name="trigger", type="integer" },
|
||||||
{ name="if1_tx_phA_dp0_mag", type="float" },
|
{ name="if1_tx_phA_dp0_mag", type="float" },
|
||||||
{ name="if1_tx_phA_dp0_phase", type="float" },
|
{ name="if1_tx_phA_dp0_phase", type="float" },
|
||||||
{ name="if1_tx_phA_dp1_mag", type="float" },
|
{ name="if1_tx_phA_dp1_mag", type="float" },
|
||||||
{ name="if1_tx_phA_dp1_phase", type="float" },
|
{ name="if1_tx_phA_dp1_phase", type="float" },
|
||||||
{ name="if1_tx_phA_dp2_mag", type="float" },
|
{ name="if1_tx_phA_dp2_mag", type="float" },
|
||||||
{ name="if1_tx_phA_dp2_phase", type="float" },
|
{ name="if1_tx_phA_dp2_phase", type="float" },
|
||||||
{ name="if1_tx_phA_dp3_mag", type="float" },
|
{ name="if1_tx_phA_dp3_mag", type="float" },
|
||||||
{ name="if1_tx_phA_dp3_phase", type="float" },
|
{ name="if1_tx_phA_dp3_phase", type="float" },
|
||||||
{ name="if1_tx_phB_dp0_mag", type="float" },
|
{ name="if1_tx_phB_dp0_mag", type="float" },
|
||||||
{ name="if1_tx_phB_dp0_phase", type="float" },
|
{ name="if1_tx_phB_dp0_phase", type="float" },
|
||||||
{ name="if1_tx_phB_dp1_mag", type="float" },
|
{ name="if1_tx_phB_dp1_mag", type="float" },
|
||||||
{ name="if1_tx_phB_dp1_phase", type="float" },
|
{ name="if1_tx_phB_dp1_phase", type="float" },
|
||||||
{ name="if1_tx_phB_dp2_mag", type="float" },
|
{ name="if1_tx_phB_dp2_mag", type="float" },
|
||||||
{ name="if1_tx_phB_dp2_phase", type="float" },
|
{ name="if1_tx_phB_dp2_phase", type="float" },
|
||||||
{ name="if1_tx_phB_dp3_mag", type="float" },
|
{ name="if1_tx_phB_dp3_mag", type="float" },
|
||||||
{ name="if1_tx_phB_dp3_phase", type="float" },
|
{ name="if1_tx_phB_dp3_phase", type="float" },
|
||||||
{ name="if1_tx_phC_dp0_mag", type="float" },
|
{ name="if1_tx_phC_dp0_mag", type="float" },
|
||||||
{ name="if1_tx_phC_dp0_phase", type="float" },
|
{ name="if1_tx_phC_dp0_phase", type="float" },
|
||||||
{ name="if1_tx_phC_dp1_mag", type="float" },
|
{ name="if1_tx_phC_dp1_mag", type="float" },
|
||||||
{ name="if1_tx_phC_dp1_phase", type="float" },
|
{ name="if1_tx_phC_dp1_phase", type="float" },
|
||||||
{ name="if1_tx_phC_dp2_mag", type="float" },
|
{ name="if1_tx_phC_dp2_mag", type="float" },
|
||||||
{ name="if1_tx_phC_dp2_phase", type="float" },
|
{ name="if1_tx_phC_dp2_phase", type="float" },
|
||||||
{ name="if1_tx_phC_dp3_mag", type="float" },
|
{ name="if1_tx_phC_dp3_mag", type="float" },
|
||||||
{ name="if1_tx_phC_dp3_phase", type="float" }
|
{ name="if1_tx_phC_dp3_phase", type="float" }
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
out = {
|
out = {
|
||||||
|
@ -107,15 +106,15 @@ nodes = {
|
||||||
address = "134.130.169.31:12002"
|
address = "134.130.169.31:12002"
|
||||||
|
|
||||||
signals = (
|
signals = (
|
||||||
{ name="orgn_V3phRMSintrf", type="float", unit="V" },
|
{ name="orgn_V3phRMSintrf", type="float", unit="V" },
|
||||||
{ name="orgn_Pintrf", type="float", unit="W" },
|
{ name="orgn_Pintrf", type="float", unit="W" },
|
||||||
{ name="orgn_Qintrf", type="float", unit="Var" },
|
{ name="orgn_Qintrf", type="float", unit="Var" },
|
||||||
{ name="orgn_Sintrf", type="float", unit="VA" },
|
{ name="orgn_Sintrf", type="float", unit="VA" },
|
||||||
{ name="if1_V3phRMS", type="float", unit="V" },
|
{ name="if1_V3phRMS", type="float", unit="V" },
|
||||||
{ name="if1_I3phRMS", type="float", unit="A" },
|
{ name="if1_I3phRMS", type="float", unit="A" },
|
||||||
{ name="if1_P", type="float", unit="W" },
|
{ name="if1_P", type="float", unit="W" },
|
||||||
{ name="if1_Q", type="float", unit="Var" },
|
{ name="if1_Q", type="float", unit="Var" },
|
||||||
{ name="if1_S", type="float", unit="VA" }
|
{ name="if1_S", type="float", unit="VA" }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,11 +19,11 @@ nodes = {
|
||||||
|
|
||||||
netem = {
|
netem = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
loss = 0, # in %
|
loss = 0, # In %
|
||||||
corrupt = 0, # in %
|
corrupt = 0, # In %
|
||||||
duplicate = 0, # in %
|
duplicate = 0, # In %
|
||||||
delay = 100000, # in uS
|
delay = 100000, # In uS
|
||||||
jitter = 5000, # in uS
|
jitter = 5000, # In uS
|
||||||
distribution = "normal"
|
distribution = "normal"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# This is an example for a minimal loopback configuration.
|
# This is an example for a minimal loopback configuration
|
||||||
#
|
#
|
||||||
# All messages will be sent back to the origin using UDP packets.
|
# All messages will be sent back to the origin using UDP packets.
|
||||||
#
|
#
|
||||||
|
@ -21,10 +21,6 @@
|
||||||
#
|
#
|
||||||
# $ villas pipe etc/loopback.conf node2
|
# $ villas pipe etc/loopback.conf node2
|
||||||
#
|
#
|
||||||
# The syntax of this file is similar to JSON.
|
|
||||||
# A detailed description of the format can be found here:
|
|
||||||
# http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
|
|
||||||
#
|
|
||||||
# Author: Steffen Vogel <post@steffenvogel.de>
|
# Author: Steffen Vogel <post@steffenvogel.de>
|
||||||
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
@ -35,14 +31,15 @@ nodes = {
|
||||||
layer = "udp"
|
layer = "udp"
|
||||||
|
|
||||||
in = {
|
in = {
|
||||||
address = "127.0.0.1:12000" # Local ip:port, use '*' for random port
|
# Local ip:port, use '*' for random port
|
||||||
|
address = "127.0.0.1:12000"
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
address = "127.0.0.1:12001"
|
address = "127.0.0.1:12001"
|
||||||
|
|
||||||
netem = {
|
netem = {
|
||||||
enabled = false
|
enabled = false
|
||||||
delay = 1000000 # In micro seconds!
|
delay = 1000000 # In micro seconds!
|
||||||
jitter = 300000
|
jitter = 300000
|
||||||
distribution = "normal"
|
distribution = "normal"
|
||||||
}
|
}
|
||||||
|
@ -52,7 +49,8 @@ nodes = {
|
||||||
type = "socket"
|
type = "socket"
|
||||||
layer = "udp"
|
layer = "udp"
|
||||||
in = {
|
in = {
|
||||||
address = "127.0.0.1:12001" # Local ip:port, use '*' for random port
|
# Local ip:port, use '*' for random port
|
||||||
|
address = "127.0.0.1:12001"
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
address = "127.0.0.1:12002"
|
address = "127.0.0.1:12002"
|
||||||
|
@ -62,7 +60,8 @@ nodes = {
|
||||||
type = "socket"
|
type = "socket"
|
||||||
layer = "udp"
|
layer = "udp"
|
||||||
in = {
|
in = {
|
||||||
address = "127.0.0.1:12002" # Local ip:port, use '*' for random port
|
# Local ip:port, use '*' for random port
|
||||||
|
address = "127.0.0.1:12002"
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
address = "127.0.0.1:12000"
|
address = "127.0.0.1:12000"
|
||||||
|
@ -72,7 +71,8 @@ nodes = {
|
||||||
type = "socket"
|
type = "socket"
|
||||||
layer = "udp"
|
layer = "udp"
|
||||||
in = {
|
in = {
|
||||||
address = "127.0.0.1:12003" # Local ip:port, use '*' for random port
|
# Local ip:port, use '*' for random port
|
||||||
|
address = "127.0.0.1:12003"
|
||||||
}
|
}
|
||||||
out = {
|
out = {
|
||||||
address = "127.0.0.1:12003"
|
address = "127.0.0.1:12003"
|
||||||
|
@ -82,8 +82,11 @@ nodes = {
|
||||||
|
|
||||||
paths = (
|
paths = (
|
||||||
{
|
{
|
||||||
in = "node1" # Name of the node we listen to (see above)
|
# Name of the node we listen to (see above)
|
||||||
out = "node2" # And we loop back to the origin
|
in = "node1"
|
||||||
|
|
||||||
|
# And we loop back to the origin
|
||||||
|
out = "node2"
|
||||||
|
|
||||||
hooks = (
|
hooks = (
|
||||||
{
|
{
|
||||||
|
|
|
@ -12,7 +12,8 @@ nodes = {
|
||||||
enabled = false,
|
enabled = false,
|
||||||
type = "shmem",
|
type = "shmem",
|
||||||
in = {
|
in = {
|
||||||
name = "/dpsim-villas", # Name of shared memory segment for sending side
|
# Name of shared memory segment for sending side
|
||||||
|
name = "/dpsim-villas",
|
||||||
hooks = (
|
hooks = (
|
||||||
{ type = "stats" }
|
{ type = "stats" }
|
||||||
),
|
),
|
||||||
|
@ -24,15 +25,19 @@ nodes = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
out = {
|
out = {
|
||||||
name = "/villas-dpsim" # Name of shared memory segment for receiving side
|
# Name of shared memory segment for receiving side
|
||||||
|
name = "/villas-dpsim"
|
||||||
signals = {
|
signals = {
|
||||||
count = 1,
|
count = 1,
|
||||||
type = "complex"
|
type = "complex"
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
queuelen = 1024, # Length of the queues
|
# Length of the queues
|
||||||
polling = true, # We can busy-wait or use pthread condition variables for synchronizations
|
queuelen = 1024,
|
||||||
|
|
||||||
|
# We can busy-wait or use pthread condition variables for synchronizations
|
||||||
|
polling = true,
|
||||||
},
|
},
|
||||||
|
|
||||||
broker = {
|
broker = {
|
||||||
|
@ -64,16 +69,14 @@ paths = (
|
||||||
in = "sig",
|
in = "sig",
|
||||||
out = "broker",
|
out = "broker",
|
||||||
|
|
||||||
# mode: any/all
|
|
||||||
# Condition of which/how many source nodes have to receive
|
# Condition of which/how many source nodes have to receive
|
||||||
# at least one sample for the path to be triggered
|
# at least one sample for the path to be triggered
|
||||||
mode = "any",
|
mode = "any",
|
||||||
# reverse = true
|
# reverse = true
|
||||||
}
|
}
|
||||||
# ,{
|
# ,{
|
||||||
# in = "nano";
|
# in = "nano";
|
||||||
# out = "dpsim";
|
# out = "dpsim";
|
||||||
# mode = "any"
|
# mode = "any"
|
||||||
# }
|
# }
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
# Example configuration file for VILLASnode.
|
# Example configuration file for VILLASnode websocket node-type
|
||||||
#
|
|
||||||
# The syntax of this file is similar to JSON.
|
|
||||||
# A detailed description of the format can be found here:
|
|
||||||
# http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
|
|
||||||
#
|
#
|
||||||
# Author: Steffen Vogel <post@steffenvogel.de>
|
# Author: Steffen Vogel <post@steffenvogel.de>
|
||||||
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
# Example configuration file for VILLASnode.
|
# Example configuration file for VILLASnode websocket node-type
|
||||||
#
|
|
||||||
# The syntax of this file is similar to JSON.
|
|
||||||
# A detailed description of the format can be found here:
|
|
||||||
# http://www.hyperrealm.com/libconfig/libconfig_manual.html#Configuration-Files
|
|
||||||
#
|
#
|
||||||
# Author: Steffen Vogel <post@steffenvogel.de>
|
# Author: Steffen Vogel <post@steffenvogel.de>
|
||||||
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
||||||
|
|
Loading…
Add table
Reference in a new issue