mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
added config files according to docu
Signed-off-by: Alexandra <alexandra.bach@eonerc.rwth-aachen.de>
This commit is contained in:
parent
54796d11b2
commit
a1195d31fc
3 changed files with 126 additions and 37 deletions
57
etc/labs/lab18-loopback.conf
Normal file
57
etc/labs/lab18-loopback.conf
Normal file
|
@ -0,0 +1,57 @@
|
|||
nodes = {
|
||||
webrtc_loopback = {
|
||||
type = "webrtc",
|
||||
|
||||
format = "json"
|
||||
|
||||
in = {
|
||||
signals = (
|
||||
{ name = "signal", type = "float", unit = "unit" },
|
||||
{ name = "signal", type = "float", unit = "unit" },
|
||||
{ name = "signal", type = "float", unit = "unit" }
|
||||
)
|
||||
}
|
||||
|
||||
out = {
|
||||
signals = (
|
||||
{ name = "signal", type = "float", unit = "unit" },
|
||||
{ name = "signal", type = "float", unit = "unit" },
|
||||
{ name = "signal", type = "float", unit = "unit" }
|
||||
)
|
||||
}
|
||||
|
||||
# A unique session identifier which must be shared between two nodes
|
||||
session = "sessions/villas-test"
|
||||
|
||||
# Address to the websocket signaling server
|
||||
server = "https://villas.k8s.eonerc.rwth-aachen.de/ws/signaling"
|
||||
|
||||
# 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.
|
||||
max_retransmits = 0
|
||||
|
||||
# Number of seconds to wait for a WebRTC connection before proceeding the start
|
||||
# of VILLASnode. Mainly used for testing
|
||||
# wait_seconds = 10 # in seconds
|
||||
|
||||
# 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.
|
||||
ordered = false
|
||||
|
||||
# Setting for Interactive Connectivity Establishment
|
||||
# If empty then configured servers in signaling server are used.
|
||||
ice = {
|
||||
# List of STUN/TURN servers
|
||||
# servers = (
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
paths = (
|
||||
{
|
||||
in = "webrtc_loopback"
|
||||
out = "webrtc_loopback"
|
||||
|
||||
hooks = ( { type = "print" })
|
||||
}
|
||||
)
|
69
etc/labs/lab18-siggen.conf
Normal file
69
etc/labs/lab18-siggen.conf
Normal file
|
@ -0,0 +1,69 @@
|
|||
nodes = {
|
||||
webrtc_siggen = {
|
||||
type = "webrtc",
|
||||
|
||||
format = "json"
|
||||
|
||||
in = {
|
||||
signals = (
|
||||
{ name = "signal", type = "float", unit = "unit" },
|
||||
{ name = "signal", type = "float", unit = "unit" },
|
||||
{ name = "signal", type = "float", unit = "unit" }
|
||||
)
|
||||
}
|
||||
|
||||
out = {
|
||||
signals = (
|
||||
{ name = "signal", type = "float", unit = "unit" },
|
||||
{ name = "signal", type = "float", unit = "unit" },
|
||||
{ name = "signal", type = "float", unit = "unit" }
|
||||
)
|
||||
}
|
||||
|
||||
# A unique session identifier which must be shared between two nodes
|
||||
session = "villas-test"
|
||||
|
||||
# Address to the websocket signaling server
|
||||
server = "https://villas.k8s.eonerc.rwth-aachen.de/ws/signaling"
|
||||
|
||||
# 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.
|
||||
max_retransmits = 0
|
||||
|
||||
# Number of seconds to wait for a WebRTC connection before proceeding the start
|
||||
# of VILLASnode. Mainly used for testing
|
||||
wait_seconds = 10 # in seconds
|
||||
|
||||
# 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.
|
||||
ordered = false
|
||||
|
||||
# Setting for Interactive Connectivity Establishment
|
||||
# If empty then configured servers in signaling server are used.
|
||||
ice = {
|
||||
# List of STUN/TURN servers
|
||||
# servers = (
|
||||
)
|
||||
}
|
||||
}
|
||||
siggen = {
|
||||
type = "signal"
|
||||
signal = [ "sine", "pulse", "square" ]
|
||||
values = 3, # Number of values per sample
|
||||
limit = 1, # Number of samples to generate
|
||||
rate = 1, # Rate in Hz
|
||||
}
|
||||
}
|
||||
paths = (
|
||||
{
|
||||
in = "siggen"
|
||||
out = "webrtc_siggen"
|
||||
|
||||
hooks = ( { type = "print" })
|
||||
},
|
||||
{
|
||||
in = "webrtc_siggen"
|
||||
|
||||
hooks = ( { type = "print" })
|
||||
}
|
||||
)
|
|
@ -1,37 +0,0 @@
|
|||
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# docker run -v C:\Git\villas\node:/node -ti registry.git.rwth-aachen.de/acs/public/villas/node:master node /node/etc/labs/lab18.conf
|
||||
|
||||
nodes = {
|
||||
webrtc = {
|
||||
type = "webrtc"
|
||||
session = "KUCHEN"
|
||||
server = "https://villas.k8s.eonerc.rwth-aachen.de/ws/signaling"
|
||||
wait_seconds = 120
|
||||
in = {
|
||||
hooks = ("stats")
|
||||
}
|
||||
}
|
||||
|
||||
signal = {
|
||||
type = "signal.v2"
|
||||
rate = 0.2
|
||||
in = {
|
||||
signals = {
|
||||
signal = "mixed"
|
||||
count = 5
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
paths = (
|
||||
{
|
||||
in = "webrtc"
|
||||
},
|
||||
{
|
||||
in = "signal"
|
||||
out = "webrtc"
|
||||
}
|
||||
)
|
Loading…
Add table
Reference in a new issue