Selaa lähdekoodia

修改序列化器

tags/v2.2.0
waterliu99 5 vuotta sitten
vanhempi
commit
a87d0b379d
86 muutettua tiedostoa jossa 2900 lisäystä ja 337 poistoa
  1. +3
    -3
      src/JT808.Protocol/Enums/JT808MsgId.cs
  2. +1
    -1
      src/JT808.Protocol/Extensions/JT808EnumExtensions.cs
  3. +0
    -86
      src/JT808.Protocol/JT808.Protocol.csproj
  4. +1339
    -1
      src/JT808.Protocol/JT808.Protocol.xml
  5. +61
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103.cs
  6. +19
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0001.cs
  7. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0002.cs
  8. +19
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0003.cs
  9. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0004.cs
  10. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0005.cs
  11. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0006.cs
  12. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0007.cs
  13. +20
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0010.cs
  14. +20
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0011.cs
  15. +20
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0012.cs
  16. +20
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0013.cs
  17. +20
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0014.cs
  18. +20
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0015.cs
  19. +20
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0016.cs
  20. +20
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0017.cs
  21. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0018.cs
  22. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0019.cs
  23. +20
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x001A.cs
  24. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x001B.cs
  25. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x001C.cs
  26. +20
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x001D.cs
  27. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0020.cs
  28. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0021.cs
  29. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0022.cs
  30. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0027.cs
  31. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0028.cs
  32. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0029.cs
  33. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x002C.cs
  34. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x002D.cs
  35. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x002E.cs
  36. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x002F.cs
  37. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0030.cs
  38. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0031.cs
  39. +20
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0040.cs
  40. +20
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0041.cs
  41. +20
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0042.cs
  42. +20
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0043.cs
  43. +20
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0044.cs
  44. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0045.cs
  45. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0046.cs
  46. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0047.cs
  47. +20
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0048.cs
  48. +20
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0049.cs
  49. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0050.cs
  50. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0051.cs
  51. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0052.cs
  52. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0053.cs
  53. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0054.cs
  54. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0055.cs
  55. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0056.cs
  56. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0057.cs
  57. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0058.cs
  58. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0059.cs
  59. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x005A.cs
  60. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x005B.cs
  61. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x005C.cs
  62. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x005D.cs
  63. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x005E.cs
  64. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0064.cs
  65. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0065.cs
  66. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0070.cs
  67. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0071.cs
  68. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0072.cs
  69. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0073.cs
  70. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0074.cs
  71. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0080.cs
  72. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0081.cs
  73. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0082.cs
  74. +20
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0083.cs
  75. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0084.cs
  76. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0090.cs
  77. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0091.cs
  78. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0092.cs
  79. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0093.cs
  80. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0094.cs
  81. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0095.cs
  82. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0100.cs
  83. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0101.cs
  84. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0102.cs
  85. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0103.cs
  86. +18
    -3
      src/JT808.Protocol/MessageBody/JT808_0x8103_0x0110.cs

+ 3
- 3
src/JT808.Protocol/Enums/JT808MsgId.cs Näytä tiedosto

@@ -69,21 +69,21 @@ namespace JT808.Protocol.Enums
/// 设置终端参数
/// 0x8103
/// </summary>
//[JT808BodiesType(typeof(JT808_0x8103))]
[JT808BodiesType(typeof(JT808_0x8103))]
[JT808MsgIdDescription("0x8103", "设置终端参数")]
设置终端参数 = 0x8103,
/// <summary>
/// 查询终端参数
/// 0x8104
/// </summary>
//[JT808BodiesType(typeof(JT808_0x8104))]
[JT808BodiesType(typeof(JT808_0x8104))]
[JT808MsgIdDescription("0x8104", "查询终端参数")]
查询终端参数 = 0x8104,
/// <summary>
/// 查询终端参数应答
/// 0x0104
/// </summary>
//[JT808BodiesType(typeof(JT808_0x0104))]
[JT808BodiesType(typeof(JT808_0x0104))]
[JT808MsgIdDescription("0x0104", "查询终端参数应答")]
查询终端参数应答 = 0x0104,
/// <summary>


+ 1
- 1
src/JT808.Protocol/Extensions/JT808EnumExtensions.cs Näytä tiedosto

@@ -99,7 +99,7 @@ namespace JT808.Protocol.Extensions
/// <summary>
/// 获取DescriptionAttribute特性枚举及描述
/// </summary>
/// <param name="type"></param>
/// <param name="value"></param>
/// <returns></returns>
public static Dictionary<string, string> GetDescriptionAttributeDictionary(this Enum value)
{


+ 0
- 86
src/JT808.Protocol/JT808.Protocol.csproj Näytä tiedosto

@@ -53,92 +53,6 @@
<Compile Remove="JT808BufferedEntityBase.cs" />
<Compile Remove="JT808GlobalConfig.cs" />
<Compile Remove="JT808MessageBodyFactory.cs" />
<Compile Remove="MessageBody\JT808_0x0104.cs" />
<Compile Remove="MessageBody\JT808_0x8103.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0001.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0002.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0003.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0004.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0005.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0006.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0007.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0010.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0011.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0012.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0013.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0014.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0015.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0016.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0017.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0018.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0019.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x001A.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x001B.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x001C.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x001D.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0020.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0021.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0022.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0027.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0028.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0029.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x002C.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x002D.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x002E.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x002F.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0030.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0031.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0040.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0041.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0042.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0043.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0044.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0045.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0046.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0047.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0048.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0049.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0050.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0051.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0052.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0053.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0054.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0055.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0056.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0057.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0058.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0059.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x005A.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x005B.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x005C.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x005D.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x005E.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0064.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0065.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0070.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0071.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0072.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0073.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0074.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0080.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0081.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0082.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0083.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0084.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0090.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0091.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0092.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0093.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0094.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0095.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0100.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0101.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0102.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0103.cs" />
<Compile Remove="MessageBody\JT808_0x8103_0x0110.cs" />
<Compile Remove="MessageBody\JT808_0x8103_BodyBase.cs" />
<Compile Remove="MessageBody\JT808_0x8103_CustomBodyBase.cs" />
<Compile Remove="MessageBody\JT808_0x8104.cs" />
<Compile Remove="Metadata\JT808TerminalLoginRequestProperty.cs" />
<Compile Remove="Metadata\JT808UploadLocationRequestProperty.cs" />
</ItemGroup>


+ 1339
- 1
src/JT808.Protocol/JT808.Protocol.xml
File diff suppressed because it is too large
Näytä tiedosto


+ 61
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103.cs Näytä tiedosto

@@ -1,5 +1,8 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Extensions;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;
using System;
using System.Collections.Generic;
using System.Linq;

@@ -8,8 +11,7 @@ namespace JT808.Protocol.MessageBody
/// <summary>
/// 设置终端参数
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_Formatter))]
public class JT808_0x8103 : JT808Bodies
public class JT808_0x8103 : JT808Bodies, IJT808MessagePackFormatter<JT808_0x8103>
{
/// <summary>
/// 参数总数
@@ -32,5 +34,61 @@ namespace JT808.Protocol.MessageBody
public List<JT808_0x8103_BodyBase> ParamList { get; set; }

public List<JT808_0x8103_CustomBodyBase> CustomParamList { get; set; }

public JT808_0x8103 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103 jT808_0x8103 = new JT808_0x8103
{
ParamList = new List<JT808_0x8103_BodyBase>(),
CustomParamList = new List<JT808_0x8103_CustomBodyBase>()
};
var paramCount = reader.ReadByte();//参数总数
try
{
for (int i = 0; i < paramCount; i++)
{
var paramId = reader.ReadVirtualUInt32();//参数ID
if (config.JT808_0X8103_Factory.ParamMethods.TryGetValue(paramId, out Type type))
{
object attachImplObj = config.GetMessagePackFormatterByType(type);
dynamic attachImpl = JT808MessagePackFormatterResolverExtensions.JT808DynamicDeserialize(attachImplObj, ref reader, config);
jT808_0x8103.ParamList.Add(attachImpl);
}
else if (config.JT808_0X8103_Custom_Factory.ParamMethods.TryGetValue(paramId, out Type customType))
{
object attachImplObj = config.GetMessagePackFormatterByType(customType);
dynamic attachImpl = JT808MessagePackFormatterResolverExtensions.JT808DynamicDeserialize(attachImplObj, ref reader, config);
jT808_0x8103.CustomParamList.Add(attachImpl);
}
}
}
catch (Exception ex)
{

}
return jT808_0x8103;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103 value, IJT808Config config)
{
writer.WriteByte(value.ParamCount);
try
{
foreach (var item in value.ParamList)
{
object attachImplObj = config.GetMessagePackFormatterByType(item.GetType());
JT808MessagePackFormatterResolverExtensions.JT808DynamicSerialize(attachImplObj, ref writer, item, config);
}
if (value.CustomParamList != null)
{
foreach (var item in value.CustomParamList)
{
object attachImplObj = config.GetMessagePackFormatterByType(item.GetType());
JT808MessagePackFormatterResolverExtensions.JT808DynamicSerialize(attachImplObj, ref writer, item, config);
}
}
}
catch (Exception ex) { }
}
}
}

