Skip to content

Commit

Permalink
Aggiunto check vectoring al generatore
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocontrini committed May 29, 2020
1 parent bf6810c commit c69f71e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
8 changes: 8 additions & 0 deletions assets/js/hlog.js
Expand Up @@ -55,6 +55,7 @@ function run() {
window.app.hlogDS = null;
window.app.hlogUS = null;
window.app.qln = null;
window.app.vectoring = false;

let lines = this.result.split('\n');
lines.forEach((line) => {
Expand All @@ -70,6 +71,12 @@ function run() {
else if (line.startsWith('QLN Array')) {
window.app.qln = line.split(': ')[1].trim();
}
else if (line.startsWith('VDSL2 GVECT error sample packets request') && !window.app.vectoring) {
window.app.vectoring = parseInt(line.split(': ')[1].trim()) > 0;
}
else if (line.startsWith('VDSL2 GVECT error sample packets send') && !window.app.vectoring) {
window.app.vectoring = parseInt(line.split(': ')[1].trim()) > 0;
}
});

plot();
Expand All @@ -96,6 +103,7 @@ function plot() {
}

document.getElementById('profile').innerText = window.app.profile;
document.getElementById('vectoring').innerText = (window.app.vectoring ? 'Sì 🎉' : 'No');

let step = window.app.stepMapping[window.app.profile];

Expand Down
5 changes: 3 additions & 2 deletions content/hlog-generatore.md
Expand Up @@ -2,7 +2,7 @@
title: "Generatore grafici HLog/QLN"
slug: hlog/generatore
date: 2020-02-29T16:00:00+01:00
lastmod: 2020-05-21T23:00:00+02:00
lastmod: 2020-05-29T16:15:00+02:00
js: ["hlog.js"]
rawjs: ["Chart.min.js"]
scss: ["hlog.scss"]
Expand All @@ -20,7 +20,8 @@ Leggi anche la [guida]({{< relref "/posts/hlog.md" >}}) che spiega come interpre

<div id="charts">
<p>
<strong>Profilo</strong>: <span id="profile"></span>
<strong>Profilo</strong>: <span id="profile"></span><br>
<strong>Vectoring</strong>: <span id="vectoring"></span>
</p>
<p id="noUsData">
❗ <strong>Dati US mancanti</strong>
Expand Down
2 changes: 1 addition & 1 deletion content/posts/hlog.md
Expand Up @@ -28,7 +28,7 @@ Partiamo dal grafico in sé e per sé:
- Profilo 17a: 17,664 MHz (4096 portanti)
- Profilo 35b: 35,328 MHz (8192 portanti)

- sull'asse delle ordinate (le `y`) è indicata l'attenuazione del cavo espressa in decibel (dB). In FTTC il valore massimo per cui si può utilizzare una portante per allocare bit è approssimabile a circa -60 dB.
- sull'asse delle ordinate (le `y`) è indicata l'**attenuazione del cavo** espressa in decibel (dB). In FTTC il valore massimo per cui si può utilizzare una portante per allocare bit è approssimabile a circa -60 dB.

In altre parole, il grafico HLog rappresenta l'attenuazione del cavo alle diverse frequenze utilizzate.

Expand Down

0 comments on commit c69f71e

Please sign in to comment.