Provide a mean for simulation dummy devices
create the correct descriptive data. Main use case is for unit-tests and testing custom configs. Change-Id: I3077f80cb9fdbf2443ee9da796c3749707fd2b55 Reviewed-on: https://forge.frm2.tum.de/review/16806 Tested-by: JenkinsCodeReview <bjoern_pedersen@frm2.tum.de> Reviewed-by: Enrico Faulhaber <enrico.faulhaber@frm2.tum.de>
This commit is contained in:
26
etc/sim.cfg
Normal file
26
etc/sim.cfg
Normal file
@ -0,0 +1,26 @@
|
||||
[node test config]
|
||||
description=description of the simulation sec-node
|
||||
.
|
||||
Testing simulation dummy setup.
|
||||
|
||||
[interface tcp]
|
||||
interface=tcp
|
||||
bindto=0.0.0.0
|
||||
bindport=10767
|
||||
# protocol to use for this interface
|
||||
framing=eol
|
||||
encoding=secop
|
||||
|
||||
|
||||
[device sim]
|
||||
class=secop.simulation.SimDrivable
|
||||
.description=simulation stuff
|
||||
.extra_params=param3,param4,jitter,ramp
|
||||
param3.datatype=['bool']
|
||||
param3.default=True
|
||||
param3.readonly=False
|
||||
jitter.default=1
|
||||
ramp.default=60
|
||||
value.default=123
|
||||
target.default=42
|
||||
|
Reference in New Issue
Block a user