diff --git a/src/JT808.Abstractions/ISourcePackageDispatcher.cs b/src/JT808.Abstractions/ISourcePackageDispatcher.cs
new file mode 100644
index 0000000..503cbb5
--- /dev/null
+++ b/src/JT808.Abstractions/ISourcePackageDispatcher.cs
@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace JT808.Abstractions
+{
+ ///
+ /// 源包分发器
+ ///
+ public interface ISourcePackageDispatcher
+ {
+ Task SendAsync(byte[] data);
+ }
+}
diff --git a/src/JT808.Abstractions/JT808.Abstractions.csproj b/src/JT808.Abstractions/JT808.Abstractions.csproj
new file mode 100644
index 0000000..9f5c4f4
--- /dev/null
+++ b/src/JT808.Abstractions/JT808.Abstractions.csproj
@@ -0,0 +1,7 @@
+
+
+
+ netstandard2.0
+
+
+
diff --git a/src/JT808.DotNetty.sln b/src/JT808.DotNetty.sln
new file mode 100644
index 0000000..48e2787
--- /dev/null
+++ b/src/JT808.DotNetty.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.28010.2016
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JT808.DotNetty", "JT808.DotNetty\JT808.DotNetty.csproj", "{80C7F67E-6B7C-4178-8726-ADD3695622DD}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {80C7F67E-6B7C-4178-8726-ADD3695622DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {80C7F67E-6B7C-4178-8726-ADD3695622DD}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {80C7F67E-6B7C-4178-8726-ADD3695622DD}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {80C7F67E-6B7C-4178-8726-ADD3695622DD}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {FC0FFCEA-E1EF-4C97-A1C5-F89418B6834B}
+ EndGlobalSection
+EndGlobal
diff --git a/src/JT808.DotNetty/Codecs/JT808Decoder.cs b/src/JT808.DotNetty/Codecs/JT808Decoder.cs
new file mode 100644
index 0000000..c1fb5a8
--- /dev/null
+++ b/src/JT808.DotNetty/Codecs/JT808Decoder.cs
@@ -0,0 +1,68 @@
+using DotNetty.Buffers;
+using DotNetty.Codecs;
+using DotNetty.Transport.Channels;
+using Microsoft.Extensions.Logging;
+using System;
+using System.Collections.Generic;
+using System.Text;
+using JT808.Protocol;
+using JT808.DotNetty.Internal;
+
+namespace JT808.DotNetty.Codecs
+{
+ ///
+ /// JT808解码
+ ///
+ internal class JT808Decoder : ByteToMessageDecoder
+ {
+ private readonly ILogger logger;
+
+ public JT808Decoder(ILogger logger)
+ {
+ this.logger = logger;
+ }
+
+ public JT808Decoder(ILoggerFactory loggerFactory)
+ {
+ this.logger = loggerFactory.CreateLogger();
+ }
+
+ private static readonly AtomicCounter MsgSuccessCounter = new AtomicCounter();
+
+ private static readonly AtomicCounter MsgFailCounter = new AtomicCounter();
+
+ protected override void Decode(IChannelHandlerContext context, IByteBuffer input, List