+ 19
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0001.cs Näytä tiedosto

@@ -1,5 +1,6 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
@@ -7,8 +8,7 @@ namespace JT808.Protocol.MessageBody
/// 终端心跳发送间隔,单位为秒(s)
/// 0x8103_0x0001
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0001_Formatter))]
public class JT808_0x8103_0x0001 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0001 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0001>
{
public override uint ParamId { get; set; } = 0x0001;
/// <summary>
@@ -19,5 +19,21 @@ namespace JT808.Protocol.MessageBody
/// 终端心跳发送间隔,单位为秒(s)
/// </summary>
public uint ParamValue { get; set; }

public JT808_0x8103_0x0001 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0001 jT808_0x8103_0x0001 = new JT808_0x8103_0x0001();
jT808_0x8103_0x0001.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0001.ParamLength = reader.ReadByte();
jT808_0x8103_0x0001.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0001;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0001 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0002.cs Näytä tiedosto

@@ -1,5 +1,6 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
@@ -7,8 +8,7 @@ namespace JT808.Protocol.MessageBody
/// TCP 消息应答超时时间,单位为秒(s)
/// 0x8103_0x0002
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0002_Formatter))]
public class JT808_0x8103_0x0002 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0002 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0002>
{
public override uint ParamId { get; set; } = 0x0002;
/// <summary>
@@ -19,5 +19,20 @@ namespace JT808.Protocol.MessageBody
/// TCP 消息应答超时时间,单位为秒(s)
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0002 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0002 jT808_0x8103_0x0002 = new JT808_0x8103_0x0002();
jT808_0x8103_0x0002.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0002.ParamLength = reader.ReadByte();
jT808_0x8103_0x0002.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0002;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0002 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 19
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0003.cs Näytä tiedosto

@@ -1,5 +1,6 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
@@ -7,8 +8,7 @@ namespace JT808.Protocol.MessageBody
/// TCP 消息重传次数
/// 0x8103_0x0003
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0003_Formatter))]
public class JT808_0x8103_0x0003 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0003 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0003>
{
public override uint ParamId { get; set; } = 0x0003;
/// <summary>
@@ -19,5 +19,21 @@ namespace JT808.Protocol.MessageBody
/// TCP 消息重传次数
/// </summary>
public uint ParamValue { get; set; }

public JT808_0x8103_0x0003 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0003 jT808_0x8103_0x0003 = new JT808_0x8103_0x0003();
jT808_0x8103_0x0003.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0003.ParamLength = reader.ReadByte();
jT808_0x8103_0x0003.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0003;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0003 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0004.cs Näytä tiedosto

@@ -1,5 +1,6 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
@@ -7,8 +8,7 @@ namespace JT808.Protocol.MessageBody
/// UDP 消息应答超时时间,单位为秒(s)
/// 0x8103_0x0004
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0004_Formatter))]
public class JT808_0x8103_0x0004 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0004 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0004>
{
public override uint ParamId { get; set; } = 0x0004;
/// <summary>
@@ -19,5 +19,20 @@ namespace JT808.Protocol.MessageBody
/// UDP 消息应答超时时间,单位为秒(s)
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0004 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0004 jT808_0x8103_0x0004 = new JT808_0x8103_0x0004();
jT808_0x8103_0x0004.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0004.ParamLength = reader.ReadByte();
jT808_0x8103_0x0004.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0004;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0004 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0005.cs Näytä tiedosto

@@ -1,5 +1,6 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
@@ -7,8 +8,7 @@ namespace JT808.Protocol.MessageBody
/// UDP 消息重传次数
/// 0x8103_0x0005
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0005_Formatter))]
public class JT808_0x8103_0x0005 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0005 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0005>
{
public override uint ParamId { get; set; } = 0x0005;
/// <summary>
@@ -19,5 +19,20 @@ namespace JT808.Protocol.MessageBody
/// UDP 消息重传次数
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0005 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0005 jT808_0x8103_0x0005 = new JT808_0x8103_0x0005();
jT808_0x8103_0x0005.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0005.ParamLength = reader.ReadByte();
jT808_0x8103_0x0005.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0005;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0005 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0006.cs Näytä tiedosto

@@ -1,5 +1,6 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
@@ -7,8 +8,7 @@ namespace JT808.Protocol.MessageBody
/// SMS 消息应答超时时间,单位为秒(s)
/// 0x8103_0x0006
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0006_Formatter))]
public class JT808_0x8103_0x0006 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0006 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0006>
{
public override uint ParamId { get; set; } = 0x0006;
/// <summary>
@@ -19,5 +19,20 @@ namespace JT808.Protocol.MessageBody
/// SMS 消息应答超时时间,单位为秒(s)
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0006 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0006 jT808_0x8103_0x0006 = new JT808_0x8103_0x0006();
jT808_0x8103_0x0006.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0006.ParamLength = reader.ReadByte();
jT808_0x8103_0x0006.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0006;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0006 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0007.cs Näytä tiedosto

@@ -1,5 +1,6 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
@@ -7,8 +8,7 @@ namespace JT808.Protocol.MessageBody
/// SMS 消息重传次数
/// 0x8103_0x0007
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0007_Formatter))]
public class JT808_0x8103_0x0007 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0007 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0007>
{
public override uint ParamId { get; set; } = 0x0007;
/// <summary>
@@ -19,5 +19,20 @@ namespace JT808.Protocol.MessageBody
/// SMS 消息重传次数
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0007 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0007 jT808_0x8103_0x0007 = new JT808_0x8103_0x0007();
jT808_0x8103_0x0007.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0007.ParamLength = reader.ReadByte();
jT808_0x8103_0x0007.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0007;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0007 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 20
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0010.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 主服务器 APN,无线通信拨号访问点。若网络制式为 CDMA,则该处为PPP 拨号号码
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0010_Formatter))]
public class JT808_0x8103_0x0010 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0010 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0010>
{
public override uint ParamId { get; set; } = 0x0010;
/// <summary>
@@ -18,5 +18,22 @@ namespace JT808.Protocol.MessageBody
/// 主服务器 APN,无线通信拨号访问点。若网络制式为 CDMA,则该处为PPP 拨号号码
/// </summary>
public string ParamValue { get; set; }
public JT808_0x8103_0x0010 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0010 jT808_0x8103_0x0010 = new JT808_0x8103_0x0010();
jT808_0x8103_0x0010.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0010.ParamLength = reader.ReadByte();
jT808_0x8103_0x0010.ParamValue = reader.ReadString(jT808_0x8103_0x0010.ParamLength);
return jT808_0x8103_0x0010;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0010 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.Skip(1, out int skipPosition);
writer.WriteString(value.ParamValue);
int length = writer.GetCurrentPosition() - skipPosition - 1;
writer.WriteByteReturn((byte)length, skipPosition);
}
}
}

+ 20
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0011.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 主服务器无线通信拨号用户名
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0011_Formatter))]
public class JT808_0x8103_0x0011 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0011 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0011>
{
public override uint ParamId { get; set; } = 0x0011;
/// <summary>
@@ -18,5 +18,22 @@ namespace JT808.Protocol.MessageBody
/// 主服务器无线通信拨号用户名
/// </summary>
public string ParamValue { get; set; }
public JT808_0x8103_0x0011 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0011 jT808_0x8103_0x0011 = new JT808_0x8103_0x0011();
jT808_0x8103_0x0011.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0011.ParamLength = reader.ReadByte();
jT808_0x8103_0x0011.ParamValue = reader.ReadString(jT808_0x8103_0x0011.ParamLength);
return jT808_0x8103_0x0011;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0011 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.Skip(1, out int skipPosition);
writer.WriteString(value.ParamValue);
int length = writer.GetCurrentPosition() - skipPosition - 1;
writer.WriteByteReturn((byte)length, skipPosition);
}
}
}

+ 20
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0012.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 主服务器无线通信拨号密码
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0012_Formatter))]
public class JT808_0x8103_0x0012 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0012 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0012>
{
public override uint ParamId { get; set; } = 0x0012;
/// <summary>
@@ -18,5 +18,22 @@ namespace JT808.Protocol.MessageBody
/// 主服务器无线通信拨号密码
/// </summary>
public string ParamValue { get; set; }
public JT808_0x8103_0x0012 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0012 jT808_0x8103_0x0012 = new JT808_0x8103_0x0012();
jT808_0x8103_0x0012.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0012.ParamLength = reader.ReadByte();
jT808_0x8103_0x0012.ParamValue = reader.ReadString(jT808_0x8103_0x0012.ParamLength);
return jT808_0x8103_0x0012;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0012 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.Skip(1, out int skipPosition);
writer.WriteString(value.ParamValue);
int length = writer.GetCurrentPosition() - skipPosition - 1;
writer.WriteByteReturn((byte)length, skipPosition);
}
}
}

