using HybirdFrameworkCore.Autofac.Attribute; namespace Service.Charger.Msg.Host.Req; /// /// 3.3.1 监控平台鉴权认证 /// public class Auth : ASDU { public Auth(ushort connseq, byte[] authcodes, byte authcodekey) { PackLen = 0; CtlArea = 0; SrcAddr = 0; FrameTypeNo = 45; MsgBodyCount = 1; TransReason = 3; PublicAddr = 0; MsgBodyAddr = new byte[] { 0, 0, 0 }; RecordType = 24; ClientType = 1; ConnSeq = connseq; AuthCodes = authcodes; AuthCodeKey = authcodekey; } /// /// 记录类型 /// public byte RecordType { get; set; } /// /// 客户端类型.1站控 2本地控制器 3测试客户端 4TCU模式 0未知设备 /// [Property(0, 8)] public byte ClientType { get; set; } /// /// 连接序号 /// [Property(8, 16)] public ushort ConnSeq { get; set; } /// /// 鉴权码字节数组 /// [Property(24, 64)] public byte[] AuthCodes { get; set; } /// /// 鉴码KEY /// [Property(88, 8)] public byte AuthCodeKey { get; set; } }