/// <summary> /// 查询模块信息 /// </summary> /// <param name="analyseresult"></param> /// <returns></returns> public byte[] GetModlesMsg(int addr, out OperateResult analyseresult) { byte[] data = createSendData.GetModlesMsg(addr); OperateResult receiveResult = tcpReadBase.ReadBase(data, data.Length, 500); analyseresult = analyseResult.CheckReturnCrc(receiveResult); return(analyseresult.ResultData); }
/// <summary> /// 查询模块信息 /// </summary> /// <param name="analyseresult"></param> /// <returns></returns> public byte[] GetModlesMsg(int addr, out OperateResult analyseresult) { byte[] data = createSendData.GetModlesMsg(addr); //data = PackDataClass.PackCRC(data,5,7); OperateResult receiveResult = serialReadBase.ReadBase(data, data.Length); analyseresult = analyseResult.CheckReturnCrc(receiveResult); return(analyseresult.ResultData); }