+ 20
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0013.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 主服务器地址,IP 或域名
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0013_Formatter))]
public class JT808_0x8103_0x0013 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0013 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0013>
{
public override uint ParamId { get; set; } = 0x0013;
/// <summary>
@@ -18,5 +18,22 @@ namespace JT808.Protocol.MessageBody
/// 主服务器地址,IP 或域名
/// </summary>
public string ParamValue { get; set; }
public JT808_0x8103_0x0013 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0013 jT808_0x8103_0x0013 = new JT808_0x8103_0x0013();
jT808_0x8103_0x0013.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0013.ParamLength = reader.ReadByte();
jT808_0x8103_0x0013.ParamValue = reader.ReadString(jT808_0x8103_0x0013.ParamLength);
return jT808_0x8103_0x0013;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0013 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.Skip(1, out int skipPosition);
writer.WriteString(value.ParamValue);
int length = writer.GetCurrentPosition() - skipPosition - 1;
writer.WriteByteReturn((byte)length, skipPosition);
}
}
}

+ 20
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0014.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 备份服务器 APN,无线通信拨号访问点
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0014_Formatter))]
public class JT808_0x8103_0x0014 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0014 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0014>
{
public override uint ParamId { get; set; } = 0x0014;
/// <summary>
@@ -18,5 +18,22 @@ namespace JT808.Protocol.MessageBody
/// 备份服务器 APN,无线通信拨号访问点
/// </summary>
public string ParamValue { get; set; }
public JT808_0x8103_0x0014 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0014 jT808_0x8103_0x0014 = new JT808_0x8103_0x0014();
jT808_0x8103_0x0014.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0014.ParamLength = reader.ReadByte();
jT808_0x8103_0x0014.ParamValue = reader.ReadString(jT808_0x8103_0x0014.ParamLength);
return jT808_0x8103_0x0014;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0014 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.Skip(1, out int skipPosition);
writer.WriteString(value.ParamValue);
int length = writer.GetCurrentPosition() - skipPosition - 1;
writer.WriteByteReturn((byte)length, skipPosition);
}
}
}

+ 20
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0015.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 备份服务器无线通信拨号用户名
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0015_Formatter))]
public class JT808_0x8103_0x0015 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0015 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0015>
{
public override uint ParamId { get; set; } = 0x0015;
/// <summary>
@@ -18,5 +18,22 @@ namespace JT808.Protocol.MessageBody
/// 备份服务器无线通信拨号用户名
/// </summary>
public string ParamValue { get; set; }
public JT808_0x8103_0x0015 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0015 jT808_0x8103_0x0015 = new JT808_0x8103_0x0015();
jT808_0x8103_0x0015.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0015.ParamLength = reader.ReadByte();
jT808_0x8103_0x0015.ParamValue = reader.ReadString(jT808_0x8103_0x0015.ParamLength);
return jT808_0x8103_0x0015;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0015 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.Skip(1, out int skipPosition);
writer.WriteString(value.ParamValue);
int length = writer.GetCurrentPosition() - skipPosition - 1;
writer.WriteByteReturn((byte)length, skipPosition);
}
}
}

+ 20
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0016.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 备份服务器无线通信拨号密码
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0016_Formatter))]
public class JT808_0x8103_0x0016 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0016 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0016>
{
public override uint ParamId { get; set; } = 0x0016;
/// <summary>
@@ -18,5 +18,22 @@ namespace JT808.Protocol.MessageBody
/// 备份服务器无线通信拨号密码
/// </summary>
public string ParamValue { get; set; }
public JT808_0x8103_0x0016 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0016 jT808_0x8103_0x0016 = new JT808_0x8103_0x0016();
jT808_0x8103_0x0016.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0016.ParamLength = reader.ReadByte();
jT808_0x8103_0x0016.ParamValue = reader.ReadString(jT808_0x8103_0x0016.ParamLength);
return jT808_0x8103_0x0016;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0016 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.Skip(1, out int skipPosition);
writer.WriteString(value.ParamValue);
int length = writer.GetCurrentPosition() - skipPosition - 1;
writer.WriteByteReturn((byte)length, skipPosition);
}
}
}

+ 20
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0017.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 备份服务器地址,IP 或域名
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0017_Formatter))]
public class JT808_0x8103_0x0017 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0017 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0017>
{
public override uint ParamId { get; set; } = 0x0017;
/// <summary>
@@ -18,5 +18,22 @@ namespace JT808.Protocol.MessageBody
/// 备份服务器地址,IP 或域名
/// </summary>
public string ParamValue { get; set; }
public JT808_0x8103_0x0017 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0017 jT808_0x8103_0x0017 = new JT808_0x8103_0x0017();
jT808_0x8103_0x0017.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0017.ParamLength = reader.ReadByte();
jT808_0x8103_0x0017.ParamValue = reader.ReadString(jT808_0x8103_0x0017.ParamLength);
return jT808_0x8103_0x0017;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0017 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.Skip(1, out int skipPosition);
writer.WriteString(value.ParamValue);
int length = writer.GetCurrentPosition() - skipPosition - 1;
writer.WriteByteReturn((byte)length, skipPosition);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0018.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 服务器 TCP 端口
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0018_Formatter))]
public class JT808_0x8103_0x0018 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0018 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0018>
{
public override uint ParamId { get; set; } = 0x0018;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
///服务器 TCP 端口
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0018 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0018 jT808_0x8103_0x0018 = new JT808_0x8103_0x0018();
jT808_0x8103_0x0018.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0018.ParamLength = reader.ReadByte();
jT808_0x8103_0x0018.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0018;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0018 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0019.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 服务器 UDP 端口
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0019_Formatter))]
public class JT808_0x8103_0x0019 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0019 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0019>
{
public override uint ParamId { get; set; } = 0x0019;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
///服务器 TCP 端口
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0019 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0019 jT808_0x8103_0x0019 = new JT808_0x8103_0x0019();
jT808_0x8103_0x0019.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0019.ParamLength = reader.ReadByte();
jT808_0x8103_0x0019.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0019;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0019 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 20
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x001A.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 道路运输证 IC 卡认证主服务器 IP 地址或域名
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x001A_Formatter))]
public class JT808_0x8103_0x001A : JT808_0x8103_BodyBase
public class JT808_0x8103_0x001A : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x001A>
{
public override uint ParamId { get; set; } = 0x001A;
/// <summary>
@@ -18,5 +18,22 @@ namespace JT808.Protocol.MessageBody
/// 道路运输证 IC 卡认证主服务器 IP 地址或域名
/// </summary>
public string ParamValue { get; set; }
public JT808_0x8103_0x001A Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x001A jT808_0x8103_0x001A = new JT808_0x8103_0x001A();
jT808_0x8103_0x001A.ParamId = reader.ReadUInt32();
jT808_0x8103_0x001A.ParamLength = reader.ReadByte();
jT808_0x8103_0x001A.ParamValue = reader.ReadString(jT808_0x8103_0x001A.ParamLength);
return jT808_0x8103_0x001A;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x001A value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.Skip(1, out int skipPosition);
writer.WriteString(value.ParamValue);
int length = writer.GetCurrentPosition() - skipPosition - 1;
writer.WriteByteReturn((byte)length, skipPosition);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x001B.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 道路运输证 IC 卡认证主服务器 TCP 端口
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x001B_Formatter))]
public class JT808_0x8103_0x001B : JT808_0x8103_BodyBase
public class JT808_0x8103_0x001B : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x001B>
{
public override uint ParamId { get; set; } = 0x001B;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
///道路运输证 IC 卡认证主服务器 TCP 端口
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x001B Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x001B jT808_0x8103_0x001B = new JT808_0x8103_0x001B();
jT808_0x8103_0x001B.ParamId = reader.ReadUInt32();
jT808_0x8103_0x001B.ParamLength = reader.ReadByte();
jT808_0x8103_0x001B.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x001B;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x001B value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x001C.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 道路运输证 IC 卡认证主服务器 UDP 端口
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x001C_Formatter))]
public class JT808_0x8103_0x001C : JT808_0x8103_BodyBase
public class JT808_0x8103_0x001C : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x001C>
{
public override uint ParamId { get; set; } = 0x001C;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
///道路运输证 IC 卡认证主服务器 UDP 端口
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x001C Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x001C jT808_0x8103_0x001C = new JT808_0x8103_0x001C();
jT808_0x8103_0x001C.ParamId = reader.ReadUInt32();
jT808_0x8103_0x001C.ParamLength = reader.ReadByte();
jT808_0x8103_0x001C.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x001C;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x001C value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 20
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x001D.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 道路运输证 IC 卡认证备份服务器 IP 地址或域名,端口同主服务器
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x001D_Formatter))]
public class JT808_0x8103_0x001D : JT808_0x8103_BodyBase
public class JT808_0x8103_0x001D : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x001D>
{
public override uint ParamId { get; set; } = 0x001D;
/// <summary>
@@ -18,5 +18,22 @@ namespace JT808.Protocol.MessageBody
/// 道路运输证 IC 卡认证备份服务器 IP 地址或域名,端口同主服务器
/// </summary>
public string ParamValue { get; set; }
public JT808_0x8103_0x001D Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x001D jT808_0x8103_0x001D = new JT808_0x8103_0x001D();
jT808_0x8103_0x001D.ParamId = reader.ReadUInt32();
jT808_0x8103_0x001D.ParamLength = reader.ReadByte();
jT808_0x8103_0x001D.ParamValue = reader.ReadString(jT808_0x8103_0x001D.ParamLength);
return jT808_0x8103_0x001D;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x001D value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.Skip(1, out int skipPosition);
writer.WriteString(value.ParamValue);
int length = writer.GetCurrentPosition() - skipPosition - 1;
writer.WriteByteReturn((byte)length, skipPosition);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0020.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 位置汇报策略,0:定时汇报;1:定距汇报;2:定时和定距汇报
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0020_Formatter))]
public class JT808_0x8103_0x0020 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0020 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0020>
{
public override uint ParamId { get; set; } = 0x0020;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 位置汇报策略,0:定时汇报;1:定距汇报;2:定时和定距汇报
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0020 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0020 jT808_0x8103_0x0020 = new JT808_0x8103_0x0020();
jT808_0x8103_0x0020.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0020.ParamLength = reader.ReadByte();
jT808_0x8103_0x0020.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0020;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0020 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0021.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 位置汇报方案,0:根据 ACC 状态; 1:根据登录状态和 ACC 状态,先判断登录状态,若登录再根据 ACC 状态
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0021_Formatter))]
public class JT808_0x8103_0x0021 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0021 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0021>
{
public override uint ParamId { get; set; } = 0x0021;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 位置汇报方案,0:根据 ACC 状态; 1:根据登录状态和 ACC 状态,先判断登录状态,若登录再根据 ACC 状态
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0021 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0021 jT808_0x8103_0x0021 = new JT808_0x8103_0x0021();
jT808_0x8103_0x0021.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0021.ParamLength = reader.ReadByte();
jT808_0x8103_0x0021.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0021;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0021 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0022.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 驾驶员未登录汇报时间间隔,单位为秒(s),>0
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0022_Formatter))]
public class JT808_0x8103_0x0022 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0022 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0022>
{
public override uint ParamId { get; set; } = 0x0022;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 驾驶员未登录汇报时间间隔,单位为秒(s),>0
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0022 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0022 jT808_0x8103_0x0022 = new JT808_0x8103_0x0022();
jT808_0x8103_0x0022.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0022.ParamLength = reader.ReadByte();
jT808_0x8103_0x0022.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0022;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0022 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0027.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 休眠时汇报时间间隔,单位为秒(s),>0
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0027_Formatter))]
public class JT808_0x8103_0x0027 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0027 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0027>
{
public override uint ParamId { get; set; } = 0x0027;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 休眠时汇报时间间隔,单位为秒(s),>0
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0027 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0027 jT808_0x8103_0x0027 = new JT808_0x8103_0x0027();
jT808_0x8103_0x0027.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0027.ParamLength = reader.ReadByte();
jT808_0x8103_0x0027.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0027;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0027 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0028.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 紧急报警时汇报时间间隔,单位为秒(s),>0
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0028_Formatter))]
public class JT808_0x8103_0x0028 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0028 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0028>
{
public override uint ParamId { get; set; } = 0x0028;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 紧急报警时汇报时间间隔,单位为秒(s),>0
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0028 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0028 jT808_0x8103_0x0028 = new JT808_0x8103_0x0028();
jT808_0x8103_0x0028.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0028.ParamLength = reader.ReadByte();
jT808_0x8103_0x0028.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0028;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0028 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0029.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 缺省时间汇报间隔,单位为秒(s),>0
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0029_Formatter))]
public class JT808_0x8103_0x0029 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0029 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0029>
{
public override uint ParamId { get; set; } = 0x0029;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 缺省时间汇报间隔,单位为秒(s),>0
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0029 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0029 jT808_0x8103_0x0029 = new JT808_0x8103_0x0029();
jT808_0x8103_0x0029.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0029.ParamLength = reader.ReadByte();
jT808_0x8103_0x0029.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0029;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0029 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x002C.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 缺省距离汇报间隔,单位为米(m),>0
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x002C_Formatter))]
public class JT808_0x8103_0x002C : JT808_0x8103_BodyBase
public class JT808_0x8103_0x002C : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x002C>
{
public override uint ParamId { get; set; } = 0x002C;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 缺省距离汇报间隔,单位为米(m),>0
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x002C Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x002C jT808_0x8103_0x002C = new JT808_0x8103_0x002C();
jT808_0x8103_0x002C.ParamId = reader.ReadUInt32();
jT808_0x8103_0x002C.ParamLength = reader.ReadByte();
jT808_0x8103_0x002C.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x002C;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x002C value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x002D.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 驾驶员未登录汇报距离间隔,单位为米(m),>0
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x002D_Formatter))]
public class JT808_0x8103_0x002D : JT808_0x8103_BodyBase
public class JT808_0x8103_0x002D : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x002D>
{
public override uint ParamId { get; set; } = 0x002D;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 驾驶员未登录汇报距离间隔,单位为米(m),>0
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x002D Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x002D jT808_0x8103_0x002D = new JT808_0x8103_0x002D();
jT808_0x8103_0x002D.ParamId = reader.ReadUInt32();
jT808_0x8103_0x002D.ParamLength = reader.ReadByte();
jT808_0x8103_0x002D.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x002D;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x002D value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x002E.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 休眠时汇报距离间隔,单位为米(m),>0
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x002E_Formatter))]
public class JT808_0x8103_0x002E : JT808_0x8103_BodyBase
public class JT808_0x8103_0x002E : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x002E>
{
public override uint ParamId { get; set; } = 0x002E;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 休眠时汇报距离间隔,单位为米(m),>0
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x002E Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x002E jT808_0x8103_0x002E = new JT808_0x8103_0x002E();
jT808_0x8103_0x002E.ParamId = reader.ReadUInt32();
jT808_0x8103_0x002E.ParamLength = reader.ReadByte();
jT808_0x8103_0x002E.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x002E;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x002E value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x002F.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 紧急报警时汇报距离间隔,单位为米(m),>0
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x002F_Formatter))]
public class JT808_0x8103_0x002F : JT808_0x8103_BodyBase
public class JT808_0x8103_0x002F : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x002F>
{
public override uint ParamId { get; set; } = 0x002F;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 紧急报警时汇报距离间隔,单位为米(m),>0
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x002F Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x002F jT808_0x8103_0x002F = new JT808_0x8103_0x002F();
jT808_0x8103_0x002F.ParamId = reader.ReadUInt32();
jT808_0x8103_0x002F.ParamLength = reader.ReadByte();
jT808_0x8103_0x002F.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x002F;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x002F value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0030.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 拐点补传角度,<180
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0030_Formatter))]
public class JT808_0x8103_0x0030 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0030 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0030>
{
public override uint ParamId { get; set; } = 0x0030;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 拐点补传角度,<180
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0030 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0030 jT808_0x8103_0x0030 = new JT808_0x8103_0x0030();
jT808_0x8103_0x0030.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0030.ParamLength = reader.ReadByte();
jT808_0x8103_0x0030.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0030;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0030 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0031.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 电子围栏半径(非法位移阈值),单位为米
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0031_Formatter))]
public class JT808_0x8103_0x0031 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0031 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0031>
{
public override uint ParamId { get; set; } = 0x0031;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 电子围栏半径(非法位移阈值),单位为米
/// </summary>
public ushort ParamValue { get; set; }
public JT808_0x8103_0x0031 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0031 jT808_0x8103_0x0031 = new JT808_0x8103_0x0031();
jT808_0x8103_0x0031.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0031.ParamLength = reader.ReadByte();
jT808_0x8103_0x0031.ParamValue = reader.ReadUInt16();
return jT808_0x8103_0x0031;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0031 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt16(value.ParamValue);
}
}
}

+ 20
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0040.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 监控平台电话号码
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0040_Formatter))]
public class JT808_0x8103_0x0040 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0040 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0040>
{
public override uint ParamId { get; set; } = 0x0040;
/// <summary>
@@ -18,5 +18,22 @@ namespace JT808.Protocol.MessageBody
/// 监控平台电话号码
/// </summary>
public string ParamValue { get; set; }
public JT808_0x8103_0x0040 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0040 jT808_0x8103_0x0040 = new JT808_0x8103_0x0040();
jT808_0x8103_0x0040.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0040.ParamLength = reader.ReadByte();
jT808_0x8103_0x0040.ParamValue = reader.ReadString(jT808_0x8103_0x0040.ParamLength);
return jT808_0x8103_0x0040;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0040 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.Skip(1, out int skipPosition);
writer.WriteString(value.ParamValue);
int length = writer.GetCurrentPosition() - skipPosition - 1;
writer.WriteByteReturn((byte)length, skipPosition);
}
}
}

