ReadDataFromFile('PositionInfoFromFile=7');
ReadDataFromFile('PositionInfoFromFile=8');
function InfraredGetData(_json) {
    var hostname = checkReceiveJsonDataToString(_json.nodes,'nodes','type','NETWORK_INTERFACE','configuration.hostname');
    var ipaddress = checkReceiveJsonDataToString(_json.nodes,'nodes','type','NETWORK_INTERFACE','configuration.ip.address');

    var address = checkReceiveJsonDataToString(_json.streams,'streams','type','INFRARED','configuration.address');
    var state = checkReceiveJsonDataToString(_json.streams,'streams','type','INFRARED','status.state');
    check_Infrared_Display(_json.device_id,_json.identity.is_receiver,hostname,ipaddress,_json.identity.firmware_version,
            _json.status.point_to_point,address,state);
}


// 检测该数据流的类型 TX or RX,并且写入device模块
function check_Infrared_Display(device_id,is_receiver,hostname,
						ip,firmware_version,display_mode,multicast_address,statu
						){
	if (is_receiver) {
		checkDataIsInArr(is_receiver,device_id);    
        if ($('#decodersGroup li:eq(0)').hasClass('listHover')||current_page=='infraredRouting'||!$('#decodersGroup li:eq(0)').hasClass('listHover')) {
            check_Infrared_DataIsChange(device_id,hostname,
            ip,firmware_version,display_mode,multicast_address,statu,'rx');
        }     
        
	} 
	else{
		checkDataIsInArr(is_receiver,device_id);       
        if ($('#encodersGroup li:eq(0)').hasClass('listHover')||current_page=='infraredRouting') {
            check_Infrared_DataIsChange(device_id,hostname,
            ip,firmware_version,display_mode,multicast_address,statu,'tx');
        }   
        
	}
}


