From b3622d580da19aebff095475b961780d2d3f1bbc Mon Sep 17 00:00:00 2001 From: tangxu <76880903@qq.com> Date: 星期二, 25 十月 2022 16:31:24 +0800 Subject: [PATCH] 修改调度 --- Socket/IStation.DataDockingSocket4NT/helper/HandleDataHelper.cs | 278 +++++++++++++++++++++++++++++++++---------------------- 1 files changed, 166 insertions(+), 112 deletions(-) diff --git a/Socket/IStation.DataDockingSocket4NT/helper/HandleDataHelper.cs b/Socket/IStation.DataDockingSocket4NT/helper/HandleDataHelper.cs index 712412f..f9d11c1 100644 --- a/Socket/IStation.DataDockingSocket4NT/helper/HandleDataHelper.cs +++ b/Socket/IStation.DataDockingSocket4NT/helper/HandleDataHelper.cs @@ -1,4 +1,5 @@ 锘縰sing System; +using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; @@ -26,10 +27,10 @@ { return ReadMessage鐩戞帶鍊�(byteMessage); } - else if (byteMessage[2] == 0x32) - { - return ReadMessage鐩戞帶鍊�(byteMessage); - } + //else if (byteMessage[2] == 0x46) + //{ + // return ReadMessage鐩戞帶鍊�(byteMessage); + //} else { return null; @@ -53,6 +54,7 @@ return commandSend; } + /// <summary> /// 鑾峰彇鏌ヨ鎸囦护(鐩戞帶鍊�) @@ -113,8 +115,11 @@ private static List<Model.MonitorDataDockingReceiveRecord> ReadMessage鐩戞帶鍊�(byte[] byteMessage) { var list = new List<Model.MonitorDataDockingReceiveRecord>(); - - + byte start = 0x1A; + if (byteMessage == null || byteMessage.Length < 5 + (56 - start) * 2) + { + return null; + } try { //鏄剧ず娑堟伅 @@ -125,169 +130,218 @@ //DisplayMessage(string.Format(" 璁惧鍦板潃: {0} (0x{1})", byteMessage[0], Convert.ToString(byteMessage[0], 16))); //DisplayMessage(string.Format(" 鍔熻兘鐮�: {0} ", byteMessage[1])); - byte start = 0x1A; + string msg; var now = DateTime.Now; //褰撳墠绠$綉鍘嬪姏 - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1575030496453332992, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########褰撳墠绠$綉鍘嬪姏 -----> {0} Mpa 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3, out msg), msg) }); + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1575030496453332992, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = (GetInt2Byte(byteMessage, 3, out msg) * 0.001).ToString() + }); //鍙橀棰戠巼 - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1575030605857558528, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########鍙橀棰戠巼 -----> {0} Hz 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (27 - start) * 2, out msg) * 0.1, msg) }); + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1575030605857558528, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = (GetInt2Byte(byteMessage, 3 + (27 - start) * 2, out msg) * 0.1).ToString() + }); //鍙橀鐢垫祦 - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1582301190702632960, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########鍙橀鐢垫祦 -----> {0} A 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (28 - start) * 2, out msg) * 0.1, msg) }); + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1582301190702632960, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = (GetInt2Byte(byteMessage, 3 + (28 - start) * 2, out msg) * 0.1).ToString() + }); //鐪熺┖褰撳墠鍘嬪姏 - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1575030435430404096,RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########鐪熺┖褰撳墠鍘嬪姏 -----> {0} Mpa 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (29 - start) * 2, out msg) * 0.001, msg) }); + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1575030435430404096, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = (GetInt2Byte(byteMessage, 3 + (29 - start) * 2, out msg) * 0.001).ToString() + }); //A鐩哥數鍘� - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1582301249292865536, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########A鐩哥數鍘� -----> {0} 鏁版嵁浜岃繘鍒秢1} ", GetDouble1(byteMessage, 3 + (30 - start) * 2, out msg), msg) }); + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1582301249292865536, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = GetDouble1(byteMessage, 3 + (30 - start) * 2, out msg).ToString() + }); //B鐩哥數鍘� - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1582301287175819264, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########B鐩哥數鍘� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetDouble1(byteMessage, 3 + (32 - start) * 2, out msg), msg) }); + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1582301287175819264, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = GetDouble1(byteMessage, 3 + (32 - start) * 2, out msg).ToString() + }); //C鐩哥數鍘� - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1582301332780486656, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########C鐩哥數鍘� -----> {0} 鏁版嵁浜岃繘鍒秢1} ", GetDouble1(byteMessage, 3 + (34 - start) * 2, out msg), msg) }); + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1582301332780486656, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = GetDouble1(byteMessage, 3 + (34 - start) * 2, out msg).ToString() + }); //A鐩哥數娴� - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1582301384118767616, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########A鐩哥數娴� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetDouble1(byteMessage, 3 + (36 - start) * 2, out msg), msg) }); + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1582301384118767616, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = + GetDouble1(byteMessage, 3 + (36 - start) * 2, out msg).ToString() + }); //B鐩哥數娴� - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1582301478792597504, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########B鐩哥數娴� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetDouble1(byteMessage, 3 + (38 - start) * 2, out msg), msg) }); + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1582301478792597504, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = GetDouble1(byteMessage, 3 + (38 - start) * 2, out msg).ToString() + }); //C鐩哥數娴� - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1582301691439616000, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########C鐩哥數娴� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetDouble1(byteMessage, 3 + (40 - start) * 2, out msg), msg) }); - + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1582301691439616000, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = + GetDouble1(byteMessage, 3 + (40 - start) * 2, out msg).ToString() + }); + //鍙橀娉电姸鎬� - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1582303421711650816, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########鍙橀娉电姸鎬� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (42 - start) * 2, out msg), msg) }); + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1582303421711650816, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = GetInt2Byte(byteMessage, 3 + (42 - start) * 2, out msg).ToString() + }); //鐪熺┖娉电姸鎬� - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1582303241251721216, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########鐪熺┖娉电姸鎬� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (43 - start) * 2, out msg), msg) }); + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1582303241251721216, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = GetInt2Byte(byteMessage, 3 + (43 - start) * 2, out msg).ToString() + }); ////鐢靛姩闃�寮�闃�鐘舵�� //list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1582301332780486656, RecordType = Model.eMonitorType.General, SrcTime = now, - // SrcValue = string.Format("########鐢靛姩闃�寮�闃�鐘舵�� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (44 - start) * 2, out msg), msg) }); + // SrcValue = string.Format("########鐢靛姩闃�寮�闃�鐘舵�� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (44 - start) * 2, out msg).ToString() }); ////鐢靛姩闃�鍏抽榾鐘舵�� //list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1582301332780486656, RecordType = Model.eMonitorType.General, SrcTime = now, - // SrcValue = string.Format("########鐢靛姩闃�鍏抽榾鐘舵�� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (45 - start) * 2, out msg), msg) }); + // SrcValue = string.Format("########鐢靛姩闃�鍏抽榾鐘舵�� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (45 - start) * 2, out msg).ToString() }); //鐢电闃�鐘舵�� - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1582303081771700224, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########鐢电闃�鐘舵�� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (46 - start) * 2, out msg), msg) }); + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1582303081771700224, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = GetInt2Byte(byteMessage, 3 + (46 - start) * 2, out msg).ToString() + }); //姘翠綅鐘舵�� - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1582303471342850048, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########姘翠綅鐘舵�� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (47 - start) * 2, out msg), msg) }); + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1582303471342850048, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = GetInt2Byte(byteMessage, 3 + (47 - start) * 2, out msg).ToString() + }); //瓒呭帇鐘舵�� - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1582303606781120512, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########瓒呭帇鐘舵�� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (48 - start) * 2, out msg), msg) }); + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1582303606781120512, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = GetInt2Byte(byteMessage, 3 + (48 - start) * 2, out msg).ToString() + }); //鎶ヨ鐘舵�� - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1582303637420511232, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########鎶ヨ鐘舵�� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (49 - start) * 2, out msg), msg) }); + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1582303637420511232, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = GetInt2Byte(byteMessage, 3 + (49 - start) * 2, out msg).ToString() + }); //鍙橀鍣ㄧ姸鎬� - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1582303671927050240, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########鍙橀鍣ㄧ姸鎬� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (50 - start) * 2, out msg), msg) }); + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1582303671927050240, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = GetInt2Byte(byteMessage, 3 + (50 - start) * 2, out msg).ToString() + }); //褰撳墠娑蹭綅 - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1575388386963886080, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########褰撳墠娑蹭綅 -----> {0} 鏁版嵁浜岃繘鍒秢1} ", GetInt2Byte(byteMessage, 3 + (51 - start) * 2, out msg) * 0.01, msg) }); + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1575388386963886080, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = (GetInt2Byte(byteMessage, 3 + (51 - start) * 2, out msg) * 0.01).ToString() + }); //鐬椂娴侀噺 - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1575030320913321984, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########鐬椂娴侀噺 -----> {0} 鏁版嵁浜岃繘鍒秢1} ", GetInt4Byte(byteMessage, 3 + (52 - start) * 2, out msg) * 0.001, msg) }); + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1575030320913321984, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = (GetInt4Byte(byteMessage, 3 + (52 - start) * 2, out msg) * 0.001).ToString() + }); //绱娴侀噺 - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1584475350807744512, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########绱娴侀噺 -----> {0} 鏁版嵁浜岃繘鍒秢1} ", GetInt4Byte(byteMessage, 3 + (54 - start) * 2, out msg) * 1.0, msg) }); + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1584475350807744512, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = (GetInt4Byte(byteMessage, 3 + (54 - start) * 2, out msg) * 1.0).ToString() + }); //绱娴侀噺鏈夊姛鍔熺巼 - list.Add(new Model.MonitorDataDockingReceiveRecord() { SysId = 1584475756476633088, RecordType = Model.eMonitorType.General, SrcTime = now, - SrcValue = string.Format("########鏈夊姛鍔熺巼 -----> {0} 鏁版嵁浜岃繘鍒秢1} ", GetDouble1(byteMessage, 3 + (56 - start) * 2, out msg), msg) }); - - //褰撳墠绠$綉鍘嬪姏:26 - //3 = 3+(26-26)*2 - /* DisplayMessage(string.Format("########褰撳墠绠$綉鍘嬪姏 -----> {0} Mpa 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3, out msg), msg));//0.001Mpa - - //鍙橀棰戠巼:27 - //5 = 3+(27-26)*2 - DisplayMessage(string.Format("########鍙橀棰戠巼 -----> {0} Hz 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (27 - start) * 2, out msg) * 0.1, msg));//0.1HZ - - //鍙橀鐢垫祦:28 - DisplayMessage(string.Format("########鍙橀鐢垫祦 -----> {0} A 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (28 - start) * 2, out msg) * 0.1, msg));//0.1A - //鐪熺┖褰撳墠鍘嬪姏:29 - DisplayMessage(string.Format("########鐪熺┖褰撳墠鍘嬪姏 -----> {0} Mpa 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (29 - start) * 2, out msg) * 0.001, msg));//0.001Mpa - //A鐩哥數鍘�:30 - //3 = 3+(30-26)*2 - DisplayMessage(string.Format("########A鐩哥數鍘� -----> {0} 鏁版嵁浜岃繘鍒秢1} ", GetDouble1(byteMessage, 3 + (30 - start) * 2, out msg), msg)); - //B鐩哥數鍘�:32 - DisplayMessage(string.Format("########B鐩哥數鍘� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetDouble1(byteMessage, 3 + (32 - start) * 2, out msg), msg)); - //C鐩哥數鍘�:34 - DisplayMessage(string.Format("########C鐩哥數鍘� -----> {0} 鏁版嵁浜岃繘鍒秢1} ", GetDouble1(byteMessage, 3 + (34 - start) * 2, out msg), msg)); - - //A鐩哥數娴�:36 - DisplayMessage(string.Format("########A鐩哥數娴� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetDouble1(byteMessage, 3 + (36 - start) * 2, out msg), msg)); - //B鐩哥數娴�:38 - DisplayMessage(string.Format("########B鐩哥數娴� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetDouble1(byteMessage, 3 + (38 - start) * 2, out msg), msg)); - //C鐩哥數娴�:40 - DisplayMessage(string.Format("########C鐩哥數娴� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetDouble1(byteMessage, 3 + (40 - start) * 2, out msg), msg)); - - //鍙橀娉电姸鎬�:42 - DisplayMessage(string.Format("########鍙橀娉电姸鎬� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (42 - start) * 2, out msg), msg)); - //鐪熺┖娉电姸鎬� :43 //鍙橀娉电姸鎬�:42 - DisplayMessage(string.Format("########鐪熺┖娉电姸鎬� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (43 - start) * 2, out msg), msg)); - //鐢靛姩闃�寮�闃�鐘舵�� :44 - DisplayMessage(string.Format("########鐢靛姩闃�寮�闃�鐘舵�� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (44 - start) * 2, out msg), msg)); - //鐢靛姩闃�鍏抽榾鐘舵�� :45 - DisplayMessage(string.Format("########鐢靛姩闃�鍏抽榾鐘舵�� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (45 - start) * 2, out msg), msg)); - //鐢电闃�鐘舵�� :46 - DisplayMessage(string.Format("########鐢电闃�鐘舵�� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (46 - start) * 2, out msg), msg)); - //姘翠綅鐘舵��:47 - DisplayMessage(string.Format("########姘翠綅鐘舵�� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (47 - start) * 2, out msg), msg)); - //瓒呭帇鐘舵��:48 - DisplayMessage(string.Format("########瓒呭帇鐘舵�� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (48 - start) * 2, out msg), msg)); - //鎶ヨ鐘舵��:49 - DisplayMessage(string.Format("########鎶ヨ鐘舵�� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (49 - start) * 2, out msg), msg)); - //鍙橀鍣ㄧ姸鎬�:50 - DisplayMessage(string.Format("########鍙橀鍣ㄧ姸鎬� -----> {0} 鏁版嵁浜岃繘鍒秢1}", GetInt2Byte(byteMessage, 3 + (50 - start) * 2, out msg), msg)); - - - - //褰撳墠娑蹭綅:51 - DisplayMessage(string.Format("########褰撳墠娑蹭綅 -----> {0} 鏁版嵁浜岃繘鍒秢1} ", GetInt2Byte(byteMessage, 3 + (51 - start) * 2, out msg) * 0.01, msg)); - //鐬椂娴侀噺:52 - DisplayMessage(string.Format("########鐬椂娴侀噺 -----> {0} 鏁版嵁浜岃繘鍒秢1} ", GetInt4Byte(byteMessage, 3 + (52 - start) * 2, out msg) * 0.001, msg)); - //绱娴侀噺:54 - DisplayMessage(string.Format("########绱娴侀噺 -----> {0} 鏁版嵁浜岃繘鍒秢1} ", GetInt4Byte(byteMessage, 3 + (54 - start) * 2, out msg) * 1.0, msg)); - //鏈夊姛鍔熺巼:56 - DisplayMessage(string.Format("########鏈夊姛鍔熺巼 -----> {0} 鏁版嵁浜岃繘鍒秢1} ", GetDouble1(byteMessage, 3 + (56 - start) * 2, out msg), msg)); - - */ + list.Add(new Model.MonitorDataDockingReceiveRecord() + { + SysId = 1584475756476633088, + RecordType = Model.eMonitorType.General, + SrcTime = now, + SrcValue = GetDouble1(byteMessage, 3 + (56 - start) * 2, out msg).ToString() + }); } catch //(Exception err) { - return null; } return list; } + + #region MyRegion private static int GetInt2Byte(byte[] byteMessage, int startPosition, out string info) { -- Gitblit v1.9.3