# coherent-dsp-simulator **Repository Path**: dadibao/coherent-dsp-simulator ## Basic Information - **Project Name**: coherent-dsp-simulator - **Description**: DSP仿真平台 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-28 - **Last Updated**: 2025-11-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # coherent-dsp-simulator 400G相干光DSP仿真平台 [https://img.shields.io/badge/python-3.9+-blue.svg](https://www.python.org/downloads/) [https://img.shields.io/badge/FastAPI-0.68.0-green.svg](https://fastapi.tiangolo.com) [https://img.shields.io/badge/license-MIT-blue.svg](LICENSE) 一个完整的400G相干光通信数字信号处理(DSP)仿真平台,实时可视化展示DSP算法在高速光通信中的关键作用。 ## ✨ 特性 - 🎯 **实时DSP处理流水线** - 色散补偿、偏振解复用、载波恢复等完整算法链 - 📊 **交互式可视化** - 实时星座图、性能指标、算法进度监控 - 🔬 **多调制格式支持** - QPSK、16-QAM、64-QAM等 - 🌐 **Web实时界面** - 基于WebSocket的实时数据流 - 🐳 **容器化部署** - Docker和Kubernetes支持 - 📈 **性能分析** - 详细的误码率和信号质量分析 ## 🚀 快速开始 ### 环境要求 - Python 3.9+ - Node.js 16+ - PostgreSQL 13+ - Redis 6.0+ ### 安装步骤 1. **克隆项目** ```bash git clone https://github.com/your-username/coherent-dsp-simulator.git cd coherent-dsp-simulator ``` 2. **安装后端依赖** ```bash python -m venv dsp_env source dsp_env/bin/activate # Linux/Mac # 或 dsp_env\Scripts\activate # Windows pip install -r requirements/dev.txt pip install -e . ``` 3. **安装前端依赖** ```bash cd src/web npm install npm run build cd ../.. ``` 4. **数据库初始化** ```bash python scripts/init_database.py ``` 5. **启动服务** ```bash # 开发模式 python scripts/start_dev.py # 或分别启动 python src/api/main.py & # 后端API cd src/web && npm run dev & # 前端开发服务器 celery -A src.core.tasks worker # 任务队列 ``` 访问 http://localhost:3000 开始使用! ## 📖 使用文档 - http://localhost:8000/api/docs - docs/architecture.md - docs/algorithms.md - docs/deployment.md ## 🏗️ 项目结构 ``` coherent-dsp-simulator/ ├── src/ # 源代码 │ ├── core/ # 核心DSP算法 │ ├── api/ # FastAPI后端 │ ├── web/ # Vue.js前端 │ └── analytics/ # 性能分析 ├── tests/ # 测试用例 ├── docker/ # 容器配置 ├── k8s/ # Kubernetes配置 └── docs/ # 文档 ``` ## 🔧 配置说明 复制并修改环境配置文件: ```bash cp config/.env.example config/.env ``` 编辑 `config/.env` 文件设置数据库连接等参数。 ## 🐳 Docker部署 ```bash # 开发环境 docker-compose -f docker/docker-compose.dev.yml up -d # 生产环境 docker-compose -f docker/docker-compose.prod.yml up -d ``` ## 🤝 参与贡献 欢迎提交Issue和Pull Request!详见CONTRIBUTING.md。 ## 📄 许可证 本项目采用MIT许可证,详见LICENSE文件。 ## 🙏 致谢 感谢以下开源项目: - https://fastapi.tiangolo.com - 高性能Web框架 - https://vuejs.org - 渐进式JavaScript框架 - https://chartjs.org - 可视化图表库 #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)