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.
49 lines
1.3 KiB
49 lines
1.3 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace HybirdFrameworkEntity
|
|
{
|
|
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>
|
|
/// 信息域
|
|
///
|
|
/// 除了 CMD=1202 加密能用 RSA 加密方式,
|
|
/// 其他报文若是加密,全部是采用 AES方式加密。
|
|
/// <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; }
|
|
}
|
|
}
|