]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
add fdxx broadcast to network map
authorJan Michel <j.michel@gsi.de>
Tue, 15 Mar 2022 13:14:34 +0000 (14:14 +0100)
committerJan Michel <j.michel@gsi.de>
Tue, 15 Mar 2022 13:14:34 +0000 (14:14 +0100)
web/htdocs/network/map.pl

index c3668ebfd890c64b4a8f6551a952f9ad84627ad6..1c012a8e343123f3a585c90e4cff5f6db5973b2b 100755 (executable)
@@ -41,6 +41,7 @@ if($ENV{'QUERY_STRING'} =~ /getmap/) {
   my $hardware = trb_register_read(0xffff,0x42);
   my $inclHigh = trb_register_read(0xffff,0x43);
   my $addresses= trb_register_read(0xffff,0x44);
+  my $address2 = trb_register_read(0xffff,0x7001);
   my $hubbusy  = trb_register_read(0xfffe,0x81);
   my $hubrdooff  = trb_register_read(0xfffe,0xc0);
   my $portactive = trb_register_read(0xfffe,0x84);
@@ -278,7 +279,9 @@ if($ENV{'QUERY_STRING'} =~ /getmap/) {
       if($addresses->{$addr} != $ctime->{$addr}) {
         $defaddr .= sprintf("default address: %04x\nbroadcast fe%02x",$addresses->{$addr}>>16,$addresses->{$addr}&0xff);
         }
-        
+      if($address2->{$addr}) {
+        $defaddr .= sprintf("\nbroadcast fd%02x",$address2->{$addr}>>16 & 0xff);
+        }        
       printf("<tr class=\"level level%i%s%s%s\"><td title=\"%s\"><div>%i</div>0x%04x<td title=\"0x%08x\">%s<td title=\"0x%08x%08x\n%s\">%s<td title=\"0x%08x\">%s<td>%.1f°C<td>%016x&nbsp;-&nbsp;%i<td %s>%s<td %s>%s\n",
              $layer,
              ($layer!=$lastlayer?' newlevel':' oldlevel'),