PDA

View Full Version : Connecting To NS5 Issues and stuff


overburn
10-12-2009, 06:31 AM
When connecting for the first time to NS5 i noticed that i lost connection for some time to that device. It looks like it has something to do with the provisioning but i'm not sure. And another thing it does not says anything when i enter the wrong username or password.

I noticed It's forcing to upload new firmware on connection, is that like an option to disable cos i got errors on one device

Errors below:

Device operation failed: Unexpected firmware flash response (missing 'DO NOT POWEROFF'): (<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Ogrodowa-6-KRZEM: [NanoStation5] - Aktualizacja oprogramowania</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link href="XS5.ar2313.v3.5.4469.091001.1607/style.css" rel="stylesheet" type="text/css"> <script type="text/javascript" language="javascript" src="jsl10n.cgi"></script> <script language="javascript1.2" type="text/javascript" src="XS5.ar2313.v3.5.4469.091001.1607/progress.js"></script> <script type="text/javascript" language="javascript" src="XS5.ar2313.v3.5.4469.091001.1607/ajax.js"></script> <script type="text/javascript" language="javascript"> //<!-- /* parseUri 1.2.1 (c) 2007 Steven Levithan <stevenlevithan.com> MIT License */ function parseUri (str) { var o = parseUri.options, m = o.parser[o.strictMode ? "strict" : "loose"].exec(str), uri = {}, i = 14; while (i--) uri[o.key[i]] = m[i] || ""; uri[o.q.name] = {}; uri[o.key[12]].replace(o.q.parser, function ($0, $1, $2) { if ($1) uri[o.q.name][$1] = $2; }); return uri; }; parseUri.options = { strictMode: false, key: ["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"], q: { name: "queryKey", parser: /(?:^|&)([^&=]*)=?([^&]*)/g }, parser: { strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/, loose: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ } }; /*end of parseUri 1.2.1*/ var poll_url = "/poll.cgi"; var conn = null; var close_tid = 0; var timer_id = 0; var progress = 0; var do_close = 0; var http_proto = "http"; var http_port = "80"; var iplan = '10.0.30.84'; var ip = '10.0.30.84'; var is_busy = false; var uri = parseUri(window.opener.location.href); if (http_proto != "") uri["protocol"] = http_proto; if (http_port != "") uri["port"] = http_port; if (uri["host"] != iplan && uri["host"] != ip) { if (ip != '' && ip != '0.0.0.0' && ip != '0') uri["host"] = ip; } var url = uri["protocol"]+"://"+uri["host"]; if (uri["port"] != "") url = url + ":" + uri["port"]; poll_url = url +"/poll.cgi"; url = url + uri["relative"]; function check_close() { if (do_close) { if (progress) { progress.set(100); } close_tid = setTimeout(function() { shut(true); }, 500); } else { close_tid = setTimeout(check_close, 100); } } function polling_init() { if (conn) { // abort just in case abortConnection() } else { conn = new ajax(); } return conn != null; } function get_poll_url() { return poll_url + "?q="+Math.random(); } function handleResponse(httpRequest) { var rc = -255; try { if (httpRequest && httpRequest.status == 200) { results = httpRequest.responseText; if (results.length > 0) { rc = parseInt(results); } } } catch(e) { //just eat exception if any return false; } if (rc == 0) { return true; } return false; } function do_poll() { abortConnection(); is_busy = true; if (conn && !conn.get(get_poll_url(), function (httpRequest) { is_busy = false; if (handleResponse(httpRequest)) { do_close = 1; } } )) { is_busy = false; // Display error somewhere? } timer_id = setTimeout(do_poll, 1000); return true; } function init() { progress = new Progress("progress", "XS5.ar2313.v3.5.4469.091001.1607/images/p.gif", 300); progress.run(150 * 1000, "shut(true)"); polling_init(); timer_id = setTimeout(do_poll, 150 * 333); check_close(); } function abortConnection() { if (conn && is_busy) { conn.abort(); is_busy = false; return true; } return false; } function shut(reload) { if (close_tid) { clearTimeout(close_tid); close_tid = 0; } if (timer_id) { clearTimeout(timer_id); timer_id = 0; } if (progress) { progress.cancel(); } abortConnection(); conn = null; if (reload) { window.opener.location.href = url; } window.close(); } window.onload = init; // --> </script> </head> <body class="popup"> <br> <table cellspacing="0" cellpadding="0" align="center" class="popup"> <tr><th>Aktualizacja oprogramowania</th></tr> <tr><td align="center">Oprogramowanie jest aktualizowane<br> Ta operacja może potrwać parę minut - <br>Podczas tego <span style="color: red">NIE WYŁĄCZAJ</span> urządzenia!</td></tr> <tr><td>&nbsp;</td></tr> <tr><td align="center"><div id="progress"></div></td></tr> <tr><td>&nbsp;</td></tr> <tr><td align="center"><input type="button" value="Zamknij to okno" onclick="shut(true)"></td></tr> </table> </body> </html> )

UBNT-Thomas
10-12-2009, 06:51 AM
You need to look at the log (device details lower panel, it should tell you that authentication failed). You will not see that in the dialog because the connect runs in the background. What do you mean when you say you lost connection to the device for some time?

overburn
10-12-2009, 06:59 AM
i mean the device stopped responding for ping requests for some time forst short and after few pings a longer period but as i edited the first post i think it's because of the autoflash feature

UBNT-Thomas
10-12-2009, 07:21 AM
You cannot connect to a device that is not running at least AirOS 3.4. Connect gives you the choice to upgrade automatically if the FW is loaded into AirControl. You can upgrade manually and connect afterwards, of course.

There is a small issue with the response verification in the auto-upgrade as I see from your post (it does not deal with localization). That's why you got a misleading error message even though the upgrade was applied fine. After that the unit was flashing the new firmware, and during that time it was "down".

CzechEnglishFrenchGermanItalianPolishPortugueseRussianSpanish
Thanks to vBET 3.5.4 enjoy automatic translations