To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit a3649281 authored by Roman Trüb's avatar Roman Trüb

removed abandoned platforms from linktest page

parent dccccf3b
<?php <?php
/* /*
* __author__ = "Christoph Walser <walser@tik.ee.ethz.ch>" * __author__ = "Christoph Walser <walser@tik.ee.ethz.ch>"
* __copyright__ = "Copyright 2010, ETH Zurich, Switzerland, Christoph Walser" * __copyright__ = "Copyright 2010, ETH Zurich, Switzerland, Christoph Walser"
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* __version__ = "$Revision$" * __version__ = "$Revision$"
* __date__ = "$Date$" * __date__ = "$Date$"
* __id__ = "$Id$" * __id__ = "$Id$"
* __source__ = "$URL$" * __source__ = "$URL$"
*/ */
?> ?>
<?php require_once('include/layout.php');require_once('include/presets.php'); <?php require_once('include/layout.php');require_once('include/presets.php');
...@@ -76,11 +76,11 @@ var links; ...@@ -76,11 +76,11 @@ var links;
var platforms = { var platforms = {
tmote :{ name:"Tmote", rssi_thresh:6, linkchannel:26, frq:function(k){return (2405 + 5 * (k-11)) + 'MHz'}}, tmote :{ name:"Tmote", rssi_thresh:6, linkchannel:26, frq:function(k){return (2405 + 5 * (k-11)) + 'MHz'}},
tinynode: { name:"TinyNode", rssi_thresh:7, linkchannel:5, frq:function(k){return (867.075 + 0.150 * k).toFixed(3) + 'MHz'}}, tinynode: { name:"TinyNode", rssi_thresh:7, linkchannel:5, frq:function(k){return (867.075 + 0.150 * k).toFixed(3) + 'MHz'}},
opal_rf212: { name:"Opal(RF212)", rssi_thresh:1, linkchannel:0, frq:function(k){return (2405 + 5 * (k-11)) + 'MHz'}}, // opal_rf212: { name:"Opal(RF212)", rssi_thresh:1, linkchannel:0, frq:function(k){return (2405 + 5 * (k-11)) + 'MHz'}},
opal_rf230: { name:"Opal(RF230)", rssi_thresh:0, linkchannel:11, frq:function(k){return (2405 + 5 * (k-11)) + 'MHz'}}, // opal_rf230: { name:"Opal(RF230)", rssi_thresh:0, linkchannel:11, frq:function(k){return (2405 + 5 * (k-11)) + 'MHz'}},
// iris: { name:"IRIS", rssi_thresh:6, linkchannel:11, frq:function(k){return (2405 + 5 * (k-11)) + 'MHz'}}, // iris: { name:"IRIS", rssi_thresh:6, linkchannel:11, frq:function(k){return (2405 + 5 * (k-11)) + 'MHz'}},
// mica2: { name:"Mica2", rssi_thresh:0, linkchannel:0, frq:function(k){return (915.998 - 1.921 * k).toFixed(3) + 'MHz'}}, // mica2: { name:"Mica2", rssi_thresh:0, linkchannel:0, frq:function(k){return (915.998 - 1.921 * k).toFixed(3) + 'MHz'}},
cc430: { name:"CC430", rssi_thresh:0, linkchannel:0, frq:function(k){return (915.998 - 1.921 * k).toFixed(3) + 'MHz'}}, // cc430: { name:"CC430", rssi_thresh:0, linkchannel:0, frq:function(k){return (915.998 - 1.921 * k).toFixed(3) + 'MHz'}},
dpp: { name:"DPP", rssi_thresh:0, linkchannel:0, frq:function(k){return (915.998 - 1.921 * k).toFixed(3) + 'MHz'}} dpp: { name:"DPP", rssi_thresh:0, linkchannel:0, frq:function(k){return (915.998 - 1.921 * k).toFixed(3) + 'MHz'}}
}; };
...@@ -180,7 +180,7 @@ function loadTestDataId(id) { ...@@ -180,7 +180,7 @@ function loadTestDataId(id) {
platform=this; platform=this;
} }
}); });
// rssi // rssi
rssi_scans = []; rssi_scans = [];
var ch = {min:Number.POSITIVE_INFINITY , max:Number.NEGATIVE_INFINITY}; var ch = {min:Number.POSITIVE_INFINITY , max:Number.NEGATIVE_INFINITY};
...@@ -188,7 +188,7 @@ function loadTestDataId(id) { ...@@ -188,7 +188,7 @@ function loadTestDataId(id) {
var scan ={channel: parseInt($(this).attr("channel")), nodes:[]}; var scan ={channel: parseInt($(this).attr("channel")), nodes:[]};
ch.min = Math.min(ch.min, parseInt($(this).attr("channel"))); ch.min = Math.min(ch.min, parseInt($(this).attr("channel")));
ch.max = Math.max(ch.max, parseInt($(this).attr("channel"))); ch.max = Math.max(ch.max, parseInt($(this).attr("channel")));
$(this).children().each(function(){ $(this).children().each(function(){
var frq = $(this).attr('frq').split(','); var frq = $(this).attr('frq').split(',');
var id = parseInt($(this).attr('nodeid')); var id = parseInt($(this).attr('nodeid'));
...@@ -233,10 +233,10 @@ function loadTestDataId(id) { ...@@ -233,10 +233,10 @@ function loadTestDataId(id) {
setHeatMap(rssi_channel); setHeatMap(rssi_channel);
$("#heatmap").show(); $("#heatmap").show();
} }
// topology // topology
$(sensornodes).each(function(){ this.seen = false; }); $(sensornodes).each(function(){ this.seen = false; });
$("link", data).each(function(){ $("link", data).each(function(){
var src_id = parseInt($(this).attr("src")); var src_id = parseInt($(this).attr("src"));
var dest_id = parseInt($(this).attr("dest")); var dest_id = parseInt($(this).attr("dest"));
var src, dest; var src, dest;
...@@ -254,7 +254,7 @@ function loadTestDataId(id) { ...@@ -254,7 +254,7 @@ function loadTestDataId(id) {
//alert("warning, src or destination of link not found."); //alert("warning, src or destination of link not found.");
} }
else { else {
links.push({source:src, target:dest, value:Math.pow(parseFloat($(this).attr("prr"))*10,2)}); links.push({source:src, target:dest, value:Math.pow(parseFloat($(this).attr("prr"))*10,2)});
} }
}); });
setLinkMap(rssi_channel); setLinkMap(rssi_channel);
...@@ -378,21 +378,21 @@ eventSource = new Timeline.DefaultEventSource(); ...@@ -378,21 +378,21 @@ eventSource = new Timeline.DefaultEventSource();
var bandInfos = [ var bandInfos = [
Timeline.createBandInfo({ Timeline.createBandInfo({
eventSource: eventSource, eventSource: eventSource,
width: "70%", width: "70%",
intervalUnit: Timeline.DateTime.DAY, intervalUnit: Timeline.DateTime.DAY,
intervalPixels: 100, intervalPixels: 100,
theme: theme theme: theme
}), }),
Timeline.createBandInfo({ Timeline.createBandInfo({
eventSource: eventSource, eventSource: eventSource,
width: "30%", width: "30%",
intervalUnit: Timeline.DateTime.MONTH, intervalUnit: Timeline.DateTime.MONTH,
intervalPixels: 200, intervalPixels: 200,
showEventText: false, showEventText: false,
theme: theme theme: theme
}) })
]; ];
bandInfos[1].syncWith = 0; bandInfos[1].syncWith = 0;
bandInfos[1].highlight = true; bandInfos[1].highlight = true;
tl = Timeline.create(document.getElementById("timeline"), bandInfos, Timeline.HORIZONTAL); tl = Timeline.create(document.getElementById("timeline"), bandInfos, Timeline.HORIZONTAL);
......
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