+ 20
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0041.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 复位电话号码,可采用此电话号码拨打终端电话让终端复位
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0041_Formatter))]
public class JT808_0x8103_0x0041 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0041 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0041>
{
public override uint ParamId { get; set; } = 0x0041;
/// <summary>
@@ -18,5 +18,22 @@ namespace JT808.Protocol.MessageBody
/// 复位电话号码,可采用此电话号码拨打终端电话让终端复位
/// </summary>
public string ParamValue { get; set; }
public JT808_0x8103_0x0041 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0041 jT808_0x8103_0x0041 = new JT808_0x8103_0x0041();
jT808_0x8103_0x0041.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0041.ParamLength = reader.ReadByte();
jT808_0x8103_0x0041.ParamValue = reader.ReadString(jT808_0x8103_0x0041.ParamLength);
return jT808_0x8103_0x0041;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0041 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.Skip(1, out int skipPosition);
writer.WriteString(value.ParamValue);
int length = writer.GetCurrentPosition() - skipPosition - 1;
writer.WriteByteReturn((byte)length, skipPosition);
}
}
}

+ 20
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0042.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 恢复出厂设置电话号码,可采用此电话号码拨打终端电话让终端恢复出厂设置
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0042_Formatter))]
public class JT808_0x8103_0x0042 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0042 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0042>
{
public override uint ParamId { get; set; } = 0x0042;
/// <summary>
@@ -18,5 +18,22 @@ namespace JT808.Protocol.MessageBody
/// 恢复出厂设置电话号码,可采用此电话号码拨打终端电话让终端恢复出厂设置
/// </summary>
public string ParamValue { get; set; }
public JT808_0x8103_0x0042 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0042 jT808_0x8103_0x0042 = new JT808_0x8103_0x0042();
jT808_0x8103_0x0042.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0042.ParamLength = reader.ReadByte();
jT808_0x8103_0x0042.ParamValue = reader.ReadString(jT808_0x8103_0x0042.ParamLength);
return jT808_0x8103_0x0042;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0042 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.Skip(1, out int skipPosition);
writer.WriteString(value.ParamValue);
int length = writer.GetCurrentPosition() - skipPosition - 1;
writer.WriteByteReturn((byte)length, skipPosition);
}
}
}

+ 20
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0043.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 监控平台 SMS 电话号码
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0043_Formatter))]
public class JT808_0x8103_0x0043 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0043 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0043>
{
public override uint ParamId { get; set; } = 0x0043;
/// <summary>
@@ -18,5 +18,22 @@ namespace JT808.Protocol.MessageBody
/// 监控平台 SMS 电话号码
/// </summary>
public string ParamValue { get; set; }
public JT808_0x8103_0x0043 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0043 jT808_0x8103_0x0043 = new JT808_0x8103_0x0043();
jT808_0x8103_0x0043.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0043.ParamLength = reader.ReadByte();
jT808_0x8103_0x0043.ParamValue = reader.ReadString(jT808_0x8103_0x0043.ParamLength);
return jT808_0x8103_0x0043;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0043 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.Skip(1, out int skipPosition);
writer.WriteString(value.ParamValue);
int length = writer.GetCurrentPosition() - skipPosition - 1;
writer.WriteByteReturn((byte)length, skipPosition);
}
}
}

+ 20
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0044.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 接收终端 SMS 文本报警号码
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0044_Formatter))]
public class JT808_0x8103_0x0044 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0044 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0044>
{
public override uint ParamId { get; set; } = 0x0044;
/// <summary>
@@ -18,5 +18,22 @@ namespace JT808.Protocol.MessageBody
/// 接收终端 SMS 文本报警号码
/// </summary>
public string ParamValue { get; set; }
public JT808_0x8103_0x0044 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0044 jT808_0x8103_0x0044 = new JT808_0x8103_0x0044();
jT808_0x8103_0x0044.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0044.ParamLength = reader.ReadByte();
jT808_0x8103_0x0044.ParamValue = reader.ReadString(jT808_0x8103_0x0044.ParamLength);
return jT808_0x8103_0x0044;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0044 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.Skip(1, out int skipPosition);
writer.WriteString(value.ParamValue);
int length = writer.GetCurrentPosition() - skipPosition - 1;
writer.WriteByteReturn((byte)length, skipPosition);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0045.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 终端电话接听策略,0:自动接听;1:ACC ON 时自动接听,OFF 时手动接听
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0045_Formatter))]
public class JT808_0x8103_0x0045 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0045 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0045>
{
public override uint ParamId { get; set; } = 0x0045;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 终端电话接听策略,0:自动接听;1:ACC ON 时自动接听,OFF 时手动接听
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0045 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0045 jT808_0x8103_0x0045 = new JT808_0x8103_0x0045();
jT808_0x8103_0x0045.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0045.ParamLength = reader.ReadByte();
jT808_0x8103_0x0045.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0045;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0045 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0046.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 每次最长通话时间,单位为秒(s),0 为不允许通话,0xFFFFFFFF 为不限制
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0046_Formatter))]
public class JT808_0x8103_0x0046 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0046 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0046>
{
public override uint ParamId { get; set; } = 0x0046;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 每次最长通话时间,单位为秒(s),0 为不允许通话,0xFFFFFFFF 为不限制
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0046 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0046 jT808_0x8103_0x0046 = new JT808_0x8103_0x0046();
jT808_0x8103_0x0046.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0046.ParamLength = reader.ReadByte();
jT808_0x8103_0x0046.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0046;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0046 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0047.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 当月最长通话时间,单位为秒(s),0 为不允许通话,0xFFFFFFFF 为不限制
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0047_Formatter))]
public class JT808_0x8103_0x0047 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0047 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0047>
{
public override uint ParamId { get; set; } = 0x0047;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 当月最长通话时间,单位为秒(s),0 为不允许通话,0xFFFFFFFF 为不限制
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0047 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0047 jT808_0x8103_0x0047 = new JT808_0x8103_0x0047();
jT808_0x8103_0x0047.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0047.ParamLength = reader.ReadByte();
jT808_0x8103_0x0047.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0047;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0047 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 20
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0048.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 监听电话号码
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0048_Formatter))]
public class JT808_0x8103_0x0048 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0048 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0048>
{
public override uint ParamId { get; set; } = 0x0048;
/// <summary>
@@ -18,5 +18,22 @@ namespace JT808.Protocol.MessageBody
/// 监听电话号码
/// </summary>
public string ParamValue { get; set; }
public JT808_0x8103_0x0048 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0048 jT808_0x8103_0x0048 = new JT808_0x8103_0x0048();
jT808_0x8103_0x0048.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0048.ParamLength = reader.ReadByte();
jT808_0x8103_0x0048.ParamValue = reader.ReadString(jT808_0x8103_0x0048.ParamLength);
return jT808_0x8103_0x0048;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0048 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.Skip(1, out int skipPosition);
writer.WriteString(value.ParamValue);
int length = writer.GetCurrentPosition() - skipPosition - 1;
writer.WriteByteReturn((byte)length, skipPosition);
}
}
}

