# tcp5 **Repository Path**: topxgun/tcp5 ## Basic Information - **Project Name**: tcp5 - **Description**: tcp transfer 4 uav&gcs - **Primary Language**: NodeJS - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-04-05 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 源码部署方案 1. 一台装有node运行环境的服务器 - Ubuntu下快速搭建node.js 环境,请参照 [Ubuntu下快速搭建node.js 环境](http://jingyan.baidu.com/article/046a7b3edebf38f9c27fa9bc.html) 2. 打开命令行,运行`git clone https://git.oschina.net/topxgun/tcp5.git` 3. `cd tcp5 & npm start` ----------------------------------------------------------------------------------------------- ### 地面站 1. 建立连接 连接建立之后,地面站发送0x02,等待服务器返回。 2. 监听服务器端返回 如果服务器返回"1",表示当前有飞机在线,可以直接上传指令;如果返回"0",表示当前没有飞机在线,等待飞机上线或执行其他操作。 3. 持续监听服务器 "200" 飞机上线通知 "404" 飞机下线通知 "500" 通信出现故障通知 ### 4g模块 1. 建立连接 连接建立之后,4g发送0x01,等待服务器返回。 2. 监听服务器返回数据 "500" 通信出现故障通知