{"id":28564503,"url":"https://github.com/smallchi/jt809dotnetty","last_synced_at":"2025-06-10T13:36:28.859Z","repository":{"id":38000115,"uuid":"150733725","full_name":"SmallChi/JT809DotNetty","owner":"SmallChi","description":"JT809DotNetty","archived":false,"fork":false,"pushed_at":"2022-12-08T09:03:25.000Z","size":571,"stargazers_count":32,"open_issues_count":3,"forks_count":27,"subscribers_count":7,"default_branch":"master","last_synced_at":"2023-03-06T04:51:40.596Z","etag":null,"topics":["809","csharp","dotnetcore","gb809","jt809","jt809-dotnetty","jt809-gateway"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SmallChi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-28T11:56:11.000Z","updated_at":"2022-09-27T07:20:57.000Z","dependencies_parsed_at":"2023-01-25T14:15:54.593Z","dependency_job_id":null,"html_url":"https://github.com/SmallChi/JT809DotNetty","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmallChi%2FJT809DotNetty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmallChi%2FJT809DotNetty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmallChi%2FJT809DotNetty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmallChi%2FJT809DotNetty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SmallChi","download_url":"https://codeload.github.com/SmallChi/JT809DotNetty/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmallChi%2FJT809DotNetty/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259085489,"owners_count":22803208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["809","csharp","dotnetcore","gb809","jt809","jt809-dotnetty","jt809-gateway"],"created_at":"2025-06-10T13:36:27.997Z","updated_at":"2025-06-10T13:36:28.843Z","avatar_url":"https://github.com/SmallChi.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# JT809DotNetty\n\n由于脑子不够用，对于双链路的理解不是很到位，先解决目前需要对接的车辆数据。\n\n## 作为上级平台（企业对企业）\n\n目前只需要的是实时上传车辆定位信息。\n\n\u003e 注意：有些企业协议按照国标，但是链路没有遵循，所以企业对企业对接数据需要兼容不需要从链路的情况。\n\n针对1对1的好处，可以根据企业的车辆数据进行负载的调整和业务的划分。\n\n针对1对1的坏处，提高了维护成本。\n\n### 数据接入流程\n\n![superior_dataflow](https://github.com/SmallChi/JT809DotNetty/blob/master/doc/img/superior_dataflow.png)\n\n### 数据处理\n\n1. 从网关接收到GPS数据，解析GPS数据，再使用Google Protocol Buffer定义GPS数据结构存储在kafka中，这样可以跨语言开发。\n\n2. 要是了解大数据存储及有能力运维的情况下，可以采用大数据替代方案。这里采用小众模式（主从模式），分表分区的方式存储，每天大概8千万左右。\n\n### 使用例子\n\n\u003e 前提条件:需要安装kafka以及zookeeper\n\n![superior_demo](https://github.com/SmallChi/JT809DotNetty/blob/master/doc/img/superior_demo.png)\n\n## 作为下级平台（企业对企业）\n\n### 作为客户端主链路\n\n主链路登录请求消息=\u003e主链路登录应答消息=》成功=》主链路车辆动态信息交换_实时上传车辆定位信息消息\n\n当没有发送定位数据时，需要发送主链路连接保持请求消息（心跳）=\u003e主链路连接保持应答消息\n\n### 作为服务端从链路\n\n从链路连接请求消息=\u003e从链路连接应答消息\n\n从链路连接保持请求消息=\u003e从链路连接保持应答消息\n\n\u003e 注意：作为下级平台发送数据时，有些企业需要双链路，有些企业只需要主链路发送数据，不管从链路，这时候就需要一个简单的从链路网关只负责简单的保持链路畅通。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallchi%2Fjt809dotnetty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmallchi%2Fjt809dotnetty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallchi%2Fjt809dotnetty/lists"}