hdw
2018-11-28 d8dcf52cb8527f77e833956b6fea9dcb4bb6a708
gx_tieta/WebRoot/pages/js/common.js
@@ -456,8 +456,20 @@
   
   //CMD下sys
   gl.namespace('CMD.sys');
   gl.CMD.sys.restart = 0x10;
   gl.CMD.sys.set = 0x81;
   gl.CMD.sys.get = 0x80;
   //CMD下gprs
   gl.namespace('CMD.gprs');
   gl.CMD.gprs.param = 145;
   gl.CMD.gprs.signal = "CSQ";
   gl.CMD.gprs.threadinfo = 0x17;
   // CMD下batt
   gl.namespace('CMD.batt');
   gl.CMD.batt.get = 0x36;      // 获取电池参数
   gl.CMD.batt.set = 0x37;      // 设置电池参数
})(jQuery, window, document, GLOBAL);
// 地图信息
@@ -527,7 +539,7 @@
      str += '&battid='+battid;
   }
   if(monnum){
      str += '&monnum'+monnum;
      str += '&monnum='+monnum;
   }
   //var str = page+'?province='+province+'&city='+city+'&county='+county+'&home='+home;
   return str;
@@ -545,4 +557,30 @@
      }
   }
   return rs;
}
//给GPRS发送指定的命令,获取AT返回值
function searchStationSignal(param,callback){
   $.ajax({
        type:"post",
        url: "Bts_gprs_stateAction_action_update?t="+(new Date().getTime()),
        async:true,
        dataType:'json',
        data:'json='+JSON.stringify(param),
        success: function(data){
         var model = eval('('+data.result+')');
         if(callback && typeof callback == 'function'){
            callback(model);
         }
       },error:function(e){
          var model = {
             code:0,
             data:e,
             msg:'通信失败'
          };
          if(callback && typeof callback == 'function'){
            callback(model);
         }
       }
   });
}