You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
2.3 KiB
C#
103 lines
2.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Mesnac.Compressor.Entity
|
|
{
|
|
public class FrameFormat
|
|
{
|
|
|
|
public FrameFormat()
|
|
{
|
|
data = new DataFormat();
|
|
}
|
|
/// <summary>
|
|
/// 帧头
|
|
/// </summary>
|
|
public string Framehead { get; set; }
|
|
/// <summary>
|
|
/// 长度
|
|
/// </summary>
|
|
public int length { get; set; }
|
|
/// <summary>
|
|
/// 帧类型
|
|
/// </summary>
|
|
public string Type { get; set; }
|
|
|
|
public DataFormat data { get; set; }
|
|
/// <summary>
|
|
/// 校验码
|
|
/// </summary>
|
|
public string CheckCode { get; set; }
|
|
/// <summary>
|
|
/// 帧尾
|
|
/// </summary>
|
|
public string FrameTail { get; set; }
|
|
|
|
/// <summary>
|
|
/// 数据是否正确
|
|
/// </summary>
|
|
public bool CompleteFlag { get; set; }
|
|
}
|
|
|
|
public class DataFormat
|
|
{
|
|
#region Socket上传格式
|
|
public string PC { get; set; }
|
|
|
|
public string Epc
|
|
{ get; set; }
|
|
|
|
public string Rssi { get; set; }
|
|
/// <summary>
|
|
/// 天线
|
|
/// </summary>
|
|
public string ANT { get; set; }
|
|
|
|
/// <summary>
|
|
/// IP的最后一位
|
|
/// </summary>
|
|
public string IP { get; set; }
|
|
//超时
|
|
public string TimeOut { get; set; }
|
|
|
|
#endregion
|
|
|
|
|
|
public bool PrepareWork { get; set; }
|
|
/// <summary>
|
|
/// 是否已经下发工作指令
|
|
/// </summary>
|
|
public bool HaveWorked { get; set; }
|
|
|
|
/// <summary>
|
|
///刻字工位是否成功
|
|
/// </summary>
|
|
public bool EngravingCodeSuccess = false;
|
|
|
|
/// <summary>
|
|
/// 刻字条码是否已经经过扫描确认
|
|
/// </summary>
|
|
public bool EngravingScan = false;
|
|
|
|
/// <summary>
|
|
/// 是否下发工作指令
|
|
/// </summary>
|
|
public bool workOrder = false;
|
|
|
|
/// <summary>
|
|
/// 是否已经保存数据
|
|
/// </summary>
|
|
public bool DataSave = false;
|
|
|
|
public WorkTray workTray;
|
|
|
|
//是否已经扫描条码
|
|
public bool ScanCode = false;
|
|
|
|
|
|
public StationInsertInfo InsertInfo;
|
|
}
|
|
}
|