xts_acts:基于 OpenHarmony 的物联网连接测试套件项目

用户可通过该项目进行物联网设备连接功能的测试与验证。它提供标准和轻量设备的测试代码,支持WiFi、BLE接口适配,包含编译配置与运行指导,助力确保物联网连接的稳定性与兼容性。【此简介由AI生成】

分支2Tags1
文件最后提交记录最后更新时间
10 个月前
1 年前
1 年前
11 个月前

iot_connect 操作指南

代码复制

标准设备

iotc_acts/iot_connect_standard 目录复制到 test/xts/acts/communication 目录下

轻量设备

iotc_acts/iot_connect_lite 目录复制到 test/xts/acts/communication 目录下

添加编译测试套件

标准设备

test/xts/acts/communication/BUILD.gn 文件中添加以下内容

"iot_connect_cpp_standard:ActsIotConnectTest",

Lightweight Devices

WiFi and BLE interface Adaptation Reference

WS63V100 Example:

Add the following in vendor/hihope/nearlink_dk_3863_xts/config.json:

{
    "product_name": "nearlink_dk_3863_xts",
    "subsystems": [
        ...
        {
            "subsystem": "communication",
            "components": [
                { "component": "wifi_lite", "features":[] },
                { "component": "iot_connect", "features":[] }
            ]
        }
    ]
}

Add the following in test/xts/acts/build_lite/BUILD.gn:

lite_component("acts_component") {
     if (ohos_xts_test_args != "") {
        ...
     } else {
        if (ohos_kernel_type == "liteos_m") {
            all_features += [
                ...
                "//test/xts/acts/communication_lite/lwip_hal:ActsLwipTest",   
                "//test/xts/acts/communication_lite/iot_connect_lite:ActsIotConnectTest", // 添加行
                "//test/xts/acts/commonlibrary_lite/file_hal:ActsUtilsFileTest",
                ...
            ]
        }
     }
}

Add the following content to the file device/soc/hisilicon/ws63v100/sdk/build/config/target_config/ws63/config.py:

{
    "ws63-liteos-xts": {
        "ram_component" : [
            "wifiservice", // ws63 wifi 适配
            "btservice", // ws63 ble 适配
            "iotc", // ws63 iotc 适配
            "module_ActsIotConnectTest", // 测试套
        ]
    }
}

Add the following content to the file device/soc/hisilicon/ws63v100/sdk/libs_url/ws63/cmake/ohos.cmake:

if(${TARGET_COMMAND} MATCHES "ws63-liteos-xts")
    set( "btservice"  "wifiservice" "iotc" "module_ActsIotConnectTest")

Compiling the ACTS Suite

Standard Setup

Execute the following compilation command in the test/xts/acts directory:

./build.sh product_name=rk3568 system_size=standard

Lightweight Device

ws63v100 Example

hb set
选择 mini/hihope/nearlink_dk_3863_xts
hb build -f --gn-args build_xts=true

Running the ACTS Test Suite

Standard Devices

Refer to the community ACTS test methodology.

Lightweight Devices

After flashing the image, the test suite runs automatically upon boot.

FAQ

1: For lightweight devices, use the MobaXterm tool to view logs and reports. It is recommended to enable the CR/LF option.

2: Fix for insufficient memory space when compiling the XTS image on ws63v100.
Modify the file:
device/soc/hisilicon/ws63v100/sdk/drivers/boards/ws63/evb/memory_config/include/memory_config_common.h

// 增加 APP_PROGRAM_LENGTH的大小
#define APP_PROGRAM_LENGTH (0x260000 - 0x300)

项目介绍

用户可通过该项目进行物联网设备连接功能的测试与验证。它提供标准和轻量设备的测试代码,支持WiFi、BLE接口适配,包含编译配置与运行指导,助力确保物联网连接的稳定性与兼容性。【此简介由AI生成】

定制我的领域