SmallChi / JT808

JT/T808 protocol,JT808 protocol, GB808 protocol (support 2011, 2013, 2019 version) JT/T808协议、JT808协议、GB808协议(支持2011、2013、2019版本)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

8103设置终端参数解析有误

Luke-Tang opened this issue · comments

  1. JT808_0x8103_Factory中没有添加JT808_0x8103_0x0032,导致0x0032参数不能解析

  2. 0x0110参数解析有问题,报异常了。
    测试数据:7E8103000e0135123443213039010000011008ffffffffffffffffed7E
    body部分为: 010000011008ffffffffffffffff 其中01为参数个数, 00000110为参数ID, 08为参数长度8字节,ffffffffffffffff为8字节参数值
    异常:
    at System.Text.Json.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource, Int32 currentDepth, Byte token, JsonTokenType tokenType) at System.Text.Json.Utf8JsonWriter.WriteStringEscapePropertyOrValue(ReadOnlySpan1 propertyName, ReadOnlySpan1 value, Int32 firstEscapeIndexProp, Int32 firstEscapeIndexVal) at System.Text.Json.Utf8JsonWriter.WriteStringEscape(ReadOnlySpan1 propertyName, ReadOnlySpan1 value) at System.Text.Json.Utf8JsonWriter.WriteString(ReadOnlySpan1 propertyName, ReadOnlySpan1 value) at System.Text.Json.Utf8JsonWriter.WriteString(String propertyName, String value) at JT808.Protocol.JT808Package.Analyze(JT808MessagePackReader& reader, Utf8JsonWriter writer, IJT808Config config) at JT808.Protocol.JT808Serializer.Analyze(ReadOnlySpan`1 bytes, JT808Version version, JsonWriterOptions options, Int32 minBufferSize) at JTTools.Pages.JT808Analyze.Query() in D:\MyProject\JTTools\src\JTTools\Pages\JT808Analyze.razor:line 111