You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.2 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BatCharging.Model
{
public class APDUModel
{
/// <summary>
/// 起始域
/// </summary>
public byte OriginDomain1 { get; set; } = 0xAA;
/// <summary>
/// 起始域2
/// </summary>
public byte OriginDomain2 { get; set; } = 0xF5;
/// <summary>
/// 长度域
/// </summary>
public UInt16 LengthDomain { get; set; }
/// <summary>
/// 信息域
/// <para>bit0-3 当前协议是V2.6值填0x02</para>
/// </summary>
public byte infoDomain { get; set; }
/// <summary>
/// 序列号域
/// </summary>
public byte SerialNumberDomain { get; set; }
/// <summary>
/// 命令代CMD
/// </summary>
public UInt16 CMD { get; set; }
/// <summary>
/// 数据域
/// </summary>
public byte[] dataDomain = new byte[0];
/// <summary>
/// 校验和域
/// </summary>
public byte checksumDomain { get; set; }
}
}