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.
49 lines
1.3 KiB
C#
49 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Admin.Core.Socket
|
|
{
|
|
public class MessagePack
|
|
{
|
|
/// <summary>
|
|
/// 帧开始
|
|
/// </summary>
|
|
public byte m_BeginChar = 0x68;
|
|
/// <summary>
|
|
/// 采集类型
|
|
/// </summary>
|
|
public byte m_EnergyType;
|
|
/// <summary>
|
|
/// 终端地址
|
|
/// </summary>
|
|
public byte[] m_Meteraddr = new byte[2];
|
|
/// <summary>
|
|
/// 命令号/token值
|
|
/// </summary>
|
|
public byte[] m_MstaOrToken = new byte[2];
|
|
/// <summary>
|
|
/// 起始符
|
|
/// </summary>
|
|
public byte m_StartFlag;
|
|
/// <summary>
|
|
/// 控制码
|
|
/// </summary>
|
|
public byte m_MessageType;
|
|
/// <summary>
|
|
/// 数据长度
|
|
/// </summary>
|
|
public byte[] m_PackLen = new byte[2];
|
|
/// <summary>
|
|
/// CS校验
|
|
/// </summary>
|
|
public byte m_Verify;
|
|
/// <summary>
|
|
/// 帧结尾
|
|
/// </summary>
|
|
public byte m_EndChar = 0x16;
|
|
}
|
|
}
|