diff --git a/simples/JT808.DotNetty.SimpleClient/Services/Up2019Service.cs b/simples/JT808.DotNetty.SimpleClient/Services/Up2019Service.cs index cfac566..1f4a9ce 100644 --- a/simples/JT808.DotNetty.SimpleClient/Services/Up2019Service.cs +++ b/simples/JT808.DotNetty.SimpleClient/Services/Up2019Service.cs @@ -24,6 +24,7 @@ namespace JT808.DotNetty.SimpleClient.Services { string sim = "22222222222"; JT808TcpClient client1 = jT808TcpClientFactory.Create(new JT808DeviceConfig(sim, "127.0.0.1", 808, JT808Version.JTT2019)); + Thread.Sleep(5000); //1.终端注册 client1.Send(JT808MsgId.终端注册.Create2019(sim, new JT808_0x0100() { diff --git a/simples/JT808.DotNetty.SimpleClient/Services/UpService.cs b/simples/JT808.DotNetty.SimpleClient/Services/UpService.cs index c7ff718..6138a5a 100644 --- a/simples/JT808.DotNetty.SimpleClient/Services/UpService.cs +++ b/simples/JT808.DotNetty.SimpleClient/Services/UpService.cs @@ -24,6 +24,7 @@ namespace JT808.DotNetty.SimpleClient.Services { string sim = "11111111111"; JT808TcpClient client1 = jT808TcpClientFactory.Create(new JT808DeviceConfig(sim, "127.0.0.1", 808)); + Thread.Sleep(5000); //1.终端注册 client1.Send(JT808MsgId.终端注册.Create(sim, new JT808_0x0100() { diff --git a/src/JT808.DotNetty.Abstractions/JT808.DotNetty.Abstractions.csproj b/src/JT808.DotNetty.Abstractions/JT808.DotNetty.Abstractions.csproj index bed7d8f..9051146 100644 --- a/src/JT808.DotNetty.Abstractions/JT808.DotNetty.Abstractions.csproj +++ b/src/JT808.DotNetty.Abstractions/JT808.DotNetty.Abstractions.csproj @@ -20,7 +20,7 @@ 基于DotNetty实现的JT808DotNetty的抽象库 - + diff --git a/src/JT808.DotNetty.Client/JT808.DotNetty.Client.csproj b/src/JT808.DotNetty.Client/JT808.DotNetty.Client.csproj index 40d4089..0bfb406 100644 --- a/src/JT808.DotNetty.Client/JT808.DotNetty.Client.csproj +++ b/src/JT808.DotNetty.Client/JT808.DotNetty.Client.csproj @@ -24,7 +24,7 @@ - + diff --git a/src/JT808.DotNetty.Client/JT808ClientMsgSNDistributedImpl.cs b/src/JT808.DotNetty.Client/JT808ClientMsgSNDistributedImpl.cs deleted file mode 100644 index e15d703..0000000 --- a/src/JT808.DotNetty.Client/JT808ClientMsgSNDistributedImpl.cs +++ /dev/null @@ -1,16 +0,0 @@ -using JT808.Protocol; -using JT808.Protocol.Interfaces; -using System.Threading; - -namespace JT808.DotNetty.Client -{ - internal class JT808ClientMsgSNDistributedImpl : IJT808MsgSNDistributed - { - int _counter = 0; - - public ushort Increment() - { - return (ushort)Interlocked.Increment(ref _counter); - } - } -} diff --git a/src/JT808.DotNetty.Client/JT808DeviceConfig.cs b/src/JT808.DotNetty.Client/JT808DeviceConfig.cs index 1fc2530..63cd606 100644 --- a/src/JT808.DotNetty.Client/JT808DeviceConfig.cs +++ b/src/JT808.DotNetty.Client/JT808DeviceConfig.cs @@ -14,7 +14,6 @@ namespace JT808.DotNetty.Client TerminalPhoneNo = terminalPhoneNo; TcpHost = tcpHost; TcpPort = tcpPort; - MsgSNDistributed = new JT808ClientMsgSNDistributedImpl(); Version = version; } public JT808Version Version { get; private set; } diff --git a/src/JT808.DotNetty.Client/JT808TcpClientExtensions.cs b/src/JT808.DotNetty.Client/JT808TcpClientExtensions.cs index 97e266d..b0d230a 100644 --- a/src/JT808.DotNetty.Client/JT808TcpClientExtensions.cs +++ b/src/JT808.DotNetty.Client/JT808TcpClientExtensions.cs @@ -14,7 +14,6 @@ namespace JT808.DotNetty.Client public static void Send(this JT808TcpClient client, JT808Package package, int minBufferSize = 4096) { package.Header.TerminalPhoneNo = client.DeviceConfig.TerminalPhoneNo; - package.Header.MsgNum = client.DeviceConfig.MsgSNDistributed.Increment(); JT808ClientRequest request = new JT808ClientRequest(package, minBufferSize); client.Send(request); } diff --git a/src/JT808.DotNetty.Services/JT808.DotNetty.Traffic/JT808.DotNetty.Traffic.csproj b/src/JT808.DotNetty.Services/JT808.DotNetty.Traffic/JT808.DotNetty.Traffic.csproj index 90acf2a..ee1e567 100644 --- a/src/JT808.DotNetty.Services/JT808.DotNetty.Traffic/JT808.DotNetty.Traffic.csproj +++ b/src/JT808.DotNetty.Services/JT808.DotNetty.Traffic/JT808.DotNetty.Traffic.csproj @@ -24,7 +24,7 @@ - + diff --git a/src/Version.props b/src/Version.props index 3ca3866..8f15eb1 100644 --- a/src/Version.props +++ b/src/Version.props @@ -1,5 +1,5 @@  - 2.3.0 + 2.3.1 \ No newline at end of file