using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SlnMesnac.Model.Enum
{
    public enum MessageType                 
    {
        GetDeviceInfo_Type = 1,             //获取设备类型    
        GetSensorInfo_Type = 2,             //获取传感器类型   
        IdentifyEpc_Type   = 3,             //识别EPC类型  
        ReadData_Type      = 4,             //读取数据类型 
        WriteData_Type     = 5,             //写入数据类型         
        AutoReport_Type    = 131,             //自报          
        HeartPack_Type     = 101,           //心跳报文	    
        DeviceStatus_Type  = 102,           //设备状态          
    };
    public class SoftMessagePack
    {
        public byte iSys = 0x56;            //头
        public UInt16 iStationId;           //适配软件地址
        public byte iMsta = 0xF1;           
        public byte iMessageType;           //控制码
        public UInt16 iLen;                 //Data Length
        public byte[] pMessage;             //EPC Code 
        public UInt16 iVerify;                                              
        public byte iEndChar = 0x86;        //尾盘                                     
    }   
}


