# NetOcto
**Repository Path**: iotplanet/net-octo
## Basic Information
- **Project Name**: NetOcto
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MulanPSL-2.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2026-04-24
- **Last Updated**: 2026-06-05
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README




桌面端 TCP/UDP 会话调试工具 — 多标签会话、ASCII/HEX 报文、结构化日志与按标签持久化的界面状态。
English: README.md
快速开始
·
报告缺陷
·
功能建议
(返回顶部)
### Built With * [![Tauri][Tauri]][Tauri-url] * [![React][React.js]][React-url] * [![Vite][Vite]][Vite-url] * [![Rust][Rust-badge]][Rust-url] * [![TypeScript][TypeScript]][TypeScript-url](返回顶部)
## Getting Started ### Prerequisites - **Node.js**(建议 LTS)及 **pnpm** 或 **npm**(仓库 Tauri 配置可能默认使用 `pnpm` 作为 dev/build 前置命令,也可改用 `npm`)。 - **Rust** stable 及 **Tauri 2** 所需平台目标。 ### Installation 1. 克隆仓库 ```sh git clone https://github.com/iotplanet/net-octo.git cd net-octo ``` 2. 安装依赖 ```sh pnpm install # 或:npm install ``` 3. 启动桌面应用(Tauri + Vite) ```sh pnpm tauri dev # 或:npm run tauri dev ``` 4. 可选 — 仅前端(无原生套接字) ```sh pnpm dev # 或:npm run dev ```(返回顶部)
## Usage 1. 新建或选择**会话标签**,选择 **TCP/UDP 服务端或客户端**,配置绑定地址或远端主机/端口后**启动**。 2. 在日志区查看 **RX** 数据;可调整换行、隐藏接收、自动滚动,并支持 JSON 日志导入/导出。 3. 在**报文编辑器**中编写 ASCII 或 HEX 载荷,单次发送或开启**循环发送**;使用预设快速重放。 4. **TCP Client** 可在侧栏配置**链路 · 重连与心跳**;重连时状态会反映在底栏统计与标签标题中。 5. 点击**工具**(扳手图标)使用 **Modbus RTU CRC-16**,可将结果复制或插入当前标签编辑器。 ### Tauri 命令(Rust → 前端) | 命令 | 说明 | |------|------| | `nc_start_session` | 为指定 `session_id` 与 `webview_label` 启动 TCP/UDP 会话。 | | `nc_stop_session` | 停止该标签的会话。 | | `nc_stop_server` | 停止服务端监听(若适用)。 | | `nc_send` | 向所选目标发送载荷。 | | `nc_disconnect` | 按当前实现断开 / 移除客户端映射。 | | `nc_reset_stats` | 重置该会话的 TX/RX 统计。 | _简明版说明另见 [README.zh.md](./README.zh.md)。_(返回顶部)
## Roadmap - [x] 多标签 TCP/UDP 会话与按标签持久化设置 - [x] TCP 客户端自动重连与应用层心跳 - [x] Modbus RTU CRC-16 工具箱(第一阶段) - [ ] **JT/T 808** — 终端定位与报文(帧解析、转义、校验、常用消息模板) - [ ] **JT/T 1078** — 视频 / 通道协商,作为可选会话类型或插件 - [ ] **生态扩展:** JT/T 809、905 等,以可插拔协议模块接入现有日志与下发管线 完整讨论与已知问题见 [Issues](https://github.com/iotplanet/net-octo/issues)。(返回顶部)
## Contributing 欢迎通过 Issue 或 Pull Request 参与改进。若你有协议字段表、测试向量或希望优先支持的报文类型,也欢迎在 Issue 中讨论模块划分(例如 `src/protocols/` + Rust 子模块)。 1. Fork 本仓库 2. 创建特性分支(`git checkout -b feature/AmazingFeature`) 3. 提交更改(`git commit -m 'Add some AmazingFeature'`) 4. 推送到分支(`git push origin feature/AmazingFeature`) 5. 开启 Pull Request(返回顶部)
### 主要贡献者(返回顶部)
## Contact **iotplanet** — [github.com/iotplanet/net-octo](https://github.com/iotplanet/net-octo) 项目地址:[https://github.com/iotplanet/net-octo](https://github.com/iotplanet/net-octo)(返回顶部)
## Acknowledgments * [Tauri](https://tauri.app/) — 桌面壳与 IPC * [HeroUI](https://www.heroui.com/) — React 组件库 * [Tokio](https://tokio.rs/) — Rust 侧异步网络(返回顶部)
[contributors-shield]: https://img.shields.io/github/contributors/iotplanet/net-octo.svg?style=for-the-badge [contributors-url]: https://github.com/iotplanet/net-octo/graphs/contributors [forks-shield]: https://img.shields.io/github/forks/iotplanet/net-octo.svg?style=for-the-badge [forks-url]: https://github.com/iotplanet/net-octo/network/members [stars-shield]: https://img.shields.io/github/stars/iotplanet/net-octo.svg?style=for-the-badge [stars-url]: https://github.com/iotplanet/net-octo/stargazers [issues-shield]: https://img.shields.io/github/issues/iotplanet/net-octo.svg?style=for-the-badge [issues-url]: https://github.com/iotplanet/net-octo/issues [license-shield]: https://img.shields.io/github/license/iotplanet/net-octo.svg?style=for-the-badge [license-url]: https://github.com/iotplanet/net-octo/blob/master/LICENSE [product-screenshot]: icon.svg [React.js]: https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB [React-url]: https://reactjs.org/ [Tauri]: https://img.shields.io/badge/Tauri-24C8D8?style=for-the-badge&logo=tauri&logoColor=fff [Tauri-url]: https://tauri.app/ [Vite]: https://img.shields.io/badge/Vite-646CFF?style=for-the-badge&logo=vite&logoColor=fff [Vite-url]: https://vitejs.dev/ [Rust-badge]: https://img.shields.io/badge/Rust-000000?style=for-the-badge&logo=rust&logoColor=white [Rust-url]: https://www.rust-lang.org/ [TypeScript]: https://img.shields.io/badge/TypeScript-3178C6?style=for-the-badge&logo=typescript&logoColor=fff [TypeScript-url]: https://www.typescriptlang.org/