Files
softbus_OPC/third_party/README.md
flower_linux 628ccf1409 phase 2 serial
2026-06-12 18:34:49 +08:00

33 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 第三方源码Vendor
本目录存放固定版本的第三方依赖源码,用于内网 CI、离线构建与客户交付无需在配置阶段从网络拉取。
| 目录 | 版本 | 许可证 | 用途 |
|------|------|--------|------|
| `open62541/` | v1.4.6commit `50ae40d3` | MPL-2.0 | OPC UA 协议栈 |
| `libmodbus/` | v3.1.10 | LGPL-2.1+ | edge Modbus RTU/TCP |
## open62541
- 上游:<https://github.com/open62541/open62541>
-`cmake/SoftbusThirdParty.cmake` 通过 `add_subdirectory` 引入
- 构建选项与项目一致Subscriptions / MethodCalls / Discovery ONEncryption OFF
### 升级步骤
1. 用新 tag 替换 `third_party/open62541/` 目录内容(保留 `LICENSE` 等上游文件)
2. 更新本表版本号与 commit
3. 全量编译并跑 OPC UA 联调(守护进程 + 边缘 + 客户端读写)
## libmodbus
- 上游:<https://github.com/stephane/libmodbus>
-`cmake/libmodbus/CMakeLists.txt` 编译为静态库 `modbus_vendor`,供 `softbus_edge` 链接
- 若系统已安装 `libmodbus-dev`pkg-config 可见),优先使用系统库;可用 `-DSOFTBUS_FORCE_VENDOR_LIBMODBUS=ON` 强制 vendor
### 升级步骤
1. 替换 `third_party/libmodbus/` 为新 tag
2. 更新本表版本号
3. 重新编译 `softbus_edge` 并验证串口读写