初始提交:网络调试助手(串口/TCP/UDP)

This commit is contained in:
2026-08-07 10:01:41 +08:00
commit e9b3100322
5 changed files with 1986 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
# Python
__pycache__/
*.pyc
*.pyo
# PyInstaller build output
build/
dist/
*.spec.bak
# Config/backup artifacts (not part of source)
*.corrupt.bak
corrupt_backup.py
decompiled_network_debugger.py
network_debugger_repaired.py
clean_consts.txt
mod_doc.txt
docs.json
+29
View File
@@ -0,0 +1,29 @@
# 网络调试助手
串口 / TCP / UDP 网络调试客户端,基于 Python + PySide6。
## 主要功能
- **串口**:波特率、数据位、校验位、停止位可配置,自动刷新端口
- **TCP / UDP**:客户端/服务器模式,支持多客户端
- **收发**:文本 / 十六进制格式,时间戳、回车发送、定时发送
- **自动应答**:应答规则多选,按命中模板拼包回复(固定字节/时间戳/长度/CRC/序号/接收数据)
- **批量发送**:多条定时发送,可循环,条目可增删与上下移动
- **日志**:按小时自动保存,保留一个月循环覆盖
- **配置**:应答配置与批量发送配置可导出 / 导入(JSON)
- **图标**:应用图标 `网络调试.ico`
## 运行
```bash
pip install PySide6 pyserial
python network_debugger.py
```
## 生成 exe
```bash
python -m PyInstaller "网络调试助手.spec"
```
输出在 `dist/` 目录。
+1900
View File
File diff suppressed because it is too large Load Diff
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

+39
View File
@@ -0,0 +1,39 @@
# -*- mode: python ; coding: utf-8 -*-
a = Analysis(
['network_debugger.py'],
pathex=[],
binaries=[],
datas=[('网络调试.ico', '.')],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='网络调试助手',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
icon='网络调试.ico',
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)