This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Hotspare LM without KNX connection (Over LAN)
#6
Hi,

To make KNX IP working between the controllers do the following on both of them:

Utilities -> System -> Network -> Knx Connection -> Set mode to: EIBnet/IP routing, set KNX address to 1.1.1 on first controller and 1.1.2 on second controller and check KNX IP features on both controllers (enabled), click 'OK' and click 'Apply Changes' in the right upper corner (red button) to apply the changes.

Create in both controllers a obect 1/1/1 and write a value in one of them. The same value should be set in the second controller. Now your KNX IP is working.

For redundant setup check our application note:

http://www.schneider-electric.com/en/dow.../AN023_SL/

Use something like this custom JavaScript to redirect the client to your slave controller visu when websocket is disconnected.

Code:
$(function() {
 var counter = 0;
  if (typeof localbus !== 'undefined') {
    setInterval(function() {
      if (!!localbus.ws == false){
         counter = counter + 1;
       if (counter > 3){
           $(location).attr('href', 'http://admin:admin@192.168.0.12/scada-vis')
       }
     } else {
       counter = 0;
     }
    }, 1000);
  }
});

Or use something like this custom JavaScript to redirect the client to your slave controller visu when url cannot be reached.

Code:
$(function() {
 var counter = 0;
 function ping(){
    $.ajax({
       url: 'http://192.168.0.11/scada/vis',
       success: function(result){
          counter = 0;
       },    
       error: function(result){
          counter = counter + 1;
          if (counter > 3){
             $(location).attr('href', 'http://admin:admin@192.168.0.12/scada-vis')
          }
       }
    });
 }
 setInterval(function() {
    ping();
  }, 5000);
});
BR,

Erwin
Reply


Messages In This Thread
RE: Hotspare LM without KNX connection (Over LAN) - by Erwin van der Zwart - 14.06.2017, 22:35

Forum Jump: