Browse Source

2019版 主链路登录请求消息 1001

pull/2/head
算神 5 years ago
parent
commit
1f6c25f527
2 changed files with 6 additions and 0 deletions
  1. +2
    -0
      src/JT809.Protocol/Formatters/MessageBodyFormatters/JT809_0x1001_Formatter.cs
  2. +4
    -0
      src/JT809.Protocol/MessageBody/JT809_0x1001.cs

+ 2
- 0
src/JT809.Protocol/Formatters/MessageBodyFormatters/JT809_0x1001_Formatter.cs View File

@@ -18,6 +18,7 @@ namespace JT809.Protocol.Formatters.MessageBodyFormatters
JT809_0x1001 jT809_0X1001 = new JT809_0x1001();
jT809_0X1001.UserId = reader.ReadUInt32();
jT809_0X1001.Password = reader.ReadString(8);
jT809_0X1001.MsgGNSSCENTERID = reader.ReadUInt32();
jT809_0X1001.DownLinkIP = reader.ReadString(32);
jT809_0X1001.DownLinkPort = reader.ReadUInt16();
return jT809_0X1001;
@@ -27,6 +28,7 @@ namespace JT809.Protocol.Formatters.MessageBodyFormatters
{
writer.WriteUInt32(value.UserId);
writer.WriteStringPadRight(value.Password, 8);
writer.WriteUInt32(value.MsgGNSSCENTERID);
writer.WriteStringPadRight(value.DownLinkIP, 32);
writer.WriteUInt16(value.DownLinkPort);
}


+ 4
- 0
src/JT809.Protocol/MessageBody/JT809_0x1001.cs View File

@@ -26,6 +26,10 @@ namespace JT809.Protocol.MessageBody
/// </summary>
public string Password { get; set; }
/// <summary>
/// 下级平台接入码
/// </summary>
public uint MsgGNSSCENTERID { get; set; }
/// <summary>
/// 下级平台提供对应的从链路服务端 IP 地址
/// 32位
/// </summary>


Loading…
Cancel
Save