+ 20
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0049.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 监管平台特权短信号码
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0049_Formatter))]
public class JT808_0x8103_0x0049 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0049 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0049>
{
public override uint ParamId { get; set; } = 0x0049;
/// <summary>
@@ -18,5 +18,22 @@ namespace JT808.Protocol.MessageBody
/// 监管平台特权短信号码
/// </summary>
public string ParamValue { get; set; }
public JT808_0x8103_0x0049 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0049 jT808_0x8103_0x0049 = new JT808_0x8103_0x0049();
jT808_0x8103_0x0049.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0049.ParamLength = reader.ReadByte();
jT808_0x8103_0x0049.ParamValue = reader.ReadString(jT808_0x8103_0x0049.ParamLength);
return jT808_0x8103_0x0049;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0049 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.Skip(1, out int skipPosition);
writer.WriteString(value.ParamValue);
int length = writer.GetCurrentPosition() - skipPosition - 1;
writer.WriteByteReturn((byte)length, skipPosition);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0050.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 报警屏蔽字,与位置信息汇报消息中的报警标志相对应,相应位为 1则相应报警被屏蔽
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0050_Formatter))]
public class JT808_0x8103_0x0050 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0050 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0050>
{
public override uint ParamId { get; set; } = 0x0050;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 报警屏蔽字,与位置信息汇报消息中的报警标志相对应,相应位为 1则相应报警被屏蔽
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0050 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0050 jT808_0x8103_0x0050 = new JT808_0x8103_0x0050();
jT808_0x8103_0x0050.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0050.ParamLength = reader.ReadByte();
jT808_0x8103_0x0050.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0050;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0050 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0051.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 报警发送文本 SMS 开关,与位置信息汇报消息中的报警标志相对应,相应位为 1 则相应报警时发送文本 SMS
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0051_Formatter))]
public class JT808_0x8103_0x0051 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0051 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0051>
{
public override uint ParamId { get; set; } = 0x0051;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 报警发送文本 SMS 开关,与位置信息汇报消息中的报警标志相对应,相应位为 1 则相应报警时发送文本 SMS
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0051 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0051 jT808_0x8103_0x0051 = new JT808_0x8103_0x0051();
jT808_0x8103_0x0051.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0051.ParamLength = reader.ReadByte();
jT808_0x8103_0x0051.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0051;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0051 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0052.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 报警拍摄开关,与位置信息汇报消息中的报警标志相对应,相应位为1 则相应报警时摄像头拍摄
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0052_Formatter))]
public class JT808_0x8103_0x0052 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0052 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0052>
{
public override uint ParamId { get; set; } = 0x0052;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 报警拍摄开关,与位置信息汇报消息中的报警标志相对应,相应位为1 则相应报警时摄像头拍摄
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0052 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0052 jT808_0x8103_0x0052 = new JT808_0x8103_0x0052();
jT808_0x8103_0x0052.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0052.ParamLength = reader.ReadByte();
jT808_0x8103_0x0052.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0052;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0052 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0053.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 报警拍摄存储标志,与位置信息汇报消息中的报警标志相对应,相应位为 1 则对相应报警时拍的照片进行存储,否则实时上传
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0053_Formatter))]
public class JT808_0x8103_0x0053 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0053 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0053>
{
public override uint ParamId { get; set; } = 0x0053;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 报警拍摄存储标志,与位置信息汇报消息中的报警标志相对应,相应位为 1 则对相应报警时拍的照片进行存储,否则实时上传
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0053 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0053 jT808_0x8103_0x0053 = new JT808_0x8103_0x0053();
jT808_0x8103_0x0053.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0053.ParamLength = reader.ReadByte();
jT808_0x8103_0x0053.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0053;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0053 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0054.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 关键标志,与位置信息汇报消息中的报警标志相对应,相应位为 1 则对相应报警为关键报警
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0054_Formatter))]
public class JT808_0x8103_0x0054 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0054 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0054>
{
public override uint ParamId { get; set; } = 0x0054;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 关键标志,与位置信息汇报消息中的报警标志相对应,相应位为 1 则对相应报警为关键报警
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0054 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0054 jT808_0x8103_0x0054 = new JT808_0x8103_0x0054();
jT808_0x8103_0x0054.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0054.ParamLength = reader.ReadByte();
jT808_0x8103_0x0054.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0054;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0054 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0055.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 最高速度,单位为公里每小时(km/h)
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0055_Formatter))]
public class JT808_0x8103_0x0055 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0055 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0055>
{
public override uint ParamId { get; set; } = 0x0055;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 最高速度,单位为公里每小时(km/h)
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0055 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0055 jT808_0x8103_0x0055 = new JT808_0x8103_0x0055();
jT808_0x8103_0x0055.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0055.ParamLength = reader.ReadByte();
jT808_0x8103_0x0055.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0055;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0055 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0056.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 超速持续时间,单位为秒(s)
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0056_Formatter))]
public class JT808_0x8103_0x0056 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0056 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0056>
{
public override uint ParamId { get; set; } = 0x0056;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 超速持续时间,单位为秒(s)
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0056 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0056 jT808_0x8103_0x0056 = new JT808_0x8103_0x0056();
jT808_0x8103_0x0056.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0056.ParamLength = reader.ReadByte();
jT808_0x8103_0x0056.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0056;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0056 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0057.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 连续驾驶时间门限,单位为秒(s)
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0057_Formatter))]
public class JT808_0x8103_0x0057 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0057 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0057>
{
public override uint ParamId { get; set; } = 0x0057;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 连续驾驶时间门限,单位为秒(s)
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0057 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0057 jT808_0x8103_0x0057 = new JT808_0x8103_0x0057();
jT808_0x8103_0x0057.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0057.ParamLength = reader.ReadByte();
jT808_0x8103_0x0057.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0057;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0057 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0058.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 当天累计驾驶时间门限,单位为秒(s)
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0058_Formatter))]
public class JT808_0x8103_0x0058 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0058 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0058>
{
public override uint ParamId { get; set; } = 0x0058;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 当天累计驾驶时间门限,单位为秒(s)
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0058 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0058 jT808_0x8103_0x0058 = new JT808_0x8103_0x0058();
jT808_0x8103_0x0058.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0058.ParamLength = reader.ReadByte();
jT808_0x8103_0x0058.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0058;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0058 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0059.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 最小休息时间,单位为秒(s)
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0059_Formatter))]
public class JT808_0x8103_0x0059 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0059 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0059>
{
public override uint ParamId { get; set; } = 0x0059;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 最小休息时间,单位为秒(s)
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0059 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0059 jT808_0x8103_0x0059 = new JT808_0x8103_0x0059();
jT808_0x8103_0x0059.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0059.ParamLength = reader.ReadByte();
jT808_0x8103_0x0059.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0059;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0059 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x005A.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 最长停车时间,单位为秒(s)
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x005A_Formatter))]
public class JT808_0x8103_0x005A : JT808_0x8103_BodyBase
public class JT808_0x8103_0x005A : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x005A>
{
public override uint ParamId { get; set; } = 0x005A;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 最长停车时间,单位为秒(s)
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x005A Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x005A jT808_0x8103_0x005A = new JT808_0x8103_0x005A();
jT808_0x8103_0x005A.ParamId = reader.ReadUInt32();
jT808_0x8103_0x005A.ParamLength = reader.ReadByte();
jT808_0x8103_0x005A.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x005A;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x005A value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x005B.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 超速报警预警差值,单位为 1/10Km/h
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x005B_Formatter))]
public class JT808_0x8103_0x005B : JT808_0x8103_BodyBase
public class JT808_0x8103_0x005B : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x005B>
{
public override uint ParamId { get; set; } = 0x005B;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 超速报警预警差值,单位为 1/10Km/h
/// </summary>
public ushort ParamValue { get; set; }
public JT808_0x8103_0x005B Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x005B jT808_0x8103_0x005B = new JT808_0x8103_0x005B();
jT808_0x8103_0x005B.ParamId = reader.ReadUInt32();
jT808_0x8103_0x005B.ParamLength = reader.ReadByte();
jT808_0x8103_0x005B.ParamValue = reader.ReadUInt16();
return jT808_0x8103_0x005B;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x005B value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt16(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x005C.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 疲劳驾驶预警差值,单位为秒(s),>0
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x005C_Formatter))]
public class JT808_0x8103_0x005C : JT808_0x8103_BodyBase
public class JT808_0x8103_0x005C : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x005C>
{
public override uint ParamId { get; set; } = 0x005C;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 疲劳驾驶预警差值,单位为秒(s),>0
/// </summary>
public ushort ParamValue { get; set; }
public JT808_0x8103_0x005C Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x005C jT808_0x8103_0x005C = new JT808_0x8103_0x005C();
jT808_0x8103_0x005C.ParamId = reader.ReadUInt32();
jT808_0x8103_0x005C.ParamLength = reader.ReadByte();
jT808_0x8103_0x005C.ParamValue = reader.ReadUInt16();
return jT808_0x8103_0x005C;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x005C value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt16(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x005D.cs Näytä tiedosto

@@ -1,5 +1,6 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
@@ -8,8 +9,7 @@ namespace JT808.Protocol.MessageBody
/// b7-b0: 碰撞时间,单位 4ms;
/// b15-b8:碰撞加速度,单位 0.1g,设置范围在:0-79 之间,默认为10。
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x005D_Formatter))]
public class JT808_0x8103_0x005D : JT808_0x8103_BodyBase
public class JT808_0x8103_0x005D : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x005D>
{
public override uint ParamId { get; set; } = 0x005D;
/// <summary>
@@ -22,5 +22,20 @@ namespace JT808.Protocol.MessageBody
/// b15-b8:碰撞加速度,单位 0.1g,设置范围在:0-79 之间,默认为10。
/// </summary>
public ushort ParamValue { get; set; }
public JT808_0x8103_0x005D Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x005D jT808_0x8103_0x005D = new JT808_0x8103_0x005D();
jT808_0x8103_0x005D.ParamId = reader.ReadUInt32();
jT808_0x8103_0x005D.ParamLength = reader.ReadByte();
jT808_0x8103_0x005D.ParamValue = reader.ReadUInt16();
return jT808_0x8103_0x005D;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x005D value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt16(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x005E.cs Näytä tiedosto

@@ -1,5 +1,6 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
@@ -7,8 +8,7 @@ namespace JT808.Protocol.MessageBody
/// 侧翻报警参数设置:
/// 侧翻角度,单位 1 度,默认为 30 度
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x005E_Formatter))]
public class JT808_0x8103_0x005E : JT808_0x8103_BodyBase
public class JT808_0x8103_0x005E : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x005E>
{
public override uint ParamId { get; set; } = 0x005E;
/// <summary>
@@ -20,5 +20,20 @@ namespace JT808.Protocol.MessageBody
/// 侧翻角度,单位 1 度,默认为 30 度
/// </summary>
public ushort ParamValue { get; set; }
public JT808_0x8103_0x005E Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x005E jT808_0x8103_0x005E = new JT808_0x8103_0x005E();
jT808_0x8103_0x005E.ParamId = reader.ReadUInt32();
jT808_0x8103_0x005E.ParamLength = reader.ReadByte();
jT808_0x8103_0x005E.ParamValue = reader.ReadUInt16();
return jT808_0x8103_0x005E;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x005E value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt16(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0064.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 定时拍照控制,见 表 13
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0064_Formatter))]
public class JT808_0x8103_0x0064 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0064 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0064>
{
public override uint ParamId { get; set; } = 0x0064;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 定时拍照控制,见 表 13
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0064 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0064 jT808_0x8103_0x0064 = new JT808_0x8103_0x0064();
jT808_0x8103_0x0064.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0064.ParamLength = reader.ReadByte();
jT808_0x8103_0x0064.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0064;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0064 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0065.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 定距拍照控制,见 表 14
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0065_Formatter))]
public class JT808_0x8103_0x0065 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0065 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0065>
{
public override uint ParamId { get; set; } = 0x0065;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 定距拍照控制,见 表 14
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0065 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0065 jT808_0x8103_0x0065 = new JT808_0x8103_0x0065();
jT808_0x8103_0x0065.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0065.ParamLength = reader.ReadByte();
jT808_0x8103_0x0065.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0065;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0065 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0070.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 图像/视频质量,1-10,1 最好
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0070_Formatter))]
public class JT808_0x8103_0x0070 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0070 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0070>
{
public override uint ParamId { get; set; } = 0x0070;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 图像/视频质量,1-10,1 最好
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0070 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0070 jT808_0x8103_0x0070 = new JT808_0x8103_0x0070();
jT808_0x8103_0x0070.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0070.ParamLength = reader.ReadByte();
jT808_0x8103_0x0070.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0070;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0070 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0071.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 亮度,0-255
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0071_Formatter))]
public class JT808_0x8103_0x0071 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0071 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0071>
{
public override uint ParamId { get; set; } = 0x0071;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 亮度,0-255
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0071 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0071 jT808_0x8103_0x0071 = new JT808_0x8103_0x0071();
jT808_0x8103_0x0071.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0071.ParamLength = reader.ReadByte();
jT808_0x8103_0x0071.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0071;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0071 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0072.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 对比度,0-127
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0072_Formatter))]
public class JT808_0x8103_0x0072 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0072 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0072>
{
public override uint ParamId { get; set; } = 0x0072;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 对比度,0-127
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0072 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0072 jT808_0x8103_0x0072 = new JT808_0x8103_0x0072();
jT808_0x8103_0x0072.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0072.ParamLength = reader.ReadByte();
jT808_0x8103_0x0072.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0072;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0072 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0073.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 饱和度,0-127
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0073_Formatter))]
public class JT808_0x8103_0x0073 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0073 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0073>
{
public override uint ParamId { get; set; } = 0x0073;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 饱和度,0-127
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0073 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0073 jT808_0x8103_0x0073 = new JT808_0x8103_0x0073();
jT808_0x8103_0x0073.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0073.ParamLength = reader.ReadByte();
jT808_0x8103_0x0073.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0073;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0073 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0074.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 色度,0-255
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0074_Formatter))]
public class JT808_0x8103_0x0074 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0074 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0074>
{
public override uint ParamId { get; set; } = 0x0074;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 饱和度,0-127
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0074 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0074 jT808_0x8103_0x0074 = new JT808_0x8103_0x0074();
jT808_0x8103_0x0074.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0074.ParamLength = reader.ReadByte();
jT808_0x8103_0x0074.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0074;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0074 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0080.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 车辆里程表读数,1/10km
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0080_Formatter))]
public class JT808_0x8103_0x0080 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0080 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0080>
{
public override uint ParamId { get; set; } = 0x0080;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 车辆里程表读数,1/10km
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0080 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0080 jT808_0x8103_0x0080 = new JT808_0x8103_0x0080();
jT808_0x8103_0x0080.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0080.ParamLength = reader.ReadByte();
jT808_0x8103_0x0080.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0080;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0080 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0081.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 车辆所在的省域 ID
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0081_Formatter))]
public class JT808_0x8103_0x0081 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0081 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0081>
{
public override uint ParamId { get; set; } = 0x0081;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 车辆所在的省域 ID
/// </summary>
public ushort ParamValue { get; set; }
public JT808_0x8103_0x0081 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0081 jT808_0x8103_0x0081 = new JT808_0x8103_0x0081();
jT808_0x8103_0x0081.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0081.ParamLength = reader.ReadByte();
jT808_0x8103_0x0081.ParamValue = reader.ReadUInt16();
return jT808_0x8103_0x0081;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0081 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt16(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0082.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 车辆所在的市域 ID
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0082_Formatter))]
public class JT808_0x8103_0x0082 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0082 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0082>
{
public override uint ParamId { get; set; } = 0x0082;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 车辆所在的市域 ID
/// </summary>
public ushort ParamValue { get; set; }
public JT808_0x8103_0x0082 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0082 jT808_0x8103_0x0082 = new JT808_0x8103_0x0082();
jT808_0x8103_0x0082.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0082.ParamLength = reader.ReadByte();
jT808_0x8103_0x0082.ParamValue = reader.ReadUInt16();
return jT808_0x8103_0x0082;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0082 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt16(value.ParamValue);
}
}
}

