Coder Social home page Coder Social logo

jt809-netty's Introduction

jt809 netty-springboot实现

实现

只采用了主链路通信

  • 登陆请求/应答
  • 心跳检测
  • 车辆实时定位信息上传

jt809协议注意点

  • jt809应当根据头尾标识进行粘包/半包处理,详见here
  • jt809由头标识+数据头+数据体+crc+尾标识, 针对数据头+数据体进行crc校验, 针对数据头+数据体+crc进行转义(去除数据中和头尾标识相同的数据,防止边界模糊)
  • server 应该只负责处理解析数据,将解析后的数据通过消息队列或其他方式发给业务模块处理,防止慢io堵塞整个server

jt809协议详见 here

server 运行

idea 打开项目后运行 Jt809Application

client运行

test目录下执行TcpClientDemo进行测试

jt809-netty's People

Contributors

cloudintheking avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.