{"id":18871555,"url":"https://github.com/newlifex/xlink","last_synced_at":"2025-08-13T23:03:45.843Z","repository":{"id":71463113,"uuid":"155994905","full_name":"NewLifeX/XLink","owner":"NewLifeX","description":"菲凡物联网云平台，提供物联网硬件设备接入和用户指令转发等核心功能","archived":false,"fork":false,"pushed_at":"2021-12-25T02:50:54.000Z","size":21457,"stargazers_count":62,"open_issues_count":0,"forks_count":32,"subscribers_count":17,"default_branch":"master","last_synced_at":"2023-10-25T17:56:25.624Z","etag":null,"topics":[],"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/NewLifeX.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,"governance":null}},"created_at":"2018-11-03T15:13:37.000Z","updated_at":"2023-05-04T04:47:30.000Z","dependencies_parsed_at":"2023-03-07T17:30:30.414Z","dependency_job_id":null,"html_url":"https://github.com/NewLifeX/XLink","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewLifeX%2FXLink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewLifeX%2FXLink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewLifeX%2FXLink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewLifeX%2FXLink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NewLifeX","download_url":"https://codeload.github.com/NewLifeX/XLink/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223636233,"owners_count":17177301,"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":[],"created_at":"2024-11-08T05:26:23.661Z","updated_at":"2025-08-13T23:03:45.822Z","avatar_url":"https://github.com/NewLifeX.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 物联网平台\n物联网平台为各种设备提供快速接入能力，支持Http/WebSocket/MQTT等多种标准协议以及自定义协议，提供设备管理、认证鉴权、指令下发等能力。\n演示地址：http://feifan.link  \n\n## 系统架构\n物联网平台由物联服务平台、物联管理平台和物联网关三部分组成，支持集群部署以支撑海量设备接入。\n\n1, 授权服务器  \n2, 设备服务器  \n3, 用户服务器  \n4, Web端  \n5, 手机APP  \n6, 硬件设备  \n\n### 通信协议\n基于新生命团队标准网络封包协议  \n标准网络封包协议：`1 Flag + 1 Sequence + 2 Length + N Payload`  \n1个字节标识位，标识请求、响应、错误、加密、压缩等；  \n1个字节序列号，用于请求响应包配对；  \n2个字节数据长度N，小端字节序，指示后续负载数据长度（不包含头部4个字节），解决粘包问题；  \nN个字节负载数据，数据内容完全由业务决定，最大长度65535=64k。  \n\n### 指令格式\n默认采用Json序列化，utf-8编码  \n\n标准指令例子如下：  \n请求，00013400{action:\"Login\",args:{user:\"Stone\",pass:\"password\"}}  \n响应，80011E00{result:true,data:\"大石头\"}  \n头部4字节，第一个字节最高位区分请求响应，第二个字节序列化，第三第四字节是长度，小字节序  \n\n## 新生命开源项目矩阵\n各项目默认支持net4.5/net4.0/netstandard2.0  \n\n|                               项目                               | 年份  |  状态  | .NET Core | 说明                                                |\n| :--------------------------------------------------------------: | :---: | :----: | :-------: | --------------------------------------------------- |\n|                             基础组件                             |       |        |           | 支撑其它中间件以及产品项目                          |\n|          [NewLife.Core](https://github.com/NewLifeX/X)           | 2002  | 维护中 |     √     | 算法、日志、网络、RPC、序列化、缓存、多线程         |\n|              [XCode](https://github.com/NewLifeX/X)              | 2005  | 维护中 |     √     | 数据中间件，MySQL、SQLite、SqlServer、Oracle        |\n|      [NewLife.Net](https://github.com/NewLifeX/NewLife.Net)      | 2005  | 维护中 |     √     | 网络库，千万级吞吐率，学习gRPC、Thrift              |\n|     [NewLife.Cube](https://github.com/NewLifeX/NewLife.Cube)     | 2010  | 维护中 |     √     | Web魔方，企业级快速开发框架，集成OAuth              |\n|    [NewLife.Agent](https://github.com/NewLifeX/NewLife.Agent)    | 2008  | 维护中 |     √     | 服务管理框架，Windows服务、Linux的Systemd           |\n|                              中间件                              |       |        |           | 对接各知名中间件平台                                |\n|    [NewLife.Redis](https://github.com/NewLifeX/NewLife.Redis)    | 2017  | 维护中 |     √     | Redis客户端，微秒级延迟，百亿级项目验证             |\n| [NewLife.RocketMQ](https://github.com/NewLifeX/NewLife.RocketMQ) | 2018  | 维护中 |     √     | 支持Apache RocketMQ和阿里云消息队列，十亿级项目验证 |\n|     [NewLife.MQTT](https://github.com/NewLifeX/NewLife.MQTT)     | 2019  | 维护中 |     √     | 物联网消息协议，客户端支持阿里云物联网              |\n|     [NewLife.LoRa](https://github.com/NewLifeX/NewLife.LoRa)     | 2016  | 维护中 |     √     | 超低功耗的物联网远程通信协议LoRaWAN                 |\n|   [NewLife.Thrift](https://github.com/NewLifeX/NewLife.Thrift)   | 2019  | 维护中 |     √     | Thrift协议实现                                      |\n|     [NewLife.Hive](https://github.com/NewLifeX/NewLife.Hive)     | 2019  | 维护中 |     √     | 纯托管读写Hive，Hadoop数据仓库，基于Thrift协议      |\n|             [NoDb](https://github.com/NewLifeX/NoDb)             | 2017  | 开发中 |     √     | NoSQL数据库，百万级kv读写性能，持久化               |\n|      [NewLife.Ftp](https://github.com/NewLifeX/NewLife.Ftp)      | 2008  | 维护中 |     √     | Ftp客户端实现                                       |\n|                             产品平台                             |       |        |           | 产品平台级，编译部署即用，个性化自定义              |\n|           [AntJob](https://github.com/NewLifeX/AntJob)           | 2019  | 维护中 |     √     | 蚂蚁调度系统，大数据实时计算平台                    |\n|         [Stardust](https://github.com/NewLifeX/Stardust)         | 2018  | 维护中 |     √     | 星尘，微服务平台，分布式平台                        |\n|            [XLink](https://github.com/NewLifeX/XLink)            | 2016  | 维护中 |     √     | 物联网云平台                                        |\n|           [XProxy](https://github.com/NewLifeX/XProxy)           | 2005  | 维护中 |     √     | 产品级反向代理                                      |\n|          [XScript](https://github.com/NewLifeX/XScript)          | 2010  | 维护中 |     ×     | C#脚本引擎                                          |\n|          [SmartOS](https://github.com/NewLifeX/SmartOS)          | 2014  | 维护中 |   C++11   | 嵌入式操作系统，完全独立自主，ARM Cortex-M芯片架构  |\n|         [GitCandy](https://github.com/NewLifeX/GitCandy)         | 2015  | 维护中 |     ×     | Git管理系统                                         |\n|                               其它                               |       |        |           |                                                     |\n|           [XCoder](https://github.com/NewLifeX/XCoder)           | 2006  | 维护中 |     √     | 码神工具，开发者必备                                |\n|        [XTemplate](https://github.com/NewLifeX/XTemplate)        | 2008  | 维护中 |     √     | 模版引擎，T4(Text Template)语法                     |\n|       [X组件 .NET2.0](https://github.com/NewLifeX/X_NET20)       | 2002  | 存档中 |  .NET2.0  | 日志、网络、RPC、序列化、缓存、Windows服务、多线程  |\n\n#### 新生命开发团队  \n网站：http://www.NewLifeX.com  \nQQ群：1600800  \n\n## 项目位置\nhttps://git.newlifex.com/NewLife/xLink\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewlifex%2Fxlink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnewlifex%2Fxlink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewlifex%2Fxlink/lists"}