Code Monkey home page Code Monkey logo

gps-jt808's Introduction

来源https://github.com/hylexus/jt-808-protocol 因为作者不维护了,然后现在我接触这个东西,所以来维护一个

jt-808-protocol

#备注 启动类 com.chauncy.jt808.App

测试数据

心跳包

7e000200000200000000150003327e
7e # 标识位
000200000200000000150003 # 消息头
    0002 # 消息ID
    0000 # 消息体属性,消息体属性每个位都为零,也即第12-15位的消息包封装项不存在,消息体也为空
    020000000015 # 终端手机号
    0003 # 流水号
32 # 校验码
7e # 标识位

鉴权包

7e010200060200000000150026313639333434397e

7e # 标识位
010200060200000000150026 # 消息头
    0102 # 消息ID
    0006 # 消息体属性
        0x0006=0b(0000,0000,0000,0110)
        消息体长度[0-9]==0b(00,0000,0110)==6字节
        数据加密方式[10-12]==0b(000)
        分包[13]==0,也即第12-15位的消息包封装项不存在
        保留位[14-15]==00
    020000000015 # 终端手机号
    0026 # 流水号
313639333434 # 消息体 6个字节
39 # 校验码	
7e # 标识位

注册包

7e0100002c0200000000150025002c0133373039363054372d54383038000000000000000000000000003033323931373001d4c142383838387b7e

7e # 标识位
010200060200000000150026 # 消息头
    0100 # 消息ID
    002c # 消息体属性
        0x002c=0b(0000,0000,0010,1100)
        消息体长度[0-9]==0b(00,0010,1100)==44字节
        数据加密方式[10-12]==0b(000)
        分包[13]==0,也即第12-15位的消息包封装项不存在
        保留位[14-15]==00
    020000000015 # 终端手机号
    0025 # 流水号
# 消息体 44个字节
002c0133373039363054372d54383038000000000000000000000000003033323931373001d4c14238383838 
	002c #省域 ID
	0133 #市县域 ID
	3730393630 #制造商 ID
	54372d5438303800000000000000000000000000 #终端型号
	30333239313730 #终端 ID
	……………………
	……………………
7b # 校验码	
7e # 标识位

gps-jt808's People

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.