Comments (3)
这东西真烦人…… 不知道是不是我哪里理解错了?你这个报文转义后是13个字节?正常的808心跳报文应该是没有消息体的,也没有消息包封装项的。
原报文: 7e00020000978290002147029E7D017e
分隔符: 00020000978290002147029E7D01
转义后: 00020000978290002147029E7D (7D01 --> 7D) 长度为 13bytes ??????
0002 消息Id
0000 消息体属性
---> 消息体长度 --> 0
---> 无分包
---> 消息头共12字节
978290002147 terminalId
029E 流水号
7D ??????
from jt-framework.
@hjki456789 不过默认的消息转义处理在极端情况下好像真是有bug的……改了下,但是我真的不确定……。因为我见过有比较另类的实现厂商。
你可以自己实现 io.github.hylexus.jt808.codec.BytesEncoder
来覆盖默认的逻辑。
from jt-framework.
7d就是异或校验符
from jt-framework.
Related Issues (20)
- DWORD显示应该是有问题的。 HOT 1
- 不支持2019版的消息应答? HOT 1
- handler-scan配置错误
- 麻烦同意一下qq群加入 HOT 1
- 支持808协议的哪些版本? HOT 2
- 报警标志怎么知道具体含义?
- 解析终端参数查询结果 HOT 4
- netty报错 "refCnt: 0, decrement: 1" HOT 1
- 内存泄漏:LEAK: ByteBuf.release() was not called before it's garbage-collected HOT 1
- 服务端无法根据心跳主动断开连接 HOT 1
- 下发终端设置指令异常 HOT 1
- 是否支持JDK 8? HOT 1
- 报文解析错误 HOT 2
- 准备把Gradle升级到7.3.3,报错 HOT 1
- [Question] Logo HOT 1
- 能否安全地去掉注解的 order 属性?
- 在接收不是框架内规定范围内的jt808消息时,会抛异常 HOT 1
- 对于BCD码类型的解析BUG HOT 6
- io.netty.util.ResourceLeakDetector : LEAK: ByteBuf.release() was not called before it's garbage-collected HOT 2
- 前言中不允许有内容 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jt-framework.