Commit b8514908 张东亮

lineplace

1 个父辈 a29760e4
此文件类型无法预览
......@@ -51,7 +51,7 @@ namespace BLL
_server = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
_server.Bind(localEP);
_server.Listen(100);
Common.log.Info("Server Start");
Common.LogInfo("Server Start");
_loop = true;
_client = new List<Client>();
......@@ -79,7 +79,7 @@ namespace BLL
_server.Close();
_client = null;
Thread.Sleep(50);
Common.log.Info("Server Stop");
Common.LogInfo("Server Stop");
}
public bool ReadyEnter(string nodeName, string rfid = "")
......@@ -87,7 +87,7 @@ namespace BLL
int idx = FindClient(nodeName);
if (idx == -1)
{
Common.log.Info("ReadyEnter 没有找到" + nodeName);
Common.LogInfo("ReadyEnter 没有找到" + nodeName);
return false;
}
else
......@@ -103,7 +103,7 @@ namespace BLL
int idx = FindClient(nodeName);
if (idx == -1)
{
Common.log.Info("ReadyLeave 没有找到" + nodeName);
Common.LogInfo("ReadyLeave 没有找到" + nodeName);
return false;
}
else
......@@ -156,12 +156,12 @@ namespace BLL
_client.Add(client);
listen.Start(_client.Count - 1);
Common.log.Info(string.Format("[{0}] 已连接", client.IP));
Common.LogInfo(string.Format("[{0}] 已连接", client.IP));
}
catch (SocketException)
{
//关闭连接,退出阻塞Accept
Common.log.Info("服务端关闭连接,退出阻塞Accept");
Common.LogInfo("服务端关闭连接,退出阻塞Accept");
}
catch (Exception ex)
{
......@@ -197,7 +197,7 @@ namespace BLL
ClientNode node = Decode(buff);
if (node == null)
{
Common.log.Info("解码失败:" + HexBuff(buff));
Common.LogInfo("解码失败:" + HexBuff(buff));
}
else
{
......@@ -213,7 +213,7 @@ namespace BLL
if (time > 5000)
{
Offline(client);
Common.log.Info("[" + client.IP + "] 超过5s没有收到数据,关闭连接");
Common.LogInfo("[" + client.IP + "] 超过5s没有收到数据,关闭连接");
}
}
}
......@@ -273,7 +273,7 @@ namespace BLL
int idx = Common.nodeInfo.FindIndex(s => s.Name == node.Name);
if (idx == -1)
{
Common.log.Info("UpdateNode " + node.Name + " 不存在");
Common.LogInfo("UpdateNode " + node.Name + " 不存在");
return;
}
......@@ -288,7 +288,7 @@ namespace BLL
{
Common.nodeInfo[idx].Action = node.Action;
Common.nodeInfo[idx].RFID = node.RFID;
Common.log.Info(node.Name + "更新 " + node.ToText());
Common.LogInfo(node.Name + "更新 " + node.ToText());
NodeChanged?.Invoke(idx);
}
}
......@@ -363,7 +363,7 @@ namespace BLL
if (!_client[idx].IsConn)
{
Common.log.Info(ip + " 没有连接");
Common.LogInfo(ip + " 没有连接");
return false;
}
......
......@@ -20,7 +20,7 @@ namespace AGVControl
/// </summary>
public static List<Agv_Info> agvInfo;
public static List<string> linePlace;
public static System.Windows.Forms.TextBox logTextBox;
public static BLL.AgvServer server;
public static BLL.Control control;
......@@ -33,42 +33,57 @@ namespace AGVControl
public static Dictionary<string, string> agvProductionLine;
public static System.Configuration.Configuration appConfig;
public static readonly string CONFIG_PATH = AppDomain.CurrentDomain.BaseDirectory + "Config\\";
public static int logCnt = 0;
public static void LogInfo(string text)
{
if (logTextBox.InvokeRequired)
{
logTextBox.Invoke(new Action(() => LogInfo(text)));
return;
}
logCnt++;
if (logCnt > 200)
logTextBox.Text = "";
logTextBox.Text += string.Format("[{0}] {1}\r\n",DateTime.Now.ToString("HH:mm:ss") ,text);
}
public static void ReadLinePlace()
{
if (!System.IO.File.Exists(CONFIG_PATH + "LinePlace.txt"))
return;
string[] s = System.IO.File.ReadAllLines(CONFIG_PATH + "LinePlace.txt");
linePlace = new List<string>();
linePlace.AddRange(s);
}
//public static void AddLinePlace(string nodeName)
//{
// int idx = Common.nodeInfo.FindIndex(s => s.Name == nodeName);
// if(idx>-1)
// {
// if(Common.linePlace.ContainsKey(nodeName))
// {
// log.Info("AddLinePlace 节点" + nodeName + "已存在任务队列,无需重复添加");
// return;
// }
// Common.linePlace.Add(nodeName,Common.nodeInfo[idx].Level);
// Common.appConfig.AppSettings.Settings["nodesLevel"].Value = string.Join(",",linePlace.Values);
// Common.appConfig.AppSettings.Settings["nodesMission"].Value =string.Join(",",linePlace.Keys);
// Common.appConfig.Save();
// }
// else
// {
// log.Error("AddLinePlace 失败 节点"+ nodeName+"不存在");
// }
//}
//public static void RemoveLinePlace(string nodeName)
//{
// Common.linePlace.Remove(nodeName);
// Common.appConfig.AppSettings.Settings["nodesLevel"].Value = string.Join(",", linePlace.Values);
// Common.appConfig.AppSettings.Settings["nodesMission"].Value = string.Join(",", linePlace.Keys);
// Common.appConfig.Save();
//}
public static bool AddLinePlace(string nodeName)
{
int idx = Common.nodeInfo.FindIndex(s => s.Name == nodeName);
if (idx > -1)
{
if (Common.linePlace.Contains(nodeName))
{
LogInfo("AddLinePlace 节点" + nodeName + "已存在任务队列,无需重复添加");
return false;
}
Common.linePlace.Add(nodeName);
System.IO.File.WriteAllLines(CONFIG_PATH + "LinePlace.txt", linePlace);
return true;
}
else
{
log.Error("AddLinePlace 失败 节点" + nodeName + "不存在");
return false;
}
}
public static void RemoveLinePlace(string nodeName)
{
Common.linePlace.Remove(nodeName);
System.IO.File.WriteAllLines(CONFIG_PATH + "LinePlace.txt", linePlace);
}
public static void CheckAGVMissionState()
{
......@@ -79,7 +94,7 @@ namespace AGVControl
if (rtn)
{
agv.GetPlace(regValue);
Common.log.Info(string.Format("软件开启:{0} Get_Register PLC{1}={2} Place={3} PlaceState={4}", agv.Name, 20, regValue, agv.Place, agv.PlaceState));
Common.LogInfo(string.Format("软件开启:{0} Get_Register PLC{1}={2} Place={3} PlaceState={4}", agv.Name, 20, regValue, agv.Place, agv.PlaceState));
if (!agv.Place.Equals(""))
{
int idx = nodeInfo.FindIndex(s => s.Name == agv.Place);
......
......@@ -67,12 +67,12 @@ namespace BLL
if (change)
{
Common.log.Info(string.Format("{0} Get_State StateID={1}, StateText={2}, Battery={3}, Mission_text={4}", Common.agvInfo[i].Name, stateID, stateText, battery, mission_text));
Common.LogInfo(string.Format("{0} Get_State StateID={1}, StateText={2}, Battery={3}, Mission_text={4}", Common.agvInfo[i].Name, stateID, stateText, battery, mission_text));
}
//执行任务更新状态
if (stateID == 5 || change)
{
Common.log.Info(string.Format("{0} Get_Register PLC{1}={2}", Common.agvInfo[i].Name, REG_STATUS, regValue));
Common.LogInfo(string.Format("{0} Get_Register PLC{1}={2}", Common.agvInfo[i].Name, REG_STATUS, regValue));
AgvChanged?.Invoke(i);
}
......@@ -110,7 +110,7 @@ namespace BLL
//Ready,Pause,Executing
if (Common.agvInfo[i].StateID != 3 && Common.agvInfo[i].StateID != 4 && Common.agvInfo[i].StateID != 5)
{
Common.log.Info(string.Format("{0}不能调用 StateID={1}, StateText={2}", Common.agvInfo[i].Name, Common.agvInfo[i].StateID, Common.agvInfo[i].StateText));
Common.LogInfo(string.Format("{0}不能调用 StateID={1}, StateText={2}", Common.agvInfo[i].Name, Common.agvInfo[i].StateID, Common.agvInfo[i].StateText));
continue;
}
......@@ -153,7 +153,7 @@ namespace BLL
if (!Common.agvInfo[idx].IsCon)
{
Common.agvInfo[idx].IsCon = true;
Common.log.Info(Common.agvInfo[idx].Name + " Online");
Common.LogInfo(Common.agvInfo[idx].Name + " Online");
AgvOnline?.Invoke(idx);
AgvChanged?.Invoke(idx);
}
......@@ -163,7 +163,7 @@ namespace BLL
if (Common.agvInfo[idx].IsCon)
{
Common.agvInfo[idx].IsCon = false;
Common.log.Info(Common.agvInfo[idx].Name + " Offline");
Common.LogInfo(Common.agvInfo[idx].Name + " Offline");
AgvOnline?.Invoke(idx);
AgvChanged?.Invoke(idx);
}
......@@ -197,14 +197,14 @@ namespace BLL
index = FindNode(nextNode);
Common.nodeInfo[index].AgvName = Common.agvInfo[idx].Name;
}
Common.log.Info(string.Format("A6有满料架[{0}]要出,目的地为{1}", RFID, nextNode));
Common.LogInfo(string.Format("A6有满料架[{0}]要出,目的地为{1}", RFID, nextNode));
agv.TaskSend = rtn ? "MoveA6" : "";
return;
}
if (Common.linePlace.Count == 0)
{
Common.log.Info("Common.linePlace.Count == 0 无空料架要出");
Common.LogInfo("Common.linePlace.Count == 0 无空料架要出");
return;
}
......@@ -226,31 +226,35 @@ namespace BLL
// }
// agv.TaskSend = rtn ? "Move" + name : "";
// }
// Common.log.Info(string.Format("[{0}-{1}] 出空料架.", name, item.Value));
// Common.LogInfo(string.Format("[{0}-{1}] 出空料架.", name, item.Value));
// if (Common.linePlace.Count.Equals(0).Equals(false))
// Common.log.Info("剩余需要出空料架的节点:" + string.Join(",", Common.linePlace.Keys.ToArray())
// Common.LogInfo("剩余需要出空料架的节点:" + string.Join(",", Common.linePlace.Keys.ToArray())
// + ";对应紧急程度:" + string.Join(",", Common.linePlace.Values.ToArray()));
// if (rtn) break;
//}
//for (int i = 0; i < Common.linePlace.Count; i++)
//{
// string name = Common.linePlace.Keys[i];
// index = Common.nodeInfo.FindIndex(s => s.Name.Equals(name) && s.Action == ClientAction.NeedLeave && s.IsUse);
// if (index > -1)
// {
// rtn = Common.mir.Add_Mission_Fleet(agv, Common.agvMission["Move" + name]);
// if (rtn)
// {
// Common.nodeInfo[index].AgvName = Common.agvInfo[idx].Name;
// Common.linePlace.RemoveAt(i);
// }
// agv.TaskSend = rtn ? "Move" + name : "";
// }
// if (rtn) break;
//}
for (int i = 0; i < Common.linePlace.Count; i++)
{
string name = Common.linePlace[i];
index = Common.nodeInfo.FindIndex(s => s.Name.Equals(name) && s.Action == ClientAction.NeedLeave && s.IsUse);
if (index > -1)
{
rtn = Common.mir.Add_Mission_Fleet(agv, Common.agvMission["Move" + name]);
if (rtn)
{
Common.nodeInfo[index].AgvName = Common.agvInfo[idx].Name;
Common.linePlace.RemoveAt(i);
System.IO.File.WriteAllLines(Common.CONFIG_PATH + "LinePlace.txt", Common.linePlace);
}
agv.TaskSend = rtn ? "Move" + name : "";
}
Common.LogInfo(string.Format("[{0}] 出空料架.", name));
if (Common.linePlace.Count.Equals(0).Equals(false))
Common.LogInfo("剩余需要出空料架的节点:" + string.Join(",", Common.linePlace.ToArray()));
if (rtn) break;
}
}
/// <summary>
/// agv正在运动
......@@ -280,13 +284,13 @@ namespace BLL
rtn = Common.mir.Add_Mission_Fleet(agv, Common.agvMission["Leave"]);
agv.TaskSend = rtn ? "Leave" : "";
if (rtn)
Common.log.Info(string.Format("{0}到达{1},可以进入料架", agv.Name, agv.Place));
Common.LogInfo(string.Format("{0}到达{1},可以进入料架", agv.Name, agv.Place));
}
else
{
rtn = Common.server.ReadyEnter(agv.Place);
if (!rtn) return;
Common.log.Info(string.Format("{0}到达{1},服务器发送ReadyEnter信号", agv.Name, agv.Place));
Common.LogInfo(string.Format("{0}到达{1},服务器发送ReadyEnter信号", agv.Name, agv.Place));
}
break;
case "A6":
......@@ -296,7 +300,7 @@ namespace BLL
rtn = Common.mir.Add_Mission_Fleet(agv, Common.agvMission["Leave"]);
agv.TaskSend = rtn ? "Leave" : "";
if (rtn)
Common.log.Info(string.Format("{0}到达{1},可以进入料架", agv.Name, agv.Place));
Common.LogInfo(string.Format("{0}到达{1},可以进入料架", agv.Name, agv.Place));
}
else if (node.Action == ClientAction.MayLeave)
{
......@@ -304,19 +308,19 @@ namespace BLL
rtn = Common.mir.Add_Mission_Fleet(agv, Common.agvMission["Leave"]);
agv.TaskSend = rtn ? "Leave" : "";
if (rtn)
Common.log.Info(string.Format("{0}到达{1},可以出去料架", agv.Name, agv.Place));
Common.LogInfo(string.Format("{0}到达{1},可以出去料架", agv.Name, agv.Place));
}
else if (node.Action == ClientAction.NeedEnter)
{
rtn = Common.server.ReadyEnter(agv.Place);
if (!rtn) return;
Common.log.Info(string.Format("{0}到达{1},服务器发送ReadyEnter信号", agv.Name, agv.Place));
Common.LogInfo(string.Format("{0}到达{1},服务器发送ReadyEnter信号", agv.Name, agv.Place));
}
else if (node.Action == ClientAction.NeedLeave)
{
rtn = Common.server.ReadyLeave(agv.Place);
if (!rtn) return;
Common.log.Info(string.Format("{0}到达{1},服务器发送ReadyLeave信号", agv.Name, agv.Place));
Common.LogInfo(string.Format("{0}到达{1},服务器发送ReadyLeave信号", agv.Name, agv.Place));
}
else if (node.Action == ClientAction.NeedEnterLeave)
{
......@@ -342,7 +346,7 @@ namespace BLL
rtn = Common.mir.Add_Mission_Fleet(agv, Common.agvMission["Leave"]);
agv.TaskSend = rtn ? "Leave" : "";
if (rtn)
Common.log.Info(string.Format("{0}到达{1},可以进入料架", agv.Name, agv.Place));
Common.LogInfo(string.Format("{0}到达{1},可以进入料架", agv.Name, agv.Place));
}
else if (node.Action == ClientAction.MayLeave)
{
......@@ -350,20 +354,20 @@ namespace BLL
rtn = Common.mir.Add_Mission_Fleet(agv, Common.agvMission["Leave"]);
agv.TaskSend = rtn ? "Leave" : "";
if (rtn)
Common.log.Info(string.Format("{0}到达{1},可以出去料架", agv.Name, agv.Place));
Common.LogInfo(string.Format("{0}到达{1},可以出去料架", agv.Name, agv.Place));
}
else if (node.Action == ClientAction.NeedEnter)
{
rtn = Common.server.ReadyEnter(agv.Place);
if (!rtn) return;
Common.log.Info(string.Format("{0}到达{1},服务器发送ReadyEnter信号", agv.Name, agv.Place));
Common.LogInfo(string.Format("{0}到达{1},服务器发送ReadyEnter信号", agv.Name, agv.Place));
}
else if (node.Action == ClientAction.NeedLeave)
{
rtn = Common.server.ReadyLeave(agv.Place);
if (!rtn) return;
Common.log.Info(string.Format("{0}到达{1},服务器发送ReadyLeave信号", agv.Name, agv.Place));
Common.LogInfo(string.Format("{0}到达{1},服务器发送ReadyLeave信号", agv.Name, agv.Place));
}
break;
}
......@@ -404,7 +408,7 @@ namespace BLL
node.AgvName = "";
agv.TaskSend = rtn ? "Move" + nextPlace : "";
if (rtn)
Common.log.Info(string.Format("{0}完成出满料架,准备运往{1}","A6",nextPlace));
Common.LogInfo(string.Format("{0}完成出满料架,准备运往{1}","A6",nextPlace));
}
break;
}
......@@ -435,13 +439,13 @@ namespace BLL
case "A5":
if (node.Action == ClientAction.FinishEnter)
{
Common.log.Info(string.Format("{0}在{1}完成进入料架", agv.Name, agv.Place));
Common.LogInfo(string.Format("{0}在{1}完成进入料架", agv.Name, agv.Place));
}
break;
case "A6":
if (node.Action == ClientAction.FinishEnter)
{
Common.log.Info(string.Format("{0}在{1}完成进入料架", agv.Name, agv.Place));
Common.LogInfo(string.Format("{0}在{1}完成进入料架", agv.Name, agv.Place));
}
break;
}
......@@ -450,7 +454,7 @@ namespace BLL
private void StateError(int idx)
{
Agv_Info agv = Common.agvInfo[idx];
Common.log.Info(string.Format("{0}在执行任务[{1}]出现错误:{2}",agv.Name,agv.TaskSend,agv.MissionText));
Common.LogInfo(string.Format("{0}在执行任务[{1}]出现错误:{2}",agv.Name,agv.TaskSend,agv.MissionText));
}
private int FindNode(string nodeName)
......@@ -496,7 +500,7 @@ namespace BLL
json = json.Replace("\r", "");
json = json.Replace("\n", "");
json = json.Replace(" ", "");
Common.log.Info("ITS URL: " + url + " Return: " + json);
Common.LogInfo("ITS URL: " + url + " Return: " + json);
if (string.IsNullOrWhiteSpace(json)) return false;
JavaScriptSerializer serializer = new JavaScriptSerializer();
......
......@@ -470,7 +470,7 @@ namespace BLL
bool rtn = System.Text.RegularExpressions.Regex.IsMatch(ip, pattern);
if (!rtn)
{
Common.log.Info("非法的IP地址" + ip);
Common.LogInfo("非法的IP地址" + ip);
return false;
}
......@@ -482,7 +482,7 @@ namespace BLL
ping.Dispose();
if (result.Status != System.Net.NetworkInformation.IPStatus.Success)
{
Common.log.Info("Ping " + ip + " 请求没有响应");
Common.LogInfo("Ping " + ip + " 请求没有响应");
return false;
}
return true;
......
......@@ -3,6 +3,7 @@ using System.ServiceModel.Web;
using System.Runtime.Serialization;
using System.ServiceModel.Activation;
using System;
using AGVControl;
namespace BLL
{
......@@ -39,25 +40,32 @@ namespace BLL
public Result CreateEmptyRecycleTask(string line)
{
AGVControl.Common.log.Info("WebService Request emptyStation=" + line);
AGVControl.Common.LogInfo("WebService Request emptyStation=" + line);
Result res;
if (AGVControl.Common.agvProductionLine.TryGetValue(line, out string value))
{
res = new Result() { Succeed = "true", ResultData = "", ErrorMessage = "" };
AGVControl.Common.log.Info("WebService Response OK");
AGVControl.Common.LogInfo("WebService Response OK");
//加到任务
int idx = AGVControl.Common.nodeInfo.FindIndex(s => s.Name == value);
if (idx > -1)
AGVControl.Common.linePlace.Add(value);
//int idx = AGVControl.Common.nodeInfo.FindIndex(s => s.Name == value);
//if (idx > -1)
// AGVControl.Common.linePlace.Add(value);
//else
// AGVControl.Common.log.Error("CreateEmptyRecycleTask " + value + "不存在");
if(!Common.AddLinePlace(value))
AGVControl.Common.log.Error("CreateEmptyRecycleTask 节点【" + value + "】不存在");
else
AGVControl.Common.log.Error("CreateEmptyRecycleTask " + value + "不存在");
{
AGVControl.Common.LogInfo("CreateEmptyRecycleTask 节点【" + value + "】收到出空料架任务");
}
//System.IO.File.WriteAllLines(Common.CONFIG_PATH + "LinePlace.txt", Common.linePlace);
}
else
{
res = new Result() { Succeed = "false", ResultData = "", ErrorMessage = "Not find " + line };
AGVControl.Common.log.Info("WebService Response false");
AGVControl.Common.LogInfo("WebService Response false");
}
return res;
......@@ -75,7 +83,7 @@ namespace BLL
ClsWebService service = new ClsWebService();
_serviceHost = new WebServiceHost(service, new Uri(url));
_serviceHost.Open();
AGVControl.Common.log.Info("Web服务已开启");
AGVControl.Common.LogInfo("Web服务已开启");
}
catch (Exception ex)
{
......@@ -88,7 +96,7 @@ namespace BLL
try
{
_serviceHost.Close();
AGVControl.Common.log.Info("Web服务已关闭");
AGVControl.Common.LogInfo("Web服务已关闭");
}
catch (Exception ex)
{
......
......@@ -30,16 +30,6 @@
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMain));
this.DgvAgv = new System.Windows.Forms.DataGridView();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column18 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column19 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column11 = new System.Windows.Forms.DataGridViewButtonColumn();
this.Column17 = new System.Windows.Forms.DataGridViewButtonColumn();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.DgvNode = new System.Windows.Forms.DataGridView();
......@@ -54,11 +44,8 @@
this.tabPage3 = new System.Windows.Forms.TabPage();
this.btnReadlinePlace = new System.Windows.Forms.Button();
this.dgvLinePlace = new System.Windows.Forms.DataGridView();
this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column20 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.btnDeletelinePlace = new System.Windows.Forms.Button();
this.btnAddlinePlace = new System.Windows.Forms.Button();
this.TxtPlace = new System.Windows.Forms.TextBox();
this.BtnClearError = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
......@@ -76,6 +63,19 @@
this.tabPage2 = new System.Windows.Forms.TabPage();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.TxtLog = new System.Windows.Forms.TextBox();
this.Column8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column18 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column19 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Column11 = new System.Windows.Forms.DataGridViewButtonColumn();
this.Column17 = new System.Windows.Forms.DataGridViewButtonColumn();
this.groupBox1 = new System.Windows.Forms.GroupBox();
((System.ComponentModel.ISupportInitialize)(this.DgvAgv)).BeginInit();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
......@@ -84,6 +84,7 @@
((System.ComponentModel.ISupportInitialize)(this.dgvLinePlace)).BeginInit();
this.tabPage2.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// DgvAgv
......@@ -106,103 +107,17 @@
this.Column19,
this.Column11,
this.Column17});
this.DgvAgv.Location = new System.Drawing.Point(12, 12);
this.DgvAgv.Location = new System.Drawing.Point(16, 15);
this.DgvAgv.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.DgvAgv.Name = "DgvAgv";
this.DgvAgv.ReadOnly = true;
this.DgvAgv.RowHeadersVisible = false;
this.DgvAgv.RowHeadersWidth = 51;
this.DgvAgv.RowTemplate.Height = 23;
this.DgvAgv.Size = new System.Drawing.Size(918, 126);
this.DgvAgv.Size = new System.Drawing.Size(1198, 158);
this.DgvAgv.TabIndex = 3;
this.DgvAgv.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DgvAgv_CellClick);
//
// Column1
//
this.Column1.HeaderText = "AGV名称";
this.Column1.MinimumWidth = 6;
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column1.Width = 80;
//
// Column2
//
this.Column2.HeaderText = "IP";
this.Column2.MinimumWidth = 6;
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column2.Width = 125;
//
// Column3
//
this.Column3.HeaderText = "AGV状态";
this.Column3.MinimumWidth = 6;
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column3.Width = 125;
//
// Column14
//
this.Column14.HeaderText = "任务状态";
this.Column14.MinimumWidth = 6;
this.Column14.Name = "Column14";
this.Column14.ReadOnly = true;
this.Column14.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column14.Width = 120;
//
// Column18
//
this.Column18.HeaderText = "目标地点";
this.Column18.MinimumWidth = 6;
this.Column18.Name = "Column18";
this.Column18.ReadOnly = true;
this.Column18.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column18.Width = 80;
//
// Column4
//
this.Column4.HeaderText = "后续任务";
this.Column4.MinimumWidth = 6;
this.Column4.Name = "Column4";
this.Column4.ReadOnly = true;
this.Column4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column4.Width = 80;
//
// Column13
//
this.Column13.HeaderText = "在线";
this.Column13.MinimumWidth = 6;
this.Column13.Name = "Column13";
this.Column13.ReadOnly = true;
this.Column13.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column13.Width = 60;
//
// Column19
//
this.Column19.HeaderText = "电量";
this.Column19.MinimumWidth = 6;
this.Column19.Name = "Column19";
this.Column19.ReadOnly = true;
this.Column19.Width = 60;
//
// Column11
//
this.Column11.HeaderText = "调用";
this.Column11.MinimumWidth = 6;
this.Column11.Name = "Column11";
this.Column11.ReadOnly = true;
this.Column11.Width = 60;
//
// Column17
//
this.Column17.HeaderText = "清除缓存";
this.Column17.MinimumWidth = 6;
this.Column17.Name = "Column17";
this.Column17.ReadOnly = true;
this.Column17.Width = 80;
//
// tabControl1
//
this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
......@@ -211,19 +126,21 @@
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Location = new System.Drawing.Point(12, 144);
this.tabControl1.Location = new System.Drawing.Point(16, 180);
this.tabControl1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(918, 463);
this.tabControl1.Size = new System.Drawing.Size(1198, 579);
this.tabControl1.TabIndex = 6;
//
// tabPage1
//
this.tabPage1.Controls.Add(this.DgvNode);
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Location = new System.Drawing.Point(4, 25);
this.tabPage1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(910, 437);
this.tabPage1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tabPage1.Size = new System.Drawing.Size(1190, 550);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "节点";
this.tabPage1.UseVisualStyleBackColor = true;
......@@ -247,13 +164,14 @@
this.Column5,
this.Column16,
this.Column15});
this.DgvNode.Location = new System.Drawing.Point(6, 6);
this.DgvNode.Location = new System.Drawing.Point(8, 8);
this.DgvNode.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.DgvNode.Name = "DgvNode";
this.DgvNode.ReadOnly = true;
this.DgvNode.RowHeadersVisible = false;
this.DgvNode.RowHeadersWidth = 50;
this.DgvNode.RowTemplate.Height = 23;
this.DgvNode.Size = new System.Drawing.Size(898, 425);
this.DgvNode.Size = new System.Drawing.Size(1171, 531);
this.DgvNode.TabIndex = 1;
this.DgvNode.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DgvNode_CellClick);
//
......@@ -329,11 +247,7 @@
//
// tabPage3
//
this.tabPage3.Controls.Add(this.btnReadlinePlace);
this.tabPage3.Controls.Add(this.dgvLinePlace);
this.tabPage3.Controls.Add(this.btnDeletelinePlace);
this.tabPage3.Controls.Add(this.btnAddlinePlace);
this.tabPage3.Controls.Add(this.TxtPlace);
this.tabPage3.Controls.Add(this.groupBox1);
this.tabPage3.Controls.Add(this.BtnClearError);
this.tabPage3.Controls.Add(this.label2);
this.tabPage3.Controls.Add(this.label1);
......@@ -348,21 +262,23 @@
this.tabPage3.Controls.Add(this.BtnMissionPause);
this.tabPage3.Controls.Add(this.BtnMissionReady);
this.tabPage3.Controls.Add(this.LstAgvPlace);
this.tabPage3.Location = new System.Drawing.Point(4, 22);
this.tabPage3.Location = new System.Drawing.Point(4, 25);
this.tabPage3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
this.tabPage3.Size = new System.Drawing.Size(910, 437);
this.tabPage3.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tabPage3.Size = new System.Drawing.Size(1190, 550);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "任务";
this.tabPage3.UseVisualStyleBackColor = true;
//
// btnReadlinePlace
//
this.btnReadlinePlace.Location = new System.Drawing.Point(416, 238);
this.btnReadlinePlace.Location = new System.Drawing.Point(163, 63);
this.btnReadlinePlace.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btnReadlinePlace.Name = "btnReadlinePlace";
this.btnReadlinePlace.Size = new System.Drawing.Size(111, 30);
this.btnReadlinePlace.Size = new System.Drawing.Size(148, 38);
this.btnReadlinePlace.TabIndex = 29;
this.btnReadlinePlace.Text = "读取linePlacce";
this.btnReadlinePlace.Text = "读取任务";
this.btnReadlinePlace.UseVisualStyleBackColor = true;
this.btnReadlinePlace.Click += new System.EventHandler(this.btnReadlinePlace_Click);
//
......@@ -371,63 +287,44 @@
this.dgvLinePlace.AllowUserToAddRows = false;
this.dgvLinePlace.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dgvLinePlace.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.Column8,
this.Column20});
this.dgvLinePlace.Location = new System.Drawing.Point(162, 211);
this.dgvLinePlace.Margin = new System.Windows.Forms.Padding(2);
this.Column8});
this.dgvLinePlace.Location = new System.Drawing.Point(7, 37);
this.dgvLinePlace.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.dgvLinePlace.Name = "dgvLinePlace";
this.dgvLinePlace.RowHeadersVisible = false;
this.dgvLinePlace.RowHeadersWidth = 51;
this.dgvLinePlace.RowTemplate.Height = 27;
this.dgvLinePlace.Size = new System.Drawing.Size(233, 120);
this.dgvLinePlace.Size = new System.Drawing.Size(132, 150);
this.dgvLinePlace.TabIndex = 28;
//
// Column8
//
this.Column8.HeaderText = "ITS任务节点";
this.Column8.MinimumWidth = 6;
this.Column8.Name = "Column8";
this.Column8.Width = 125;
//
// Column20
//
this.Column20.HeaderText = "任务等级";
this.Column20.MinimumWidth = 6;
this.Column20.Name = "Column20";
this.Column20.Width = 125;
//
// btnDeletelinePlace
//
this.btnDeletelinePlace.Location = new System.Drawing.Point(416, 310);
this.btnDeletelinePlace.Location = new System.Drawing.Point(163, 153);
this.btnDeletelinePlace.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btnDeletelinePlace.Name = "btnDeletelinePlace";
this.btnDeletelinePlace.Size = new System.Drawing.Size(112, 30);
this.btnDeletelinePlace.Size = new System.Drawing.Size(149, 38);
this.btnDeletelinePlace.TabIndex = 27;
this.btnDeletelinePlace.Text = "删除linePlacce";
this.btnDeletelinePlace.Text = "删除任务";
this.btnDeletelinePlace.UseVisualStyleBackColor = true;
this.btnDeletelinePlace.Click += new System.EventHandler(this.btnDeletelinePlace_Click);
//
// btnAddlinePlace
//
this.btnAddlinePlace.Location = new System.Drawing.Point(416, 274);
this.btnAddlinePlace.Location = new System.Drawing.Point(163, 107);
this.btnAddlinePlace.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btnAddlinePlace.Name = "btnAddlinePlace";
this.btnAddlinePlace.Size = new System.Drawing.Size(111, 30);
this.btnAddlinePlace.Size = new System.Drawing.Size(148, 38);
this.btnAddlinePlace.TabIndex = 26;
this.btnAddlinePlace.Text = "添加linePlacce";
this.btnAddlinePlace.Text = "添加任务";
this.btnAddlinePlace.UseVisualStyleBackColor = true;
this.btnAddlinePlace.Click += new System.EventHandler(this.btnAddlinePlace_Click);
//
// TxtPlace
//
this.TxtPlace.Location = new System.Drawing.Point(417, 212);
this.TxtPlace.Name = "TxtPlace";
this.TxtPlace.Size = new System.Drawing.Size(112, 21);
this.TxtPlace.TabIndex = 24;
//
// BtnClearError
//
this.BtnClearError.Location = new System.Drawing.Point(162, 114);
this.BtnClearError.Location = new System.Drawing.Point(216, 142);
this.BtnClearError.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.BtnClearError.Name = "BtnClearError";
this.BtnClearError.Size = new System.Drawing.Size(96, 30);
this.BtnClearError.Size = new System.Drawing.Size(128, 38);
this.BtnClearError.TabIndex = 19;
this.BtnClearError.Text = "清除错误";
this.BtnClearError.UseVisualStyleBackColor = true;
......@@ -436,86 +333,96 @@
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(482, 8);
this.label2.Location = new System.Drawing.Point(643, 10);
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(47, 12);
this.label2.Size = new System.Drawing.Size(60, 15);
this.label2.TabIndex = 18;
this.label2.Text = "充电桩2";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(380, 8);
this.label1.Location = new System.Drawing.Point(507, 10);
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(47, 12);
this.label1.Size = new System.Drawing.Size(60, 15);
this.label1.TabIndex = 17;
this.label1.Text = "充电桩1";
//
// BtnWriteCharge2
//
this.BtnWriteCharge2.Location = new System.Drawing.Point(479, 86);
this.BtnWriteCharge2.Location = new System.Drawing.Point(639, 108);
this.BtnWriteCharge2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.BtnWriteCharge2.Name = "BtnWriteCharge2";
this.BtnWriteCharge2.Size = new System.Drawing.Size(96, 30);
this.BtnWriteCharge2.Size = new System.Drawing.Size(128, 38);
this.BtnWriteCharge2.TabIndex = 16;
this.BtnWriteCharge2.Text = "写";
this.BtnWriteCharge2.UseVisualStyleBackColor = true;
//
// BtnReadCharge2
//
this.BtnReadCharge2.Location = new System.Drawing.Point(479, 50);
this.BtnReadCharge2.Location = new System.Drawing.Point(639, 62);
this.BtnReadCharge2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.BtnReadCharge2.Name = "BtnReadCharge2";
this.BtnReadCharge2.Size = new System.Drawing.Size(96, 30);
this.BtnReadCharge2.Size = new System.Drawing.Size(128, 38);
this.BtnReadCharge2.TabIndex = 15;
this.BtnReadCharge2.Text = "读";
this.BtnReadCharge2.UseVisualStyleBackColor = true;
//
// TxtCharge2
//
this.TxtCharge2.Location = new System.Drawing.Point(479, 23);
this.TxtCharge2.Location = new System.Drawing.Point(639, 29);
this.TxtCharge2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.TxtCharge2.Name = "TxtCharge2";
this.TxtCharge2.Size = new System.Drawing.Size(96, 21);
this.TxtCharge2.Size = new System.Drawing.Size(127, 25);
this.TxtCharge2.TabIndex = 14;
//
// BtnWriteCharge1
//
this.BtnWriteCharge1.Location = new System.Drawing.Point(377, 86);
this.BtnWriteCharge1.Location = new System.Drawing.Point(503, 108);
this.BtnWriteCharge1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.BtnWriteCharge1.Name = "BtnWriteCharge1";
this.BtnWriteCharge1.Size = new System.Drawing.Size(96, 30);
this.BtnWriteCharge1.Size = new System.Drawing.Size(128, 38);
this.BtnWriteCharge1.TabIndex = 13;
this.BtnWriteCharge1.Text = "写";
this.BtnWriteCharge1.UseVisualStyleBackColor = true;
//
// BtnReadCharge1
//
this.BtnReadCharge1.Location = new System.Drawing.Point(377, 50);
this.BtnReadCharge1.Location = new System.Drawing.Point(503, 62);
this.BtnReadCharge1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.BtnReadCharge1.Name = "BtnReadCharge1";
this.BtnReadCharge1.Size = new System.Drawing.Size(96, 30);
this.BtnReadCharge1.Size = new System.Drawing.Size(128, 38);
this.BtnReadCharge1.TabIndex = 12;
this.BtnReadCharge1.Text = "读";
this.BtnReadCharge1.UseVisualStyleBackColor = true;
//
// TxtCharge1
//
this.TxtCharge1.Location = new System.Drawing.Point(377, 23);
this.TxtCharge1.Location = new System.Drawing.Point(503, 29);
this.TxtCharge1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.TxtCharge1.Name = "TxtCharge1";
this.TxtCharge1.Size = new System.Drawing.Size(96, 21);
this.TxtCharge1.Size = new System.Drawing.Size(127, 25);
this.TxtCharge1.TabIndex = 11;
//
// ChkAutoCharge
//
this.ChkAutoCharge.AutoSize = true;
this.ChkAutoCharge.Location = new System.Drawing.Point(275, 23);
this.ChkAutoCharge.Location = new System.Drawing.Point(367, 29);
this.ChkAutoCharge.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.ChkAutoCharge.Name = "ChkAutoCharge";
this.ChkAutoCharge.Size = new System.Drawing.Size(72, 16);
this.ChkAutoCharge.Size = new System.Drawing.Size(89, 19);
this.ChkAutoCharge.TabIndex = 10;
this.ChkAutoCharge.Text = "自动充电";
this.ChkAutoCharge.UseVisualStyleBackColor = true;
//
// BtnMissionAdd
//
this.BtnMissionAdd.Location = new System.Drawing.Point(162, 78);
this.BtnMissionAdd.Location = new System.Drawing.Point(216, 98);
this.BtnMissionAdd.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.BtnMissionAdd.Name = "BtnMissionAdd";
this.BtnMissionAdd.Size = new System.Drawing.Size(96, 30);
this.BtnMissionAdd.Size = new System.Drawing.Size(128, 38);
this.BtnMissionAdd.TabIndex = 3;
this.BtnMissionAdd.Text = "添加任务";
this.BtnMissionAdd.UseVisualStyleBackColor = true;
......@@ -523,9 +430,10 @@
//
// BtnMissionPause
//
this.BtnMissionPause.Location = new System.Drawing.Point(162, 42);
this.BtnMissionPause.Location = new System.Drawing.Point(216, 52);
this.BtnMissionPause.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.BtnMissionPause.Name = "BtnMissionPause";
this.BtnMissionPause.Size = new System.Drawing.Size(96, 30);
this.BtnMissionPause.Size = new System.Drawing.Size(128, 38);
this.BtnMissionPause.TabIndex = 2;
this.BtnMissionPause.Text = "暂停";
this.BtnMissionPause.UseVisualStyleBackColor = true;
......@@ -533,9 +441,10 @@
//
// BtnMissionReady
//
this.BtnMissionReady.Location = new System.Drawing.Point(162, 6);
this.BtnMissionReady.Location = new System.Drawing.Point(216, 8);
this.BtnMissionReady.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.BtnMissionReady.Name = "BtnMissionReady";
this.BtnMissionReady.Size = new System.Drawing.Size(96, 30);
this.BtnMissionReady.Size = new System.Drawing.Size(128, 38);
this.BtnMissionReady.TabIndex = 1;
this.BtnMissionReady.Text = "运行";
this.BtnMissionReady.UseVisualStyleBackColor = true;
......@@ -547,19 +456,21 @@
| System.Windows.Forms.AnchorStyles.Left)));
this.LstAgvPlace.FormattingEnabled = true;
this.LstAgvPlace.IntegralHeight = false;
this.LstAgvPlace.ItemHeight = 12;
this.LstAgvPlace.Location = new System.Drawing.Point(6, 6);
this.LstAgvPlace.ItemHeight = 15;
this.LstAgvPlace.Location = new System.Drawing.Point(8, 8);
this.LstAgvPlace.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.LstAgvPlace.Name = "LstAgvPlace";
this.LstAgvPlace.Size = new System.Drawing.Size(150, 425);
this.LstAgvPlace.Size = new System.Drawing.Size(199, 530);
this.LstAgvPlace.TabIndex = 0;
//
// tabPage2
//
this.tabPage2.Controls.Add(this.tableLayoutPanel1);
this.tabPage2.Location = new System.Drawing.Point(4, 22);
this.tabPage2.Location = new System.Drawing.Point(4, 25);
this.tabPage2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(910, 437);
this.tabPage2.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tabPage2.Size = new System.Drawing.Size(1082, 550);
this.tabPage2.TabIndex = 3;
this.tabPage2.Text = "日志";
this.tabPage2.UseVisualStyleBackColor = true;
......@@ -571,11 +482,12 @@
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 64.93936F));
this.tableLayoutPanel1.Controls.Add(this.TxtLog, 0, 0);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 3);
this.tableLayoutPanel1.Location = new System.Drawing.Point(4, 4);
this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 1;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(904, 431);
this.tableLayoutPanel1.Size = new System.Drawing.Size(1074, 542);
this.tableLayoutPanel1.TabIndex = 5;
//
// TxtLog
......@@ -583,21 +495,139 @@
this.TxtLog.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.TxtLog.Location = new System.Drawing.Point(3, 3);
this.TxtLog.Location = new System.Drawing.Point(4, 4);
this.TxtLog.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.TxtLog.Multiline = true;
this.TxtLog.Name = "TxtLog";
this.TxtLog.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.TxtLog.Size = new System.Drawing.Size(310, 425);
this.TxtLog.Size = new System.Drawing.Size(368, 534);
this.TxtLog.TabIndex = 4;
//
// Column8
//
this.Column8.HeaderText = "ITS任务";
this.Column8.MinimumWidth = 6;
this.Column8.Name = "Column8";
this.Column8.Width = 80;
//
// comboBox1
//
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(179, 33);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(121, 23);
this.comboBox1.TabIndex = 30;
//
// Column1
//
this.Column1.HeaderText = "AGV名称";
this.Column1.MinimumWidth = 6;
this.Column1.Name = "Column1";
this.Column1.ReadOnly = true;
this.Column1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column1.Width = 80;
//
// Column2
//
this.Column2.HeaderText = "IP";
this.Column2.MinimumWidth = 6;
this.Column2.Name = "Column2";
this.Column2.ReadOnly = true;
this.Column2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column2.Width = 125;
//
// Column3
//
this.Column3.HeaderText = "AGV状态";
this.Column3.MinimumWidth = 6;
this.Column3.Name = "Column3";
this.Column3.ReadOnly = true;
this.Column3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column3.Width = 125;
//
// Column14
//
this.Column14.HeaderText = "任务内容";
this.Column14.MinimumWidth = 6;
this.Column14.Name = "Column14";
this.Column14.ReadOnly = true;
this.Column14.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column14.Width = 120;
//
// Column18
//
this.Column18.HeaderText = "目标地点";
this.Column18.MinimumWidth = 6;
this.Column18.Name = "Column18";
this.Column18.ReadOnly = true;
this.Column18.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column18.Width = 80;
//
// Column4
//
this.Column4.HeaderText = "后续任务";
this.Column4.MinimumWidth = 6;
this.Column4.Name = "Column4";
this.Column4.ReadOnly = true;
this.Column4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column4.Width = 80;
//
// Column13
//
this.Column13.HeaderText = "在线";
this.Column13.MinimumWidth = 6;
this.Column13.Name = "Column13";
this.Column13.ReadOnly = true;
this.Column13.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
this.Column13.Width = 60;
//
// Column19
//
this.Column19.HeaderText = "电量";
this.Column19.MinimumWidth = 6;
this.Column19.Name = "Column19";
this.Column19.ReadOnly = true;
this.Column19.Width = 60;
//
// Column11
//
this.Column11.HeaderText = "调用";
this.Column11.MinimumWidth = 6;
this.Column11.Name = "Column11";
this.Column11.ReadOnly = true;
this.Column11.Width = 60;
//
// Column17
//
this.Column17.HeaderText = "清除缓存";
this.Column17.MinimumWidth = 6;
this.Column17.Name = "Column17";
this.Column17.ReadOnly = true;
this.Column17.Width = 80;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.dgvLinePlace);
this.groupBox1.Controls.Add(this.comboBox1);
this.groupBox1.Controls.Add(this.btnAddlinePlace);
this.groupBox1.Controls.Add(this.btnReadlinePlace);
this.groupBox1.Controls.Add(this.btnDeletelinePlace);
this.groupBox1.Location = new System.Drawing.Point(687, 199);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(319, 219);
this.groupBox1.TabIndex = 31;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "空料架任务";
//
// FrmMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(942, 619);
this.ClientSize = new System.Drawing.Size(1230, 774);
this.Controls.Add(this.tabControl1);
this.Controls.Add(this.DgvAgv);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Name = "FrmMain";
this.Text = "Form1";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmMain_FormClosing);
......@@ -612,27 +642,17 @@
this.tabPage2.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false);
this.tableLayoutPanel1.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.DataGridView DgvAgv;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn Column14;
private System.Windows.Forms.DataGridViewTextBoxColumn Column18;
private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
private System.Windows.Forms.DataGridViewTextBoxColumn Column13;
private System.Windows.Forms.DataGridViewTextBoxColumn Column19;
private System.Windows.Forms.DataGridViewButtonColumn Column11;
private System.Windows.Forms.DataGridViewButtonColumn Column17;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.DataGridView DgvNode;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.TextBox TxtPlace;
private System.Windows.Forms.Button BtnClearError;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
......@@ -654,8 +674,6 @@
private System.Windows.Forms.DataGridView dgvLinePlace;
private System.Windows.Forms.Button btnDeletelinePlace;
private System.Windows.Forms.Button btnReadlinePlace;
private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
private System.Windows.Forms.DataGridViewTextBoxColumn Column20;
private System.Windows.Forms.DataGridViewTextBoxColumn Column6;
private System.Windows.Forms.DataGridViewTextBoxColumn Column12;
private System.Windows.Forms.DataGridViewTextBoxColumn Column7;
......@@ -664,6 +682,19 @@
private System.Windows.Forms.DataGridViewTextBoxColumn Column5;
private System.Windows.Forms.DataGridViewButtonColumn Column16;
private System.Windows.Forms.DataGridViewButtonColumn Column15;
private System.Windows.Forms.DataGridViewTextBoxColumn Column8;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column1;
private System.Windows.Forms.DataGridViewTextBoxColumn Column2;
private System.Windows.Forms.DataGridViewTextBoxColumn Column3;
private System.Windows.Forms.DataGridViewTextBoxColumn Column14;
private System.Windows.Forms.DataGridViewTextBoxColumn Column18;
private System.Windows.Forms.DataGridViewTextBoxColumn Column4;
private System.Windows.Forms.DataGridViewTextBoxColumn Column13;
private System.Windows.Forms.DataGridViewTextBoxColumn Column19;
private System.Windows.Forms.DataGridViewButtonColumn Column11;
private System.Windows.Forms.DataGridViewButtonColumn Column17;
private System.Windows.Forms.GroupBox groupBox1;
}
}
......@@ -19,6 +19,7 @@ namespace AGVControl
public FrmMain()
{
InitializeComponent();
Common.logTextBox = TxtLog;
}
private void ShowConfig()
......@@ -37,6 +38,7 @@ namespace AGVControl
{
n = DgvNode.Rows.Add(Common.nodeInfo[i].ToRow());
DgvNode.Rows[n].HeaderCell.Value = (n + 1).ToString();
comboBox1.Items.Add(Common.nodeInfo[i].Name);
if (!Common.nodeInfo[i].Online)
DgvNode.Rows[n].DefaultCellStyle.ForeColor = Color.Red;
}
......@@ -138,7 +140,7 @@ namespace AGVControl
else if (e.ColumnIndex == 9) //清除缓存
{
//清除小车缓存
Common.log.Info(string.Format("手动清除缓存,{0} {1}", Common.agvInfo[e.RowIndex].Name, Common.agvInfo[e.RowIndex].Place));
Common.LogInfo(string.Format("手动清除缓存,{0} {1}", Common.agvInfo[e.RowIndex].Name, Common.agvInfo[e.RowIndex].Place));
string place = Common.agvInfo[e.RowIndex].Place;
Common.agvInfo[e.RowIndex].Place = "";
Common.agvInfo[e.RowIndex].RFID = "";
......@@ -176,7 +178,7 @@ namespace AGVControl
else if (e.ColumnIndex == 7) //清除缓存
{
//清除节点缓存
Common.log.Info(string.Format("手动清除缓存,{0} {1}", Common.nodeInfo[e.RowIndex].AgvName, Common.nodeInfo[e.RowIndex].Name));
Common.LogInfo(string.Format("手动清除缓存,{0} {1}", Common.nodeInfo[e.RowIndex].AgvName, Common.nodeInfo[e.RowIndex].Name));
string name = Common.nodeInfo[e.RowIndex].AgvName;
Common.nodeInfo[e.RowIndex].AgvName = "";
DgvNode.Rows[e.RowIndex].Cells[4].Value = "";
......@@ -237,41 +239,42 @@ namespace AGVControl
private void btnAddlinePlace_Click(object sender, EventArgs e)
{
//if (TxtPlace.Text == "")
//{
// MessageBox.Show("请输入节点名");
// return;
//}
//Common.AddLinePlace(TxtPlace.Text.ToUpper());
//dgvLinePlace.Rows.Clear();
//foreach (var item in Common.linePlace)
//{
// dgvLinePlace.Rows.Add(item.Key, item.Value);
//}
if (comboBox1.SelectedItem == null)
{
MessageBox.Show("请先选择任务节点!");
return;
}
Common.AddLinePlace(comboBox1.SelectedItem.ToString());
Common.LogInfo("手动添加【"+ comboBox1.SelectedItem.ToString() + "】出空料架任务");
dgvLinePlace.Rows.Clear();
foreach (var item in Common.linePlace)
{
dgvLinePlace.Rows.Add(item);
}
}
private void btnDeletelinePlace_Click(object sender, EventArgs e)
{
//if (TxtPlace.Text == "")
//{
// MessageBox.Show("请输入节点名");
// return;
//}
//Common.RemoveLinePlace(TxtPlace.Text.ToUpper());
//dgvLinePlace.Rows.Clear();
//foreach (var item in Common.linePlace)
//{
// dgvLinePlace.Rows.Add(item.Key, item.Value);
//}
if (comboBox1.SelectedItem == null)
{
MessageBox.Show("请先选择任务节点!");
return;
}
Common.RemoveLinePlace(comboBox1.SelectedItem.ToString());
dgvLinePlace.Rows.Clear();
foreach (var item in Common.linePlace)
{
dgvLinePlace.Rows.Add(item);
}
}
private void btnReadlinePlace_Click(object sender, EventArgs e)
{
//dgvLinePlace.Rows.Clear();
//foreach (var item in Common.linePlace)
//{
// dgvLinePlace.Rows.Add(item.Key, item.Value);
//}
dgvLinePlace.Rows.Clear();
foreach (var item in Common.linePlace)
{
dgvLinePlace.Rows.Add(item);
}
}
}
}
......@@ -174,9 +174,6 @@
<metadata name="Column8.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="Column20.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
......
......@@ -38,9 +38,9 @@ namespace AGVControl
return;
}
}
Common.logTextBox = new TextBox();
Common.log = log4net.LogManager.GetLogger("AgvServer");
Common.log.Info("=====程序开始=====");
Common.LogInfo("=====程序开始=====");
ReadConfig();
Common.ReadLinePlace();
......@@ -59,7 +59,7 @@ namespace AGVControl
Common.control.Stop();
Common.server.Stop();
Common.web.Close();
Common.log.Info("=====程序结束=====\r\n");
Common.LogInfo("=====程序结束=====\r\n");
}
private static void ReadConfig()
......
......@@ -318,3 +318,568 @@ System.ServiceModel.CommunicationObjectFaultedException: 通信对象 System.Ser
[2020-06-30 15:22:47,730][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 15:22:49,714][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 15:22:51,715][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:10:19,081][1]INFO =====程序开始=====
[2020-06-30 16:10:24,530][1]DEBUG HttpGet URL: http://10.85.199.71/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:10:24,530][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:10:29,613][1]DEBUG HttpGet URL: http://10.85.199.72/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:10:29,613][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:10:34,683][1]DEBUG HttpGet URL: http://10.85.199.73/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:10:34,683][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:10:39,754][1]DEBUG HttpGet URL: http://10.85.199.74/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:10:39,754][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:10:39,770][1]INFO Server Start
[2020-06-30 16:10:41,359][1]ERROR Open
System.ServiceModel.AddressAccessDeniedException: HTTP 无法注册 URL http://+:80/Webservice/AGVService/。进程不具有此命名空间的访问权限(有关详细信息,请参见 http://go.microsoft.com/fwlink/?LinkId=70353)。 ---> System.Net.HttpListenerException: 拒绝访问。
在 System.Net.HttpListener.AddAllPrefixes()
在 System.Net.HttpListener.Start()
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- 内部异常堆栈跟踪的结尾 ---
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
在 System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open()
在 BLL.WebService.Open(String url) 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\BLL\WebService.cs:行号 79
[2020-06-30 16:10:42,671][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:10:44,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:10:46,670][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:10:48,669][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:10:51,670][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:10:53,669][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:10:55,670][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:10:57,671][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:11:00,670][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:11:02,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:12:08,193][1]INFO =====程序开始=====
[2020-06-30 16:12:13,553][1]DEBUG HttpGet URL: http://10.85.199.71/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:12:13,553][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:12:18,626][1]DEBUG HttpGet URL: http://10.85.199.72/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:12:18,626][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:12:23,699][1]DEBUG HttpGet URL: http://10.85.199.73/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:12:23,699][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:12:28,771][1]DEBUG HttpGet URL: http://10.85.199.74/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:12:28,771][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:12:28,787][1]INFO Server Start
[2020-06-30 16:12:29,995][1]ERROR Open
System.ServiceModel.AddressAccessDeniedException: HTTP 无法注册 URL http://+:80/Webservice/AGVService/。进程不具有此命名空间的访问权限(有关详细信息,请参见 http://go.microsoft.com/fwlink/?LinkId=70353)。 ---> System.Net.HttpListenerException: 拒绝访问。
在 System.Net.HttpListener.AddAllPrefixes()
在 System.Net.HttpListener.Start()
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- 内部异常堆栈跟踪的结尾 ---
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
在 System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open()
在 BLL.WebService.Open(String url) 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\BLL\WebService.cs:行号 79
[2020-06-30 16:12:31,671][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:12:33,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:12:35,670][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:12:37,670][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:12:40,669][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:12:42,671][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:12:44,671][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:12:46,671][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:12:49,671][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:12:51,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:12:53,671][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:12:55,670][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:12:58,670][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:13:00,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:13:01,015][1]INFO AddLinePlace 节点A6已存在任务队列,无需重复添加
[2020-06-30 16:13:01,849][1]INFO AddLinePlace 节点A6已存在任务队列,无需重复添加
[2020-06-30 16:13:02,273][1]INFO AddLinePlace 节点A6已存在任务队列,无需重复添加
[2020-06-30 16:13:02,464][1]INFO AddLinePlace 节点A6已存在任务队列,无需重复添加
[2020-06-30 16:13:02,616][1]INFO AddLinePlace 节点A6已存在任务队列,无需重复添加
[2020-06-30 16:13:02,670][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:13:02,791][1]INFO AddLinePlace 节点A6已存在任务队列,无需重复添加
[2020-06-30 16:13:02,965][1]INFO AddLinePlace 节点A6已存在任务队列,无需重复添加
[2020-06-30 16:13:04,671][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:13:07,670][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:13:09,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:13:11,670][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:13:13,671][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:13:16,670][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:13:18,671][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:13:20,671][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:13:22,670][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:13:25,670][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:13:27,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:13:29,671][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:13:31,671][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:13:34,671][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:13:36,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:13:38,670][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:13:40,671][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:13:43,670][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:13:45,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:13:47,671][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:13:49,671][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:13:49,876][1]INFO AddLinePlace 节点A5已存在任务队列,无需重复添加
[2020-06-30 16:13:52,670][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:13:54,671][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:13:56,669][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:13:58,670][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:14:01,670][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:14:03,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:14:05,670][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:14:07,671][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:14:10,671][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:14:12,671][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:14:14,670][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:14:16,671][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:14:19,670][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:14:21,671][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:14:23,671][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:14:25,671][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:19:55,542][1]INFO =====程序开始=====
[2020-06-30 16:20:00,862][1]DEBUG HttpGet URL: http://10.85.199.71/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:20:00,862][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:20:05,933][1]DEBUG HttpGet URL: http://10.85.199.72/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:20:05,934][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:20:11,005][1]DEBUG HttpGet URL: http://10.85.199.73/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:20:11,005][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:20:16,076][1]DEBUG HttpGet URL: http://10.85.199.74/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:20:16,076][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:20:16,088][1]INFO Server Start
[2020-06-30 16:20:17,925][1]ERROR Open
System.ServiceModel.AddressAccessDeniedException: HTTP 无法注册 URL http://+:80/Webservice/AGVService/。进程不具有此命名空间的访问权限(有关详细信息,请参见 http://go.microsoft.com/fwlink/?LinkId=70353)。 ---> System.Net.HttpListenerException: 拒绝访问。
在 System.Net.HttpListener.AddAllPrefixes()
在 System.Net.HttpListener.Start()
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- 内部异常堆栈跟踪的结尾 ---
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
在 System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open()
在 BLL.WebService.Open(String url) 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\BLL\WebService.cs:行号 79
[2020-06-30 16:20:18,670][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:20:20,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:20:22,670][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:20:24,670][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:20:27,670][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:20:29,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:20:31,670][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:20:33,669][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:20:36,671][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:20:38,671][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:20:40,671][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:21:36,652][1]INFO =====程序开始=====
[2020-06-30 16:21:42,137][1]DEBUG HttpGet URL: http://10.85.199.71/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:21:42,138][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:21:47,209][1]DEBUG HttpGet URL: http://10.85.199.72/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:21:47,209][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:21:52,282][1]DEBUG HttpGet URL: http://10.85.199.73/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:21:52,282][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:21:57,354][1]DEBUG HttpGet URL: http://10.85.199.74/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:21:57,354][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:21:57,368][1]INFO Server Start
[2020-06-30 16:21:58,498][1]ERROR Open
System.ServiceModel.AddressAccessDeniedException: HTTP 无法注册 URL http://+:80/Webservice/AGVService/。进程不具有此命名空间的访问权限(有关详细信息,请参见 http://go.microsoft.com/fwlink/?LinkId=70353)。 ---> System.Net.HttpListenerException: 拒绝访问。
在 System.Net.HttpListener.AddAllPrefixes()
在 System.Net.HttpListener.Start()
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- 内部异常堆栈跟踪的结尾 ---
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
在 System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open()
在 BLL.WebService.Open(String url) 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\BLL\WebService.cs:行号 79
[2020-06-30 16:22:00,170][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:22:02,171][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:22:04,170][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:22:06,170][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:22:09,169][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:22:11,171][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:22:13,170][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:22:15,170][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:22:18,171][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:22:20,170][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:22:22,170][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:22:24,171][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:22:27,170][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:22:29,170][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:22:31,171][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:22:33,171][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:28:20,161][1]INFO =====程序开始=====
[2020-06-30 16:28:25,624][1]DEBUG HttpGet URL: http://10.85.199.71/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:28:25,624][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:28:30,695][1]DEBUG HttpGet URL: http://10.85.199.72/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:28:30,695][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:28:35,769][1]DEBUG HttpGet URL: http://10.85.199.73/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:28:35,769][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:28:40,847][1]DEBUG HttpGet URL: http://10.85.199.74/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:28:40,847][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:28:40,860][1]INFO Server Start
[2020-06-30 16:28:42,328][1]ERROR Open
System.ServiceModel.AddressAccessDeniedException: HTTP 无法注册 URL http://+:80/Webservice/AGVService/。进程不具有此命名空间的访问权限(有关详细信息,请参见 http://go.microsoft.com/fwlink/?LinkId=70353)。 ---> System.Net.HttpListenerException: 拒绝访问。
在 System.Net.HttpListener.AddAllPrefixes()
在 System.Net.HttpListener.Start()
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- 内部异常堆栈跟踪的结尾 ---
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
在 System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open()
在 BLL.WebService.Open(String url) 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\BLL\WebService.cs:行号 79
[2020-06-30 16:28:43,671][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:28:45,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:28:47,670][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:28:49,671][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:28:52,670][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:29:33,925][1]INFO =====程序开始=====
[2020-06-30 16:29:39,389][1]DEBUG HttpGet URL: http://10.85.199.71/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:29:39,389][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:29:44,461][1]DEBUG HttpGet URL: http://10.85.199.72/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:29:44,462][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:29:49,533][1]DEBUG HttpGet URL: http://10.85.199.73/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:29:49,534][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:29:54,606][1]DEBUG HttpGet URL: http://10.85.199.74/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:29:54,606][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:29:54,625][1]INFO Server Start
[2020-06-30 16:29:56,024][1]ERROR Open
System.ServiceModel.AddressAccessDeniedException: HTTP 无法注册 URL http://+:80/Webservice/AGVService/。进程不具有此命名空间的访问权限(有关详细信息,请参见 http://go.microsoft.com/fwlink/?LinkId=70353)。 ---> System.Net.HttpListenerException: 拒绝访问。
在 System.Net.HttpListener.AddAllPrefixes()
在 System.Net.HttpListener.Start()
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- 内部异常堆栈跟踪的结尾 ---
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
在 System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open()
在 BLL.WebService.Open(String url) 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\BLL\WebService.cs:行号 79
[2020-06-30 16:29:57,170][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:29:59,171][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:30:01,170][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:30:03,170][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:30:06,171][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:30:08,170][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:30:10,170][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:30:12,170][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:30:15,170][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:30:17,170][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:30:19,170][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:30:21,170][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:30:24,171][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:30:26,171][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:30:28,171][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:30:30,171][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:30:33,170][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:30:35,171][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:30:37,171][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:30:39,170][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:30:42,171][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:30:44,170][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:30:46,171][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:30:48,170][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:30:51,171][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:30:53,171][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:30:55,171][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:30:57,170][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:31:00,170][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:31:02,170][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:31:04,171][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:31:06,170][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:31:09,170][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:31:11,171][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:31:13,170][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:41:39,867][1]INFO =====程序开始=====
[2020-06-30 16:41:45,291][1]DEBUG HttpGet URL: http://10.85.199.71/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:41:45,291][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:41:50,367][1]DEBUG HttpGet URL: http://10.85.199.72/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:41:50,367][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:41:55,437][1]DEBUG HttpGet URL: http://10.85.199.73/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:41:55,437][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:42:00,511][1]DEBUG HttpGet URL: http://10.85.199.74/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 16:42:00,511][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 16:42:00,527][1]INFO Server Start
[2020-06-30 16:42:02,025][1]ERROR Open
System.ServiceModel.AddressAccessDeniedException: HTTP 无法注册 URL http://+:80/Webservice/AGVService/。进程不具有此命名空间的访问权限(有关详细信息,请参见 http://go.microsoft.com/fwlink/?LinkId=70353)。 ---> System.Net.HttpListenerException: 拒绝访问。
在 System.Net.HttpListener.AddAllPrefixes()
在 System.Net.HttpListener.Start()
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- 内部异常堆栈跟踪的结尾 ---
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
在 System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open()
在 BLL.WebService.Open(String url) 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\BLL\WebService.cs:行号 81
[2020-06-30 16:42:03,171][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:42:05,170][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:42:07,171][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:42:09,171][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:42:12,171][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:42:14,170][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:42:16,170][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:42:18,171][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:42:21,171][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:42:23,170][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:42:25,170][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:42:27,170][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:42:30,171][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:42:30,878][1]INFO 手动清除缓存,MiR_R1763
[2020-06-30 16:42:32,169][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:42:34,170][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:42:35,911][1]DEBUG HttpDel URL: http://10.85.199.71/api/v2.0.0/mission_queue
[2020-06-30 16:42:36,171][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:42:39,171][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 16:42:40,944][1]DEBUG HttpPost URL: http://10.85.199.71/api/v2.0.0/mission_queue; Body: {"mission_id":"adcb7a04-b525-11ea-b6ad-00012998f5a0"} Return:
[2020-06-30 16:42:41,171][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 16:42:43,171][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 16:42:45,170][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 16:42:45,965][1]DEBUG HttpPut URL: http://10.85.199.71/api/v2.0.0/status?whitelist=state_id,state_text; Body: {"state_id": 3} Return:
[2020-06-30 16:42:45,967][1]INFO 手动清除缓存,MiR_R1763
[2020-06-30 16:42:48,171][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 17:06:45,006][1]INFO =====程序开始=====
[2020-06-30 17:06:50,509][1]DEBUG HttpGet URL: http://10.85.199.71/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:06:50,509][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:06:55,578][1]DEBUG HttpGet URL: http://10.85.199.72/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:06:55,578][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:07:00,650][1]DEBUG HttpGet URL: http://10.85.199.73/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:07:00,650][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:07:05,722][1]DEBUG HttpGet URL: http://10.85.199.74/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:07:05,722][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:07:05,737][1]INFO Server Start
[2020-06-30 17:07:07,222][1]ERROR Open
System.ServiceModel.AddressAccessDeniedException: HTTP 无法注册 URL http://+:80/Webservice/AGVService/。进程不具有此命名空间的访问权限(有关详细信息,请参见 http://go.microsoft.com/fwlink/?LinkId=70353)。 ---> System.Net.HttpListenerException: 拒绝访问。
在 System.Net.HttpListener.AddAllPrefixes()
在 System.Net.HttpListener.Start()
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- 内部异常堆栈跟踪的结尾 ---
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
在 System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open()
在 BLL.WebService.Open(String url) 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\BLL\WebService.cs:行号 85
[2020-06-30 17:07:08,671][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 17:07:10,671][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 17:07:12,670][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 17:07:14,670][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 17:07:17,670][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 17:07:19,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 17:07:21,670][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 17:07:21,834][1]INFO 手动添加【G7】出空料架任务
[2020-06-30 17:07:23,670][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 17:07:26,672][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 17:07:28,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 17:07:30,671][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 17:07:32,671][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 17:07:35,670][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 17:07:37,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 17:07:39,671][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 17:07:41,670][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 17:07:44,671][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 17:07:46,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 17:07:48,671][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 17:07:50,671][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 17:07:53,671][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 17:07:55,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 17:07:57,670][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 17:07:59,670][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 17:08:02,671][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 17:08:04,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 17:08:06,670][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 17:08:08,670][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 17:08:11,671][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 17:08:13,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 17:27:55,105][1]INFO =====程序开始=====
[2020-06-30 17:28:00,512][1]DEBUG HttpGet URL: http://10.85.199.71/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:28:00,513][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:28:05,586][1]DEBUG HttpGet URL: http://10.85.199.72/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:28:05,586][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:28:10,658][1]DEBUG HttpGet URL: http://10.85.199.73/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:28:10,658][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:28:15,729][1]DEBUG HttpGet URL: http://10.85.199.74/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:28:15,729][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:28:15,745][1]INFO Server Start
[2020-06-30 17:28:17,058][1]ERROR Open
System.ServiceModel.AddressAccessDeniedException: HTTP 无法注册 URL http://+:80/Webservice/AGVService/。进程不具有此命名空间的访问权限(有关详细信息,请参见 http://go.microsoft.com/fwlink/?LinkId=70353)。 ---> System.Net.HttpListenerException: 拒绝访问。
在 System.Net.HttpListener.AddAllPrefixes()
在 System.Net.HttpListener.Start()
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- 内部异常堆栈跟踪的结尾 ---
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
在 System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open()
在 BLL.WebService.Open(String url) 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\BLL\WebService.cs:行号 85
[2020-06-30 17:28:18,671][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 17:28:20,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 17:28:22,671][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 17:28:24,670][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 17:28:27,670][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 17:28:29,670][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 17:28:31,670][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 17:28:33,670][7]INFO Ping 10.85.199.74 请求没有响应
[2020-06-30 17:28:36,670][7]INFO Ping 10.85.199.71 请求没有响应
[2020-06-30 17:28:38,671][7]INFO Ping 10.85.199.72 请求没有响应
[2020-06-30 17:28:40,670][7]INFO Ping 10.85.199.73 请求没有响应
[2020-06-30 17:30:08,746][1]ERROR CurrentDomain_UnhandledException
System.NullReferenceException: 未将对象引用设置到对象的实例。
在 AGVControl.Common.LogInfo(String text) 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\BLL\Common.cs:行号 40
在 AGVControl.Program.Main() 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\Program.cs:行号 42
[2020-06-30 17:31:26,662][1]DEBUG HttpGet URL: http://10.85.199.71/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:31:26,684][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:31:31,757][1]DEBUG HttpGet URL: http://10.85.199.72/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:31:31,757][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:31:36,828][1]DEBUG HttpGet URL: http://10.85.199.73/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:31:36,829][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:31:41,900][1]DEBUG HttpGet URL: http://10.85.199.74/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:31:41,900][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:31:43,395][1]ERROR Open
System.ServiceModel.AddressAccessDeniedException: HTTP 无法注册 URL http://+:80/Webservice/AGVService/。进程不具有此命名空间的访问权限(有关详细信息,请参见 http://go.microsoft.com/fwlink/?LinkId=70353)。 ---> System.Net.HttpListenerException: 拒绝访问。
在 System.Net.HttpListener.AddAllPrefixes()
在 System.Net.HttpListener.Start()
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- 内部异常堆栈跟踪的结尾 ---
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
在 System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open()
在 BLL.WebService.Open(String url) 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\BLL\WebService.cs:行号 85
[2020-06-30 17:34:35,779][1]DEBUG HttpGet URL: http://10.85.199.71/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:34:35,799][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:34:40,872][1]DEBUG HttpGet URL: http://10.85.199.72/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:34:40,872][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:34:45,943][1]DEBUG HttpGet URL: http://10.85.199.73/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:34:45,944][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:34:51,015][1]DEBUG HttpGet URL: http://10.85.199.74/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:34:51,016][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:34:52,265][1]ERROR Open
System.ServiceModel.AddressAccessDeniedException: HTTP 无法注册 URL http://+:80/Webservice/AGVService/。进程不具有此命名空间的访问权限(有关详细信息,请参见 http://go.microsoft.com/fwlink/?LinkId=70353)。 ---> System.Net.HttpListenerException: 拒绝访问。
在 System.Net.HttpListener.AddAllPrefixes()
在 System.Net.HttpListener.Start()
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- 内部异常堆栈跟踪的结尾 ---
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
在 System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open()
在 BLL.WebService.Open(String url) 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\BLL\WebService.cs:行号 85
[2020-06-30 17:35:28,168][1]DEBUG HttpGet URL: http://10.85.199.71/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:35:28,190][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:35:33,262][1]DEBUG HttpGet URL: http://10.85.199.72/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:35:33,263][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:35:38,335][1]DEBUG HttpGet URL: http://10.85.199.73/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:35:38,335][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:35:43,411][1]DEBUG HttpGet URL: http://10.85.199.74/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:35:43,412][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:35:44,824][1]ERROR Open
System.ServiceModel.AddressAccessDeniedException: HTTP 无法注册 URL http://+:80/Webservice/AGVService/。进程不具有此命名空间的访问权限(有关详细信息,请参见 http://go.microsoft.com/fwlink/?LinkId=70353)。 ---> System.Net.HttpListenerException: 拒绝访问。
在 System.Net.HttpListener.AddAllPrefixes()
在 System.Net.HttpListener.Start()
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- 内部异常堆栈跟踪的结尾 ---
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
在 System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open()
在 BLL.WebService.Open(String url) 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\BLL\WebService.cs:行号 85
[2020-06-30 17:39:48,330][1]DEBUG HttpGet URL: http://10.85.199.71/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:39:48,354][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:39:53,426][1]DEBUG HttpGet URL: http://10.85.199.72/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:39:53,426][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:39:58,498][1]DEBUG HttpGet URL: http://10.85.199.73/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:39:58,498][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:40:03,572][1]DEBUG HttpGet URL: http://10.85.199.74/api/v2.0.0/registers/20?whitelist=value Return:
[2020-06-30 17:40:03,572][1]ERROR CheckAGVMissionState 获取PLC20失败
[2020-06-30 17:40:04,863][1]ERROR Open
System.ServiceModel.AddressAccessDeniedException: HTTP 无法注册 URL http://+:80/Webservice/AGVService/。进程不具有此命名空间的访问权限(有关详细信息,请参见 http://go.microsoft.com/fwlink/?LinkId=70353)。 ---> System.Net.HttpListenerException: 拒绝访问。
在 System.Net.HttpListener.AddAllPrefixes()
在 System.Net.HttpListener.Start()
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
--- 内部异常堆栈跟踪的结尾 ---
在 System.ServiceModel.Channels.SharedHttpTransportManager.OnOpen()
在 System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
在 System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
在 System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.HttpChannelListener`1.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
在 System.ServiceModel.Channels.CommunicationObject.Open()
在 BLL.WebService.Open(String url) 位置 C:\ZDL\Gitee\AGVControl-Qisda-ProductionLine\AGVControl-ProductionLine\BLL\WebService.cs:行号 85
......@@ -77,7 +77,7 @@ namespace AsaPL
tRecon.Start();
tListen.Start();
tSend.Start();
LOG.Info("Connect");
LogInfo("Connect");
}
/// <summary>
......@@ -93,7 +93,7 @@ namespace AsaPL
_client.Close();
_client = null;
}
LOG.Info("Close");
LogInfo("Close");
}
/// <summary>
......@@ -118,7 +118,7 @@ namespace AsaPL
_node[idx].Action = action;
_node[idx].Level = level;
}
LOG.Info("SetStatus " + _node[idx].ToText());
LogInfo("SetStatus " + _node[idx].ToText());
}
/// <summary>
......@@ -127,7 +127,7 @@ namespace AsaPL
/// <param name="name"></param>
public void MayEnter(string name)
{
LOG.Info(name + " MayEnter");
LogInfo(name + " MayEnter");
ClientNode node = new ClientNode(name, "", ClientAction.MayEnter, ClientLevel.High);
byte[] buff = Encode(node);
bool bln = Send(buff);
......@@ -139,7 +139,7 @@ namespace AsaPL
/// <param name="name"></param>
public void MayLeave(string name)
{
LOG.Info(name + " MayLeave");
LogInfo(name + " MayLeave");
ClientNode node = new ClientNode(name, "", ClientAction.MayLeave, ClientLevel.High);
byte[] buff = Encode(node);
bool bln = Send(buff);
......@@ -151,7 +151,7 @@ namespace AsaPL
/// <param name="name"></param>
public void FinishEnter(string name)
{
LOG.Info(name + " FinishEnter");
LogInfo(name + " FinishEnter");
ClientNode node = new ClientNode(name, "", ClientAction.FinishEnter, ClientLevel.High);
byte[] buff = Encode(node);
bool bln = Send(buff);
......@@ -163,7 +163,7 @@ namespace AsaPL
/// <param name="name"></param>
public void FinishLeave(string name)
{
LOG.Info(name + " FinishLeave");
LogInfo(name + " FinishLeave");
ClientNode node = new ClientNode(name, "", ClientAction.FinishLeave, ClientLevel.High);
byte[] buff = Encode(node);
bool bln = Send(buff);
......@@ -184,11 +184,11 @@ namespace AsaPL
if (IsConn)
{
countRecon = 0;
LOG.Info("Server connection successful");
LogInfo("Server connection successful");
}
else
{
LOG.Info("Server connection failed " + ++countRecon + " times");
LogInfo("Server connection failed " + ++countRecon + " times");
}
}
Thread.Sleep(1000);
......@@ -202,7 +202,7 @@ namespace AsaPL
{
try
{
LOG.Info("Connect " + IP + ":" + PORT);
LogInfo("Connect " + IP + ":" + PORT);
if (CheckIP(IP))
{
_client = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
......@@ -212,7 +212,7 @@ namespace AsaPL
_client.Connect(IPAddress.Parse(IP), PORT);
if (!_loop) return;
IsConn = true;
LOG.Info("Connect OK");
LogInfo("Connect OK");
}
}
catch (Exception ex)
......@@ -246,11 +246,11 @@ namespace AsaPL
ClientNode node = Decode(_buffer);
if (node == null)
{
LOG.Info("Command decoding failed: " + HexBuff(_buffer));
LogInfo("Command decoding failed: " + HexBuff(_buffer));
}
else
{
LOG.Info("From server: " + node.ToText());
LogInfo("From server: " + node.ToText());
Resolve(node);
}
}
......@@ -273,12 +273,12 @@ namespace AsaPL
{
if (result.Action == ClientAction.ReadyEnter)
{
LOG.Info("Trigger ReadyEnter Event");
LogInfo("Trigger ReadyEnter Event");
ReadyEnter?.Invoke(result.Name);
}
else if (result.Action == ClientAction.ReadyLeave)
{
LOG.Info("Trigger ReadyLeave Event");
LogInfo("Trigger ReadyLeave Event");
ReadyLeave?.Invoke(result.Name);
}
}
......@@ -324,7 +324,7 @@ namespace AsaPL
{
if (!IsConn)
{
LOG.Info("服务器没有连接");
LogInfo("服务器没有连接");
return false;
}
......@@ -418,7 +418,7 @@ namespace AsaPL
bool rtn = System.Text.RegularExpressions.Regex.IsMatch(ip, pattern);
if (!rtn)
{
LOG.Info("Illegal IP address " + ip);
LogInfo("Illegal IP address " + ip);
return false;
}
......@@ -430,7 +430,7 @@ namespace AsaPL
ping.Dispose();
if (result.Status != System.Net.NetworkInformation.IPStatus.Success)
{
LOG.Info("Ping " + ip + " request timeout");
LogInfo("Ping " + ip + " request timeout");
return false;
}
return true;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!