
Routercontrol + Sitecom WL-153
Hey Mirko, habe einen Sitecom WL-153...so, wenn ich nun in die Adressleiste:
eingebe, steht am Ende dort: \"PPPoE disconnected\" da... (oder so ähnlich)
Wenn ich nun jedoch:
eingebe, und warte, kommt nachher \"Connect to Server failed...\".
Könntest du mir sagen, wieso mein Router sich nicht mehr connecten kann?!
Einzigste Lösung ist danach: ...Stecker raus, Stecker rein...
Code: Alles auswählen
http://192.168.0.1/goform/formConnect?buttonact1=Disconnect&buttonact=Disconnect&submit-url=/stanet.asp&wanMode=2
Wenn ich nun jedoch:
Code: Alles auswählen
http://192.168.0.1/goform/formConnect?buttonact1=Connect&buttonact=Connect&submit-url=/stanet.asp&wanMode=2
Könntest du mir sagen, wieso mein Router sich nicht mehr connecten kann?!
Einzigste Lösung ist danach: ...Stecker raus, Stecker rein...
der \"springende Punkt\" bei diesem Router sind die JavaScript-Zuweisungen im oberen Teil
z.B.
else if (wanType == 2 && pppoeConnectType == 2) {
if (ConnectStatus == 0){
document.internetSta.buttonact1.value = showText(296);
document.internetSta.buttonact.value = \"Connect\";
}
else{
document.internetSta.buttonact1.value = showText(297);
document.internetSta.buttonact.value = \"Disconnect\";
}
Es wird dabei nach wanType unterschieden, d.h. es wird am Ende (wenn überhaupt) nur mit bestimmten Verbindungsarten funktionieren.
Der Aufruf für Disconnect können so sein:
für Connect so
Problem dabei der Wert hinter buttonact1= ist mir nicht bekannt, da dieser von der Sprache des Routers abhängt. Wird dieser ausgewertet muss man den (wohl deutschen) Wert korrekt angeben.
Die Werte für ip=, dns1=, dns2=, gw= ändern sich ständig, wenn man verbunden ist, damit kann man diese nicht angeben. Klappt die Trennung der Verbindung nicht, dann könnte man versuchen diese mit einer fiktiven IP-Adresse noch hinten dranzuhängen, also &ip=192.168.0.1&dns1=192.168.0.1&dns2=192.168.0.1&gw=192.168.0.1 noch hinter wanMode=2 für den Disconnect.
z.B.
else if (wanType == 2 && pppoeConnectType == 2) {
if (ConnectStatus == 0){
document.internetSta.buttonact1.value = showText(296);
document.internetSta.buttonact.value = \"Connect\";
}
else{
document.internetSta.buttonact1.value = showText(297);
document.internetSta.buttonact.value = \"Disconnect\";
}
Es wird dabei nach wanType unterschieden, d.h. es wird am Ende (wenn überhaupt) nur mit bestimmten Verbindungsarten funktionieren.
Der Aufruf für Disconnect können so sein:
Code: Alles auswählen
<POST>/goform/formConnect?buttonact1=Disconnect&buttonact=Disconnect&submit-url=/stanet.asp&wanMode=2
Code: Alles auswählen
<POST>/goform/formConnect?buttonact1=Connect&buttonact=Connect&submit-url=/stanet.asp&wanMode=2
Die Werte für ip=, dns1=, dns2=, gw= ändern sich ständig, wenn man verbunden ist, damit kann man diese nicht angeben. Klappt die Trennung der Verbindung nicht, dann könnte man versuchen diese mit einer fiktiven IP-Adresse noch hinten dranzuhängen, also &ip=192.168.0.1&dns1=192.168.0.1&dns2=192.168.0.1&gw=192.168.0.1 noch hinter wanMode=2 für den Disconnect.
Zuletzt geändert von mirko am 04.02.2007, 11:18, insgesamt 1-mal geändert.
HILFE!!!
Ich bekomme Routercontrol einfach nicht dazu die Verbindung zu trennen oder eine neue aufzubauen. Ich habe die ganze Nacht damigt verbracht eine Lösung zu erarbeiten, aber leider funktioniert es einfach nicht, das der Router die Verbindung trennt oder eine neue Verbindung aufbaut. Ich weiß einfach nicht mehr weiter. Hoffentlich kann mir jemand hier im Board weiterhelfen. Die einfachste Lösung habe ich leider auch bereits ohne Funktion versucht:
<POST>/goform/formConnect
aber hat auch nichts gebracht.
Ich hänge mal die beiden Quelltexte (connected und disconnected) hier rein.
Verbunden:
<html>
<head>
<link>
<meta>
<title>Access Point Status</title>
<script></script>
<script></script>
<script></script>
<script></script>
<script></script>
</head>
<script>
wanType = 2;
pppoeConnectType = 2;
pptpConnectType = 0;
l2tpConnectType = 0;
ConnectStatus = 1;
function setButtonValue() {
document.internetSta.wanMode.value = wanType;
if (wanType == 0 || wanType == 4) {
document.internetSta.buttonact1.value = \"Renew\";
document.internetSta.buttonact.value = \"Renew\";
}
else if (wanType == 2 && pppoeConnectType == 2) {
if (ConnectStatus == 0){
document.internetSta.buttonact1.value = showText(296);
document.internetSta.buttonact.value = \"Connect\";
}
else{
document.internetSta.buttonact1.value = showText(297);
document.internetSta.buttonact.value = \"Disconnect\";
}
}
else if (wanType == 3 && pptpConnectType == 2) {
if (ConnectStatus == 0){
document.internetSta.buttonact1.value = showText(296);
document.internetSta.buttonact.value = \"Connect\";
}
else{
document.internetSta.buttonact1.value = showText(297);
document.internetSta.buttonact.value = \"Disconnect\";
}
}
else if (wanType == 6 && l2tpConnectType == 2) {
if (ConnectStatus == 0){
document.internetSta.buttonact1.value = showText(296);
document.internetSta.buttonact.value = \"Connect\";
}
else{
document.internetSta.buttonact1.value = showText(297);
document.internetSta.buttonact.value = \"Disconnect\";
}
}
else{
document.internetSta.buttonact1.style.visibility = \"hidden\";
document.internetSta.buttonact.style.visibility = \"hidden\";
}
}
</script>
<body>
<table>
<tr>
<td>
<img>
</td>
</tr>
<tr>
<td>
<a><font><script>document.write(showText(7))</script></a></td>
<td>
<a><font><script>document.write(showText(8))</script></a></td>
<td>
<a><font><script>document.write(showText(9))</script></a></td>
<td>
<a><font><script>document.write(showText(10))</script></a></td>
<td>
<a><font>DHCP</a></td>
<td>
<a><font><script>document.write(showText(11))</script></a></td>
<td>
<a><font><script>document.write(showText(12))</script></a></td>
<td></td>
</tr>
</table><br><br>
<blockquote>
<p>
<script>document.write(showText(59))</script>.</p>
<form>
<table>
<tr>
<td><b><script>document.write(showText(60))</script> : </b></td>
<td> PPPoE connected
</td>
<input>
<input>
<input>
<input>
</tr>
<tr>
<td><b><script>document.write(showText(31))</script> : </b></td>
<td> xx.xxx.xxx.xx
</td>
</tr>
<tr>
<td><b><script>document.write(showText(57))</script> : </b></td>
<td> 255.255.255.255
</td>
</tr>
<tr>
<td><b><script>document.write(showText(61))</script> : </b></td>
<td><script>
var check = document.internetSta.ip.value;
if ( check != \"\")
document.write(\' \'+document.internetSta.gw.value);
else
document.write(\' </td>\');
</script>
</tr>
<tr>
<td><b><script>document.write(showText(58))</script> : </b></td>
<td>
</td>
</tr>
<tr>
<td><b><script>document.write(showText(62))</script> : </b></td>
<td><script>
if ( check != \"\")
document.write(\' \'+document.internetSta.dns1.value);
else
document.write(\' \');
</script></td>
</tr>
<tr>
<td><b><script>document.write(showText(63))</script> : </b></td>
<td><script>
if ( check != \"\")
document.write(\' \'+document.internetSta.dns2.value);
else
document.write(\' \');
</script></td>
</tr>
</table><br>
<table>
<tr>
<div>
<input>
<input>
<input>
<input>
</div>
</tr>
</table>
<script>
setButtonValue();
</script>
</form>
</blockquote>
</body>
</html>
Getrennt:
<html>
<head>
<link>
<meta>
<title>Access Point Status</title>
<script></script>
<script></script>
<script></script>
<script></script>
<script></script>
</head>
<script>
wanType = 2;
pppoeConnectType = 2;
pptpConnectType = 0;
l2tpConnectType = 0;
ConnectStatus = 0;
function setButtonValue() {
document.internetSta.wanMode.value = wanType;
if (wanType == 0 || wanType == 4) {
document.internetSta.buttonact1.value = \"Renew\";
document.internetSta.buttonact.value = \"Renew\";
}
else if (wanType == 2 && pppoeConnectType == 2) {
if (ConnectStatus == 0){
document.internetSta.buttonact1.value = showText(296);
document.internetSta.buttonact.value = \"Connect\";
}
else{
document.internetSta.buttonact1.value = showText(297);
document.internetSta.buttonact.value = \"Disconnect\";
}
}
else if (wanType == 3 && pptpConnectType == 2) {
if (ConnectStatus == 0){
document.internetSta.buttonact1.value = showText(296);
document.internetSta.buttonact.value = \"Connect\";
}
else{
document.internetSta.buttonact1.value = showText(297);
document.internetSta.buttonact.value = \"Disconnect\";
}
}
else if (wanType == 6 && l2tpConnectType == 2) {
if (ConnectStatus == 0){
document.internetSta.buttonact1.value = showText(296);
document.internetSta.buttonact.value = \"Connect\";
}
else{
document.internetSta.buttonact1.value = showText(297);
document.internetSta.buttonact.value = \"Disconnect\";
}
}
else{
document.internetSta.buttonact1.style.visibility = \"hidden\";
document.internetSta.buttonact.style.visibility = \"hidden\";
}
}
</script>
<body>
<table>
<tr>
<td>
<img>
</td>
</tr>
<tr>
<td>
<a><font><script>document.write(showText(7))</script></a></td>
<td>
<a><font><script>document.write(showText(8))</script></a></td>
<td>
<a><font><script>document.write(showText(9))</script></a></td>
<td>
<a><font><script>document.write(showText(10))</script></a></td>
<td>
<a><font>DHCP</a></td>
<td>
<a><font><script>document.write(showText(11))</script></a></td>
<td>
<a><font><script>document.write(showText(12))</script></a></td>
<td></td>
</tr>
</table><br><br>
<blockquote>
<p>
<script>document.write(showText(59))</script>.</p>
<form>
<table>
<tr>
<td><b><script>document.write(showText(60))</script> : </b></td>
<td> PPPoE disconnected
</td>
<input>
<input>
<input>
<input>
</tr>
<tr>
<td><b><script>document.write(showText(31))</script> : </b></td>
<td>
</td>
</tr>
<tr>
<td><b><script>document.write(showText(57))</script> : </b></td>
<td>
</td>
</tr>
<tr>
<td><b><script>document.write(showText(61))</script> : </b></td>
<td><script>
var check = document.internetSta.ip.value;
if ( check != \"\")
document.write(\' \'+document.internetSta.gw.value);
else
document.write(\' </td>\');
</script>
</tr>
<tr>
<td><b><script>document.write(showText(58))</script> : </b></td>
<td>
</td>
</tr>
<tr>
<td><b><script>document.write(showText(62))</script> : </b></td>
<td><script>
if ( check != \"\")
document.write(\' \'+document.internetSta.dns1.value);
else
document.write(\' \');
</script></td>
</tr>
<tr>
<td><b><script>document.write(showText(63))</script> : </b></td>
<td><script>
if ( check != \"\")
document.write(\' \'+document.internetSta.dns2.value);
else
document.write(\' \');
</script></td>
</tr>
</table><br>
<table>
<tr>
<div>
<input>
<input>
<input>
<input>
</div>
</tr>
</table>
<script>
setButtonValue();
</script>
</form>
</blockquote>
</body>
</html>
Vielen Dank für die Hilfe...
Ich bekomme Routercontrol einfach nicht dazu die Verbindung zu trennen oder eine neue aufzubauen. Ich habe die ganze Nacht damigt verbracht eine Lösung zu erarbeiten, aber leider funktioniert es einfach nicht, das der Router die Verbindung trennt oder eine neue Verbindung aufbaut. Ich weiß einfach nicht mehr weiter. Hoffentlich kann mir jemand hier im Board weiterhelfen. Die einfachste Lösung habe ich leider auch bereits ohne Funktion versucht:
<POST>/goform/formConnect
aber hat auch nichts gebracht.
Ich hänge mal die beiden Quelltexte (connected und disconnected) hier rein.
Verbunden:
<html>
<head>
<link>
<meta>
<title>Access Point Status</title>
<script></script>
<script></script>
<script></script>
<script></script>
<script></script>
</head>
<script>
wanType = 2;
pppoeConnectType = 2;
pptpConnectType = 0;
l2tpConnectType = 0;
ConnectStatus = 1;
function setButtonValue() {
document.internetSta.wanMode.value = wanType;
if (wanType == 0 || wanType == 4) {
document.internetSta.buttonact1.value = \"Renew\";
document.internetSta.buttonact.value = \"Renew\";
}
else if (wanType == 2 && pppoeConnectType == 2) {
if (ConnectStatus == 0){
document.internetSta.buttonact1.value = showText(296);
document.internetSta.buttonact.value = \"Connect\";
}
else{
document.internetSta.buttonact1.value = showText(297);
document.internetSta.buttonact.value = \"Disconnect\";
}
}
else if (wanType == 3 && pptpConnectType == 2) {
if (ConnectStatus == 0){
document.internetSta.buttonact1.value = showText(296);
document.internetSta.buttonact.value = \"Connect\";
}
else{
document.internetSta.buttonact1.value = showText(297);
document.internetSta.buttonact.value = \"Disconnect\";
}
}
else if (wanType == 6 && l2tpConnectType == 2) {
if (ConnectStatus == 0){
document.internetSta.buttonact1.value = showText(296);
document.internetSta.buttonact.value = \"Connect\";
}
else{
document.internetSta.buttonact1.value = showText(297);
document.internetSta.buttonact.value = \"Disconnect\";
}
}
else{
document.internetSta.buttonact1.style.visibility = \"hidden\";
document.internetSta.buttonact.style.visibility = \"hidden\";
}
}
</script>
<body>
<table>
<tr>
<td>
<img>
</td>
</tr>
<tr>
<td>
<a><font><script>document.write(showText(7))</script></a></td>
<td>
<a><font><script>document.write(showText(8))</script></a></td>
<td>
<a><font><script>document.write(showText(9))</script></a></td>
<td>
<a><font><script>document.write(showText(10))</script></a></td>
<td>
<a><font>DHCP</a></td>
<td>
<a><font><script>document.write(showText(11))</script></a></td>
<td>
<a><font><script>document.write(showText(12))</script></a></td>
<td></td>
</tr>
</table><br><br>
<blockquote>
<p>
<script>document.write(showText(59))</script>.</p>
<form>
<table>
<tr>
<td><b><script>document.write(showText(60))</script> : </b></td>
<td> PPPoE connected
</td>
<input>
<input>
<input>
<input>
</tr>
<tr>
<td><b><script>document.write(showText(31))</script> : </b></td>
<td> xx.xxx.xxx.xx
</td>
</tr>
<tr>
<td><b><script>document.write(showText(57))</script> : </b></td>
<td> 255.255.255.255
</td>
</tr>
<tr>
<td><b><script>document.write(showText(61))</script> : </b></td>
<td><script>
var check = document.internetSta.ip.value;
if ( check != \"\")
document.write(\' \'+document.internetSta.gw.value);
else
document.write(\' </td>\');
</script>
</tr>
<tr>
<td><b><script>document.write(showText(58))</script> : </b></td>
<td>
</td>
</tr>
<tr>
<td><b><script>document.write(showText(62))</script> : </b></td>
<td><script>
if ( check != \"\")
document.write(\' \'+document.internetSta.dns1.value);
else
document.write(\' \');
</script></td>
</tr>
<tr>
<td><b><script>document.write(showText(63))</script> : </b></td>
<td><script>
if ( check != \"\")
document.write(\' \'+document.internetSta.dns2.value);
else
document.write(\' \');
</script></td>
</tr>
</table><br>
<table>
<tr>
<div>
<input>
<input>
<input>
<input>
</div>
</tr>
</table>
<script>
setButtonValue();
</script>
</form>
</blockquote>
</body>
</html>
Getrennt:
<html>
<head>
<link>
<meta>
<title>Access Point Status</title>
<script></script>
<script></script>
<script></script>
<script></script>
<script></script>
</head>
<script>
wanType = 2;
pppoeConnectType = 2;
pptpConnectType = 0;
l2tpConnectType = 0;
ConnectStatus = 0;
function setButtonValue() {
document.internetSta.wanMode.value = wanType;
if (wanType == 0 || wanType == 4) {
document.internetSta.buttonact1.value = \"Renew\";
document.internetSta.buttonact.value = \"Renew\";
}
else if (wanType == 2 && pppoeConnectType == 2) {
if (ConnectStatus == 0){
document.internetSta.buttonact1.value = showText(296);
document.internetSta.buttonact.value = \"Connect\";
}
else{
document.internetSta.buttonact1.value = showText(297);
document.internetSta.buttonact.value = \"Disconnect\";
}
}
else if (wanType == 3 && pptpConnectType == 2) {
if (ConnectStatus == 0){
document.internetSta.buttonact1.value = showText(296);
document.internetSta.buttonact.value = \"Connect\";
}
else{
document.internetSta.buttonact1.value = showText(297);
document.internetSta.buttonact.value = \"Disconnect\";
}
}
else if (wanType == 6 && l2tpConnectType == 2) {
if (ConnectStatus == 0){
document.internetSta.buttonact1.value = showText(296);
document.internetSta.buttonact.value = \"Connect\";
}
else{
document.internetSta.buttonact1.value = showText(297);
document.internetSta.buttonact.value = \"Disconnect\";
}
}
else{
document.internetSta.buttonact1.style.visibility = \"hidden\";
document.internetSta.buttonact.style.visibility = \"hidden\";
}
}
</script>
<body>
<table>
<tr>
<td>
<img>
</td>
</tr>
<tr>
<td>
<a><font><script>document.write(showText(7))</script></a></td>
<td>
<a><font><script>document.write(showText(8))</script></a></td>
<td>
<a><font><script>document.write(showText(9))</script></a></td>
<td>
<a><font><script>document.write(showText(10))</script></a></td>
<td>
<a><font>DHCP</a></td>
<td>
<a><font><script>document.write(showText(11))</script></a></td>
<td>
<a><font><script>document.write(showText(12))</script></a></td>
<td></td>
</tr>
</table><br><br>
<blockquote>
<p>
<script>document.write(showText(59))</script>.</p>
<form>
<table>
<tr>
<td><b><script>document.write(showText(60))</script> : </b></td>
<td> PPPoE disconnected
</td>
<input>
<input>
<input>
<input>
</tr>
<tr>
<td><b><script>document.write(showText(31))</script> : </b></td>
<td>
</td>
</tr>
<tr>
<td><b><script>document.write(showText(57))</script> : </b></td>
<td>
</td>
</tr>
<tr>
<td><b><script>document.write(showText(61))</script> : </b></td>
<td><script>
var check = document.internetSta.ip.value;
if ( check != \"\")
document.write(\' \'+document.internetSta.gw.value);
else
document.write(\' </td>\');
</script>
</tr>
<tr>
<td><b><script>document.write(showText(58))</script> : </b></td>
<td>
</td>
</tr>
<tr>
<td><b><script>document.write(showText(62))</script> : </b></td>
<td><script>
if ( check != \"\")
document.write(\' \'+document.internetSta.dns1.value);
else
document.write(\' \');
</script></td>
</tr>
<tr>
<td><b><script>document.write(showText(63))</script> : </b></td>
<td><script>
if ( check != \"\")
document.write(\' \'+document.internetSta.dns2.value);
else
document.write(\' \');
</script></td>
</tr>
</table><br>
<table>
<tr>
<div>
<input>
<input>
<input>
<input>
</div>
</tr>
</table>
<script>
setButtonValue();
</script>
</form>
</blockquote>
</body>
</html>
Vielen Dank für die Hilfe...