# network-rc **Repository Path**: jiangyuhuo/network-rc ## Basic Information - **Project Name**: network-rc - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-13 - **Last Updated**: 2021-03-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 树莓派网络遥控车软件 Network RC Network RC 是运行在树莓派和浏览器上的网络遥控车软件。具备以下特性: - 低延迟控制和网络图传 - 通道自定义(27 个 高低电平或者 PWM 通道) - 支持多摄像头 - 支持触屏操作、游戏手柄、枪控、板控 - 支持实时语音收听和语音喊话 - 内置网络穿透 - 系统语音播报 - 播放音频 - 远程分享 ## 依赖 - ffmpeg: 运行前请确保树莓派上安装了 ffmpeg,安装方法 `sudo apt install ffmpeg -y` - nodejs > **注意:在最新树莓派系统上存在兼通性问题, 使用此版本系统** ## 使用教程 - 改装 RC 遥控车 - 视频教程: [4G 网络 RC 遥控车 02 - DIY 网络控制改造教程](https://www.bilibili.com/video/BV1iK4y1r7mD) - 图文教程: [WiFi 网络遥控车制作教程](https://blog.esonwong.com/WiFi-4G-5G-%E7%BD%91%E7%BB%9C%E9%81%A5%E6%8E%A7%E8%BD%A6%E5%88%B6%E4%BD%9C%E6%95%99%E7%A8%8B/) - 4G 远程控制 - 视频教程:[4G 5G 网络 RC 遥控车 03 - 无限距离远程遥控?](https://www.bilibili.com/video/BV1Xp4y1X7fa) - 图文教程:[网络遥控车互联网控制教程](https://blog.esonwong.com/%E7%BD%91%E7%BB%9C%E9%81%A5%E6%8E%A7%E8%BD%A6%E4%BA%92%E8%81%94%E7%BD%91%E6%8E%A7%E5%88%B6%E6%95%99%E7%A8%8B/) ## 代码贡献指引 ```bash git clone https://github.com/itiwll/network-rc.git cd network-rc/front-end yarn # or npm install yarn build # or npm run build cd .. yarn # or npm install sudo node index.js ``` 打开 `http://[你的树莓派 ip 地址]:8080` ## 使用 ```bash # 基本使用 node index.js # 设置密码 node index.js -p password # 启用网络穿透 node index.js -f -o 9088 --tsl # 自定义网络穿透服务器 node index.js -f -o 9088 --frpServer xxxxxxxxxx --frpServerPort xxx --frpServerToken xxxxx ``` ## 接线图 ![GPIO](./gpio.jpg) ## 树莓派软件下载 - [network-rc.esonwong.com](https://network-rc.esonwong.com/download) - [github](https://github.com/itiwll/network-rc/releases) ## ToDo - [ ] 设置麦克风灵敏度 - [ ] 一键安装脚本 - [x] 添加远程获取 frps 配置的功能 - [x] 自定义通道 - [x] 修复云台舵机的卡顿 - [x] 保存车子运行的相关状态 - [x] 检测摄像头分辨率 - [x] 修复摄像头数量检测错误 - [x] 播放手机端录制的音频 - [x] 支持自定义证书 - [x] frp 运行添加 user 参数 - [x] ~~替换播放声音的程序~~ - [x] 更新支持者列表 - [x] 添加摄像头画面重置按钮 - [x] 更新内置 frp 配置 - [x] 为本人提供的 frp 服务启用 https - [x] 网络连接响应时间超过 500 毫秒自动刹车 - [x] ping 值显示 - [x] 支持手柄 - [x] 网络穿透 - [x] Ai 控制(暂时移除) - [x] 支持车辆麦克风 - [x] ~~使用 webrtc 点对点音视频控制信号传输~~(延迟高已弃用) - [x] ~~使用 MSE~~ (延迟高已弃用)) - [x] 支持多摄像头 - [x] 编辑/锁定状态 - [x] 检测摄像头数量 ## 社群 ### 微信群 交流请移步微信群,入群方法添加微信 `EsonWong_` 备注 `Network RC` ## 捐赠 ![微信赞赏吗](https://blog.esonwong.com/asset/wechat-donate.jpg) ## 链接 - [作者 B 站主页](https://space.bilibili.com/96740361) - [爱发电支持 Network RC](https://afdian.net/@esonwong) ## Credits - [ws-avc-player](https://github.com/matijagaspar/ws-avc-player) - [@clusterws/cws](https://github.com/ClusterWS/cWS) - [rpio](https://github.com/jperkin/node-rpio) - [rpio-pwm](https://github.com/xinkaiwang/rpio-pwm) - [xf-tts-socket](https://github.com/jimuyouyou/xf-tts-socket) - Eson Wong - 提供免费的 frp 服务器