diff --git a/Plane.FormationCreator/Formation/RtcmManager.cs b/Plane.FormationCreator/Formation/RtcmManager.cs
index 601c936..9e77822 100644
--- a/Plane.FormationCreator/Formation/RtcmManager.cs
+++ b/Plane.FormationCreator/Formation/RtcmManager.cs
@@ -9,6 +9,7 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
+using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
@@ -406,6 +407,7 @@ namespace Plane.FormationCreator.Formation
bool Ensend = false;
//新版本打包发送模式
//await _commModuleManager.StartRtcmLoop();
+ Plane.Windows.Messages.Message.Show("RTCM发送开始............");
while (Rtcmthreadrun)
{
// Console.WriteLine(string.Format("{0:T} 1", DateTime.Now));
@@ -424,6 +426,7 @@ namespace Plane.FormationCreator.Formation
{
comPort.Close();
comPort.Open();
+ Plane.Windows.Messages.Message.Show("RTCM数据超时或端口被关闭,重新打开");
}
// reset timer
lastrecv = unow;
@@ -433,7 +436,9 @@ namespace Plane.FormationCreator.Formation
if (!comPort.IsOpen)
{
- return;
+ comPort.Open();
+ Plane.Windows.Messages.Message.Show("RTCM端口已被关闭,再次打开");
+ // return;
}
/////////////////////////////////重写发送RTCM数据部分---23/10/18 by panxu
///
@@ -577,9 +582,16 @@ namespace Plane.FormationCreator.Formation
}
catch (Exception ex)
{
- Plane.Windows.Messages.Message.Show(ex.Message);
+ //Plane.Windows.Messages.Message.Show("RTCM异常:" + ex.Message);
+ /*
+ StackFrame sf = new System.Diagnostics.StackTrace(ex, true).GetFrame(0);
+ Plane.Windows.Messages.Message.Show("RTCM异常:"+ ex.Message+" 行:" +
+ sf.GetFileLineNumber() + " 文件:"+ sf.GetFileName());
+ */
}
}
+ Plane.Windows.Messages.Message.Show("RTCM发送停止............");
+ Rtcmthreadrun = false;
}
diff --git a/Plane.FormationCreator/Plane.FormationCreator.csproj b/Plane.FormationCreator/Plane.FormationCreator.csproj
index 8f5af26..1be2103 100644
--- a/Plane.FormationCreator/Plane.FormationCreator.csproj
+++ b/Plane.FormationCreator/Plane.FormationCreator.csproj
@@ -53,6 +53,7 @@
TRACE
prompt
4
+ bin\Release\FGCS.xml
gcs.ico
diff --git a/Plane.FormationCreator/Views/RtcmInfoView.xaml b/Plane.FormationCreator/Views/RtcmInfoView.xaml
index 1ef0670..35b8151 100644
--- a/Plane.FormationCreator/Views/RtcmInfoView.xaml
+++ b/Plane.FormationCreator/Views/RtcmInfoView.xaml
@@ -20,18 +20,18 @@
Margin="10" ItemsSource="{Binding serialPorts, Mode=OneWay}"
SelectedValue="{Binding SerialPortsSelectdValue}"
DropDownOpened="ComboBox_DropDownOpened"/>
-
-