+ 20
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0083.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 公安交通管理部门颁发的机动车号牌
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0083_Formatter))]
public class JT808_0x8103_0x0083 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0083 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0083>
{
public override uint ParamId { get; set; } = 0x0083;
/// <summary>
@@ -18,5 +18,22 @@ namespace JT808.Protocol.MessageBody
/// 公安交通管理部门颁发的机动车号牌
/// </summary>
public string ParamValue { get; set; }
public JT808_0x8103_0x0083 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0083 jT808_0x8103_0x0083 = new JT808_0x8103_0x0083();
jT808_0x8103_0x0083.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0083.ParamLength = reader.ReadByte();
jT808_0x8103_0x0083.ParamValue = reader.ReadString(jT808_0x8103_0x0083.ParamLength);
return jT808_0x8103_0x0083;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0083 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.Skip(1, out int skipPosition);
writer.WriteString(value.ParamValue);
int length = writer.GetCurrentPosition() - skipPosition - 1;
writer.WriteByteReturn((byte)length, skipPosition);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0084.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// 车牌颜色,按照 JT/T415-2006 的 5.4.12
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0084_Formatter))]
public class JT808_0x8103_0x0084 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0084 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0084>
{
public override uint ParamId { get; set; } = 0x0084;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// 车牌颜色,按照 JT/T415-2006 的 5.4.12
/// </summary>
public byte ParamValue { get; set; }
public JT808_0x8103_0x0084 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0084 jT808_0x8103_0x0084 = new JT808_0x8103_0x0084();
jT808_0x8103_0x0084.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0084.ParamLength = reader.ReadByte();
jT808_0x8103_0x0084.ParamValue = reader.ReadByte();
return jT808_0x8103_0x0084;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0084 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteByte(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0090.cs Näytä tiedosto

@@ -1,5 +1,6 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
@@ -10,8 +11,7 @@ namespace JT808.Protocol.MessageBody
/// bit2,0:禁用 GLONASS 定位, 1:启用 GLONASS 定位;
/// bit3,0:禁用 Galileo 定位, 1:启用 Galileo 定位。
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0090_Formatter))]
public class JT808_0x8103_0x0090 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0090 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0090>
{
public override uint ParamId { get; set; } = 0x0090;
/// <summary>
@@ -26,5 +26,20 @@ namespace JT808.Protocol.MessageBody
/// bit3,0:禁用 Galileo 定位, 1:启用 Galileo 定位。
/// </summary>
public byte ParamValue { get; set; }
public JT808_0x8103_0x0090 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0090 jT808_0x8103_0x0090 = new JT808_0x8103_0x0090();
jT808_0x8103_0x0090.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0090.ParamLength = reader.ReadByte();
jT808_0x8103_0x0090.ParamValue = reader.ReadByte();
return jT808_0x8103_0x0090;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0090 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteByte(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0091.cs Näytä tiedosto

@@ -1,5 +1,6 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
@@ -9,8 +10,7 @@ namespace JT808.Protocol.MessageBody
/// 0x02:19200;0x03:38400;
/// 0x04:57600;0x05:115200。
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0091_Formatter))]
public class JT808_0x8103_0x0091 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0091 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0091>
{
public override uint ParamId { get; set; } = 0x0091;
/// <summary>
@@ -24,5 +24,20 @@ namespace JT808.Protocol.MessageBody
/// 0x04:57600;0x05:115200。
/// </summary>
public byte ParamValue { get; set; }
public JT808_0x8103_0x0091 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0091 jT808_0x8103_0x0091 = new JT808_0x8103_0x0091();
jT808_0x8103_0x0091.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0091.ParamLength = reader.ReadByte();
jT808_0x8103_0x0091.ParamValue = reader.ReadByte();
return jT808_0x8103_0x0091;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0091 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteByte(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0092.cs Näytä tiedosto

@@ -1,5 +1,6 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
@@ -9,8 +10,7 @@ namespace JT808.Protocol.MessageBody
/// 0x02:2000ms;0x03:3000ms;
/// 0x04:4000ms。
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0092_Formatter))]
public class JT808_0x8103_0x0092 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0092 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0092>
{
public override uint ParamId { get; set; } = 0x0092;
/// <summary>
@@ -24,5 +24,20 @@ namespace JT808.Protocol.MessageBody
/// 0x04:4000ms。
/// </summary>
public byte ParamValue { get; set; }
public JT808_0x8103_0x0092 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0092 jT808_0x8103_0x0092 = new JT808_0x8103_0x0092();
jT808_0x8103_0x0092.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0092.ParamLength = reader.ReadByte();
jT808_0x8103_0x0092.ParamValue = reader.ReadByte();
return jT808_0x8103_0x0092;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0092 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteByte(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0093.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// GNSS 模块详细定位数据采集频率,单位为秒,默认为 1。
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0093_Formatter))]
public class JT808_0x8103_0x0093 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0093 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0093>
{
public override uint ParamId { get; set; } = 0x0093;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// GNSS 模块详细定位数据采集频率,单位为秒,默认为 1。
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0093 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0093 jT808_0x8103_0x0093 = new JT808_0x8103_0x0093();
jT808_0x8103_0x0093.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0093.ParamLength = reader.ReadByte();
jT808_0x8103_0x0093.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0093;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0093 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0094.cs Näytä tiedosto

@@ -1,5 +1,6 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
@@ -12,8 +13,7 @@ namespace JT808.Protocol.MessageBody
/// 0x0C,按累计距离上传,达到距离后自动停止上传;
/// 0x0D,按累计条数上传,达到上传条数后自动停止上传。
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0094_Formatter))]
public class JT808_0x8103_0x0094 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0094 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0094>
{
public override uint ParamId { get; set; } = 0x0094;
/// <summary>
@@ -30,5 +30,20 @@ namespace JT808.Protocol.MessageBody
/// 0x0D,按累计条数上传,达到上传条数后自动停止上传。
/// </summary>
public byte ParamValue { get; set; }
public JT808_0x8103_0x0094 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0094 jT808_0x8103_0x0094 = new JT808_0x8103_0x0094();
jT808_0x8103_0x0094.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0094.ParamLength = reader.ReadByte();
jT808_0x8103_0x0094.ParamValue = reader.ReadByte();
return jT808_0x8103_0x0094;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0094 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteByte(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0095.cs Näytä tiedosto

@@ -1,5 +1,6 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
@@ -11,8 +12,7 @@ namespace JT808.Protocol.MessageBody
/// 上传方式为 0x0C 时,单位为米;
/// 上传方式为 0x0D 时,单位为条。
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0095_Formatter))]
public class JT808_0x8103_0x0095 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0095 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0095>
{
public override uint ParamId { get; set; } = 0x0095;
/// <summary>
@@ -28,5 +28,20 @@ namespace JT808.Protocol.MessageBody
/// 上传方式为 0x0D 时,单位为条。
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0095 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0095 jT808_0x8103_0x0095 = new JT808_0x8103_0x0095();
jT808_0x8103_0x0095.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0095.ParamLength = reader.ReadByte();
jT808_0x8103_0x0095.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0095;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0095 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0100.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// CAN 总线通道 1 采集时间间隔(ms),0 表示不采集
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0100_Formatter))]
public class JT808_0x8103_0x0100 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0100 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0100>
{
public override uint ParamId { get; set; } = 0x0100;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// CAN 总线通道 1 采集时间间隔(ms),0 表示不采集
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0100 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0100 jT808_0x8103_0x0100 = new JT808_0x8103_0x0100();
jT808_0x8103_0x0100.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0100.ParamLength = reader.ReadByte();
jT808_0x8103_0x0100.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0100;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0100 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0101.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// CAN 总线通道 1 上传时间间隔(s),0 表示不上传
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0101_Formatter))]
public class JT808_0x8103_0x0101 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0101 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0101>
{
public override uint ParamId { get; set; } = 0x0101;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// CAN 总线通道 1 上传时间间隔(s),0 表示不上传
/// </summary>
public ushort ParamValue { get; set; }
public JT808_0x8103_0x0101 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0101 jT808_0x8103_0x0101 = new JT808_0x8103_0x0101();
jT808_0x8103_0x0101.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0101.ParamLength = reader.ReadByte();
jT808_0x8103_0x0101.ParamValue = reader.ReadUInt16();
return jT808_0x8103_0x0101;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0101 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt16(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0102.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// CAN 总线通道 2 采集时间间隔(ms),0 表示不采集
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0102_Formatter))]
public class JT808_0x8103_0x0102 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0102 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0102>
{
public override uint ParamId { get; set; } = 0x0102;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// CAN 总线通道 2 采集时间间隔(ms),0 表示不采集
/// </summary>
public uint ParamValue { get; set; }
public JT808_0x8103_0x0102 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0102 jT808_0x8103_0x0102 = new JT808_0x8103_0x0102();
jT808_0x8103_0x0102.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0102.ParamLength = reader.ReadByte();
jT808_0x8103_0x0102.ParamValue = reader.ReadUInt32();
return jT808_0x8103_0x0102;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0102 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt32(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0103.cs Näytä tiedosto

@@ -1,13 +1,13 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
/// <summary>
/// CAN 总线通道 2 上传时间间隔(s),0 表示不上传
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0103_Formatter))]
public class JT808_0x8103_0x0103 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0103 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0103>
{
public override uint ParamId { get; set; } = 0x0103;
/// <summary>
@@ -18,5 +18,20 @@ namespace JT808.Protocol.MessageBody
/// CAN 总线通道 2 上传时间间隔(s),0 表示不上传
/// </summary>
public ushort ParamValue { get; set; }
public JT808_0x8103_0x0103 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0103 jT808_0x8103_0x0103 = new JT808_0x8103_0x0103();
jT808_0x8103_0x0103.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0103.ParamLength = reader.ReadByte();
jT808_0x8103_0x0103.ParamValue = reader.ReadUInt16();
return jT808_0x8103_0x0103;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0103 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte(value.ParamLength);
writer.WriteUInt16(value.ParamValue);
}
}
}

