From 5c1a5e27b537ce34d38644781957ac3991ab0a61 Mon Sep 17 00:00:00 2001 From: Manuel Penschuck Date: Fri, 24 Oct 2014 22:33:56 +0200 Subject: [PATCH] Add Billboard control --- web/htdocs/index.pl | 1 + web/htdocs/tools/billboard.pl | 43 ++++++++++++++++++++++++++ xml-db/database/Billboard.xml | 57 +++++++++++++++++++++++++++++++++++ 3 files changed, 101 insertions(+) create mode 100755 web/htdocs/tools/billboard.pl create mode 100644 xml-db/database/Billboard.xml diff --git a/web/htdocs/index.pl b/web/htdocs/index.pl index 7812d18..120f846 100755 --- a/web/htdocs/index.pl +++ b/web/htdocs/index.pl @@ -93,6 +93,7 @@ The main documentation of the network can be found in these documents and locati
  • MVD Converter Board Controller
  • Everything else
  • Padiwa (xml-based, with thresholds) +
  • Billboard diff --git a/web/htdocs/tools/billboard.pl b/web/htdocs/tools/billboard.pl new file mode 100755 index 0000000..75246ca --- /dev/null +++ b/web/htdocs/tools/billboard.pl @@ -0,0 +1,43 @@ +#!/usr/bin/perl +if ($ENV{'SERVER_SOFTWARE'} =~ /HTTPi/i) { + print "HTTP/1.0 200 OK\n"; + print "Content-type: text/html\r\n\r\n"; + } +else { + use lib '..'; + use if (!($ENV{'SERVER_SOFTWARE'} =~ /HTTPi/i)), apacheEnv; + print "Content-type: text/html\n\n"; + } + +use CGI ':standard'; +use XML::LibXML; +use POSIX; +use CGI::Carp qw(fatalsToBrowser); + +use lib qw|../commands htdocs/commands|; +use xmlpage; + +my $page; + +$page->{title} = "CBMNet Bridge"; +$page->{link} = "../"; + +my @setup; +my $i = 0; + +$setup[$i]->{name} = "StatusAndControl"; +$setup[$i]->{cmd} = "Billboard-0xf30a-StatusAndControl"; +$setup[$i]->{period} = -1; +$setup[$i]->{address} = 1; + +$i++; +$setup[$i]->{name} = "Memory"; +$setup[$i]->{cmd} = "Billboard-0xf30a-Memory"; +$setup[$i]->{period} = -1; +$setup[$i]->{address} = 1; + +xmlpage::initPage(\@setup,$page); + +1; + + diff --git a/xml-db/database/Billboard.xml b/xml-db/database/Billboard.xml new file mode 100644 index 0000000..d3e1820 --- /dev/null +++ b/xml-db/database/Billboard.xml @@ -0,0 +1,57 @@ + + + Billboard for storing data + + + + + When reading: Length of data block used for current read-out, When writing: Commit data in memory and set length of data + + Length of data in 32-bit words + + + + Time-Out used for time-based trigger decision (Once a read-out happened use first trigger after at least the time specified) + + 0: Disable timing-based decision, otherwise: Minimal time between two events in TrbNet clock cycles + + + + + Statistics: Number of triggers with active read-out (frames sent) + + + + + Statistics: Number of words sent (incl. header) + + + + + Statistics: Number of commits issued + + + + + TrbNet clock cycles since last commit + + + + + Number of event of trigger type addr[3:0] to be skipped + + + + + + + Memory data + + + + + \ No newline at end of file -- 2.43.0