@@ -4,8 +4,13 @@ | |||||
<TargetFramework>netstandard2.0</TargetFramework> | <TargetFramework>netstandard2.0</TargetFramework> | ||||
</PropertyGroup> | </PropertyGroup> | ||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | |||||
<DocumentationFile>bin\Release\netstandard2.0\JT809.Protocol.xml</DocumentationFile> | |||||
</PropertyGroup> | |||||
<ItemGroup> | <ItemGroup> | ||||
<Folder Include="Encrypt\" /> | <Folder Include="Encrypt\" /> | ||||
<Folder Include="ProtocolPacket\Message\SlaveLink\" /> | |||||
</ItemGroup> | </ItemGroup> | ||||
</Project> | </Project> |
@@ -0,0 +1,14 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace JT809.Protocol.ProtocolPacket.Message.MainLink | |||||
{ | |||||
/// <summary> | |||||
/// 主链路登录请求消息 | |||||
/// </summary> | |||||
public sealed class MainLink_Login: MessageBody | |||||
{ | |||||
} | |||||
} |
@@ -0,0 +1,14 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Text; | |||||
namespace JT809.Protocol.ProtocolPacket | |||||
{ | |||||
/// <summary> | |||||
/// 抽象消息体 | |||||
/// </summary> | |||||
public abstract class MessageBody | |||||
{ | |||||
public IEncrypt Encrypt { get; set; } | |||||
} | |||||
} |
@@ -13,7 +13,8 @@ namespace JT809.Protocol.ProtocolPacket | |||||
public const int CrcByteLength = 2; | public const int CrcByteLength = 2; | ||||
public const byte BeginFlag = 0X5B; | public const byte BeginFlag = 0X5B; | ||||
public const byte EndFlag = 0X5D; | public const byte EndFlag = 0X5D; | ||||
public Header Header { get; private set; } | |||||
public Header Header { get; set; } | |||||
public MessageBody MessageBody { get; set; } | |||||
private ushort CRCCheckCode { get; set; } | private ushort CRCCheckCode { get; set; } | ||||
} | } | ||||
} | } |