mirror of
https://github.com/DigitalDevices/octonet.git
synced 2023-10-10 13:36:52 +02:00
Added delivery system selection to system settings
This commit is contained in:
parent
bb663f14c9
commit
9bc21fbfa1
@ -6,12 +6,39 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="/style.css">
|
<link rel="stylesheet" type="text/css" href="/style.css">
|
||||||
<script type="text/javascript" src="/menu.js"></script>
|
<script type="text/javascript" src="/menu.js"></script>
|
||||||
<!-- Add included scripts here -->
|
<!-- Add included scripts here -->
|
||||||
|
<script type="text/javascript">Octoserve = false;</script>
|
||||||
|
<script type="text/javascript" src="/octoserve/serverinfo.js"></script>
|
||||||
|
|
||||||
<!-- Add page scripts here -->
|
<!-- Add page scripts here -->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
var NewSettings = null;
|
var NewSettings = null;
|
||||||
var OldSettings = null;
|
var OldSettings = null;
|
||||||
|
|
||||||
|
var SupportedDelsys = 0;
|
||||||
|
|
||||||
|
var DelSysID = new Array();
|
||||||
|
DelSysID[ 0] = "SYS_UNDEFINED";
|
||||||
|
DelSysID[ 1] = "SYS_DVBC_ANNEX_A";
|
||||||
|
DelSysID[ 2] = "SYS_DVBC_ANNEX_B";
|
||||||
|
DelSysID[ 3] = "SYS_DVBT";
|
||||||
|
DelSysID[ 4] = "SYS_DSS";
|
||||||
|
DelSysID[ 5] = "SYS_DVBS";
|
||||||
|
DelSysID[ 6] = "SYS_DVBS2";
|
||||||
|
DelSysID[ 7] = "SYS_DVBH";
|
||||||
|
DelSysID[ 8] = "SYS_ISDBT";
|
||||||
|
DelSysID[ 9] = "SYS_ISDBS";
|
||||||
|
DelSysID[10] = "SYS_ISDBC";
|
||||||
|
DelSysID[11] = "SYS_ATSC";
|
||||||
|
DelSysID[12] = "SYS_ATSCMH";
|
||||||
|
DelSysID[13] = "SYS_DTMB";
|
||||||
|
DelSysID[14] = "SYS_CMMB";
|
||||||
|
DelSysID[15] = "SYS_DAB";
|
||||||
|
DelSysID[16] = "SYS_DVBT2";
|
||||||
|
DelSysID[17] = "SYS_TURBO";
|
||||||
|
DelSysID[18] = "SYS_DVBC_ANNEX_C";
|
||||||
|
DelSysID[19] = "SYS_DVBC2";
|
||||||
|
|
||||||
var xmlhttp = new XMLHttpRequest();
|
var xmlhttp = new XMLHttpRequest();
|
||||||
var url = "/systemsettings.lua";
|
var url = "/systemsettings.lua";
|
||||||
|
|
||||||
@ -44,19 +71,19 @@ function myFunction(response)
|
|||||||
document.getElementById("QOSButton").checked = settings.vlanEnabled;
|
document.getElementById("QOSButton").checked = settings.vlanEnabled;
|
||||||
document.getElementById("TelnetButton").checked = settings.telnetEnabled;
|
document.getElementById("TelnetButton").checked = settings.telnetEnabled;
|
||||||
document.getElementById("NODMSButton").checked = settings.nodmsEnabled;
|
document.getElementById("NODMSButton").checked = settings.nodmsEnabled;
|
||||||
document.getElementById("NODVBTButton").checked = settings.nodvbtEnabled;
|
|
||||||
document.getElementById("STRICTButton").checked = settings.strictEnabled;
|
document.getElementById("STRICTButton").checked = settings.strictEnabled;
|
||||||
|
|
||||||
document.getElementById("QOSButton").disabled = false;
|
document.getElementById("QOSButton").disabled = false;
|
||||||
document.getElementById("TelnetButton").disabled = false;
|
document.getElementById("TelnetButton").disabled = false;
|
||||||
document.getElementById("NODMSButton").disabled = false;
|
document.getElementById("NODMSButton").disabled = false;
|
||||||
document.getElementById("NODVBTButton").disabled = false;
|
|
||||||
document.getElementById("STRICTButton").disabled = false;
|
document.getElementById("STRICTButton").disabled = false;
|
||||||
document.getElementById("BoxName").disabled = false;
|
document.getElementById("BoxName").disabled = false;
|
||||||
document.getElementById("MSMode").disabled = false;
|
document.getElementById("MSMode").disabled = false;
|
||||||
|
|
||||||
OldSettings = settings;
|
OldSettings = settings;
|
||||||
NewSettings = JSON.parse(response);
|
NewSettings = JSON.parse(response);
|
||||||
|
if( Octoserve )
|
||||||
|
NewSettings.DelsysMask = Octoserve.DelsysMask;
|
||||||
}
|
}
|
||||||
|
|
||||||
function SaveSettings()
|
function SaveSettings()
|
||||||
@ -88,12 +115,6 @@ function SaveSettings()
|
|||||||
param += "nodms=" + (NewSettings.nodmsEnabled?"1":"0");
|
param += "nodms=" + (NewSettings.nodmsEnabled?"1":"0");
|
||||||
}
|
}
|
||||||
|
|
||||||
if( OldSettings.nodvbtEnabled != NewSettings.nodvbtEnabled )
|
|
||||||
{
|
|
||||||
if( param != "" ) param += "&";
|
|
||||||
param += "nodvbt=" + (NewSettings.nodvbtEnabled?"1":"0");
|
|
||||||
}
|
|
||||||
|
|
||||||
if( OldSettings.MSMode != NewSettings.MSMode )
|
if( OldSettings.MSMode != NewSettings.MSMode )
|
||||||
{
|
{
|
||||||
if( param != "" ) param += "&";
|
if( param != "" ) param += "&";
|
||||||
@ -106,6 +127,17 @@ function SaveSettings()
|
|||||||
param += "strict=" + (NewSettings.strictEnabled?"1":"0");
|
param += "strict=" + (NewSettings.strictEnabled?"1":"0");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( Octoserve )
|
||||||
|
{
|
||||||
|
var DelsysMask = NewSettings.DelsysMask;
|
||||||
|
if( DelsysMask != Octoserve.DelsysMask )
|
||||||
|
{
|
||||||
|
if( DelsysMask == SupportedDelsys ) DelsysMask = 0;
|
||||||
|
if( param != "" ) param += "&";
|
||||||
|
param += "delsysmask=" + DelsysMask;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
document.getElementById("SetButton").disabled = true;
|
document.getElementById("SetButton").disabled = true;
|
||||||
if( param != "" )
|
if( param != "" )
|
||||||
{
|
{
|
||||||
@ -125,14 +157,51 @@ function ClearSettings()
|
|||||||
NewSettings.nodvbtEnabled = false;
|
NewSettings.nodvbtEnabled = false;
|
||||||
NewSettings.strictEnabled = false;
|
NewSettings.strictEnabled = false;
|
||||||
NewSettings.MSMode = "quad";
|
NewSettings.MSMode = "quad";
|
||||||
|
NewSettings.DelsysMask = 0;
|
||||||
SaveSettings();
|
SaveSettings();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ShowDelsys()
|
||||||
|
{
|
||||||
|
if( Octoserve )
|
||||||
|
{
|
||||||
|
SupportedDelsys = 0;
|
||||||
|
for(var i = 0; i < Octoserve.TunerList.length; i++ )
|
||||||
|
{
|
||||||
|
if( Octoserve.TunerList[i] )
|
||||||
|
{
|
||||||
|
SupportedDelsys = SupportedDelsys | Octoserve.TunerList[i].Type;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for(var i = 0; i < DelSysID.length; i++ )
|
||||||
|
{
|
||||||
|
var Element = document.getElementById(DelSysID[i]);
|
||||||
|
if( Element )
|
||||||
|
{
|
||||||
|
if( SupportedDelsys & (1<<i) )
|
||||||
|
{
|
||||||
|
Element.disabled = false;
|
||||||
|
Element.checked = (( Octoserve.DelsysMask & (1<<i)) != 0) || (Octoserve.DelsysMask == 0);
|
||||||
|
Element.parentElement.style.visibility = "visible";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Element.disabled = true;
|
||||||
|
Element.checked = false;
|
||||||
|
Element.parentElement.style.visibility = "hidden";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function OnLoad()
|
function OnLoad()
|
||||||
{
|
{
|
||||||
xmlhttp.open("GET", url, true);
|
xmlhttp.open("GET", url, true);
|
||||||
xmlhttp.send();
|
xmlhttp.send();
|
||||||
|
ShowDelsys();
|
||||||
}
|
}
|
||||||
|
|
||||||
function ChangeBoxName()
|
function ChangeBoxName()
|
||||||
@ -147,8 +216,6 @@ function ChangeBoxName()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function Change()
|
function Change()
|
||||||
{
|
{
|
||||||
if( NewSettings )
|
if( NewSettings )
|
||||||
@ -157,12 +224,54 @@ function Change()
|
|||||||
NewSettings.vlanEnabled = document.getElementById("QOSButton").checked;
|
NewSettings.vlanEnabled = document.getElementById("QOSButton").checked;
|
||||||
NewSettings.telnetEnabled = document.getElementById("TelnetButton").checked;
|
NewSettings.telnetEnabled = document.getElementById("TelnetButton").checked;
|
||||||
NewSettings.nodmsEnabled = document.getElementById("NODMSButton").checked;
|
NewSettings.nodmsEnabled = document.getElementById("NODMSButton").checked;
|
||||||
NewSettings.nodvbtEnabled = document.getElementById("NODVBTButton").checked;
|
|
||||||
NewSettings.strictEnabled = document.getElementById("STRICTButton").checked;
|
NewSettings.strictEnabled = document.getElementById("STRICTButton").checked;
|
||||||
document.getElementById("SetButton").disabled = false;
|
document.getElementById("SetButton").disabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ChangeDelSys(delsys)
|
||||||
|
{
|
||||||
|
if( NewSettings )
|
||||||
|
{
|
||||||
|
if( NewSettings.DelsysMask == 0 )
|
||||||
|
NewSettings.DelsysMask = SupportedDelsys;
|
||||||
|
|
||||||
|
var Element = document.getElementById(DelSysID[delsys]);
|
||||||
|
if( Element )
|
||||||
|
{
|
||||||
|
if( Element.checked )
|
||||||
|
{
|
||||||
|
NewSettings.DelsysMask |= (1<<delsys);
|
||||||
|
if( delsys == 16 )
|
||||||
|
{
|
||||||
|
NewSettings.DelsysMask |= (1<<3);
|
||||||
|
document.getElementById(DelSysID[3]).checked = true;
|
||||||
|
}
|
||||||
|
if( delsys == 6 )
|
||||||
|
{
|
||||||
|
NewSettings.DelsysMask |= (1<<5);
|
||||||
|
document.getElementById(DelSysID[5]).checked = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
NewSettings.DelsysMask &= ~(1<<delsys);
|
||||||
|
if( delsys == 3 )
|
||||||
|
{
|
||||||
|
NewSettings.DelsysMask &= ~(1<<16);
|
||||||
|
document.getElementById(DelSysID[16]).checked = false;
|
||||||
|
}
|
||||||
|
if( delsys == 5 )
|
||||||
|
{
|
||||||
|
NewSettings.DelsysMask &= ~(1<<6);
|
||||||
|
document.getElementById(DelSysID[6]).checked = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
document.getElementById("SetButton").disabled = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function SetPassword()
|
function SetPassword()
|
||||||
{
|
{
|
||||||
var pwd1 = document.getElementById("pwd1").value;
|
var pwd1 = document.getElementById("pwd1").value;
|
||||||
@ -249,17 +358,7 @@ function ToggleHelp(id)
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>Disable DVBT announcement</td>
|
<td>Enforce strict SAT>IP</td>
|
||||||
<td style="text-align:right">
|
|
||||||
<form action="">
|
|
||||||
<input id="NODVBTButton" type="checkbox" value="Check" disabled="true" checked="false" onclick="Change()" />
|
|
||||||
</form>
|
|
||||||
</td>
|
|
||||||
<td></td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td>Enforce strict SAT>IP</td>
|
|
||||||
<td style="text-align:right">
|
<td style="text-align:right">
|
||||||
<form action="">
|
<form action="">
|
||||||
<input id="STRICTButton" type="checkbox" value="Check" disabled="true" checked="false" onclick="Change()" />
|
<input id="STRICTButton" type="checkbox" value="Check" disabled="true" checked="false" onclick="Change()" />
|
||||||
@ -288,6 +387,67 @@ function ToggleHelp(id)
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td colspan="3" >
|
||||||
|
<form action="">
|
||||||
|
<table id="delsystable" cellpadding="2px" align="center" width="100%">
|
||||||
|
<colgroup>
|
||||||
|
<col width="25%">
|
||||||
|
<col width="25%">
|
||||||
|
<col width="25%">
|
||||||
|
<col width="25%">
|
||||||
|
</colgroup>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input id="SYS_DVBS" type="checkbox" disabled="true" checked="false" onclick="ChangeDelSys(5)"/>
|
||||||
|
DVB-S
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input id="SYS_DVBS2" type="checkbox" disabled="true" checked="false" onclick="ChangeDelSys(6)"/>
|
||||||
|
DVB-S2/S2X
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input id="SYS_ISDBS" type="checkbox" disabled="true" checked="false" onclick="ChangeDelSys(9)"/>
|
||||||
|
ISDB-S
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input id="SYS_DVBT" type="checkbox" disabled="true" checked="false" onclick="ChangeDelSys(3)"/>
|
||||||
|
DVB-T
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input id="SYS_DVBT2" type="checkbox" disabled="true" checked="false" onclick="ChangeDelSys(16)"/>
|
||||||
|
DVB-T2
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input id="SYS_ISDBT" type="checkbox" disabled="true" checked="false" onclick="ChangeDelSys(8)"/>
|
||||||
|
ISDB-T
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input id="SYS_DVBC_ANNEX_A" type="checkbox" disabled="true" checked="false" onclick="ChangeDelSys(1)"/>
|
||||||
|
DVB-C
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input id="SYS_DVBC2" type="checkbox" disabled="true" checked="false" onclick="ChangeDelSys(19)"/>
|
||||||
|
DVB-C2
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input id="SYS_ISDBC" type="checkbox" disabled="true" checked="false" onclick="ChangeDelSys(19)"/>
|
||||||
|
ISDB-C
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<input id="SYS_DVBC_ANNEX_B" type="checkbox" disabled="true" checked="false" onclick="ChangeDelSys(2)"/>
|
||||||
|
J83.B
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" align="right">
|
<td colspan="2" align="right">
|
||||||
<div style="width: 300px">
|
<div style="width: 300px">
|
||||||
@ -397,27 +557,27 @@ function ToggleHelp(id)
|
|||||||
<div id="strict_hlpE" onclick="ToggleHelp('strict_hlpE')"
|
<div id="strict_hlpE" onclick="ToggleHelp('strict_hlpE')"
|
||||||
style="display: none; position: absolute; width: 660px; left: 30px; top:30px; z-index: 2; border: 1px solid #000000; background: #FFFFE0;">
|
style="display: none; position: absolute; width: 660px; left: 30px; top:30px; z-index: 2; border: 1px solid #000000; background: #FFFFE0;">
|
||||||
<div style="position: relative; margin:20px; clear:both">
|
<div style="position: relative; margin:20px; clear:both">
|
||||||
<h3>Enforce strict SAT>IP</h3>
|
<h3>Enforce strict SAT>IP</h3>
|
||||||
<p/>
|
<p/>
|
||||||
The SAT>IP specification allows a second client to receive a stream created by another client.
|
The SAT>IP specification allows a second client to receive a stream created by another client.
|
||||||
The OctopusNet allows to modify some parameters (like PIDs) on this second stream. The original stream is not affected by this.
|
The OctopusNet allows to modify some parameters (like PIDs) on this second stream. The original stream is not affected by this.
|
||||||
<p/>
|
<p/>
|
||||||
Enforce strict SAT>IP disables this enhancment.
|
Enforce strict SAT>IP disables this enhancment.
|
||||||
<br/>
|
<br/>
|
||||||
Do this for testing clients to ensure they are compatible with other SAT>IP servers
|
Do this for testing clients to ensure they are compatible with other SAT>IP servers
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="strict_hlpD" onclick="ToggleHelp('strict_hlpD')"
|
<div id="strict_hlpD" onclick="ToggleHelp('strict_hlpD')"
|
||||||
style="display: none; position: absolute; width: 660px; left: 30px; top:30px; z-index: 2; border: 1px solid #000000; background: #FFFFE0;">
|
style="display: none; position: absolute; width: 660px; left: 30px; top:30px; z-index: 2; border: 1px solid #000000; background: #FFFFE0;">
|
||||||
<div style="position: relative; margin:20px; clear:both">
|
<div style="position: relative; margin:20px; clear:both">
|
||||||
<h3>Erzwinge striktes SAT>IP</h3>
|
<h3>Erzwinge striktes SAT>IP</h3>
|
||||||
<p/>
|
<p/>
|
||||||
Die SAT>IP Spezifikation erlaubt einem zweiten Client das Empfangen eines von einem anderen Client angelegten Stream. Die OctopusNet erlaubt
|
Die SAT>IP Spezifikation erlaubt einem zweiten Client das Empfangen eines von einem anderen Client angelegten Stream. Die OctopusNet erlaubt
|
||||||
die Änderung einiger Parameter (z.B. PIDs) für diesen Stream. Der orginale Stream wird dadurch nicht beeinflusst.
|
die Änderung einiger Parameter (z.B. PIDs) für diesen Stream. Der orginale Stream wird dadurch nicht beeinflusst.
|
||||||
<p/>
|
<p/>
|
||||||
Das Erzwingen von strikten SAT>IP schaltet diese Erweiterung ab.
|
Das Erzwingen von strikten SAT>IP schaltet diese Erweiterung ab.
|
||||||
<br/>
|
<br/>
|
||||||
Beim Testen von Clients ist es sinnvoll diesen Parameter zu setzen um die Kompatibilität mit anderen SAT>IP Servern sicherzustellen.
|
Beim Testen von Clients ist es sinnvoll diesen Parameter zu setzen um die Kompatibilität mit anderen SAT>IP Servern sicherzustellen.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- End Content -->
|
<!-- End Content -->
|
||||||
@ -429,5 +589,3 @@ function ToggleHelp(id)
|
|||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
</html>
|
|
||||||
|
@ -69,6 +69,9 @@ function CheckMaxS8()
|
|||||||
if devid == "0009dd01" then
|
if devid == "0009dd01" then
|
||||||
isMaxS8 = "true"
|
isMaxS8 = "true"
|
||||||
end
|
end
|
||||||
|
if devid == "000bdd01" then
|
||||||
|
isMaxS8 = "true"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
return isMaxS8
|
return isMaxS8
|
||||||
end
|
end
|
||||||
@ -159,13 +162,20 @@ if query ~= "" then
|
|||||||
end
|
end
|
||||||
restart = 1;
|
restart = 1;
|
||||||
restartdms = 1;
|
restartdms = 1;
|
||||||
|
elseif name == "delsysmask" then
|
||||||
|
if value ~= "0" then
|
||||||
|
WriteConfigFile("delsys_mask",value)
|
||||||
|
os.remove("/config/nodvbt.enabled")
|
||||||
|
else
|
||||||
|
os.remove("/config/delsys_mask")
|
||||||
|
end
|
||||||
|
restart = 1;
|
||||||
elseif( WriteSetting(name,value == "1") ) then
|
elseif( WriteSetting(name,value == "1") ) then
|
||||||
if name == "telnet" then
|
if name == "telnet" then
|
||||||
os.execute("/etc/init.d/S91telnet restart")
|
os.execute("/etc/init.d/S91telnet restart")
|
||||||
end
|
end
|
||||||
if name == "vlan" then restart = 1 end
|
if name == "vlan" then restart = 1 end
|
||||||
if name == "nodms" then restart = 1 end
|
if name == "nodms" then restart = 1 end
|
||||||
if name == "nodvbt" then restart = 1 end
|
|
||||||
if name == "strict" then restart = 1 end
|
if name == "strict" then restart = 1 end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -196,7 +206,6 @@ else
|
|||||||
http_print(' "telnetEnabled":' .. ReadSetting('telnet') .. ',')
|
http_print(' "telnetEnabled":' .. ReadSetting('telnet') .. ',')
|
||||||
http_print(' "vlanEnabled":' .. ReadSetting('vlan') .. ',')
|
http_print(' "vlanEnabled":' .. ReadSetting('vlan') .. ',')
|
||||||
http_print(' "nodmsEnabled":' .. ReadSetting('nodms') .. ',')
|
http_print(' "nodmsEnabled":' .. ReadSetting('nodms') .. ',')
|
||||||
http_print(' "nodvbtEnabled":' .. ReadSetting('nodvbt') .. ',')
|
|
||||||
http_print(' "MSMode":"' .. GetMSMode() .. '",')
|
http_print(' "MSMode":"' .. GetMSMode() .. '",')
|
||||||
http_print(' "strictEnabled":' .. ReadSetting('strict'))
|
http_print(' "strictEnabled":' .. ReadSetting('strict'))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user