+ 18
- 3
src/JT808.Protocol/MessageBody/JT808_0x8103_0x0110.cs Näytä tiedosto

@@ -1,5 +1,6 @@
using JT808.Protocol.Attributes;
using JT808.Protocol.Formatters.MessageBodyFormatters;
using JT808.Protocol.Formatters;
using JT808.Protocol.MessagePack;

namespace JT808.Protocol.MessageBody
{
@@ -11,8 +12,7 @@ namespace JT808.Protocol.MessageBody
/// bit29 表示数据采集方式,0:原始数据,1:采集区间的计算值;
/// bit28-bit0 表示 CAN 总线 ID。
/// </summary>
[JT808Formatter(typeof(JT808_0x8103_0x0110_Formatter))]
public class JT808_0x8103_0x0110 : JT808_0x8103_BodyBase
public class JT808_0x8103_0x0110 : JT808_0x8103_BodyBase, IJT808MessagePackFormatter<JT808_0x8103_0x0110>
{
public override uint ParamId { get; set; } = 0x0110;
/// <summary>
@@ -28,5 +28,20 @@ namespace JT808.Protocol.MessageBody
/// bit28-bit0 表示 CAN 总线 ID。
/// </summary>
public byte[] ParamValue { get; set; }
public JT808_0x8103_0x0110 Deserialize(ref JT808MessagePackReader reader, IJT808Config config)
{
JT808_0x8103_0x0110 jT808_0x8103_0x0110 = new JT808_0x8103_0x0110();
jT808_0x8103_0x0110.ParamId = reader.ReadUInt32();
jT808_0x8103_0x0110.ParamLength = reader.ReadByte();
jT808_0x8103_0x0110.ParamValue = reader.ReadArray(jT808_0x8103_0x0110.ParamLength).ToArray();
return jT808_0x8103_0x0110;
}

public void Serialize(ref JT808MessagePackWriter writer, JT808_0x8103_0x0110 value, IJT808Config config)
{
writer.WriteUInt32(value.ParamId);
writer.WriteByte((byte)value.ParamValue.Length);
writer.WriteArray(value.ParamValue);
}
}
}

Ladataan…
Peruuta
Tallenna