To receive notifications about scheduled maintenance, please subscribe to the mailing-list You can subscribe to the mailing-list at

Commit f3ab2f55 authored by Reto Da Forno's avatar Reto Da Forno
Browse files

additional data trace parameters added

parent ddb36886
......@@ -29,6 +29,9 @@ timeformat = %%Y-%%m-%%dT%%H:%%M:%%S
starttestscript = /home/flocklab/observer/testmanagement/
stoptestscript = /home/flocklab/observer/testmanagement/
serialidscript = /home/flocklab/observer/testmanagement/ ;Path to the serial ID readout script on the observer
datatrace_loopdelay = 10 ;Loop delay [ms] used for the datatrace service on the observer
datatrace_prescaler = 16 ;Timestamp prescaler for the datatrace service on the observer
datatrace_cpuspeed = 80000000 ;Default CPU speed for the datatrace service on the observer
; Config for fetcher
......@@ -513,11 +513,15 @@ def start_test(testid, cur, cn, obsdict_key, obsdict_id):
cpuSpeed = dbgconf.xpath('d:cpuSpeed', namespaces=ns)
if cpuSpeed:
cpuSpeed = cpuSpeed[0].text.strip()
xmlblock += "\t<cpuSpeed>%s</cpuSpeed>\n" % (cpuSpeed)
cpuSpeed = flocklab.config.get("observer", "datatrace_cpuspeed") # use default CPU speed
xmlblock += "\t<cpuSpeed>%s</cpuSpeed>\n" % (cpuSpeed)
gdbPort = dbgconf.xpath('d:gdbPort', namespaces=ns)
if gdbPort:
gdbPort = gdbPort[0].text.strip()
xmlblock += "\t<gdbPort>%s</gdbPort>\n" % (gdbPort)
xmlblock += "\t<prescaler>%s</prescaler>\n" % flocklab.config.get("observer", "datatrace_prescaler")
xmlblock += "\t<loopDelay>%s</loopDelay>\n" % flocklab.config.get("observer", "datatrace_loopdelay")
dwtconfs = dbgconf.xpath('d:dataTraceConf', namespaces=ns)
for dwtconf in dwtconfs:
var = dwtconf.xpath('d:variable', namespaces=ns)[0].text.strip()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment