diff --git a/README.en.md b/README.en.md new file mode 100644 index 0000000000000000000000000000000000000000..1e06250f82191fcd4b85e7b255770efca21fca4e --- /dev/null +++ b/README.en.md @@ -0,0 +1,58 @@ +# Modbus Communication Demo Project + +## Project Introduction +This is a Qt-based Modbus communication demo project that includes implementations for both client and server. The project uses QML for interface development and demonstrates the basic functions of Modbus TCP communication, including data reading and writing operations. + +## Main Features +- Modbus client connect/disconnect from the server +- Read device data (ID, name, temperature, humidity, pressure, etc.) +- Write device data (supports various device parameter settings) +- Real-time status monitoring +- Error handling mechanism + +## Technical Features +- Developed using the Qt framework (including modules such as Qt5Core, Qt5Network) +- QML used for building the user interface +- Core implementation of Modbus client and server included +- Supports multiple Qt widgets and styles (Fusion, Material, Universal, etc.) + +## Directory Structure +``` +.vscode/ # Visual Studio Code configuration files +debug/ # Debug version build output +release/ # Release version build output +``` + +## Main Files +- **main.cpp** - Program entry point +- **main.qml** - QML main interface file +- **ModbusClientPage.qml** - Client interface definition +- **ModbusServerPage.qml** - Server interface definition +- **mbclient.cpp/h** - Core implementation of Modbus client +- **mbserver.cpp/h** - Core implementation of Modbus server +- **ModbusDemo.pro** - Qt project configuration file + +## Development Environment +- Qt5 framework +- QML support +- C++11 or higher + +## Usage Instructions +1. Build the project +2. Start the server +3. Connect to the server using the client +4. Perform data reading/writing operations + +## Notes +- The project includes multiple Qt-related dynamic link library files (.dll); ensure these files are in the same directory as the executable at runtime +- Contains multilingual support files (.qm) for internationalization +- Uses files generated by Qt's Meta-Object Compiler (MOC) for the signal/slot mechanism + +## License Information +This project follows Qt's open-source license agreement. For details, please refer to the license declaration in the project source code. + +## Contact Information +[Insert developer contact information here] + +## Version History +[Insert version update records here] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b4846777ed9d131007f013aab6ac0b2efa37ef9e --- /dev/null +++ b/README.md @@ -0,0 +1,62 @@ + + +Based on the code map provided, here's a README.md for the project: + +# Modbus通信演示项目 + +## 项目介绍 +这是一个基于Qt的Modbus通信演示项目,包含客户端和服务器端实现。项目使用QML进行界面开发,展示了Modbus TCP通信的基本功能,包括数据读取和写入操作。 + +## 主要功能 +- Modbus客户端连接/断开服务器 +- 读取设备数据(ID、名称、温度、湿度、压力等) +- 写入设备数据(支持各种设备参数设置) +- 实时状态监控 +- 错误处理机制 + +## 技术特点 +- 使用Qt框架开发(包含Qt5Core, Qt5Network等模块) +- QML用于构建可视化界面 +- 包含Modbus客户端和服务器的核心实现 +- 支持多种Qt控件和样式(Fusion, Material, Universal等) + +## 目录结构 +``` +.vscode/ # Visual Studio Code配置文件 +debug/ # 调试版本编译输出 +release/ # 发布版本编译输出 +``` + +## 主要文件 +- **main.cpp** - 程序入口 +- **main.qml** - QML主界面文件 +- **ModbusClientPage.qml** - 客户端界面定义 +- **ModbusServerPage.qml** - 服务端界面定义 +- **mbclient.cpp/h** - Modbus客户端核心实现 +- **mbserver.cpp/h** - Modbus服务器核心实现 +- **ModbusDemo.pro** - Qt项目配置文件 + +## 开发环境 +- Qt5框架 +- QML支持 +- C++11或更高版本 + +## 使用方法 +1. 编译项目 +2. 启动服务器端 +3. 使用客户端连接服务器 +4. 进行数据读取/写入操作 + +## 注意事项 +- 项目包含多个Qt相关的动态链接库文件(.dll),确保运行时这些文件在可执行文件的同一目录下 +- 包含多语言支持文件(.qm),用于国际化 +- 使用了Qt的元对象编译器(MOC)生成的文件,用于信号/槽机制 + +## 版权信息 +项目遵循Qt的开源许可协议,具体请查看项目源码中的许可声明。 + +## 联系方式 +[在此处添加开发者联系方式] + +## 版本历史 +[在此处添加版本更新记录] \ No newline at end of file