2.修改苏标的ci配置 3.修改苏标的发布配置 4.修改文档tags/v2.4.1
@@ -25,10 +25,10 @@ jobs: | |||
run: dotnet build ./src/JT808.Protocol.Extensions/JT808.Protocol.Extensions.JT1078.Test/JT808.Protocol.Extensions.JT1078.Test.csproj | |||
- name: dotnet jt808_jt1078 test | |||
run: dotnet test ./src/JT808.Protocol.Extensions/JT808.Protocol.Extensions.JT1078.Test/JT808.Protocol.Extensions.JT1078.Test.csproj | |||
- name: dotnet jt808_jtas build | |||
run: dotnet build ./src/JT808.Protocol.Extensions/JT808.Protocol.Extensions.JTActiveSafety.Test/JT808.Protocol.Extensions.JTActiveSafety.Test.csproj | |||
- name: dotnet jt808_jtas test | |||
run: dotnet test ./src/JT808.Protocol.Extensions/JT808.Protocol.Extensions.JTActiveSafety.Test/JT808.Protocol.Extensions.JTActiveSafety.Test.csproj | |||
- name: dotnet jt808_subiao build | |||
run: dotnet build ./src/JT808.Protocol.Extensions/JT808.Protocol.Extensions.SuBiao.Test/JT808.Protocol.Extensions.SuBiao.Test.csproj | |||
- name: dotnet jt808_subiao test | |||
run: dotnet test ./src/JT808.Protocol.Extensions/JT808.Protocol.Extensions.SuBiao.Test/JT808.Protocol.Extensions.SuBiao.Test.csproj | |||
- name: dotnet jt808_yuebiao build | |||
run: dotnet build ./src/JT808.Protocol.Extensions/JT808.Protocol.Extensions.YueBiao.Test/JT808.Protocol.Extensions.YueBiao.Test.csproj | |||
- name: dotnet jt808_yuebiao test | |||
@@ -324,10 +324,10 @@ JT808Serializer DT2JT808Serializer = new JT808Serializer(DT2JT808Config); | |||
| Package Name| Version| Preview Version |Downloads|Remark| | |||
| --- | --- | --- | ---| --- | | |||
| Install-Package JT808 |  |  ||JT808| | |||
| Install-Package JT808.Protocol.Extensions.JT1078 |  |  ||JT1078扩展JT808| | |||
| Install-Package JT808.Protocol.Extensions.JTActiveSafety|  |  ||主动安全(苏标)扩展JT808| | |||
| Install-Package JT808.Protocol.Extensions.YueBiao|  |  ||粤标扩展JT808| | |||
| Install-Package JT808 |  | | |JT808| | |||
| Install-Package JT808.Protocol.Extensions.JT1078 |  | | |JT1078扩展JT808| | |||
| Install-Package JT808.Protocol.Extensions.SuBiao|  | | |主动安全(苏标)扩展JT808| | |||
| Install-Package JT808.Protocol.Extensions.YueBiao|  | | |主动安全(粤标)扩展JT808| | |||
## 使用BenchmarkDotNet性能测试报告(只是玩玩,不能当真) | |||
@@ -361,7 +361,7 @@ Platform=AnyCpu Server=False Toolchain=.NET Core 5.0 | |||
## JT808终端通讯协议消息对照表 | |||
| 序号 | 消息ID | 完成情况 | 测试情况 | 消息体名称 |2019版本| | |||
| :---: | :-----------: | :------: | :------: | :----------------------------: |:----------------------------:| | |||
| :---: | :-----------: | :------: | :------: | :---------------------------- |:----------------------------:| | |||
| 1 | 0x0001 | √ | √ | 终端通用应答 | | |||
| 2 | 0x8001 | √ | √ | 平台通用应答 | | |||
| 3 | 0x0002 | √ | √ | 终端心跳 | | |||
@@ -441,7 +441,7 @@ Platform=AnyCpu Server=False Toolchain=.NET Core 5.0 | |||
## JT1078扩展JT808议消息对照表 | |||
| 序号 | 消息ID | 完成情况 | 测试情况 | 消息体名称 | | |||
| :---: | :-----------: | :------: | :------: | :----------------------------: | | |||
| :---: | :-----------: | :------: | :------: | :---------------------------- | | |||
| 1 | 0x0200_0x14 | √ | √ | 视频相关报警 | | |||
| 2 | 0x0200_0x15 | √ | √ | 视频信号丢失报警状态 | | |||
| 3 | 0x0200_0x16 | √ | √ | 视频信号遮挡报警状态 | | |||
@@ -485,7 +485,7 @@ serviceDescriptors1.AddJT808Configure() | |||
## 主动安全(苏标)扩展JT808协议消息对照表 | |||
| 序号 | 消息ID | 完成情况 | 测试情况 | 消息体名称 | | |||
| :---: | :---: | :---: | :---: | :---:| | |||
| :---: | :---: | :---: | :---: | :---| | |||
| 1 | 0x1210 | √ | √ | 报警附件信息消息 | | |||
| 2 | 0x1211 | √ | √ | 文件信息上传 | | |||
| 3 | 0x1212 | √ | √ | 文件上传完成消息 | | |||
@@ -511,13 +511,36 @@ serviceDescriptors1.AddJT808Configure() | |||
```dotnet | |||
IServiceCollection serviceDescriptors1 = new ServiceCollection(); | |||
serviceDescriptors1.AddJT808Configure() | |||
.AddJTActiveSafetyConfigure(); | |||
.AddSuBiaoConfigure(); | |||
``` | |||
## 粤标扩展JT808协议消息对照表 | |||
## 主动安全(粤标)扩展JT808协议消息对照表 | |||
> 注意:基于JT/T808 2019版本 | |||
| 序号 | 消息ID | 完成情况 | 测试情况 | 消息体名称 | | |||
| :---: | :---: | :---: | :---: | :---:| | |||
| :---: | :---: | :---: | :---: | :---| | |||
| 1 | 0x1210 | √ | × | 报警附件信息消息 | | |||
| 2 | 0x1211 | √ | × | 文件信息上传 | | |||
| 3 | 0x1212 | √ | × | 文件上传完成消息 | | |||
| 4 | 0x9208 | √ | × | 报警附件上传指令 | | |||
| 5 | 0x9212 | √ | × | 文件上传完成消息应答 | | |||
| 6 | 0x1FC4 | √ | × | 终端升级进度上报 | | |||
| 7 | 0x0200_0x64 | √ | × | 高级驾驶辅助系统报警信息 | | |||
| 8 | 0x0200_0x65 | √ | × | 驾驶员状态监测系统报警信息 | | |||
| 9 | 0x0200_0x66 | √ | × | 胎压监测系统报警信息 | | |||
| 10 | 0x0200_0x67 | √ | × | 盲区监测系统报警信息 | | |||
| 11 | 0x8103_0xF364 | √ | × | 高级驾驶辅助系统参数 | | |||
| 12 | 0x8103_0xF365 | √ | × | 驾驶员状态监测系统参数 | | |||
| 13 | 0x8103_0xF366 | √ | × | 胎压监测系统参数 | | |||
| 14 | 0x8103_0xF367 | √ | × | 盲区监测系统参数 | | |||
| 15 | 0x8103_0xF370 | √ | × | 智能视频协议版本信息 | | |||
| 16 | 0x0900 | √ | × | 上传基本信息 | | |||
| 17 | 0x0900_0xF7 | √ | × | 外设工作状态 | | |||
| 18 | 0x0900_0xF8 | √ | × | 外设系统信息 | | |||
| 19 | 0x8900 | √ | × | 查询基本信息 | | |||
| 20 | 0x8900_0xF7 | √ | × | 外设工作状态 | | |||
| 21 | 0x8900_0xF8 | √ | × | 外设系统信息 | | |||
## 使用方法 | |||
@@ -1,6 +1,6 @@ | |||
dotnet pack .\src\JT808.Protocol\JT808.Protocol.csproj -c Release --output nupkgs | |||
dotnet pack .\src\JT808.Protocol.Extensions\JT808.Protocol.Extensions.JT1078\JT808.Protocol.Extensions.JT1078.csproj -c Release --output nupkgs | |||
dotnet pack .\src\JT808.Protocol.Extensions\JT808.Protocol.Extensions.JTActiveSafety\JT808.Protocol.Extensions.JTActiveSafety.csproj -c Release --output nupkgs | |||
dotnet pack .\src\JT808.Protocol.Extensions\JT808.Protocol.Extensions.SuBiao\JT808.Protocol.Extensions.SuBiao.csproj -c Release --output nupkgs | |||
dotnet pack .\src\JT808.Protocol.Extensions\JT808.Protocol.Extensions.YueBiao\JT808.Protocol.Extensions.YueBiao.csproj -c Release --output nupkgs | |||
pause |
@@ -227,6 +227,11 @@ | |||
0x0200_0x14 | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x14.AttachInfoId"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x14.AttachInfoLength"> | |||
<summary> | |||
数据 长度 | |||
@@ -238,12 +243,41 @@ | |||
<see cref="T:JT808.Protocol.Extensions.JT1078.Enums.VideoRelateAlarmType"/> | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x14.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x14.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x14.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x14,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x15"> | |||
<summary> | |||
视频信号丢失报警状态 | |||
0x0200_0x15 | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x15.AttachInfoId"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x15.AttachInfoLength"> | |||
<summary> | |||
数据 长度 | |||
@@ -254,12 +288,41 @@ | |||
视频信号丢失报警状态 | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x15.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x15.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x15.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x15,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x16"> | |||
<summary> | |||
视频信号遮挡报警状态 | |||
0x0200_0x16 | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x16.AttachInfoId"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x16.AttachInfoLength"> | |||
<summary> | |||
数据 长度 | |||
@@ -270,12 +333,41 @@ | |||
视频信号遮挡报警状态 | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x16.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x16.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x16.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x16,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x17"> | |||
<summary> | |||
存储器故障报警状态 | |||
0x0200_0x17 | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x17.AttachInfoId"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x17.AttachInfoLength"> | |||
<summary> | |||
数据 长度 | |||
@@ -286,12 +378,41 @@ | |||
存储器故障报警状态 | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x17.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x17.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x17.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x17,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x18"> | |||
<summary> | |||
异常驾驶行为报警详细描述 | |||
0x0200_0x18 | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x18.AttachInfoId"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x18.AttachInfoLength"> | |||
<summary> | |||
数据 长度 | |||
@@ -307,6 +428,30 @@ | |||
疲劳程度 | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x18.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x18.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x18.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x0200_0x18,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1003"> | |||
<summary> | |||
终端上传音视频属性 | |||
@@ -357,11 +502,55 @@ | |||
终端支持的最大视频物理通道数量 | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1003.MsgId"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1003.Description"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1003.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1003.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1003.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1003,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1005"> | |||
<summary> | |||
终端上传乘客流量 | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1005.Description"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1005.MsgId"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1005.BeginTime"> | |||
<summary> | |||
起始时间 | |||
@@ -382,11 +571,45 @@ | |||
下车人数 | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1005.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1005.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1005.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1005,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1205"> | |||
<summary> | |||
终端上传音视频资源列表 | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1205.Description"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1205.MsgId"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1205.MsgNum"> | |||
<summary> | |||
流水号 | |||
@@ -402,6 +625,30 @@ | |||
音视频资源列表 | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1205.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1205.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1205.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1205,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1205_AVResouce"> | |||
<summary> | |||
终端上传音视频资源列表 | |||
@@ -447,11 +694,45 @@ | |||
文件大小 | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1205_AVResouce.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1205_AVResouce.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1205_AVResouce.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1205_AVResouce,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1206"> | |||
<summary> | |||
文件上传完成通知 | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1206.Description"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1206.MsgId"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1206.MsgNum"> | |||
<summary> | |||
流水号 | |||
@@ -462,12 +743,41 @@ | |||
结果 | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1206.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1206.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1206.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x1206,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0075"> | |||
<summary> | |||
音视频参数设置 | |||
0x8103_0x0075 | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0075.ParamId"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0075.ParamLength"> | |||
<summary> | |||
数据 长度 | |||
@@ -539,12 +849,41 @@ | |||
1:启用 | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0075.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0075.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0075.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0075,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0076"> | |||
<summary> | |||
音视频通道列表设置 | |||
0x8103_0x0076 | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0076.ParamId"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0076.ParamLength"> | |||
<summary> | |||
数据 长度 | |||
@@ -574,6 +913,30 @@ | |||
4*(l+m+n) | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0076.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0076.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0076.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0076,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0076_AVChannelRefTable"> | |||
<summary> | |||
音视频通道列表设置 | |||
@@ -600,12 +963,41 @@ | |||
是否链接云台 | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0076_AVChannelRefTable.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0076_AVChannelRefTable.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0076_AVChannelRefTable.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0076_AVChannelRefTable,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0077"> | |||
<summary> | |||
单独视频通道参数设置 | |||
0x8103_0x0077 | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0077.ParamId"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0077.ParamLength"> | |||
<summary> | |||
数据 长度 | |||
@@ -616,6 +1008,40 @@ | |||
需单独设置视频参数的通道数量 用n表示 | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0077.SignalChannels"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0077.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0077.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0077.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0077,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0077_SignalChannel"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0077_SignalChannel.LogicChannelNo"> | |||
<summary> | |||
逻辑通道号 | |||
@@ -680,12 +1106,41 @@ | |||
OSD字幕叠加设置 | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0077_SignalChannel.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0077_SignalChannel.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0077_SignalChannel.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0077_SignalChannel,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0079"> | |||
<summary> | |||
特殊报警录像参数设置 | |||
0x8103_0x0079 | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0079.ParamId"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0079.ParamLength"> | |||
<summary> | |||
数据 长度 | |||
@@ -707,12 +1162,41 @@ | |||
分钟min | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0079.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0079.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0079.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x0079,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007A"> | |||
<summary> | |||
视频相关报警屏蔽字 | |||
0x8103_0x007A | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007A.ParamId"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007A.ParamLength"> | |||
<summary> | |||
数据 长度 | |||
@@ -723,12 +1207,41 @@ | |||
视频相关屏蔽报警字 | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007A.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007A.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007A.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007A,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007B"> | |||
<summary> | |||
图像分析报警参数设置 | |||
0x8103_0x007B | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007B.ParamId"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007B.ParamLength"> | |||
<summary> | |||
数据 长度 | |||
@@ -744,12 +1257,41 @@ | |||
疲劳程度阈值 | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007B.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007B.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007B.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007B,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007C"> | |||
<summary> | |||
终端休眠模式唤醒设置 | |||
0x8103_0x007C | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007C.ParamId"> | |||
<summary> | |||
</summary> | |||
</member> | |||
<member name="P:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007C.ParamLength"> | |||
<summary> | |||
数据 长度 | |||
@@ -775,6 +1317,30 @@ | |||
日定时唤醒参数列表 | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007C.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007C.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007C.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007C,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007C_TimerWakeDayParamter"> | |||
<summary> | |||
终端休眠模式唤醒设置 | |||
@@ -834,6 +1400,30 @@ | |||
2 | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007C_TimerWakeDayParamter.Analyze(JT808.Protocol.MessagePack.JT808MessagePackReader@,System.Text.Json.Utf8JsonWriter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="writer"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007C_TimerWakeDayParamter.Deserialize(JT808.Protocol.MessagePack.JT808MessagePackReader@,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="reader"></param> | |||
<param name="config"></param> | |||
<returns></returns> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007C_TimerWakeDayParamter.Serialize(JT808.Protocol.MessagePack.JT808MessagePackWriter@,JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x8103_0x007C_TimerWakeDayParamter,JT808.Protocol.IJT808Config)"> | |||
<summary> | |||
</summary> | |||
<param name="writer"></param> | |||
<param name="value"></param> | |||
<param name="config"></param> | |||
</member> | |||
<member name="T:JT808.Protocol.Extensions.JT1078.MessageBody.JT808_0x9003"> | |||
<summary> | |||
查询终端音视频属性 | |||
@@ -14,6 +14,9 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// </summary> | |||
public class JT808_0x0200_0x14 : JT808_0x0200_BodyBase, IJT808MessagePackFormatter<JT808_0x0200_0x14>,IJT808Analyze | |||
{ | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override byte AttachInfoId { get; set; } = 0x14; | |||
/// <summary> | |||
/// 数据 长度 | |||
@@ -24,7 +27,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// <see cref="JT808.Protocol.Extensions.JT1078.Enums.VideoRelateAlarmType"/> | |||
/// </summary> | |||
public uint VideoRelateAlarm { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x0200_0x14 value = new JT808_0x0200_0x14(); | |||
@@ -45,7 +53,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
writer.WriteEndArray(); | |||
} | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x0200_0x14 Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x0200_0x14 value = new JT808_0x0200_0x14(); | |||
@@ -54,7 +67,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
value.VideoRelateAlarm = reader.ReadUInt32(); | |||
return value; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x0200_0x14 value, IJT808Config config) | |||
{ | |||
writer.WriteByte(value.AttachInfoId); | |||
@@ -13,6 +13,9 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// </summary> | |||
public class JT808_0x0200_0x15 : JT808_0x0200_BodyBase, IJT808MessagePackFormatter<JT808_0x0200_0x15>, IJT808Analyze | |||
{ | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override byte AttachInfoId { get; set; } = 0x15; | |||
/// <summary> | |||
/// 数据 长度 | |||
@@ -22,7 +25,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// 视频信号丢失报警状态 | |||
/// </summary> | |||
public uint VideoSignalLoseAlarmStatus { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x0200_0x15 value = new JT808_0x0200_0x15(); | |||
@@ -49,7 +57,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
} | |||
writer.WriteEndArray(); | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x0200_0x15 Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x0200_0x15 value = new JT808_0x0200_0x15(); | |||
@@ -58,7 +71,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
value.VideoSignalLoseAlarmStatus = reader.ReadUInt32(); | |||
return value; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x0200_0x15 value, IJT808Config config) | |||
{ | |||
writer.WriteByte(value.AttachInfoId); | |||
@@ -13,6 +13,9 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// </summary> | |||
public class JT808_0x0200_0x16 : JT808_0x0200_BodyBase, IJT808MessagePackFormatter<JT808_0x0200_0x16>, IJT808Analyze | |||
{ | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override byte AttachInfoId { get; set; } = 0x16; | |||
/// <summary> | |||
/// 数据 长度 | |||
@@ -22,7 +25,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// 视频信号遮挡报警状态 | |||
/// </summary> | |||
public uint VideoSignalOcclusionAlarmStatus { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x0200_0x16 value = new JT808_0x0200_0x16(); | |||
@@ -49,7 +57,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
} | |||
writer.WriteEndArray(); | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x0200_0x16 Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x0200_0x16 value = new JT808_0x0200_0x16(); | |||
@@ -58,7 +71,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
value.VideoSignalOcclusionAlarmStatus = reader.ReadUInt32(); | |||
return value; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x0200_0x16 value, IJT808Config config) | |||
{ | |||
writer.WriteByte(value.AttachInfoId); | |||
@@ -13,6 +13,9 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// </summary> | |||
public class JT808_0x0200_0x17 : JT808_0x0200_BodyBase, IJT808MessagePackFormatter<JT808_0x0200_0x17>, IJT808Analyze | |||
{ | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override byte AttachInfoId { get; set; } = 0x17; | |||
/// <summary> | |||
/// 数据 长度 | |||
@@ -22,7 +25,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// 存储器故障报警状态 | |||
/// </summary> | |||
public ushort StorageFaultAlarmStatus{ get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x0200_0x17 value = new JT808_0x0200_0x17(); | |||
@@ -63,7 +71,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
} | |||
writer.WriteEndArray(); | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x0200_0x17 Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x0200_0x17 value = new JT808_0x0200_0x17(); | |||
@@ -72,7 +85,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
value.StorageFaultAlarmStatus = reader.ReadUInt16(); | |||
return value; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x0200_0x17 value, IJT808Config config) | |||
{ | |||
writer.WriteByte(value.AttachInfoId); | |||
@@ -13,6 +13,9 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// </summary> | |||
public class JT808_0x0200_0x18 : JT808_0x0200_BodyBase, IJT808MessagePackFormatter<JT808_0x0200_0x18>, IJT808Analyze | |||
{ | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override byte AttachInfoId { get; set; } = 0x18; | |||
/// <summary> | |||
/// 数据 长度 | |||
@@ -26,7 +29,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// 疲劳程度 | |||
/// </summary> | |||
public byte FatigueLevel { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x0200_0x18 value = new JT808_0x0200_0x18(); | |||
@@ -68,7 +76,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
value.FatigueLevel = reader.ReadByte(); | |||
writer.WriteNumber($"[{value.FatigueLevel.ReadNumber()}]疲劳程度", value.FatigueLevel); | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x0200_0x18 Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x0200_0x18 value = new JT808_0x0200_0x18(); | |||
@@ -78,7 +91,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
value.FatigueLevel = reader.ReadByte(); | |||
return value; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x0200_0x18 value, IJT808Config config) | |||
{ | |||
writer.WriteByte(value.AttachInfoId); | |||
@@ -49,11 +49,20 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// 终端支持的最大视频物理通道数量 | |||
/// </summary> | |||
public byte TerminalSupportedMaxNumberOfVideoPhysicalChannels { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override ushort MsgId => 0x1003; | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override string Description => "终端上传音视频属性"; | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x1003 value = new JT808_0x1003(); | |||
@@ -127,7 +136,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
return "未知"; | |||
} | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x1003 Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x1003 jT808_0x1003 = new JT808_0x1003(); | |||
@@ -142,7 +156,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
jT808_0x1003.TerminalSupportedMaxNumberOfVideoPhysicalChannels = reader.ReadByte(); | |||
return jT808_0x1003; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x1003 value, IJT808Config config) | |||
{ | |||
writer.WriteByte(value.EnterAudioEncoding); | |||
@@ -13,7 +13,13 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// </summary> | |||
public class JT808_0x1005 : JT808Bodies, IJT808MessagePackFormatter<JT808_0x1005>, IJT808Analyze | |||
{ | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override string Description => "终端上传乘客流量"; | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override ushort MsgId => 0x1005; | |||
/// <summary> | |||
/// 起始时间 | |||
@@ -31,7 +37,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// 下车人数 | |||
/// </summary> | |||
public ushort GettingOffNumber { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x1005 value = new JT808_0x1005(); | |||
@@ -44,7 +55,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
value.GettingOffNumber = reader.ReadUInt16(); | |||
writer.WriteNumber($"[{value.GettingOffNumber.ReadNumber()}]从开始时间到结束时间的下车人数", value.GettingOffNumber); | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x1005 Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x1005 jT808_0x1005 = new JT808_0x1005(); | |||
@@ -54,7 +70,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
jT808_0x1005.GettingOffNumber = reader.ReadUInt16(); | |||
return jT808_0x1005; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x1005 value, IJT808Config config) | |||
{ | |||
writer.WriteDateTime6(value.BeginTime); | |||
@@ -14,7 +14,13 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// </summary> | |||
public class JT808_0x1205 : JT808Bodies, IJT808MessagePackFormatter<JT808_0x1205>, IJT808Analyze | |||
{ | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override string Description => "终端上传音视频资源列表"; | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override ushort MsgId => 0x1205; | |||
/// <summary> | |||
/// 流水号 | |||
@@ -28,7 +34,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// 音视频资源列表 | |||
/// </summary> | |||
public List<JT808_0x1205_AVResouce> AVResouces { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x1205 value = new JT808_0x1205(); | |||
@@ -46,7 +57,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
} | |||
writer.WriteEndArray(); | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x1205 Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x1205 jT808_0x1205 = new JT808_0x1205(); | |||
@@ -64,7 +80,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
} | |||
return jT808_0x1205; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x1205 value, IJT808Config config) | |||
{ | |||
writer.WriteUInt16(value.MsgNum); | |||
@@ -45,7 +45,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// 文件大小 | |||
/// </summary> | |||
public uint FileSize { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x1205_AVResouce value = new JT808_0x1205_AVResouce(); | |||
@@ -141,7 +146,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x1205_AVResouce Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x1205_AVResouce jT808_0x1205_AVResouce = new JT808_0x1205_AVResouce(); | |||
@@ -155,7 +165,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
jT808_0x1205_AVResouce.FileSize = reader.ReadUInt32(); | |||
return jT808_0x1205_AVResouce; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x1205_AVResouce value, IJT808Config config) | |||
{ | |||
writer.WriteByte(value.LogicChannelNo); | |||
@@ -13,7 +13,13 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// </summary> | |||
public class JT808_0x1206 : JT808Bodies, IJT808MessagePackFormatter<JT808_0x1206>, IJT808Analyze | |||
{ | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override string Description => "文件上传完成通知"; | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override ushort MsgId => 0x1206; | |||
/// <summary> | |||
/// 流水号 | |||
@@ -23,7 +29,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// 结果 | |||
/// </summary> | |||
public byte Result{ get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x1206 value = new JT808_0x1206(); | |||
@@ -43,7 +54,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x1206 Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x1206 jT808_0x1206 = new JT808_0x1206(); | |||
@@ -51,7 +67,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
jT808_0x1206.Result = reader.ReadByte(); | |||
return jT808_0x1206; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x1206 value, IJT808Config config) | |||
{ | |||
writer.WriteUInt16(value.MsgNum); | |||
@@ -13,6 +13,9 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// </summary> | |||
public class JT808_0x8103_0x0075 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0075>, IJT808Analyze | |||
{ | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override uint ParamId { get; set; } = 0x0075; | |||
/// <summary> | |||
/// 数据 长度 | |||
@@ -72,7 +75,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
///1:启用 | |||
/// </summary> | |||
public byte AudioOutputEnabled { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x0075 value = new JT808_0x8103_0x0075(); | |||
@@ -187,10 +195,15 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
obdDisplay += ((OBD >> 4 & 0x0001) == 1) ? ",行驶记录速度" : ""; | |||
obdDisplay += ((OBD >> 5 & 0x0001) == 1) ? ",卫星定位速度" : ""; | |||
obdDisplay += ((OBD >> 6 & 0x0001) == 1) ? ",连续驾驶时间" : ""; | |||
return obdDisplay.Length>0? obdDisplay.Substring(1):""; | |||
return obdDisplay.Length > 0 ? obdDisplay.Substring(1) : ""; | |||
} | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x8103_0x0075 Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x0075 jT808_0X8103_0X0075 = new JT808_0x8103_0x0075(); | |||
@@ -210,7 +223,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
jT808_0X8103_0X0075.AudioOutputEnabled = reader.ReadByte(); | |||
return jT808_0X8103_0X0075; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0075 value, IJT808Config config) | |||
{ | |||
writer.WriteUInt32(value.ParamId); | |||
@@ -14,6 +14,9 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// </summary> | |||
public class JT808_0x8103_0x0076 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0076>, IJT808Analyze | |||
{ | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override uint ParamId { get; set; } = 0x0076; | |||
/// <summary> | |||
/// 数据 长度 | |||
@@ -39,7 +42,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// 4*(l+m+n) | |||
/// </summary> | |||
public List<JT808_0x8103_0x0076_AVChannelRefTable> AVChannelRefTables { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x0076 value = new JT808_0x8103_0x0076(); | |||
@@ -65,7 +73,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
} | |||
writer.WriteEndArray(); | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x8103_0x0076 Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x0076 jT808_0X8103_0X0076 = new JT808_0x8103_0x0076(); | |||
@@ -86,7 +99,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
} | |||
return jT808_0X8103_0X0076; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0076 value, IJT808Config config) | |||
{ | |||
writer.WriteUInt32(value.ParamId); | |||
@@ -27,7 +27,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// 是否链接云台 | |||
/// </summary> | |||
public byte IsConnectCloudPlat { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x0076_AVChannelRefTable value = new JT808_0x8103_0x0076_AVChannelRefTable(); | |||
@@ -102,7 +107,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x8103_0x0076_AVChannelRefTable Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x0076_AVChannelRefTable jT808_0X8103_0X0076_AVChannelRefTable = new JT808_0x8103_0x0076_AVChannelRefTable(); | |||
@@ -112,7 +122,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
jT808_0X8103_0X0076_AVChannelRefTable.IsConnectCloudPlat = reader.ReadByte(); | |||
return jT808_0X8103_0X0076_AVChannelRefTable; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0076_AVChannelRefTable value, IJT808Config config) | |||
{ | |||
writer.WriteByte(value.PhysicalChannelNo); | |||
@@ -14,6 +14,9 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// </summary> | |||
public class JT808_0x8103_0x0077 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0077>, IJT808Analyze | |||
{ | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override uint ParamId { get; set; } = 0x0077; | |||
/// <summary> | |||
/// 数据 长度 | |||
@@ -23,9 +26,16 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// 需单独设置视频参数的通道数量 用n表示 | |||
/// </summary> | |||
public byte NeedSetChannelTotal { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public List<JT808_0x8103_0x0077_SignalChannel> SignalChannels { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x0077 value = new JT808_0x8103_0x0077(); | |||
@@ -45,7 +55,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
} | |||
writer.WriteEndArray(); | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x8103_0x0077 Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x0077 jT808_0X8103_0X0077 = new JT808_0x8103_0x0077(); | |||
@@ -63,7 +78,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
} | |||
return jT808_0X8103_0X0077; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0077 value, IJT808Config config) | |||
{ | |||
writer.WriteUInt32(value.ParamId); | |||
@@ -8,6 +8,9 @@ using System.Text.Json; | |||
namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
{ | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public class JT808_0x8103_0x0077_SignalChannel: IJT808MessagePackFormatter<JT808_0x8103_0x0077_SignalChannel>, IJT808Analyze | |||
{ | |||
/// <summary> | |||
@@ -62,7 +65,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
///OSD字幕叠加设置 | |||
/// </summary> | |||
public ushort OSD { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x0077_SignalChannel value = new JT808_0x8103_0x0077_SignalChannel(); | |||
@@ -219,7 +227,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
return obdDisplay.Length > 0 ? obdDisplay.Substring(1) : ""; | |||
} | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x8103_0x0077_SignalChannel Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x0077_SignalChannel jT808_0X8103_0X0077_SignalChannel = new JT808_0x8103_0x0077_SignalChannel(); | |||
@@ -237,7 +250,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
jT808_0X8103_0X0077_SignalChannel.OSD = reader.ReadUInt16(); | |||
return jT808_0X8103_0X0077_SignalChannel; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0077_SignalChannel value, IJT808Config config) | |||
{ | |||
writer.WriteByte(value.LogicChannelNo); | |||
@@ -13,6 +13,9 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// </summary> | |||
public class JT808_0x8103_0x0079 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0079>, IJT808Analyze | |||
{ | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override uint ParamId { get; set; } = 0x0079; | |||
/// <summary> | |||
/// 数据 长度 | |||
@@ -31,7 +34,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// 分钟min | |||
/// </summary> | |||
public byte BeginMinute { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x0079 value = new JT808_0x8103_0x0079(); | |||
@@ -46,7 +54,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
value.BeginMinute = reader.ReadByte(); | |||
writer.WriteNumber($"[{value.BeginMinute.ReadNumber()}]特殊报警标识起始时间(分钟)", value.BeginMinute); | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x8103_0x0079 Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x0079 jT808_0x8103_0x0079 = new JT808_0x8103_0x0079(); | |||
@@ -57,7 +70,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
jT808_0x8103_0x0079.BeginMinute = reader.ReadByte(); | |||
return jT808_0x8103_0x0079; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0079 value, IJT808Config config) | |||
{ | |||
writer.WriteUInt32(value.ParamId); | |||
@@ -13,6 +13,9 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// </summary> | |||
public class JT808_0x8103_0x007A : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x007A>, IJT808Analyze | |||
{ | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override uint ParamId { get; set; } = 0x007A; | |||
/// <summary> | |||
/// 数据 长度 | |||
@@ -22,7 +25,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// 视频相关屏蔽报警字 | |||
/// </summary> | |||
public uint AlarmShielding { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x007A value = new JT808_0x8103_0x007A(); | |||
@@ -52,7 +60,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
return "未知"; | |||
} | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x8103_0x007A Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x007A jT808_0x8103_0x007A = new JT808_0x8103_0x007A(); | |||
@@ -61,7 +74,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
jT808_0x8103_0x007A.AlarmShielding = reader.ReadUInt32(); | |||
return jT808_0x8103_0x007A; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x007A value, IJT808Config config) | |||
{ | |||
writer.WriteUInt32(value.ParamId); | |||
@@ -13,6 +13,9 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// </summary> | |||
public class JT808_0x8103_0x007B : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x007B>, IJT808Analyze | |||
{ | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override uint ParamId { get; set; } = 0x007B; | |||
/// <summary> | |||
/// 数据 长度 | |||
@@ -26,7 +29,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// 疲劳程度阈值 | |||
/// </summary> | |||
public byte FatigueThreshold { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x007B value = new JT808_0x8103_0x007B(); | |||
@@ -39,7 +47,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
value.FatigueThreshold = reader.ReadByte(); | |||
writer.WriteNumber($"[{value.FatigueThreshold.ReadNumber()}]疲劳程度阈值", value.FatigueThreshold); | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x8103_0x007B Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x007B jT808_0x8103_0x007B = new JT808_0x8103_0x007B(); | |||
@@ -49,7 +62,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
jT808_0x8103_0x007B.FatigueThreshold = reader.ReadByte(); | |||
return jT808_0x8103_0x007B; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x007B value, IJT808Config config) | |||
{ | |||
writer.WriteUInt32(value.ParamId); | |||
@@ -13,6 +13,9 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// </summary> | |||
public class JT808_0x8103_0x007C : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x007C>, IJT808Analyze | |||
{ | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
public override uint ParamId { get; set; } = 0x007C; | |||
/// <summary> | |||
/// 数据 长度 | |||
@@ -34,7 +37,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// 日定时唤醒参数列表 | |||
/// </summary> | |||
public JT808_0x8103_0x007C_TimerWakeDayParamter TimerWakeDayParamter { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x007C value = new JT808_0x8103_0x007C(); | |||
@@ -79,7 +87,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
return timerWakeDaySetDisplay.Length>0? timerWakeDaySetDisplay.Substring(1):""; | |||
} | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x8103_0x007C Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x007C jT808_0x8103_0x007C = new JT808_0x8103_0x007C(); | |||
@@ -91,7 +104,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
jT808_0x8103_0x007C.TimerWakeDayParamter = config.GetMessagePackFormatter<JT808_0x8103_0x007C_TimerWakeDayParamter>().Deserialize(ref reader, config); | |||
return jT808_0x8103_0x007C; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x007C value, IJT808Config config) | |||
{ | |||
writer.WriteUInt32(value.ParamId); | |||
@@ -57,7 +57,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
/// 2 | |||
/// </summary> | |||
public string TimePeriod4CloseTime { get; set; } | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="writer"></param> | |||
/// <param name="config"></param> | |||
public void Analyze(ref JT808MessagePackReader reader, Utf8JsonWriter writer, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x007C_TimerWakeDayParamter value = new JT808_0x8103_0x007C_TimerWakeDayParamter(); | |||
@@ -82,13 +87,18 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
string TimerWakeEnableFlagDisplay(byte TimerWakeEnableFlag) { | |||
string timerWakeEnableFlagDisplay = string.Empty; | |||
timerWakeEnableFlagDisplay += (TimerWakeEnableFlag & 0x01) == 1 ? ",时间段1唤醒时间启用" : ""; | |||
timerWakeEnableFlagDisplay += (TimerWakeEnableFlag & 0x01) == 1 ? ",时间段2唤醒时间启用" : ""; | |||
timerWakeEnableFlagDisplay += (TimerWakeEnableFlag & 0x01) == 1 ? ",时间段3唤醒时间启用" : ""; | |||
timerWakeEnableFlagDisplay += (TimerWakeEnableFlag & 0x01) == 1 ? ",时间段4唤醒时间启用" : ""; | |||
timerWakeEnableFlagDisplay += ((TimerWakeEnableFlag >> 1) & 0x01) == 1 ? ",时间段2唤醒时间启用" : ""; | |||
timerWakeEnableFlagDisplay += ((TimerWakeEnableFlag >> 2) & 0x01) == 1 ? ",时间段3唤醒时间启用" : ""; | |||
timerWakeEnableFlagDisplay += ((TimerWakeEnableFlag >> 3) & 0x01) == 1 ? ",时间段4唤醒时间启用" : ""; | |||
return timerWakeEnableFlagDisplay.Length > 0 ? timerWakeEnableFlagDisplay.Substring(1) : ""; | |||
} | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="reader"></param> | |||
/// <param name="config"></param> | |||
/// <returns></returns> | |||
public JT808_0x8103_0x007C_TimerWakeDayParamter Deserialize(ref JT808MessagePackReader reader, IJT808Config config) | |||
{ | |||
JT808_0x8103_0x007C_TimerWakeDayParamter jT808_0x8103_0x007C_TimerWakeDayParamter = new JT808_0x8103_0x007C_TimerWakeDayParamter(); | |||
@@ -103,7 +113,12 @@ namespace JT808.Protocol.Extensions.JT1078.MessageBody | |||
jT808_0x8103_0x007C_TimerWakeDayParamter.TimePeriod4CloseTime = reader.ReadBCD(4); | |||
return jT808_0x8103_0x007C_TimerWakeDayParamter; | |||
} | |||
/// <summary> | |||
/// | |||
/// </summary> | |||
/// <param name="writer"></param> | |||
/// <param name="value"></param> | |||
/// <param name="config"></param> | |||
public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x007C_TimerWakeDayParamter value, IJT808Config config) | |||
{ | |||
writer.WriteByte(value.TimerWakeEnableFlag); | |||
@@ -17,7 +17,7 @@ | |||
</ItemGroup> | |||
<ItemGroup> | |||
<ProjectReference Include="..\JT808.Protocol.Extensions.JTActiveSafety\JT808.Protocol.Extensions.JTActiveSafety.csproj" /> | |||
<ProjectReference Include="..\JT808.Protocol.Extensions.SuBiao\JT808.Protocol.Extensions.SuBiao.csproj" /> | |||
</ItemGroup> | |||
</Project> |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.MessageBody; | |||
using JT808.Protocol.Extensions.SuBiao.MessageBody; | |||
using JT808.Protocol.MessageBody; | |||
using Microsoft.Extensions.DependencyInjection; | |||
using System; | |||
@@ -6,7 +6,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using Xunit; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
namespace JT808.Protocol.Extensions.SuBiao.Test | |||
{ | |||
public class JT808_0x0200_0x64_Test | |||
{ | |||
@@ -15,7 +15,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
{ | |||
ServiceCollection serviceDescriptors = new ServiceCollection(); | |||
serviceDescriptors.AddJT808Configure() | |||
.AddJTActiveSafetyConfigure(); | |||
.AddSuBiaoConfigure(); | |||
IJT808Config jT808Config = serviceDescriptors.BuildServiceProvider().GetRequiredService<IJT808Config>(); | |||
JT808Serializer = new JT808Serializer(jT808Config); | |||
} | |||
@@ -34,7 +34,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
StatusFlag = 2, | |||
JT808LocationAttachData = new Dictionary<byte, JT808_0x0200_BodyBase>() | |||
}; | |||
jT808UploadLocationRequest.JT808LocationAttachData.Add(JT808_JTActiveSafety_Constants.JT808_0X0200_0x64, new JT808_0x0200_0x64 | |||
jT808UploadLocationRequest.JT808LocationAttachData.Add(JT808_SuBiao_Constants.JT808_0X0200_0x64, new JT808_0x0200_0x64 | |||
{ | |||
AlarmId = 1, | |||
AlarmIdentification = new Metadata.AlarmIdentificationProperty | |||
@@ -66,7 +66,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
public void Deserialize() | |||
{ | |||
var jT808UploadLocationRequest = JT808Serializer.Deserialize<JT808_0x0200>("000000010000000200BA7F0E07E4F11C0028003C00001807151010106420000000010C0605120A0B100F1100070000000D0000000E191211183100001334343434343434191210183100030200".ToHexBytes()); | |||
jT808UploadLocationRequest.JT808LocationAttachData.TryGetValue(JT808_JTActiveSafety_Constants.JT808_0X0200_0x64, out var value); | |||
jT808UploadLocationRequest.JT808LocationAttachData.TryGetValue(JT808_SuBiao_Constants.JT808_0X0200_0x64, out var value); | |||
JT808_0x0200_0x64 jT808_0X0200_0X64 = value as JT808_0x0200_0x64; | |||
Assert.Equal(1u, jT808_0X0200_0X64.AlarmId); | |||
Assert.Equal(2, jT808_0X0200_0X64.AlarmIdentification.AttachCount); |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.MessageBody; | |||
using JT808.Protocol.Extensions.SuBiao.MessageBody; | |||
using JT808.Protocol.MessageBody; | |||
using Microsoft.Extensions.DependencyInjection; | |||
using System; | |||
@@ -6,7 +6,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using Xunit; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
namespace JT808.Protocol.Extensions.SuBiao.Test | |||
{ | |||
public class JT808_0x0200_0x65_Test | |||
{ | |||
@@ -15,7 +15,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
{ | |||
ServiceCollection serviceDescriptors = new ServiceCollection(); | |||
serviceDescriptors.AddJT808Configure() | |||
.AddJTActiveSafetyConfigure(); | |||
.AddSuBiaoConfigure(); | |||
IJT808Config jT808Config = serviceDescriptors.BuildServiceProvider().GetRequiredService<IJT808Config>(); | |||
JT808Serializer = new JT808Serializer(jT808Config); | |||
} | |||
@@ -34,7 +34,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
StatusFlag = 2, | |||
JT808LocationAttachData = new Dictionary<byte, JT808_0x0200_BodyBase>() | |||
}; | |||
jT808UploadLocationRequest.JT808LocationAttachData.Add(JT808_JTActiveSafety_Constants.JT808_0X0200_0x65, new JT808_0x0200_0x65 | |||
jT808UploadLocationRequest.JT808LocationAttachData.Add(JT808_SuBiao_Constants.JT808_0X0200_0x65, new JT808_0x0200_0x65 | |||
{ | |||
AlarmId = 1, | |||
AlarmIdentification = new Metadata.AlarmIdentificationProperty | |||
@@ -63,7 +63,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
public void Deserialize() | |||
{ | |||
var jT808UploadLocationRequest = JT808Serializer.Deserialize<JT808_0x0200>("000000010000000200BA7F0E07E4F11C0028003C00001807151010106520000000010C060512010203041100070000000D0000000E191211183100001334343434343434191210183100030200".ToHexBytes()); | |||
jT808UploadLocationRequest.JT808LocationAttachData.TryGetValue(JT808_JTActiveSafety_Constants.JT808_0X0200_0x65, out var value); | |||
jT808UploadLocationRequest.JT808LocationAttachData.TryGetValue(JT808_SuBiao_Constants.JT808_0X0200_0x65, out var value); | |||
JT808_0x0200_0x65 jT808_0X0200_0X65 = value as JT808_0x0200_0x65; | |||
Assert.Equal(1u, jT808_0X0200_0X65.AlarmId); | |||
Assert.Equal(2, jT808_0X0200_0X65.AlarmIdentification.AttachCount); |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.MessageBody; | |||
using JT808.Protocol.Extensions.SuBiao.MessageBody; | |||
using JT808.Protocol.MessageBody; | |||
using Microsoft.Extensions.DependencyInjection; | |||
using System; | |||
@@ -6,7 +6,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using Xunit; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
namespace JT808.Protocol.Extensions.SuBiao.Test | |||
{ | |||
public class JT808_0x0200_0x66_Test | |||
{ | |||
@@ -15,7 +15,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
{ | |||
ServiceCollection serviceDescriptors = new ServiceCollection(); | |||
serviceDescriptors.AddJT808Configure() | |||
.AddJTActiveSafetyConfigure(); | |||
.AddSuBiaoConfigure(); | |||
IJT808Config jT808Config = serviceDescriptors.BuildServiceProvider().GetRequiredService<IJT808Config>(); | |||
JT808Serializer = new JT808Serializer(jT808Config); | |||
} | |||
@@ -34,7 +34,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
StatusFlag = 2, | |||
JT808LocationAttachData = new Dictionary<byte, JT808_0x0200_BodyBase>() | |||
}; | |||
jT808UploadLocationRequest.JT808LocationAttachData.Add(JT808_JTActiveSafety_Constants.JT808_0X0200_0x66, new JT808_0x0200_0x66 | |||
jT808UploadLocationRequest.JT808LocationAttachData.Add(JT808_SuBiao_Constants.JT808_0X0200_0x66, new JT808_0x0200_0x66 | |||
{ | |||
AlarmId = 1, | |||
AlarmIdentification = new Metadata.AlarmIdentificationProperty | |||
@@ -77,7 +77,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
public void Deserialize() | |||
{ | |||
var jT808UploadLocationRequest = JT808Serializer.Deserialize<JT808_0x0200>("000000010000000200BA7F0E07E4F11C0028003C0000180715101010663B000000010C1100070000000D0000000E191211183100001334343434343434191210183100030200020400010003000500020900060008000A0007".ToHexBytes()); | |||
jT808UploadLocationRequest.JT808LocationAttachData.TryGetValue(JT808_JTActiveSafety_Constants.JT808_0X0200_0x66, out var value); | |||
jT808UploadLocationRequest.JT808LocationAttachData.TryGetValue(JT808_SuBiao_Constants.JT808_0X0200_0x66, out var value); | |||
JT808_0x0200_0x66 jT808_0X0200_0X66 = value as JT808_0x0200_0x66; | |||
Assert.Equal(1u, jT808_0X0200_0X66.AlarmId); | |||
Assert.Equal(2, jT808_0X0200_0X66.AlarmIdentification.AttachCount); |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.MessageBody; | |||
using JT808.Protocol.Extensions.SuBiao.MessageBody; | |||
using JT808.Protocol.MessageBody; | |||
using Microsoft.Extensions.DependencyInjection; | |||
using System; | |||
@@ -6,7 +6,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using Xunit; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
namespace JT808.Protocol.Extensions.SuBiao.Test | |||
{ | |||
public class JT808_0x0200_0x67_Test | |||
{ | |||
@@ -15,7 +15,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
{ | |||
ServiceCollection serviceDescriptors = new ServiceCollection(); | |||
serviceDescriptors.AddJT808Configure() | |||
.AddJTActiveSafetyConfigure(); | |||
.AddSuBiaoConfigure(); | |||
IJT808Config jT808Config = serviceDescriptors.BuildServiceProvider().GetRequiredService<IJT808Config>(); | |||
JT808Serializer = new JT808Serializer(jT808Config); | |||
} | |||
@@ -34,7 +34,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
StatusFlag = 2, | |||
JT808LocationAttachData = new Dictionary<byte, JT808_0x0200_BodyBase>() | |||
}; | |||
jT808UploadLocationRequest.JT808LocationAttachData.Add(JT808_JTActiveSafety_Constants.JT808_0X0200_0x67, new JT808_0x0200_0x67 | |||
jT808UploadLocationRequest.JT808LocationAttachData.Add(JT808_SuBiao_Constants.JT808_0X0200_0x67, new JT808_0x0200_0x67 | |||
{ | |||
AlarmId = 1, | |||
AlarmIdentification = new Metadata.AlarmIdentificationProperty | |||
@@ -61,7 +61,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
public void Deserialize() | |||
{ | |||
var jT808UploadLocationRequest = JT808Serializer.Deserialize<JT808_0x0200>("000000010000000200BA7F0E07E4F11C0028003C0000180715101010672A000000010C09081100070000000D0000000E191211183100001334343434343434191210183100030200".ToHexBytes()); | |||
jT808UploadLocationRequest.JT808LocationAttachData.TryGetValue(JT808_JTActiveSafety_Constants.JT808_0X0200_0x67, out var value); | |||
jT808UploadLocationRequest.JT808LocationAttachData.TryGetValue(JT808_SuBiao_Constants.JT808_0X0200_0x67, out var value); | |||
JT808_0x0200_0x67 jT808_0X0200_0X67 = value as JT808_0x0200_0x67; | |||
Assert.Equal(1u, jT808_0X0200_0X67.AlarmId); | |||
Assert.Equal(2, jT808_0X0200_0X67.AlarmIdentification.AttachCount); |
@@ -1,5 +1,5 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.MessageBody; | |||
using JT808.Protocol.Extensions.JTActiveSafety.Metadata; | |||
using JT808.Protocol.Extensions.SuBiao.MessageBody; | |||
using JT808.Protocol.Extensions.SuBiao.Metadata; | |||
using JT808.Protocol.MessageBody; | |||
using Microsoft.Extensions.DependencyInjection; | |||
using System; | |||
@@ -7,7 +7,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using Xunit; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
namespace JT808.Protocol.Extensions.SuBiao.Test | |||
{ | |||
public class JT808_0x0900_Test | |||
{ | |||
@@ -16,7 +16,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
{ | |||
ServiceCollection serviceDescriptors = new ServiceCollection(); | |||
serviceDescriptors.AddJT808Configure() | |||
.AddJTActiveSafetyConfigure(); | |||
.AddSuBiaoConfigure(); | |||
IJT808Config jT808Config = serviceDescriptors.BuildServiceProvider().GetRequiredService<IJT808Config>(); | |||
JT808Serializer = new JT808Serializer(jT808Config); | |||
} | |||
@@ -49,7 +49,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
{ | |||
var jT808_0x0900_0xF7 = JT808Serializer.Deserialize<JT808_0x0900_0xF7>("020105020000000102050200000001".ToHexBytes()); | |||
Assert.Equal(JT808_JTActiveSafety_Constants.JT808_0X0900_0xF7, jT808_0x0900_0xF7.PassthroughType); | |||
Assert.Equal(JT808_SuBiao_Constants.JT808_0X0900_0xF7, jT808_0x0900_0xF7.PassthroughType); | |||
Assert.Equal(2, jT808_0x0900_0xF7.USBMessageCount); | |||
Assert.Equal(1, jT808_0x0900_0xF7.USBMessages[0].USBID); | |||
Assert.Equal(5, jT808_0x0900_0xF7.USBMessages[0].MessageLength); | |||
@@ -94,7 +94,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
public void Test_0xF8_2() | |||
{ | |||
var jT808_0x0900_0xF8 = JT808Serializer.Deserialize<JT808_0x0900_0xF8>("01015C0B436F6D70616E744E616D650C50726F647563744D6F64656C15486172647761726556657273696F6E4E756D62657215536F66747761726556657273696F6E4E756D626572094465766963657349440C437573746F6D6572436F6465".ToHexBytes()); | |||
Assert.Equal(JT808_JTActiveSafety_Constants.JT808_0X0900_0xF8, jT808_0x0900_0xF8.PassthroughType); | |||
Assert.Equal(JT808_SuBiao_Constants.JT808_0X0900_0xF8, jT808_0x0900_0xF8.PassthroughType); | |||
Assert.Equal(1, jT808_0x0900_0xF8.USBMessageCount); | |||
Assert.Equal(1, jT808_0x0900_0xF8.USBMessages[0].USBID); | |||
Assert.Equal("CompantName", jT808_0x0900_0xF8.USBMessages[0].CompantName); |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.MessageBody; | |||
using JT808.Protocol.Extensions.SuBiao.MessageBody; | |||
using JT808.Protocol.MessageBody; | |||
using Microsoft.Extensions.DependencyInjection; | |||
using System; | |||
@@ -6,7 +6,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using Xunit; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
namespace JT808.Protocol.Extensions.SuBiao.Test | |||
{ | |||
public class JT808_0x1210_Test | |||
{ | |||
@@ -15,7 +15,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
{ | |||
ServiceCollection serviceDescriptors = new ServiceCollection(); | |||
serviceDescriptors.AddJT808Configure() | |||
.AddJTActiveSafetyConfigure(); | |||
.AddSuBiaoConfigure(); | |||
IJT808Config jT808Config = serviceDescriptors.BuildServiceProvider().GetRequiredService<IJT808Config>(); | |||
JT808Serializer = new JT808Serializer(jT808Config); | |||
} |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.MessageBody; | |||
using JT808.Protocol.Extensions.SuBiao.MessageBody; | |||
using JT808.Protocol.MessageBody; | |||
using Microsoft.Extensions.DependencyInjection; | |||
using System; | |||
@@ -6,7 +6,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using Xunit; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
namespace JT808.Protocol.Extensions.SuBiao.Test | |||
{ | |||
public class JT808_0x1211_Test | |||
{ | |||
@@ -15,7 +15,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
{ | |||
ServiceCollection serviceDescriptors = new ServiceCollection(); | |||
serviceDescriptors.AddJT808Configure() | |||
.AddJTActiveSafetyConfigure(); | |||
.AddSuBiaoConfigure(); | |||
IJT808Config jT808Config = serviceDescriptors.BuildServiceProvider().GetRequiredService<IJT808Config>(); | |||
JT808Serializer = new JT808Serializer(jT808Config); | |||
} |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.MessageBody; | |||
using JT808.Protocol.Extensions.SuBiao.MessageBody; | |||
using JT808.Protocol.MessageBody; | |||
using Microsoft.Extensions.DependencyInjection; | |||
using System; | |||
@@ -6,7 +6,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using Xunit; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
namespace JT808.Protocol.Extensions.SuBiao.Test | |||
{ | |||
public class JT808_0x1212_Test | |||
{ | |||
@@ -15,7 +15,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
{ | |||
ServiceCollection serviceDescriptors = new ServiceCollection(); | |||
serviceDescriptors.AddJT808Configure() | |||
.AddJTActiveSafetyConfigure(); | |||
.AddSuBiaoConfigure(); | |||
IJT808Config jT808Config = serviceDescriptors.BuildServiceProvider().GetRequiredService<IJT808Config>(); | |||
JT808Serializer = new JT808Serializer(jT808Config); | |||
} |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.MessageBody; | |||
using JT808.Protocol.Extensions.SuBiao.MessageBody; | |||
using JT808.Protocol.MessageBody; | |||
using Microsoft.Extensions.DependencyInjection; | |||
using System; | |||
@@ -6,7 +6,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using Xunit; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
namespace JT808.Protocol.Extensions.SuBiao.Test | |||
{ | |||
public class JT808_0x8103_0xF364_Test | |||
{ | |||
@@ -15,7 +15,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
{ | |||
ServiceCollection serviceDescriptors = new ServiceCollection(); | |||
serviceDescriptors.AddJT808Configure() | |||
.AddJTActiveSafetyConfigure(); | |||
.AddSuBiaoConfigure(); | |||
IJT808Config jT808Config = serviceDescriptors.BuildServiceProvider().GetRequiredService<IJT808Config>(); | |||
JT808Serializer = new JT808Serializer(jT808Config); | |||
} | |||
@@ -127,7 +127,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
Assert.Equal(43, jT808_0X8103_0XF364.VideoRecordingTimeBeforeAndAfterObstacleAlarm); | |||
Assert.Equal(44, jT808_0X8103_0XF364.VideoRecordingTimeBeforeAndAfterPedestrianCollisionAlarm); | |||
Assert.Equal(45, jT808_0X8103_0XF364.WarningVolume); | |||
Assert.Equal(JT808_JTActiveSafety_Constants.JT808_0X8103_0xF364, jT808_0X8103_0XF364.ParamId); | |||
Assert.Equal(JT808_SuBiao_Constants.JT808_0X8103_0xF364, jT808_0X8103_0XF364.ParamId); | |||
} | |||
[Fact] |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.MessageBody; | |||
using JT808.Protocol.Extensions.SuBiao.MessageBody; | |||
using JT808.Protocol.MessageBody; | |||
using Microsoft.Extensions.DependencyInjection; | |||
using System; | |||
@@ -6,7 +6,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using Xunit; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
namespace JT808.Protocol.Extensions.SuBiao.Test | |||
{ | |||
public class JT808_0x8103_0xF365_Test | |||
{ | |||
@@ -15,7 +15,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
{ | |||
ServiceCollection serviceDescriptors = new ServiceCollection(); | |||
serviceDescriptors.AddJT808Configure() | |||
.AddJTActiveSafetyConfigure(); | |||
.AddSuBiaoConfigure(); | |||
IJT808Config jT808Config = serviceDescriptors.BuildServiceProvider().GetRequiredService<IJT808Config>(); | |||
JT808Serializer = new JT808Serializer(jT808Config); | |||
} | |||
@@ -105,7 +105,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
Assert.Equal(64, jT808_0X8103_0XF365.VideoRecordingTimeBeforeAndAfterCallAlarm); | |||
Assert.Equal(65, jT808_0X8103_0XF365.VideoRecordingTimeBeforeAndAfterFatigueDrivingAlarm); | |||
Assert.Equal(66, jT808_0X8103_0XF365.VideoRecordingTimeBeforeAndAfterSmokingAlarm); | |||
Assert.Equal(JT808_JTActiveSafety_Constants.JT808_0X8103_0xF365, jT808_0X8103_0XF365.ParamId); | |||
Assert.Equal(JT808_SuBiao_Constants.JT808_0X8103_0xF365, jT808_0X8103_0XF365.ParamId); | |||
} | |||
[Fact] | |||
public void Json() |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.MessageBody; | |||
using JT808.Protocol.Extensions.SuBiao.MessageBody; | |||
using JT808.Protocol.MessageBody; | |||
using Microsoft.Extensions.DependencyInjection; | |||
using System; | |||
@@ -6,7 +6,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using Xunit; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
namespace JT808.Protocol.Extensions.SuBiao.Test | |||
{ | |||
public class JT808_0x8103_0xF366_Test | |||
{ | |||
@@ -15,7 +15,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
{ | |||
ServiceCollection serviceDescriptors = new ServiceCollection(); | |||
serviceDescriptors.AddJT808Configure() | |||
.AddJTActiveSafetyConfigure(); | |||
.AddSuBiaoConfigure(); | |||
IJT808Config jT808Config = serviceDescriptors.BuildServiceProvider().GetRequiredService<IJT808Config>(); | |||
JT808Serializer = new JT808Serializer(jT808Config); | |||
} |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.MessageBody; | |||
using JT808.Protocol.Extensions.SuBiao.MessageBody; | |||
using JT808.Protocol.MessageBody; | |||
using Microsoft.Extensions.DependencyInjection; | |||
using System; | |||
@@ -6,7 +6,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using Xunit; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
namespace JT808.Protocol.Extensions.SuBiao.Test | |||
{ | |||
public class JT808_0x8103_0xF367_Test | |||
{ | |||
@@ -15,7 +15,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
{ | |||
ServiceCollection serviceDescriptors = new ServiceCollection(); | |||
serviceDescriptors.AddJT808Configure() | |||
.AddJTActiveSafetyConfigure(); | |||
.AddSuBiaoConfigure(); | |||
IJT808Config jT808Config = serviceDescriptors.BuildServiceProvider().GetRequiredService<IJT808Config>(); | |||
JT808Serializer = new JT808Serializer(jT808Config); | |||
} |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.MessageBody; | |||
using JT808.Protocol.Extensions.SuBiao.MessageBody; | |||
using JT808.Protocol.MessageBody; | |||
using Microsoft.Extensions.DependencyInjection; | |||
using System; | |||
@@ -6,7 +6,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using Xunit; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
namespace JT808.Protocol.Extensions.SuBiao.Test | |||
{ | |||
public class JT808_0x8900_Test | |||
{ | |||
@@ -15,7 +15,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
{ | |||
ServiceCollection serviceDescriptors = new ServiceCollection(); | |||
serviceDescriptors.AddJT808Configure() | |||
.AddJTActiveSafetyConfigure(); | |||
.AddSuBiaoConfigure(); | |||
IJT808Config jT808Config = serviceDescriptors.BuildServiceProvider().GetRequiredService<IJT808Config>(); | |||
JT808Serializer = new JT808Serializer(jT808Config); | |||
} |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.MessageBody; | |||
using JT808.Protocol.Extensions.SuBiao.MessageBody; | |||
using JT808.Protocol.MessageBody; | |||
using Microsoft.Extensions.DependencyInjection; | |||
using System; | |||
@@ -6,7 +6,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using Xunit; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
namespace JT808.Protocol.Extensions.SuBiao.Test | |||
{ | |||
public class JT808_0x9208_Test | |||
{ | |||
@@ -15,7 +15,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
{ | |||
ServiceCollection serviceDescriptors = new ServiceCollection(); | |||
serviceDescriptors.AddJT808Configure() | |||
.AddJTActiveSafetyConfigure(); | |||
.AddSuBiaoConfigure(); | |||
IJT808Config jT808Config = serviceDescriptors.BuildServiceProvider().GetRequiredService<IJT808Config>(); | |||
JT808Serializer = new JT808Serializer(jT808Config); | |||
} |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.MessageBody; | |||
using JT808.Protocol.Extensions.SuBiao.MessageBody; | |||
using JT808.Protocol.MessageBody; | |||
using Microsoft.Extensions.DependencyInjection; | |||
using System; | |||
@@ -6,7 +6,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using Xunit; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
namespace JT808.Protocol.Extensions.SuBiao.Test | |||
{ | |||
public class JT808_0x9212_Test | |||
{ | |||
@@ -15,7 +15,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Test | |||
{ | |||
ServiceCollection serviceDescriptors = new ServiceCollection(); | |||
serviceDescriptors.AddJT808Configure() | |||
.AddJTActiveSafetyConfigure(); | |||
.AddSuBiaoConfigure(); | |||
IJT808Config jT808Config = serviceDescriptors.BuildServiceProvider().GetRequiredService<IJT808Config>(); | |||
JT808Serializer = new JT808Serializer(jT808Config); | |||
} |
@@ -1,5 +1,5 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.Enums; | |||
using JT808.Protocol.Extensions.JTActiveSafety.MessageBody; | |||
using JT808.Protocol.Extensions.SuBiao.Enums; | |||
using JT808.Protocol.Extensions.SuBiao.MessageBody; | |||
using JT808.Protocol.Interfaces; | |||
using Microsoft.Extensions.DependencyInjection; | |||
using System; | |||
@@ -7,19 +7,19 @@ using System.Collections.Generic; | |||
using System.Reflection; | |||
using System.Text; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety | |||
namespace JT808.Protocol.Extensions.SuBiao | |||
{ | |||
/// <summary> | |||
/// 主动安全扩展 | |||
/// 添加苏标-主动安全 | |||
/// </summary> | |||
public static class JTActiveSafetyDependencyInjectionExtensions | |||
public static class DependencyInjectionExtensions | |||
{ | |||
/// <summary> | |||
/// 添加主动安全 | |||
/// 添加苏标-主动安全 | |||
/// </summary> | |||
/// <param name="jT808Builder"></param> | |||
/// <returns></returns> | |||
public static IJT808Builder AddJTActiveSafetyConfigure(this IJT808Builder jT808Builder) | |||
public static IJT808Builder AddSuBiaoConfigure(this IJT808Builder jT808Builder) | |||
{ | |||
jT808Builder.Config.Register(Assembly.GetExecutingAssembly()); | |||
return jT808Builder; |
@@ -2,7 +2,7 @@ | |||
using System.Collections.Generic; | |||
using System.Text; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Enums | |||
namespace JT808.Protocol.Extensions.SuBiao.Enums | |||
{ | |||
/// <summary> | |||
/// 主动拍照策略 |
@@ -2,12 +2,12 @@ | |||
using System.Collections.Generic; | |||
using System.Text; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Enums | |||
namespace JT808.Protocol.Extensions.SuBiao.Enums | |||
{ | |||
/// <summary> | |||
/// 主动安全消息Id | |||
/// </summary> | |||
public enum JT808_JTActiveSafety_MsgId : ushort | |||
public enum JT808_SuBiao_MsgId : ushort | |||
{ | |||
/// <summary> | |||
/// 报警附件信息消息 |
@@ -2,7 +2,7 @@ | |||
using System.Collections.Generic; | |||
using System.Text; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Enums | |||
namespace JT808.Protocol.Extensions.SuBiao.Enums | |||
{ | |||
/// <summary> | |||
/// 拍照分辨率 |
@@ -2,7 +2,7 @@ | |||
using System.Collections.Generic; | |||
using System.Text; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Enums | |||
namespace JT808.Protocol.Extensions.SuBiao.Enums | |||
{ | |||
/// <summary> | |||
/// USB编号类型 |
@@ -2,7 +2,7 @@ | |||
using System.Collections.Generic; | |||
using System.Text; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Enums | |||
namespace JT808.Protocol.Extensions.SuBiao.Enums | |||
{ | |||
/// <summary> | |||
/// 视频录制分辨率 |
@@ -2,7 +2,7 @@ | |||
using System.Collections.Generic; | |||
using System.Text; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Enums | |||
namespace JT808.Protocol.Extensions.SuBiao.Enums | |||
{ | |||
/// <summary> | |||
/// 工作状态 |
@@ -1,11 +1,11 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<Import Project="..\..\Info.props" /> | |||
<PropertyGroup> | |||
<PackageId>JT808.Protocol.Extensions.JTActiveSafety</PackageId> | |||
<Product>JT808.Protocol.Extensions.JTActiveSafety</Product> | |||
<PackageId>JT808.Protocol.Extensions.SuBiao</PackageId> | |||
<Product>JT808.Protocol.Extensions.SuBiao</Product> | |||
<Description>基于JT808协议、GB808协议扩展的主动安全消息协议(苏标)</Description> | |||
<PackageReleaseNotes>基于JT808协议、GB808协议扩展的主动安全消息协议(苏标)</PackageReleaseNotes> | |||
<DocumentationFile>JT808.Protocol.Extensions.JTActiveSafety.xml</DocumentationFile> | |||
<DocumentationFile>JT808.Protocol.Extensions.SuBiao.xml</DocumentationFile> | |||
</PropertyGroup> | |||
<ItemGroup> |
@@ -2,12 +2,12 @@ | |||
using System.Collections.Generic; | |||
using System.Text; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety | |||
namespace JT808.Protocol.Extensions.SuBiao | |||
{ | |||
/// <summary> | |||
/// 主动安全常量 | |||
/// </summary> | |||
public static class JT808_JTActiveSafety_Constants | |||
public static class JT808_SuBiao_Constants | |||
{ | |||
/// <summary> | |||
/// 附加信息ID 高级驾驶辅助系统报警信息 |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.Metadata; | |||
using JT808.Protocol.Extensions.SuBiao.Metadata; | |||
using JT808.Protocol.Formatters; | |||
using JT808.Protocol.Interfaces; | |||
using JT808.Protocol.MessageBody; | |||
@@ -8,7 +8,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using System.Text.Json; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
namespace JT808.Protocol.Extensions.SuBiao.MessageBody | |||
{ | |||
/// <summary> | |||
/// 高级驾驶辅助系统报警信息 | |||
@@ -18,7 +18,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
/// <summary> | |||
/// 高级驾驶辅助系统报警信息Id | |||
/// </summary> | |||
public override byte AttachInfoId { get; set; } = JT808_JTActiveSafety_Constants.JT808_0X0200_0x64; | |||
public override byte AttachInfoId { get; set; } = JT808_SuBiao_Constants.JT808_0X0200_0x64; | |||
/// <summary> | |||
/// 高级驾驶辅助系统报警信息附加长度 | |||
/// </summary> |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.Metadata; | |||
using JT808.Protocol.Extensions.SuBiao.Metadata; | |||
using JT808.Protocol.Formatters; | |||
using JT808.Protocol.Interfaces; | |||
using JT808.Protocol.MessageBody; | |||
@@ -8,7 +8,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using System.Text.Json; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
namespace JT808.Protocol.Extensions.SuBiao.MessageBody | |||
{ | |||
/// <summary> | |||
/// 驾驶员状态监测系统报警信息 | |||
@@ -18,7 +18,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
/// <summary> | |||
/// 驾驶员状态监测系统报警信息Id | |||
/// </summary> | |||
public override byte AttachInfoId { get; set; } = JT808_JTActiveSafety_Constants.JT808_0X0200_0x65; | |||
public override byte AttachInfoId { get; set; } = JT808_SuBiao_Constants.JT808_0X0200_0x65; | |||
/// <summary> | |||
/// 驾驶员状态监测系统报警信息长度 | |||
/// </summary> |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.Metadata; | |||
using JT808.Protocol.Extensions.SuBiao.Metadata; | |||
using JT808.Protocol.Formatters; | |||
using JT808.Protocol.Interfaces; | |||
using JT808.Protocol.MessageBody; | |||
@@ -8,7 +8,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using System.Text.Json; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
namespace JT808.Protocol.Extensions.SuBiao.MessageBody | |||
{ | |||
/// <summary> | |||
/// 胎压监测系统报警信息 | |||
@@ -18,7 +18,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
/// <summary> | |||
/// 胎压监测系统报警信息Id | |||
/// </summary> | |||
public override byte AttachInfoId { get; set; } = JT808_JTActiveSafety_Constants.JT808_0X0200_0x66; | |||
public override byte AttachInfoId { get; set; } = JT808_SuBiao_Constants.JT808_0X0200_0x66; | |||
/// <summary> | |||
/// 胎压监测系统报警信息长度 | |||
/// </summary> |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.Metadata; | |||
using JT808.Protocol.Extensions.SuBiao.Metadata; | |||
using JT808.Protocol.Formatters; | |||
using JT808.Protocol.Interfaces; | |||
using JT808.Protocol.MessageBody; | |||
@@ -8,7 +8,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using System.Text.Json; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
namespace JT808.Protocol.Extensions.SuBiao.MessageBody | |||
{ | |||
/// <summary> | |||
/// 盲区监测系统报警信息 | |||
@@ -18,7 +18,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
/// <summary> | |||
/// 盲区监测系统报警信息Id | |||
/// </summary> | |||
public override byte AttachInfoId { get; set; } = JT808_JTActiveSafety_Constants.JT808_0X0200_0x67; | |||
public override byte AttachInfoId { get; set; } = JT808_SuBiao_Constants.JT808_0X0200_0x67; | |||
/// <summary> | |||
/// 盲区监测系统报警信息长度 | |||
/// </summary> |
@@ -1,5 +1,5 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.Enums; | |||
using JT808.Protocol.Extensions.JTActiveSafety.Metadata; | |||
using JT808.Protocol.Extensions.SuBiao.Enums; | |||
using JT808.Protocol.Extensions.SuBiao.Metadata; | |||
using JT808.Protocol.Formatters; | |||
using JT808.Protocol.Interfaces; | |||
using JT808.Protocol.MessageBody; | |||
@@ -9,7 +9,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using System.Text.Json; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
namespace JT808.Protocol.Extensions.SuBiao.MessageBody | |||
{ | |||
/// <summary> | |||
/// 透传数据 | |||
@@ -19,7 +19,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
/// <summary> | |||
/// 透传类型 | |||
/// </summary> | |||
public override byte PassthroughType { get; set; } = JT808_JTActiveSafety_Constants.JT808_0X0900_0xF7; | |||
public override byte PassthroughType { get; set; } = JT808_SuBiao_Constants.JT808_0X0900_0xF7; | |||
/// <summary> | |||
/// 消息列表总数 | |||
/// </summary> |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.Metadata; | |||
using JT808.Protocol.Extensions.SuBiao.Metadata; | |||
using JT808.Protocol.Formatters; | |||
using JT808.Protocol.Interfaces; | |||
using JT808.Protocol.MessageBody; | |||
@@ -8,7 +8,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using System.Text.Json; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
namespace JT808.Protocol.Extensions.SuBiao.MessageBody | |||
{ | |||
/// <summary> | |||
/// 透传数据 | |||
@@ -18,7 +18,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
/// <summary> | |||
/// 透传类型 | |||
/// </summary> | |||
public override byte PassthroughType { get; set; } = JT808_JTActiveSafety_Constants.JT808_0X0900_0xF8; | |||
public override byte PassthroughType { get; set; } = JT808_SuBiao_Constants.JT808_0X0900_0xF8; | |||
/// <summary> | |||
/// 消息列表总数 | |||
/// </summary> |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.Metadata; | |||
using JT808.Protocol.Extensions.SuBiao.Metadata; | |||
using JT808.Protocol.Formatters; | |||
using JT808.Protocol.Interfaces; | |||
using JT808.Protocol.MessagePack; | |||
@@ -7,7 +7,7 @@ using System.Collections.Generic; | |||
using System.Text; | |||
using System.Text.Json; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
namespace JT808.Protocol.Extensions.SuBiao.MessageBody | |||
{ | |||
/// <summary> | |||
/// 报警附件信息消息 |
@@ -3,7 +3,7 @@ using JT808.Protocol.Interfaces; | |||
using JT808.Protocol.MessagePack; | |||
using System.Text.Json; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
namespace JT808.Protocol.Extensions.SuBiao.MessageBody | |||
{ | |||
/// <summary> | |||
/// 文件信息上传 |
@@ -3,7 +3,7 @@ using JT808.Protocol.Interfaces; | |||
using JT808.Protocol.MessagePack; | |||
using System.Text.Json; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
namespace JT808.Protocol.Extensions.SuBiao.MessageBody | |||
{ | |||
/// <summary> | |||
/// 文件上传完成消息 |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.Enums; | |||
using JT808.Protocol.Extensions.SuBiao.Enums; | |||
using JT808.Protocol.Formatters; | |||
using JT808.Protocol.Interfaces; | |||
using JT808.Protocol.MessageBody; | |||
@@ -6,7 +6,7 @@ using JT808.Protocol.MessagePack; | |||
using System; | |||
using System.Text.Json; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
namespace JT808.Protocol.Extensions.SuBiao.MessageBody | |||
{ | |||
/// <summary> | |||
/// 高级驾驶辅助系统参数 | |||
@@ -16,7 +16,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
/// <summary> | |||
/// 高级驾驶辅助系统参数 | |||
/// </summary> | |||
public override uint ParamId { get; set; } = JT808_JTActiveSafety_Constants.JT808_0X8103_0xF364; | |||
public override uint ParamId { get; set; } = JT808_SuBiao_Constants.JT808_0X8103_0xF364; | |||
/// <summary> | |||
/// 高级驾驶辅助系统参数长度 | |||
/// </summary> | |||
@@ -31,7 +31,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
public byte WarningVolume { get; set; } | |||
/// <summary> | |||
/// 主动拍照策略 | |||
/// <see cref="JT808.Protocol.Extensions.JTActiveSafety.Enums.ActivePhotographyStrategyType"/> | |||
/// <see cref="JT808.Protocol.Extensions.SuBiao.Enums.ActivePhotographyStrategyType"/> | |||
/// </summary> | |||
public byte ActivePhotographyStrategy { get; set; } | |||
/// <summary> | |||
@@ -52,7 +52,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
public byte SingleInitiativePhotosInterval { get; set; } | |||
/// <summary> | |||
/// 拍照分辨率 | |||
/// <see cref="JT808.Protocol.Extensions.JTActiveSafety.Enums.PhotoResolutionType"/> | |||
/// <see cref="JT808.Protocol.Extensions.SuBiao.Enums.PhotoResolutionType"/> | |||
/// </summary> | |||
public byte PhotoResolution { get; set; } | |||
/// <summary> |
@@ -1,4 +1,4 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.Enums; | |||
using JT808.Protocol.Extensions.SuBiao.Enums; | |||
using JT808.Protocol.Formatters; | |||
using JT808.Protocol.Interfaces; | |||
using JT808.Protocol.MessageBody; | |||
@@ -6,7 +6,7 @@ using JT808.Protocol.MessagePack; | |||
using System; | |||
using System.Text.Json; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
namespace JT808.Protocol.Extensions.SuBiao.MessageBody | |||
{ | |||
/// <summary> | |||
/// 驾驶员状态监测系统参数 | |||
@@ -16,7 +16,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
/// <summary> | |||
/// 驾驶员状态监测系统参数 | |||
/// </summary> | |||
public override uint ParamId { get; set; } = JT808_JTActiveSafety_Constants.JT808_0X8103_0xF365; | |||
public override uint ParamId { get; set; } = JT808_SuBiao_Constants.JT808_0X8103_0xF365; | |||
/// <summary> | |||
/// 驾驶员状态监测系统参数长度 | |||
/// </summary> |
@@ -4,7 +4,7 @@ using JT808.Protocol.MessageBody; | |||
using JT808.Protocol.MessagePack; | |||
using System.Text.Json; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
namespace JT808.Protocol.Extensions.SuBiao.MessageBody | |||
{ | |||
/// <summary> | |||
/// 胎压监测系统参数 | |||
@@ -14,7 +14,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
/// <summary> | |||
/// 胎压监测系统参数Id | |||
/// </summary> | |||
public override uint ParamId { get; set; } = JT808_JTActiveSafety_Constants.JT808_0X8103_0xF366; | |||
public override uint ParamId { get; set; } = JT808_SuBiao_Constants.JT808_0X8103_0xF366; | |||
/// <summary> | |||
/// 胎压监测系统参数长度 | |||
/// </summary> |
@@ -4,7 +4,7 @@ using JT808.Protocol.MessageBody; | |||
using JT808.Protocol.MessagePack; | |||
using System.Text.Json; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
namespace JT808.Protocol.Extensions.SuBiao.MessageBody | |||
{ | |||
/// <summary> | |||
/// 盲区监测系统参数 | |||
@@ -14,7 +14,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
/// <summary> | |||
/// 盲区监测系统参数Id | |||
/// </summary> | |||
public override uint ParamId { get; set; } = JT808_JTActiveSafety_Constants.JT808_0X8103_0xF367; | |||
public override uint ParamId { get; set; } = JT808_SuBiao_Constants.JT808_0X8103_0xF367; | |||
/// <summary> | |||
/// 盲区监测系统参数长度 | |||
/// </summary> |
@@ -5,7 +5,7 @@ using JT808.Protocol.MessagePack; | |||
using System.Collections.Generic; | |||
using System.Text.Json; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
namespace JT808.Protocol.Extensions.SuBiao.MessageBody | |||
{ | |||
/// <summary> | |||
/// 查询基本信息 | |||
@@ -15,7 +15,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
/// <summary> | |||
/// 查询基本信息类型 | |||
/// </summary> | |||
public override byte PassthroughType { get; set; } = JT808_JTActiveSafety_Constants.JT808_0X0900_0xF7; | |||
public override byte PassthroughType { get; set; } = JT808_SuBiao_Constants.JT808_0X0900_0xF7; | |||
/// <summary> | |||
/// 外设ID列表总数 | |||
/// </summary> |
@@ -5,7 +5,7 @@ using JT808.Protocol.MessagePack; | |||
using System.Collections.Generic; | |||
using System.Text.Json; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
namespace JT808.Protocol.Extensions.SuBiao.MessageBody | |||
{ | |||
/// <summary> | |||
/// 查询基本信息 | |||
@@ -15,7 +15,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
/// <summary> | |||
/// 查询基本信息透传类型 | |||
/// </summary> | |||
public override byte PassthroughType { get; set; } = JT808_JTActiveSafety_Constants.JT808_0X0900_0xF8; | |||
public override byte PassthroughType { get; set; } = JT808_SuBiao_Constants.JT808_0X0900_0xF8; | |||
/// <summary> | |||
/// 外设ID列表总数 | |||
/// </summary> |
@@ -1,11 +1,11 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.Metadata; | |||
using JT808.Protocol.Extensions.SuBiao.Metadata; | |||
using JT808.Protocol.Formatters; | |||
using JT808.Protocol.Interfaces; | |||
using JT808.Protocol.MessagePack; | |||
using System; | |||
using System.Text.Json; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
namespace JT808.Protocol.Extensions.SuBiao.MessageBody | |||
{ | |||
/// <summary> | |||
/// 报警附件上传指令 |
@@ -1,11 +1,11 @@ | |||
using JT808.Protocol.Extensions.JTActiveSafety.Metadata; | |||
using JT808.Protocol.Extensions.SuBiao.Metadata; | |||
using JT808.Protocol.Formatters; | |||
using JT808.Protocol.Interfaces; | |||
using JT808.Protocol.MessagePack; | |||
using System.Collections.Generic; | |||
using System.Text.Json; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.MessageBody | |||
namespace JT808.Protocol.Extensions.SuBiao.MessageBody | |||
{ | |||
/// <summary> | |||
/// 文件上传完成消息应答 |
@@ -2,7 +2,7 @@ | |||
using System.Collections.Generic; | |||
using System.Text; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Metadata | |||
namespace JT808.Protocol.Extensions.SuBiao.Metadata | |||
{ | |||
/// <summary> | |||
/// 报警标识号 |
@@ -2,7 +2,7 @@ | |||
using System.Collections.Generic; | |||
using System.Text; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Metadata | |||
namespace JT808.Protocol.Extensions.SuBiao.Metadata | |||
{ | |||
/// <summary> | |||
/// 胎压监测系统报警/事件信息 |
@@ -2,7 +2,7 @@ | |||
using System.Collections.Generic; | |||
using System.Text; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Metadata | |||
namespace JT808.Protocol.Extensions.SuBiao.Metadata | |||
{ | |||
/// <summary> | |||
/// 附件信息 |
@@ -2,7 +2,7 @@ | |||
using System.Collections.Generic; | |||
using System.Text; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Metadata | |||
namespace JT808.Protocol.Extensions.SuBiao.Metadata | |||
{ | |||
/// <summary> | |||
/// 补传数据包信息 |
@@ -2,7 +2,7 @@ | |||
using System.Collections.Generic; | |||
using System.Text; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Metadata | |||
namespace JT808.Protocol.Extensions.SuBiao.Metadata | |||
{ | |||
/// <summary> | |||
/// | |||
@@ -11,7 +11,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Metadata | |||
{ | |||
/// <summary> | |||
/// 外设ID | |||
/// <see cref="JT808.Protocol.Extensions.JTActiveSafety.Enums.USBIDType"/> | |||
/// <see cref="JT808.Protocol.Extensions.SuBiao.Enums.USBIDType"/> | |||
/// </summary> | |||
public byte USBID { get; set; } | |||
/// <summary> | |||
@@ -20,7 +20,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Metadata | |||
public byte MessageLength { get; set; } | |||
/// <summary> | |||
/// 工作状态 | |||
/// <see cref="JT808.Protocol.Extensions.JTActiveSafety.Enums.WorkingConditionType"/> | |||
/// <see cref="JT808.Protocol.Extensions.SuBiao.Enums.WorkingConditionType"/> | |||
/// </summary> | |||
public byte WorkingCondition { get; set; } | |||
/// <summary> |
@@ -2,7 +2,7 @@ | |||
using System.Collections.Generic; | |||
using System.Text; | |||
namespace JT808.Protocol.Extensions.JTActiveSafety.Metadata | |||
namespace JT808.Protocol.Extensions.SuBiao.Metadata | |||
{ | |||
/// <summary> | |||
/// | |||
@@ -11,7 +11,7 @@ namespace JT808.Protocol.Extensions.JTActiveSafety.Metadata | |||
{ | |||
/// <summary> | |||
/// 外设ID | |||
/// <see cref="JT808.Protocol.Extensions.JTActiveSafety.Enums.USBIDType"/> | |||
/// <see cref="JT808.Protocol.Extensions.SuBiao.Enums.USBIDType"/> | |||
/// </summary> | |||
public byte USBID { get; set; } | |||
/// <summary> |
@@ -8,12 +8,13 @@ using System.Text; | |||
namespace JT808.Protocol.Extensions.YueBiao | |||
{ | |||
/// <summary> | |||
/// 粤标扩展 | |||
/// 添加粤标-主动安全 | |||
/// JT/T808-2019 | |||
/// </summary> | |||
public static class DependencyInjectionExtensions | |||
{ | |||
/// <summary> | |||
/// 添加粤标扩展 | |||
/// 添加粤标-主动安全 | |||
/// </summary> | |||
/// <param name="jT808Builder"></param> | |||
/// <returns></returns> | |||
@@ -3,8 +3,8 @@ | |||
<PropertyGroup> | |||
<PackageId>JT808.Protocol.Extensions.YueBiao</PackageId> | |||
<Product>JT808.Protocol.Extensions.YueBiao</Product> | |||
<Description>基于JT808协议、GB808协议扩展的粤标消息协议</Description> | |||
<PackageReleaseNotes>基于JT808协议、GB808协议扩展的粤标消息协议</PackageReleaseNotes> | |||
<Description>基于JT808协议、GB808协议扩展的主动安全消息协议(粤标)</Description> | |||
<PackageReleaseNotes>基于JT808协议、GB808协议扩展的主动安全消息协议(粤标)</PackageReleaseNotes> | |||
<DocumentationFile>JT808.Protocol.Extensions.YueBiao.xml</DocumentationFile> | |||
</PropertyGroup> | |||
@@ -6,12 +6,13 @@ | |||
<members> | |||
<member name="T:JT808.Protocol.Extensions.YueBiao.DependencyInjectionExtensions"> | |||
<summary> | |||
粤标扩展 | |||
添加粤标-主动安全 | |||
JT/T808-2019 | |||
</summary> | |||
</member> | |||
<member name="M:JT808.Protocol.Extensions.YueBiao.DependencyInjectionExtensions.AddYueBiaoConfigure(JT808.Protocol.IJT808Builder)"> | |||
<summary> | |||
添加粤标扩展 | |||
添加粤标-主动安全 | |||
</summary> | |||
<param name="jT808Builder"></param> | |||
<returns></returns> | |||
@@ -10,6 +10,7 @@ EndProject | |||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{E6296ADE-B239-4A4B-ACDA-B80C0A61399B}" | |||
ProjectSection(SolutionItems) = preProject | |||
.editorconfig = .editorconfig | |||
..\.github\workflows\dotnetcore.yml = ..\.github\workflows\dotnetcore.yml | |||
Info.props = Info.props | |||
..\README.md = ..\README.md | |||
EndProjectSection | |||
@@ -22,14 +23,14 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JT808.Protocol.Extensions.J | |||
EndProject | |||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JT808.Protocol.Extensions.JT1078.Test", "JT808.Protocol.Extensions\JT808.Protocol.Extensions.JT1078.Test\JT808.Protocol.Extensions.JT1078.Test.csproj", "{852751C5-9069-4B2D-9489-C3AB1A8C6EAD}" | |||
EndProject | |||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JT808.Protocol.Extensions.JTActiveSafety", "JT808.Protocol.Extensions\JT808.Protocol.Extensions.JTActiveSafety\JT808.Protocol.Extensions.JTActiveSafety.csproj", "{FDCB70AD-6F3D-4A48-9DB9-46D969C088FF}" | |||
EndProject | |||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JT808.Protocol.Extensions.JTActiveSafety.Test", "JT808.Protocol.Extensions\JT808.Protocol.Extensions.JTActiveSafety.Test\JT808.Protocol.Extensions.JTActiveSafety.Test.csproj", "{A9625B48-BD87-45B1-9881-2A9F32B21B07}" | |||
EndProject | |||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JT808.Protocol.Extensions.YueBiao", "JT808.Protocol.Extensions\JT808.Protocol.Extensions.YueBiao\JT808.Protocol.Extensions.YueBiao.csproj", "{DFFAA83E-43ED-44F8-8F3D-1E692F090184}" | |||
EndProject | |||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JT808.Protocol.Extensions.YueBiao.Test", "JT808.Protocol.Extensions\JT808.Protocol.Extensions.YueBiao.Test\JT808.Protocol.Extensions.YueBiao.Test.csproj", "{4984E375-4B55-4188-A94E-844B694BBA5C}" | |||
EndProject | |||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JT808.Protocol.Extensions.SuBiao", "JT808.Protocol.Extensions\JT808.Protocol.Extensions.SuBiao\JT808.Protocol.Extensions.SuBiao.csproj", "{001ECBA0-CF17-40B0-B983-B7AE824B8050}" | |||
EndProject | |||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "JT808.Protocol.Extensions.SuBiao.Test", "JT808.Protocol.Extensions\JT808.Protocol.Extensions.SuBiao.Test\JT808.Protocol.Extensions.SuBiao.Test.csproj", "{BEE2E12D-C123-4682-AB7E-210C2BF564B3}" | |||
EndProject | |||
Global | |||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | |||
Debug|Any CPU = Debug|Any CPU | |||
@@ -56,14 +57,6 @@ Global | |||
{852751C5-9069-4B2D-9489-C3AB1A8C6EAD}.Debug|Any CPU.Build.0 = Debug|Any CPU | |||
{852751C5-9069-4B2D-9489-C3AB1A8C6EAD}.Release|Any CPU.ActiveCfg = Release|Any CPU | |||
{852751C5-9069-4B2D-9489-C3AB1A8C6EAD}.Release|Any CPU.Build.0 = Release|Any CPU | |||
{FDCB70AD-6F3D-4A48-9DB9-46D969C088FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | |||
{FDCB70AD-6F3D-4A48-9DB9-46D969C088FF}.Debug|Any CPU.Build.0 = Debug|Any CPU | |||
{FDCB70AD-6F3D-4A48-9DB9-46D969C088FF}.Release|Any CPU.ActiveCfg = Release|Any CPU | |||
{FDCB70AD-6F3D-4A48-9DB9-46D969C088FF}.Release|Any CPU.Build.0 = Release|Any CPU | |||
{A9625B48-BD87-45B1-9881-2A9F32B21B07}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | |||
{A9625B48-BD87-45B1-9881-2A9F32B21B07}.Debug|Any CPU.Build.0 = Debug|Any CPU | |||
{A9625B48-BD87-45B1-9881-2A9F32B21B07}.Release|Any CPU.ActiveCfg = Release|Any CPU | |||
{A9625B48-BD87-45B1-9881-2A9F32B21B07}.Release|Any CPU.Build.0 = Release|Any CPU | |||
{DFFAA83E-43ED-44F8-8F3D-1E692F090184}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | |||
{DFFAA83E-43ED-44F8-8F3D-1E692F090184}.Debug|Any CPU.Build.0 = Debug|Any CPU | |||
{DFFAA83E-43ED-44F8-8F3D-1E692F090184}.Release|Any CPU.ActiveCfg = Release|Any CPU | |||
@@ -72,6 +65,14 @@ Global | |||
{4984E375-4B55-4188-A94E-844B694BBA5C}.Debug|Any CPU.Build.0 = Debug|Any CPU | |||
{4984E375-4B55-4188-A94E-844B694BBA5C}.Release|Any CPU.ActiveCfg = Release|Any CPU | |||
{4984E375-4B55-4188-A94E-844B694BBA5C}.Release|Any CPU.Build.0 = Release|Any CPU | |||
{001ECBA0-CF17-40B0-B983-B7AE824B8050}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | |||
{001ECBA0-CF17-40B0-B983-B7AE824B8050}.Debug|Any CPU.Build.0 = Debug|Any CPU | |||
{001ECBA0-CF17-40B0-B983-B7AE824B8050}.Release|Any CPU.ActiveCfg = Release|Any CPU | |||
{001ECBA0-CF17-40B0-B983-B7AE824B8050}.Release|Any CPU.Build.0 = Release|Any CPU | |||
{BEE2E12D-C123-4682-AB7E-210C2BF564B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | |||
{BEE2E12D-C123-4682-AB7E-210C2BF564B3}.Debug|Any CPU.Build.0 = Debug|Any CPU | |||
{BEE2E12D-C123-4682-AB7E-210C2BF564B3}.Release|Any CPU.ActiveCfg = Release|Any CPU | |||
{BEE2E12D-C123-4682-AB7E-210C2BF564B3}.Release|Any CPU.Build.0 = Release|Any CPU | |||
EndGlobalSection | |||
GlobalSection(SolutionProperties) = preSolution | |||
HideSolutionNode = FALSE | |||
@@ -79,10 +80,10 @@ Global | |||
GlobalSection(NestedProjects) = preSolution | |||
{8A18863F-44AB-4779-A501-D15C97205EA9} = {3A0EEA9A-9667-4386-BB46-4A9CB319CE30} | |||
{852751C5-9069-4B2D-9489-C3AB1A8C6EAD} = {3A0EEA9A-9667-4386-BB46-4A9CB319CE30} | |||
{FDCB70AD-6F3D-4A48-9DB9-46D969C088FF} = {3A0EEA9A-9667-4386-BB46-4A9CB319CE30} | |||
{A9625B48-BD87-45B1-9881-2A9F32B21B07} = {3A0EEA9A-9667-4386-BB46-4A9CB319CE30} | |||
{DFFAA83E-43ED-44F8-8F3D-1E692F090184} = {3A0EEA9A-9667-4386-BB46-4A9CB319CE30} | |||
{4984E375-4B55-4188-A94E-844B694BBA5C} = {3A0EEA9A-9667-4386-BB46-4A9CB319CE30} | |||
{001ECBA0-CF17-40B0-B983-B7AE824B8050} = {3A0EEA9A-9667-4386-BB46-4A9CB319CE30} | |||
{BEE2E12D-C123-4682-AB7E-210C2BF564B3} = {3A0EEA9A-9667-4386-BB46-4A9CB319CE30} | |||
EndGlobalSection | |||
GlobalSection(ExtensibilityGlobals) = postSolution | |||
SolutionGuid = {D58CCAA8-ED94-4048-A6DE-55A84814DF17} | |||