modbus rtu 1.2

This commit is contained in:
flower_linux
2026-04-14 15:39:04 +08:00
parent b44f5e275e
commit 4f2ada08c8
31 changed files with 749 additions and 300 deletions

View File

@@ -30,7 +30,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOMOC ON)
# 查找Qt6守护进程只需要 Core/DBus/Network/SerialPort/Sql
find_package(Qt6 6.5 REQUIRED COMPONENTS Core SerialPort Network Sql DBus)
find_package(Qt6 6.5 REQUIRED COMPONENTS Core SerialPort Network Sql DBus HttpServer)
include(CheckIncludeFileCXX)
# 检测编译平台
@@ -62,6 +63,14 @@ qt_add_executable(softbus_daemon
src/api/ipc_dbus/IpcDBus.cpp
src/api/ipc_dbus/CommandDispatcher.h
src/api/ipc_dbus/CommandDispatcher.cpp
src/api/http/RestApiServer.h
src/api/http/RestApiServer.cpp
src/api/http/RestApiHttpConfig.h
src/api/http/RestApiHttpConfig.cpp
src/api/http/RestApiCommandHttp.h
src/api/http/RestApiCommandHttp.cpp
src/api/http/RestApiRoutes.h
src/api/http/RestApiRoutes.cpp
# device types
src/devices/DeviceTypes.h
@@ -125,6 +134,7 @@ qt_add_executable(softbus_daemon
src/core/plugin_system/PluginManager.cpp
src/core/plugin_system/PluginHost.h
src/core/plugin_system/PluginHost.cpp
src/core/models/RawBusMessage.h
plugins/protocols/modbus_rtu/parser/ModbusRtuProtocolPlugin.h
plugins/protocols/modbus_rtu/parser/ModbusRtuProtocolPlugin.cpp
plugins/protocols/modbus_rtu/mapper/ModbusRtuProtocolMapperPlugin.h
@@ -187,6 +197,7 @@ target_link_libraries(softbus_daemon
Qt6::DBus
Qt6::SerialPort
Qt6::Network
Qt6::HttpServer
)
# Platform-specific deps