// 检测decode数据是否变动
function check_Infrared_DataIsChange(device_id,hostname,
                                      ip,firmware_version,display_mode,multicast_address,statu,rxortx){
    var _arr = _data.Rs232_De_En_arr.split(',');
    var _arrTx = _data.Rs232_En_De_arr.split(',');
    var _num,_numTx;
    for (var i = 0; i <_arr.length-1; i++) {
        (function(ii){
            if (_arr[ii]==device_id) {
                _num=ii;
            }
        })(i);
    }
    for (var i = 0; i <_arrTx.length-1; i++) {
        (function(ii){
            if (_arrTx[ii]==device_id) {
                _numTx=ii;
            }
        })(i);
    }
    var titleinfoDecodeArr = stringToArray(titleinfoDecode,1);
    var titleinfoEncodeArr = stringToArray(titleinfoEncode,1);
	if (typeof(Decode_Infrared_DataArr[_num])=='undefined'||Decode_Infrared_DataArr[_num].length==0) {
		if (typeof(Decode_Infrared_DataArr[_num])=='undefined'||Decode_Infrared_DataArr[_num]=='') {
            Decode_Infrared_DataArr[_num]=[];
        }
        if (rxortx=='rx') {
            if ($('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+') div').length>0) {
                $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+')').html('');
                // $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+')').attr('id','DeviceDecodePositionID'+(_num+3));
                $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+')').attr('class','decodeencodeexist');
                $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+')').attr('ondragover','exp1(event)');
                $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+')').attr('ondrop','deviceToChangePosition(event)');
                $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+')').attr('draggable','true');
                $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+')').attr('ondragstart','DecodeExpstart(event)');
                var addData = "<span class='macaddress' "+(titleinfoDecodeArr[0]=='0'?"style='display:none'":'') + ">" +hostname+"</span>\
                                <span class='macaddress' "+(titleinfoDecodeArr[1]=='0'?"style='display:none'":'') + ">" +device_id+"</span>\
                                <span class='macaddress' "+(titleinfoDecodeArr[2]=='0'?"style='display:none'":'') + ">" +ip+"</span>\
                                <span class='macaddress' "+(titleinfoDecodeArr[3]=='0'?"style='display:none'":'') + ">V" +firmware_version+"</span>\
                                <span class='macaddress' "+(titleinfoDecodeArr[4]=='0'?"style='display:none'":'') + ">" +(display_mode==0?'Genlock':display_mode)+"</span>\
                                <span class='macaddress' "+(titleinfoDecodeArr[5]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <span class='macaddress' "+(titleinfoDecodeArr[6]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <span class='macaddress' "+(titleinfoDecodeArr[7]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <span class='macaddress' "+(titleinfoDecodeArr[8]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <div class='infraredDisplayType '></div>\
                                <div class='DragToDropBtn'></div>";
                $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+')').append(addData);
            }
            else if($('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+') div').length==0) {
                var addData = "<li id='DeviceDecodePositionID"+(_num+2)+"' class='decodeencodeexist' ondragover='exp1(event)' ondrop='deviceToChangePosition(event)' draggable='true' ondragstart='DecodeExpstart(event)'>\
                                <span class='macaddress' "+(titleinfoDecodeArr[0]=='0'?"style='display:none'":'') + ">" +hostname+"</span>\
                                <span class='macaddress' "+(titleinfoDecodeArr[1]=='0'?"style='display:none'":'') + ">" +device_id+"</span>\
                                <span class='macaddress' "+(titleinfoDecodeArr[2]=='0'?"style='display:none'":'') + ">" +ip+"</span>\
                                <span class='macaddress' "+(titleinfoDecodeArr[3]=='0'?"style='display:none'":'') + ">V" +firmware_version+"</span>\
                                <span class='macaddress' "+(titleinfoDecodeArr[4]=='0'?"style='display:none'":'') + ">" +(display_mode==0?'Genlock':display_mode)+"</span>\
                                <span class='macaddress' "+(titleinfoDecodeArr[5]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <span class='macaddress' "+(titleinfoDecodeArr[6]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <span class='macaddress' "+(titleinfoDecodeArr[7]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <span class='macaddress' "+(titleinfoDecodeArr[8]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <div class='infraredDisplayType '></div>\
                                <div class='DragToDropBtn'></div>\
                            </li>";
                $('.listCont:eq(0) .listContList ul').append(addData);                
            }
            $('.listCont:eq(0) .listContList ul li').each(function(e){
                if (_arr[e-2]==''&&$('.listCont:eq(0) .listContList ul li:eq('+(e)+') span').length>0) {
                    Decode_Infrared_DataArr[e-2]='';
                    $('.listCont:eq(0) .listContList ul li:eq('+(e)+')').html("<div class='DragToDropBtn'></div>");
                }
            });
        }
        else if(rxortx=='tx'){
            if ($('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+') div').length>0){
                $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+')').html('');
                // $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+')').attr('id','DeviceDecodePositionID'+_num);
                $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+')').attr('class','decodeencodeexist');
                $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+')').attr('ondragover','exp1(event)');
                $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+')').attr('ondrop','deviceToChangePosition(event)');
                $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+')').attr('draggable','true');
                $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+')').attr('ondragstart','DecodeExpstart(event)');
                var addData = "<span class='macaddress' "+(titleinfoEncodeArr[0]=='0'?"style='display:none'":'') + ">" +hostname+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[1]=='0'?"style='display:none'":'') + ">" +device_id+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[2]=='0'?"style='display:none'":'') + ">" +ip+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[3]=='0'?"style='display:none'":'') + ">V" +firmware_version+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[4]=='0'?"style='display:none'":'') + ">" +(display_mode==0?'Genlock':display_mode)+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[5]=='0'?"style='display:none'":'') + "></span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[6]=='0'?"style='display:none'":'') + "></span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[7]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[8]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <div class='infraredDisplayType'></div>\
                                <div class='DragToDropBtn'></div>";
                $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+')').append(addData);
            }
            else if($('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+') div').length==0){   
                var addData = "<li id='DeviceDecodePositionID"+(_num+2)+"' class='decodeencodeexist' ondragover='exp1(event)' ondrop='deviceToChangePosition(event)' draggable='true' ondragstart='DecodeExpstart(event)'>\
                                <span class='macaddress' "+(titleinfoEncodeArr[0]=='0'?"style='display:none'":'') + ">" +hostname+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[1]=='0'?"style='display:none'":'') + ">" +device_id+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[2]=='0'?"style='display:none'":'') + ">" +ip+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[3]=='0'?"style='display:none'":'') + ">V" +firmware_version+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[4]=='0'?"style='display:none'":'') + ">" +(display_mode==0?'Genlock':display_mode)+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[5]=='0'?"style='display:none'":'') + "></span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[6]=='0'?"style='display:none'":'') + "></span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[7]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[8]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <div class='infraredDisplayType'></div>\
                                <div class='DragToDropBtn'></div>\
                            </li>";
                $('.listCont:eq(0) .listContList ul').append(addData);  
            } 
            $('.listCont:eq(0) .listContList ul li').each(function(e){
                if (_arr[e-2]==''&&$('.listCont:eq(0) .listContList ul li:eq('+(e)+') span').length>0) {
                    Decode_Infrared_DataArr[e-2]='';
                    $('.listCont:eq(0) .listContList ul li:eq('+(e)+')').html("<div class='DragToDropBtn'></div>");
                }
            });                     
        }
        addDisplayListenEvent(0);
        _checkLoadingType=1;
    }
    if (Decode_Infrared_DataArr[_num][0] != hostname||
        Decode_Infrared_DataArr[_num][1] != device_id||
        Decode_Infrared_DataArr[_num][2] != ip||
        Decode_Infrared_DataArr[_num][3] != firmware_version||
        Decode_Infrared_DataArr[_num][4] != display_mode||
        Decode_Infrared_DataArr[_num][5] != multicast_address||
        Decode_Infrared_DataArr[_num][6] != statu||
        Decode_Infrared_DataArr[_num][7]!=rxortx) {
            if (typeof(Decode_Infrared_DataArr[_num])=='string') {
                Decode_Infrared_DataArr[_num] = [];
            }
            checkRoutingTableChange = 1;
            Decode_Infrared_DataArr[_num][0]=hostname;
            Decode_Infrared_DataArr[_num][1]=device_id;
            Decode_Infrared_DataArr[_num][2]=ip;
            Decode_Infrared_DataArr[_num][3]=firmware_version;
            Decode_Infrared_DataArr[_num][4]=display_mode;
            Decode_Infrared_DataArr[_num][5]=multicast_address;
            Decode_Infrared_DataArr[_num][6]=statu;
            Decode_Infrared_DataArr[_num][7]=rxortx;
            //decode显示
            if (!$('#decodersGroup li:eq(0)').hasClass('listHover')) {
                for (var i = 0; i <DecodeGroupDataListArr.length; i++) {
                    (function(ii){
                        var _arr = DecodeGroupDataListArr[ii].split(':');
                        if (_arr[0]==device_id) {
                            _num=ii-2;
                        }
                    })(i);
                }
            }
            $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+') span:eq(0)').html(hostname);
            $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+') span:eq(1)').html(device_id);
            $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+') span:eq(2)').html(ip);
            $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+') span:eq(3)').html('V'+firmware_version);
       	    var pointDis=display_mode=='0'?'Genlock':display_mode;
            $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+') span:eq(4)').html(pointDis);
            $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+') span:eq(5)').html();
            $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+') span:eq(6)').html();
            $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+') span:eq(7)').html();
            $('.listCont:eq(0) .listContList ul li:eq('+(_num+2)+') span:eq(8)').html();
        }

    if (typeof(Encode_Infrared_DataArr[_numTx])=='undefined'||Encode_Infrared_DataArr[_numTx].length==0) {//||Encode_Rs232_DataArr[_num].length==0
        if (typeof(Encode_Infrared_DataArr[_numTx])=='undefined'||Encode_Infrared_DataArr[_numTx]=='') {
            Encode_Infrared_DataArr[_numTx]=[];
        }
        if (rxortx=='rx') {
            console.log('en:rx--'+_arrTx+':'+_numTx);
            if ($('.listCont:eq(1) .listContList ul li:eq('+(_numTx)+') div').length>0) {
                $('.listCont:eq(1) .listContList ul li:eq('+(_numTx)+')').html('');
                // $('.listCont:eq(1) .listContList ul li:eq('+_numTx+')').attr('id','DeviceEncodePositionID'+_numTx);
                $('.listCont:eq(1) .listContList ul li:eq('+_numTx+')').attr('class','decodeencodeexist');
                $('.listCont:eq(1) .listContList ul li:eq('+_numTx+')').attr('draggable','true');
                $('.listCont:eq(1) .listContList ul li:eq('+_numTx+')').attr('ondrop','deviceToChangePosition(event)');
                $('.listCont:eq(1) .listContList ul li:eq('+_numTx+')').attr('ondragover','exp1(event)');
                $('.listCont:eq(1) .listContList ul li:eq('+_numTx+')').attr('ondragstart','expstart(event)');
                var addData = "<span class='macaddress' "+(titleinfoEncodeArr[0]=='0'?"style='display:none'":'') + ">" +hostname+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[1]=='0'?"style='display:none'":'') + ">" +device_id+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[2]=='0'?"style='display:none'":'') + ">" +ip+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[3]=='0'?"style='display:none'":'') + ">V" +firmware_version+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[4]=='0'?"style='display:none'":'') + ">" +(display_mode==0?'Genlock':display_mode)+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[5]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[6]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[7]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[8]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <div class='infraredDisplayType'></div>\
                                <div class='DragToDropBtn'></div>";
                $('.listCont:eq(1) .listContList ul li:eq('+_numTx+')').append(addData);
                
            }
            else if($('.listCont:eq(1) .listContList ul li:eq('+(_numTx)+') div').length==0) {
                var addData = "<li id='DeviceEncodePositionID"+_numTx+"' class='decodeencodeexist' ondragover='exp1(event)' ondrop='deviceToChangePosition(event)' draggable='true' ondragstart='expstart(event)'>\
                                <span class='macaddress' "+(titleinfoEncodeArr[0]=='0'?"style='display:none'":'') + ">" +hostname+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[1]=='0'?"style='display:none'":'') + ">" +device_id+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[2]=='0'?"style='display:none'":'') + ">" +ip+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[3]=='0'?"style='display:none'":'') + ">V" +firmware_version+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[4]=='0'?"style='display:none'":'') + ">" +(display_mode==0?'Genlock':display_mode)+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[5]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[6]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[7]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[8]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <div class='infraredDisplayType '></div>\
                                <div class='DragToDropBtn'></div>\
                            </li>";
                
                $('.listCont:eq(1) .listContList ul').append(addData);
            }
            $('.listCont:eq(1) .listContList ul li').each(function(e){
                if (_arrTx[e]==''&&$('.listCont:eq(1) .listContList ul li:eq('+(e)+') span').length>0) {
                    Encode_Rs232_DataArr[e]='';

                    $('.listCont:eq(1) .listContList ul li:eq('+(e)+')').html("<div class='DragToDropBtn'></div>");
                }
            });
        }
        else if(rxortx=='tx'){
            console.log('en:tx--'+_arrTx);
            if ($('.listCont:eq(1) .listContList ul li:eq('+(_numTx)+') div').length>0){
                $('.listCont:eq(1) .listContList ul li:eq('+(_numTx)+')').html('');
                // $('.listCont:eq(1) .listContList ul li:eq('+_numTx+')').attr('id','DeviceEncodePositionID'+_numTx);
                $('.listCont:eq(1) .listContList ul li:eq('+_numTx+')').attr('class','decodeencodeexist');
                $('.listCont:eq(1) .listContList ul li:eq('+_numTx+')').attr('draggable','true');
                $('.listCont:eq(1) .listContList ul li:eq('+_numTx+')').attr('ondrop','deviceToChangePosition(event)');
                $('.listCont:eq(1) .listContList ul li:eq('+_numTx+')').attr('ondragover','exp1(event)');
                $('.listCont:eq(1) .listContList ul li:eq('+_numTx+')').attr('ondragstart','expstart(event)');
                var addData = "<span class='macaddress' "+(titleinfoEncodeArr[0]=='0'?"style='display:none'":'') + ">" +hostname+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[1]=='0'?"style='display:none'":'') + ">" +device_id+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[2]=='0'?"style='display:none'":'') + ">" +ip+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[3]=='0'?"style='display:none'":'') + ">V" +firmware_version+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[4]=='0'?"style='display:none'":'') + ">" +(display_mode==0?'Genlock':display_mode)+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[5]=='0'?"style='display:none'":'') + ">" +multicast_address+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[6]=='0'?"style='display:none'":'') + ">" +statu+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[7]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[8]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <div class='infraredDisplayType'></div>\
                                <div class='DragToDropBtn'></div>";
                $('.listCont:eq(1) .listContList ul li:eq('+_numTx+')').append(addData);
            }
            else if($('.listCont:eq(1) .listContList ul li:eq('+(_numTx)+') div').length==0){
                var addData = "<li id='DeviceEncodePositionID"+_numTx+"' class='decodeencodeexist' ondragover='exp1(event)' ondrop='deviceToChangePosition(event)' draggable='true' ondragstart='expstart(event)'>\
                                <span class='macaddress' "+(titleinfoEncodeArr[0]=='0'?"style='display:none'":'') + ">" +hostname+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[1]=='0'?"style='display:none'":'') + ">" +device_id+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[2]=='0'?"style='display:none'":'') + ">" +ip+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[3]=='0'?"style='display:none'":'') + ">V" +firmware_version+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[4]=='0'?"style='display:none'":'') + ">" +(display_mode==0?'Genlock':display_mode)+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[5]=='0'?"style='display:none'":'') + ">" +multicast_address+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[6]=='0'?"style='display:none'":'') + ">" +statu+"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[7]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <span class='macaddress' "+(titleinfoEncodeArr[8]=='0'?"style='display:none'":'') + ">" +"</span>\
                                <div class='infraredDisplayType '></div>\
                                <div class='DragToDropBtn'></div>\
                            </li>";
                $('.listCont:eq(1) .listContList ul').append(addData);//"+(statu!='STOPPED'?'infraredDisplayStream':'error')+"
                
            }
            $('.listCont:eq(1) .listContList ul li').each(function(e){
                if (_arrTx[e]==''&&$('.listCont:eq(1) .listContList ul li:eq('+(e)+') span').length>0) {
                    Encode_Rs232_DataArr[e]='';
                    $('.listCont:eq(1) .listContList ul li:eq('+(e)+')').html("<div class='DragToDropBtn'></div>");
                }
            });
        }        
        addDisplayListenEvent(1);
        _checkLoadingType=1;
    }
    if (Encode_Infrared_DataArr[_numTx][0] != hostname||
        Encode_Infrared_DataArr[_numTx][1] != device_id||
        Encode_Infrared_DataArr[_numTx][2] != ip||
        Encode_Infrared_DataArr[_numTx][3] != firmware_version||
        Encode_Infrared_DataArr[_numTx][4] != display_mode||
        Encode_Infrared_DataArr[_numTx][5] != multicast_address||
        Encode_Infrared_DataArr[_numTx][6] != statu||
        Encode_Infrared_DataArr[_numTx][7] != rxortx) {
            if (typeof(Encode_Infrared_DataArr[_num])=='string') {
                Encode_Infrared_DataArr[_num] = [];
            }
            checkRoutingTableChange = 1;
            Encode_Infrared_DataArr[_numTx][0]=hostname;
            Encode_Infrared_DataArr[_numTx][1]=device_id;
            Encode_Infrared_DataArr[_numTx][2]=ip;
            Encode_Infrared_DataArr[_numTx][3]=firmware_version;
            Encode_Infrared_DataArr[_numTx][4]=display_mode;
            Encode_Infrared_DataArr[_numTx][5]=multicast_address;
            Encode_Infrared_DataArr[_numTx][6]=statu;
            Encode_Infrared_DataArr[_numTx][7]=rxortx;
            // if (statu=='STREAMING') {
            //     $('.listCont:eq(0) .listContList ul li:eq('+(_num+1)+') div:eq(0)').addClass('rs232DisplayStream');
            // }else{
            //     $('.listCont:eq(0) .listContList ul li:eq('+(_num+1)+') div:eq(0)').removeClass('rs232DisplayStream');
            // }
            //encode栏显示
            $('.listCont:eq(1) .listContList ul li:eq('+(_numTx)+') span:eq(0)').html(hostname);
            $('.listCont:eq(1) .listContList ul li:eq('+(_numTx)+') span:eq(1)').html(device_id);
            $('.listCont:eq(1) .listContList ul li:eq('+(_numTx)+') span:eq(2)').html(ip);
            $('.listCont:eq(1) .listContList ul li:eq('+(_numTx)+') span:eq(3)').html('V'+firmware_version);
            var pointDis=display_mode==true?'Point-to-Point':'';
            $('.listCont:eq(1) .listContList ul li:eq('+(_numTx)+') span:eq(4)').html(pointDis);
            $('.listCont:eq(1) .listContList ul li:eq('+(_numTx)+') span:eq(5)').html(multicast_address);
            $('.listCont:eq(1) .listContList ul li:eq('+(_numTx)+') span:eq(6)').html(statu);
            $('.listCont:eq(1) .listContList ul li:eq('+(_numTx)+') span:eq(7)').html();
            $('.listCont:eq(1) .listContList ul li:eq('+(_numTx)+') span:eq(8)').html();
            // if (statu=='STREAMING') {
            //     $('.listCont:eq(1) .listContList ul li:eq('+(_num+1)+') div:eq(0)').addClass('rs232DisplayStream');
            // }else{
            //     $('.listCont:eq(1) .listContList ul li:eq('+(_num+1)+') div:eq(0)').removeClass('rs232DisplayStream');
            // }

        }

}
