From 5016379da0051267bf263b50e2c73ffdeee951f6 Mon Sep 17 00:00:00 2001 From: "SmallChi(Koike)" <564952747@qq.com> Date: Wed, 31 Aug 2022 21:18:54 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=8E=BB=E6=8E=89netstandard=E7=94=9F?= =?UTF-8?q?=E6=88=90=E5=BA=93=202.=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dotnetcore.yml | 2 +- README.en.md | 1 + README.md | 6 ++--- global.json | 2 +- src/Info.props | 4 +-- src/JT808.Protocol/JT808.Protocol.csproj | 33 ------------------------ 6 files changed, 8 insertions(+), 40 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 134333b..8dfe020 100755 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -12,7 +12,7 @@ jobs: - name: Setup .NET Core uses: actions/setup-dotnet@master with: - dotnet-version: 6.0.302 + dotnet-version: 6.0.400 - name: dotnet info run: dotnet --info - name: dotnet restore diff --git a/README.en.md b/README.en.md index 1924bff..5137af0 100644 --- a/README.en.md +++ b/README.en.md @@ -253,6 +253,7 @@ When the device uploads multimedia data, due to the large amount of data, it can 3. When N packet data comes in, continue as in Step 2. > General Knowledge 1:Since the maximum length of the message body is 10bits (1023 bytes), there is a hard condition that the maximum length cannot be exceeded. + > General Knowledge 2:General industry subcontracting is an integer multiple of 256, too much is not good, too little is not good, must be just right. [See Demo5 for Simples](https://github.com/SmallChi/JT808/blob/master/src/JT808.Protocol.Test/Simples/Demo5.cs) diff --git a/README.md b/README.md index bd3d9fb..d28ec40 100644 --- a/README.md +++ b/README.md @@ -253,7 +253,8 @@ JT808Serializer DT2JT808Serializer = new JT808Serializer(DT2JT808Config); 3. 当N包数据上来,延续步骤2的方式。 -> 普及知识点1:由于消息体长度最大为10bit也就是1023的字节,所以这边就有个硬性条件不能超过最大长度 +> 普及知识点1:由于消息体长度最大为10bit也就是1023的字节,所以这边就有个硬性条件不能超过最大长度。 + > 普及知识点2:一般行业分包是按256的整数倍,太多不行,太少也不行,必须刚刚好。 [可以参考Simples的Demo5](https://github.com/SmallChi/JT808/blob/master/src/JT808.Protocol.Test/Simples/Demo5.cs) @@ -267,8 +268,7 @@ JT808Serializer DT2JT808Serializer = new JT808Serializer(DT2JT808Config); ***解决方式:*** -可以根据设备类型去实现(GlobalConfigBase)对应的配置,根据不同的GlobalConfigBase实例去绑定对应 -协议解析器。 +可以根据设备类型去实现(GlobalConfigBase)对应的配置,根据不同的GlobalConfigBase实例去绑定对应协议解析器。 [可以参考Simples的Demo6](https://github.com/SmallChi/JT808/blob/master/src/JT808.Protocol.Test/Simples/Demo6.cs) diff --git a/global.json b/global.json index 9eab5ea..d769cd3 100644 --- a/global.json +++ b/global.json @@ -1,5 +1,5 @@ { "sdk": { - "version": "6.0.302" + "version": "6.0.400" } } \ No newline at end of file diff --git a/src/Info.props b/src/Info.props index 5471126..c0d2ad9 100644 --- a/src/Info.props +++ b/src/Info.props @@ -1,6 +1,6 @@  - netstandard2.0;netstandard2.1;net6.0; + net6.0; 10.0 Copyright 2018. SmallChi(Koike) @@ -8,7 +8,7 @@ https://github.com/SmallChi/JT808 https://github.com/SmallChi/JT808/blob/master/LICENSE https://github.com/SmallChi/JT808/blob/master/LICENSE - 2.5.0-preview2 + 2.5.0-preview3 LICENSE true latest diff --git a/src/JT808.Protocol/JT808.Protocol.csproj b/src/JT808.Protocol/JT808.Protocol.csproj index 03a3dfd..e9b6eb9 100644 --- a/src/JT808.Protocol/JT808.Protocol.csproj +++ b/src/JT808.Protocol/JT808.Protocol.csproj @@ -15,21 +15,6 @@ README.md - - false - true - - - - false - true - - - - false - true - - @@ -57,24 +42,6 @@ - - - - - - - - - - - - - - - - - -