

//发送	
FuncReq34 = function(addr,len){
	var data = {0x44,addr>>24,addr>>16,addr>>8,addr,len>>24,len>>16,len>>8,len};
	var txdata = {0x10,2+#data,0x34,0x00,data[1],data[2],data[3],data[4]};
	CANHw.SendMsg(DiagReqID,txdata);
	FuncPushPackage(DiagReqID,table.slice(data,5));
	
}
var maxlen = 0; 
//接收
FuncDiag34Pro = function(data){
	//console.dumpJson(data);
	FuncDisplay("请求下载成功")
	maxlen = (data[2]<<8) + data[3];
	FuncDisplay("最大长度:" + maxlen);
}

FuncGetSengLen = function(){
	if(maxlen>2){
		return maxlen; 
	}
	else {
		return 0; 
	}
	
	
}
