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.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace HybirdFrameworkEntity
|
|
|
|
|
{
|
|
|
|
|
public class CMD1022
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 设备代号
|
|
|
|
|
/// 1-V6-SEV-AC-M1-STM32F207 交流桩
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int EquipmentCode { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 项目代码
|
|
|
|
|
/// 每个项目都一个代码,平台升级软件映射表与桩实际编码对应。
|
|
|
|
|
/// 如101-101 项目协议标准后台 协议项目102-云快充后台协议项目
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int ProjectCode { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 当前软件版本 类型为小端整型(INT),如:
|
|
|
|
|
/// 0x09 0x52 00 00 表示:0x5209,则版本号为:210.01
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int SoftwareVersion { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 最大可接收文件大小 单位K
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int ReceiveFileSizeMax { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 设备描述 字符串类型“如 V6交流桩” 32
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string DeviceDescripte { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 命令标识
|
|
|
|
|
/// 0x6e657874 -表示断点续传
|
|
|
|
|
/// 未定义的,都表示从重开始
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int CommandFlag { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 断点续传文件启始偏移位置
|
|
|
|
|
/// 文件启始偏移位置
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int Offset { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 断点续传 SN
|
|
|
|
|
/// 只有断点续传下有效,在接下来的CMD = 1007 包头部的sn
|
|
|
|
|
/// </summary>
|
|
|
|
|
public byte ContinuatSN { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 允许服务发送的升级数据报文数据长度
|
|
|
|
|
/// 断电续传 CMD=1007的数据长度不能超过此限制, 建议不超过1024byte,默认 512
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int DataLength { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|