/// <summary> /// ocv检测 /// </summary> /// <param name="bytes"></param> public void CheckOCVTest(byte[] bytes) { string dxQrcode = ConvertHelper.ByteToString(bytes, 500, 80); if (dxQrcode.Length < 24) { myopcHelper.SendErrorsCode(23); messagaBLL.WriteMessage("发送错误代码:23", StnModel.StationCode, 23); } float dxvol = ConvertHelper.ByteArrtoFolat(bytes, 580); int res = prodbll.GetDianXinOCVTestResult(StnModel.StationCode, dxQrcode, dxvol); if (res != 0) { myopcHelper.SendOCV_NGCmd(); myopcHelper.SendErrorsCode((byte)res); messagaBLL.WriteMessage("发送OCV测试NG", StnModel.StationCode, res); } else { myopcHelper.SendOCV_OKCmd(); myopcHelper.SendErrorsCode((byte)res); messagaBLL.WriteMessage("发送OCV测试合格", StnModel.StationCode, res); } // myopcHelper.SendOCV_NGCmd(); }