...
| Sv translation | ||
|---|---|---|
| ||
一、测试文件下载与设备基础信息1.测试文件下载 |
...
测试音乐下载 :test.wav |
...
MobaXterm_Portable_v23.0_cn.zip 2 |
...
设备基础信息
...
. 设备基础信息
|
...
3. 核心硬件配置
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
|
...
|
...
|
...
4. 供电参数
|
...
预留 POE 电源接口,支持外挂 POE 模块供电(需单独配置)
二、电源基础测试1 |
一、电源基础测试
...
. 电源接口功能验证2. 测试环境与工具适应性
|
...
3.基础测试流程规范1.直流电源接口兼容性测试 2.输入电压下限验证 |
...
...
三、有线通信接口测试 |
...
二、有线通信接口测试
1.RS232 串口测试
RS232对应设备节点:ttyS3(V1.2 版本)/ ttyS4 (V1.4 版本)
测试准备:
1.确认串口节点
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 方法1:查看所有串口
ls -la /dev/ttyS*
# 方法2:根据硬件版本确定
# 查看板卡版本标记或运行:
cat /proc/device-tree/model
# 如果显示包含V1.4,则使用/dev/ttyS4
# 如果显示包含V1.2,则使用/dev/ttyS3 |
2.两分钟回环测试
| 代码块 |
|---|
1. |
...
Debug 串口(UART)测试
步骤 1:硬件连接
步骤 2:PC 端串口工具配置
步骤 3:启动日志输出测试
2.USB 2.0/3.0接口测试1. 设备连接状态识别 通过以下命令确认设备是否接入系统并获取设备节点信息:
| |||||||
|
...
结果说明:
|
2.RS485串口测试
1.测试目的
验证 RK3588 设备的 RS485 串口(映射为系统设备/dev/ttyS0)与电脑端 UART Assist 工具的双向数据通信功能,确保串口硬件、驱动及链路的可用性。
2.测试环境
| 设备 / 工具 | 配置信息 |
|---|---|
| RK3588 设备 | 系统:嵌入式 Linux(如 Armbian) RS485 串口: /dev/ttyS0(波特率 115200、8N1) |
| 电脑端 | 工具:UART Assist(串口调试助手) 硬件:USB 转 RS485 模块(如 CH340+MAX485) |
| 链路 | RS485 接线:RK3588 的 RS485_A 接模块 A、RS485_B 接模块 B、共地(GND) |
3.硬件接线
4.测试步骤
...
2.通过详细信息验证
结果说明:输出中 1.1.挂载 USB 设备:
1.2. 测试顺序写速率:
|
2.电脑端 UART Assist 输入测试数据(如 “RK3588 RS485 Test”),(如下图)点击 “发送”;
3.观察 RK3588 终端1(如下图),若显示接收的测试数据,则单向接收功能正常。
1.3.测试顺序读速率:
1.4.测试后清理临时文件:
| ||||||||||||||
# 步骤1:准备测试工具
# 将uart测试程序上传到设备(如果从Windows传输)
adb push C:\Users\Administrator\Desktop\uart ./
# 步骤2:赋予权限
chmod 777 ./uart
# 步骤3:执行测试
#发送数据
./uart /dev/ttyS0
# 输入测试文本(如下图) |
3.USB接口测试
1. 设备连接状态识别
通过以下命令确认设备是否接入系统并获取设备节点信息:
结果说明:命令执行完毕后会显示传输时间和速率,USB2.0 实际写速率通常在 10 - 30MB/s,USB3.0 实际写速率通常在 50 - 150MB/s(受设备本身性能影响)。 2.1.安装 fio:
|
结果说明:lsusb输出中,ID 1d6b:0002对应 USB2.0 控制器,ID 1d6b:0003对应 USB3.0 控制器,可通过设备挂载的总线判断其关联的 USB 版本。
2.2.fio测试命令代码块:
|
2.通过详细信息验证
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 查看指定USB设备的详细参数,搜索Speed字段
lsusb -v | grep -E "Speed|Device" |
结果说明:输出中Speed: 480Mbit/s对应 USB2.0,Speed: 5000Mbit/s对应 USB3.0。
1.1.挂载 USB 设备:
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 假设通过lsblk确认USB设备节点为/dev/sda1,创建挂载点并挂载
mkdir -p /mnt/usb
mount /dev/sda1 /mnt/usb |
1.2. 测试顺序写速率:
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 写入1GB零数据到USB设备,绕过缓存确保结果真实
dd if=/dev/zero of=/mnt/usb/testfile bs=1M count=1024 conv=sync oflag=direct |
1.3.测试顺序读速率:
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 读取USB设备中的测试文件并丢弃,测试读取速度
dd if=/mnt/usb/testfile of=/dev/null bs=1M iflag=direct |
1.4.测试后清理临时文件:
| 代码块 | ||||
|---|---|---|---|---|
| ||||
rm /mnt/usb/testfile |
结果说明:命令执行完毕后会显示传输时间和速率,USB2.0 实际写速率通常在 10 - 30MB/s,USB3.0 实际写速率通常在 50 - 150MB/s(受设备本身性能影响)。
2.1.安装 fio:
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# Ubuntu/Debian
sudo apt install fio -y |
2.2.fio测试命令代码块:
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 顺序写测试
fio -filename=/temp/testfile -direct=1 -ioengine=psync -iodepth 128 -rw=write -bs=1M -size=3G -numjobs=4 -runtime=30 -group_reporting -name=iopstest -time_based=1
# 顺序读测试
fio -filename=/temp/testfile -direct=1 -ioengine=psync -iodepth 128 -rw=read -bs=1M -size=3G -numjobs=4 -runtime=30 -group_reporting -name=iopstest -time_based=1
# 随机写测试
fio -filename=/temp/testfile -direct=1 -ioengine=psync -iodepth 128 -rw=randwrite -bs=1M -size=3G -numjobs=4 -runtime=30 -group_reporting -name=iopstest -time_based=1
# 随机读测试
fio -filename=/temp/testfile -direct=1 -ioengine=psync -iodepth 128 -rw=randread -bs=1M -size=3G -numjobs=4 -runtime=30 -group_reporting -name=iopstest -time_based=1
# 随机读写混合测试(默认读写比例 50:50)
fio -filename=/temp/testfile -direct=1 -ioengine=psync -iodepth 128 -rw=randrw -bs=1M -size=3G -numjobs=4 -runtime=30 -group_reporting -name=iopstest -time_based=1 |
三、显示与视频接口测试
1.HDMI输出测试
1.规格说明:
| 接口 | 核心规格 | 关键限制 |
|---|---|---|
| HDMI 2.1 | 单接口、支持 8K@30Hz/4K@60Hz、HDCP2.3 | 需 HDMI2.1 认证线缆,最大带宽 48Gbps |
3.Type-C接口测试1.ADB功能测试1.1. ADB基础连接测试 测试目的:验证 Type‑C 接口可正常建立 ADB 连接,设备可被 PC 识别。 测试步骤: 1.用 Type‑C 数据线连接待测设备与 PC。 2.设备端开启「开发者选项」→「USB 调试」。 3.PC 端执行 4.执行 预期结果: 1.adb devices 输出设备序列号,状态为 device。 2.成功进入设备 shell,无连接超时或权限拒绝。 1.2. ADB 核心指令执行测试 测试目的:验证 ADB 核心指令在 Type‑C 链路下可正常执行。 测试步骤: 1.用文件传输: 执行 adb push test_file /data/ 推送文件至设备。 执行 adb pull /data/test_file ./ 拉取文件至 PC。 2.设备控制: 执行 adb reboot 重启设备,重启后重新执行 adb devices。 3.日志抓取: 执行 adb logcat -d > adb_log.txt 抓取系统日志。 预期结果: 1.文件传输无失败,拉取文件与原文件大小一致。 2.重启后 ADB 连接可自动恢复。 3.日志文件非空,包含有效运行日志。 1.3. Type‑C 插拔与稳定性测试 测试目的:验证 Type‑C 接口在插拔、晃动等场景下 ADB 连接的稳定性。 测试步骤: 1.单次插拔:插拔数据线 10 次,每次插拔后执行 adb devices。 2.连续插拔:快速插拔 20 次,间隔 1–2 秒。 3.晃动测试:保持连接状态,轻微晃动数据线,观察连接状态。 预期结果: 1.每次插拔均可正常识别设备,无 offline 状态。 2.晃动过程中 ADB 连接不中断,无 IO 错误。 1.4. Type‑C 插拔与稳定性测试 测试目的:验证高负载场景下 Type‑C ADB 功能的稳定性。 测试步骤: 1.大文件传输:推送 1GB 文件至设备,同时执行 adb logcat。 2.多指令并发:同时执行 adb push、adb shell top、adb logcat。 3.长时间连接:保持 ADB 连接 24 小时,每小时执行 adb devices。 预期结果: 1.大文件传输过程中 ADB 不中断,日志抓取正常。 2.多指令并发无卡死或超时,CPU 占用 ≤ 80%。 3.24 小时内连接状态持续为 device,无自动断开。 2.Type-C 转 hub(USB)测试2.1 设备识别与兼容性测试前置条件: 1.开发板上电正常,系统启动完成 2.Type-C 转 USB Hub 连接正常 操作步骤: 1.将 Type-C 端插入开发板 Type-C 接口 2.将 USB 设备(U 盘、鼠标、键盘)依次插入 Hub 的 USB 口 3.执行命令 lsusb 查看设备列表 4.查看系统日志 dmesg | grep usb 预期结果: 1.所有 USB 设备均能被系统正确识别,lsusb 输出中可见对应设备 ID 2.系统日志无 USB 设备识别失败或报错信息 3.U 盘可正常挂载 / 读写,鼠标 / 键盘可正常响应 2.2 数据传输速率测试 前置条件: 1.同 2.1 2.准备 1GB 测试文件(test.img) 操作步骤: 1.插入 USB3.0 U 盘并挂载到 /mnt/usb 2.执行文件拷贝命令:
3.记录传输耗时,计算速率:速率 = 1024MB / 耗时(秒) 4.反向拷贝回开发板,重复测试 3 次 预期结果: 1.USB3.0 模式下传输速率 ≥ 80MB/s(约 640Mbps) 2.USB2.0 模式下传输速率 ≥ 30MB/s(约 240Mbps) 3.无数据丢失、无传输中断、无文件损坏 2.3 供电能力测试 前置条件: 1.同 3.1 2.准备 2.5 英寸移动硬盘(需 5V/0.5A 以上供电) 操作步骤: 1.将移动硬盘插入 Hub 的 USB 口 2.观察硬盘指示灯是否亮起,执行 lsblk 查看设备节点 3.进行大文件读写操作,持续 10 分钟 4.查看系统日志是否有供电不足或设备掉线信息 预期结果: 1.移动硬盘正常启动,系统可识别并读写 2.长时间读写过程中无设备掉线、无数据损坏 3.系统日志无 over-current 或供电相关报错 2.4. 异常场景测试 1.热插拔测试:在数据传输过程中插拔 USB 设备,验证系统稳定性 2.低电压测试:降低开发板供电电压至 4.5V,验证 USB 设备是否正常工作 3.多设备并发测试:同时插入多个 USB 设备,验证 Hub 负载能力 3.Type-C 转 HDMI/DP 输出测试3.1 视频输出功能测试 前置条件: 1.开发板上电正常,系统启动完成 2.Type-C 转 HDMI/DP 转接器连接正常,显示器通电 操作步骤: 1.将 Type-C 端插入开发板 Type-C 接口,HDMI/DP 端插入显示器 2.执行显示配置命令(Linux:xrandr;Android:系统设置) 3.切换显示输出到 HDMI,设置分辨率为 1080P@60Hz 4.观察显示器画面,检查是否有花屏、黑屏、闪烁 预期结果: 1.显示器自动点亮,显示开发板桌面 / 画面 2.分辨率、刷新率可正常配置,画面清晰无失真 3.无花屏、无黑屏、无闪烁、无延迟 3.2 音视频同步输出测试 前置条件: 1.同 3.1 2.显示器支持 HDMI/DP 音频输出 操作步骤: 1.播放 1080P 测试视频(带音轨) 2.观察画面流畅度,同时监听显示器扬声器 3.检查音画是否同步,有无杂音、断音 预期结果: 1.视频画面流畅,帧率稳定(≥30fps) 2.音画同步,无延迟、无卡顿 3.声音清晰,无杂音、无断音、无爆音 3.3 热插拔测试 前置条件: 同 3.1 操作步骤: 1.先连接 Type-C 转 HDMI/DP,确认显示正常 2.拔掉 HDMI/DP 端,观察系统反应 3.重新插入 HDMI/DP 端,观察系统反应 4.重复热插拔 10 次,记录每次结果 预期结果: 1.拔掉 HDMI/DP 后,系统自动切回板载显示或黑屏(符合设计预期) 2.重新插入后,显示器自动恢复显示,无需手动配置 3.热插拔过程中无系统崩溃、无驱动报错 3.4. 异常场景测试 1.分辨率切换测试:在 720P/1080P/4K 之间切换,验证显示兼容性 2.长时间播放测试:连续播放视频 24 小时,验证稳定性 3.低分辨率输出测试:设置为 480P,验证向下兼容能力 四、显示与视频接口测试1.HDMI输出测试1.规格说明:
1.显示接口及分辨率列表查询
2.音频输出测试步骤(命令行操作)
2.Camera(摄像头)功能测试
测试步骤: 步骤1:摄像头设备节点识别测试 1.打开终端,执行以下命令查看系统是否识别到摄像头设备:
2.【补充校验】执行以下命令确认设备可用性(可选,增强严谨性):
步骤 2:摄像头实时预览测试 1.开发板接有 HDMI显示器,执行以下命令进行实时预览:
2.观察 HDMI 显示器画面,持续预览 10 秒后,按 3.视频硬解码性能测试1.测试环境(MPP 视频硬解码设备) 基于 Rockchip MPP(Media Process Platform)框架的硬解码工具信息:
2.测试步骤:
2.3.测试验证要点
3.开启第二个终端进行cpu占用率监控 3.1操作步骤
3.2系统状态输出示例(终端执行后输出如下,红框为核心监控项)
3.3状态分析
3.4测试结论:视频功能播放正常,无卡顿、花屏现象;CPU 占用率低(硬解码加速生效),系统资源负载符合预期。 五、音频接口测试
1.音频输出功能验证
2.音频输入功能验证1.列出所有音频采集设备
2.典型输出示例
4.录音测试(实时采集+播放)
六、存储接口测试M.2接口测试1.硬件信息完整性 2.基础连接有效性 1.设备识别验证
预期结果:输出中显示 SSD 对应的磁盘设备(如 2.磁盘信息读取
预期结果:显示 SSD 的容量、分区表类型(如 GPT),PCIe x4 总线 + NVMe 存储协议。 3.读写性能测试
七、无线通信模块测试1.WIFI测试2.基础连接稳定性 1.启动NetworkManager服务
2.扫描并连接WiFi网络
3.网络连通性测试
4.示例命令
3.Wi-Fi 网络 TCP/UDP 协议性能测试 1.环境准备: 两台测试设备(如开发板 + PC),确保处于同一网络(WiFi / 以太网); 安装 Iperf3
2.角色定义: 服务端(Server):接收数据的设备; 客户端(Client):发送数据的设备。 3.TCP 带宽测试(常用)
4.UDP 丢包 / 延迟测试
5.结果解读(示例) TCP 测试结果
UDP测试结果
6.常见场景测试
2.蓝牙连接测试2.进入蓝牙命令模式
3.扫描并连接蓝牙设备
4.操作示例
|
| Sv translation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I. Download of Test Files & Basic Device Information1. Test File Download
2. Basic Device Information
3. Hardware Configuration
4. Power Supply Parameters
II. Basic Power Supply Test
1.Power Interface Function Verification Verify the compatibility, electrical performance and safety of the device power interface to ensure compliance with power supply parameter requirements. 2.Adaptability of Test Environment and Tools
3. Standard Basic Test Procedures
(1) DC Power Interface Compatibility Test
(2) Input Voltage Lower‑Limit Verification
III. Wired Communication Interface Test1.Debug Serial Port (UART) Test
Step 1: Hardware Connection
Step 2: Serial Tool Configuration on PC
Step 3: Boot Log Output Test
2. USB 2.0 / 3.0 Interface Test(1) Device Connection Status Identification Use the following command to confirm whether the device is connected to the system and obtain device node information:
Result Description
2. Compatibility of the Device with the Corresponding USB Version
1. Check the Device Speed File
2. Verification via Detailed Information
3. Transfer Performance Test
1. Simple Test:
1.1 Mount the USB Device: 1.2 Test Sequential Write Speed: 1.3 Test Sequential Read Speed: 1.4 Clean Up Temporary Files After Test:
2. Professional Test:
2.1 Install
IV. Type-C Interface Test
1. ADB Function Test
1.1 ADB Basic Connection Test
1.2 ADB Core Command Execution Test
1.3 Type-C Plugging & Stability Test
1.4 Type-C High-Load Stability Test
2. Type‑C to Hub (USB) Test |
| 代码块 |
|---|
dd if=/dev/zero of=/mnt/usb/test.img bs=1M count=1024 |
- Record transmission time and calculate speed: Speed = 1024MB / Time Consumed (seconds)
- Copy files back to the development board in reverse direction and repeat the test 3 times.
Expected Results:
- Transmission speed ≥ 80MB/s (approx. 640Mbps) under USB 3.0 mode.
- Transmission speed ≥ 30MB/s (approx. 240Mbps) under USB 2.0 mode.
- No data loss, transmission interruption or file corruption.
2.3 Power Supply Capacity Test
Prerequisites:
- Same as 2.1.
- Prepare a 2.5‑inch portable hard disk (requiring power supply above 5V/0.5A).
Test Steps:
- Plug the portable hard disk into the USB port of the Hub.
- Check whether the hard disk indicator light is on, and run
lsblkto view device nodes. - Perform large‑file read‑write operations for 10 minutes continuously.
- Check system logs for under‑power or device disconnection information.
Expected Results:
- The portable hard disk starts normally and can be recognized, read and written by the system.
- No device disconnection or data corruption during long‑time read‑write operations.
- No over‑current or power‑supply‑related errors in system logs.
2.4 Abnormal Scenario Test
- Hot‑swap Test: Plug and unplug USB devices during data transmission to verify system stability.
- Low‑voltage Test: Reduce the power supply voltage of the development board to 4.5V to verify whether USB devices work normally.
- Multi‑device Concurrency Test: Plug in multiple USB devices simultaneously to verify the load capacity of the Hub.
3. Type‑C to HDMI/DP Output Test
3.1 Video Output Function Test
Prerequisites:
- The development board is powered on normally and the system startup is completed.
- The Type‑C‑to‑HDMI/DP adapter is properly connected, and the monitor is powered on.
Test Steps:
- Insert the Type‑C end into the Type‑C port of the development board, and connect the HDMI/DP end to the monitor.
- Execute display configuration commands (Linux:
xrandr; Android: System Settings). - Switch display output to HDMI and set the resolution to 1080P@60Hz.
- Observe the monitor screen and check for screen tearing, black screen or flickering.
Expected Results:
- The monitor lights up automatically and displays the development board desktop/image.
- Resolution and refresh rate can be configured normally with clear and undistorted images.
- No screen tearing, black screen, flickering or lag.
3.2 Audio‑Video Synchronous Output Test
Prerequisites:
- Same as 3.1.
- The monitor supports HDMI/DP audio output.
Test Steps:
- Play a 1080P test video (with audio track).
- Observe video smoothness and listen to the monitor speaker simultaneously.
- Check audio‑video synchronization and whether there is noise or audio dropout.
Expected Results:
- Smooth video playback with stable frame rate (≥30fps).
- Audio‑video synchronization with no delay or stuttering.
- Clear sound with no noise, audio dropout or popping noise.
3.3 Hot‑Plug Test
Prerequisites:
Same as 3.1.
Test Steps:
- Connect the Type‑C‑to‑HDMI/DP adapter first and confirm normal display.
- Unplug the HDMI/DP end and observe system response.
- Re‑insert the HDMI/DP end and observe system response.
- Repeat hot‑plug operation 10 times and record each result.
Expected Results:
- After unplugging HDMI/DP, the system automatically switches back to on‑board display or goes black (consistent with design expectations).
- After re‑insertion, the monitor automatically resumes display without manual configuration.
- No system crash or driver errors occur during hot‑plugging.
3.4 Abnormal Scenario Test
- Resolution Switching Test: Switch among 720P/1080P/4K to verify display compatibility.
- Long‑Duration Playback Test: Play video continuously for 24 hours to verify stability.
- Low‑Resolution Output Test: Set resolution to 480P to verify downward compatibility.
IV. Display and Video Interface Test
1. HDMI Output Test
1. Specification Description
| Interface | Core Specifications | Key Limitations |
|---|---|---|
| HDMI 2.1 | Single‑port, supports 8K@30Hz / 4K@60Hz, HDCP2.3 | Requires HDMI 2.1 certified cable; maximum bandwidth 48Gbps |
2. Resolution Verification (Including 8K/4K)
1. Query of Display Interfaces and Resolution List
...
2. |
...
Audio Output Test Steps (Command-Line Operation)
|
| |||||||||
| title | bash | # 步骤1:通过adb连接设备(确保设备已开启调试模式)
2. |
|---|
...
Camera Function Test |
...
|
...
|
...
1. 开发板已上电并进入 Linux系统;
2. 摄像头已正确连接(MIPI CSI 排线插紧)。
Test Steps:
测试步骤: 步骤1:摄像头设备节点识别测试 |
测试步骤
步骤 1:摄像头设备节点识别测试
1.打开终端,执行以下命令查看系统是否识别到摄像头设备:
2. |
...
[Supplementary Verification] Execute the following commands to confirm device availability (optional, for enhanced rigor):
|
步骤 2:摄像头实时预览测试
Step 2: Camera Real-Time Preview Test
|
...
|
2.观察 HDMI 显示器画面,持续预览 10 秒后,按 Ctrl + C 停止命令。
预期结果:HDMI 显示器上出现清晰、流畅的实时视频画面,无花屏、无卡顿、无黑屏;停止命令后终端无 “Internal data stream error” 类核心报错。
3.视频硬解码性能测试
1.测试环境(MPP 视频硬解码设备)
基于 Rockchip MPP(Media Process Platform)框架的硬解码工具信息:
...
Observe the picture on the HDMI monitor, press Ctrl + C to stop the command after continuous preview for 10 seconds. 3. Video Hard Decoding Performance Test
|
...
|
...
|
...
|
...
|
...
|
|
...
Prepare test videos:
|
...
2.Perform hardware decoding test (take H.264 |
...
format as an example)
|
...
2.3 |
...
Test Verification Points
| |||||||||
| 代码块 | |||||||||
|---|---|---|---|---|---|---|---|---|---|
| |||||||||
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Prerolled, waiting for async message to finish...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
#日志逐行说明:
#Setting
|
...
3. |
...
Open a second terminal to monitor CPU usage3.1 Operation Steps |
...
3. |
...
2 Example of system status output (the following content is displayed after terminal execution; core monitoring items are marked in the red box)
|
3.3状态分析
...
3.3 Status Analysis
|
...
|
...
|
...
|
...
3.4 Test Conclusion: The video plays normally without stuttering or screen tearing. The CPU usage is low (hardware decoding acceleration is effective), and the system resource load meets expectations. V. Audio Interface Test
|
| Sound Card Number (card) | Device Identifier | Device Number (device) | Hardware Correspondence | Core Function | Application Scenario |
|---|---|---|---|---|---|
| card 0 | rockchip,es8388‑codec | device 0 | On‑board ES8388 audio Codec | Analog audio output (3.5mm headphone/speaker) + audio decoding | Headphone playback (core device) |
| card 1 | rockchip,hdmi0 | device 0 | HDMI interface audio channel | Digital audio output (HDMI monitor/TV) | HDMI audio playback |
1. Test Preparation
1.1 Tools / Files
- PC side: adb (environment variables required)
- Device side: aplay (pre‑installed)
1.2 Hardware Connection
- For HDMI audio test: Connect an HDMI cable between the device’s HDMI port and an audio‑enabled display device (e.g., a monitor with built‑in speakers).
- For onboard audio test: Plug a 3.5 mm headphone into the onboard audio jack.
3.4测试结论:视频功能播放正常,无卡顿、花屏现象;CPU 占用率低(硬解码加速生效),系统资源负载符合预期。
四、音频接口测试
...
声卡编号(card)
...
设备标识
...
设备编号(device)
...
硬件对应
...
核心功能
...
适用场景
...
card 0
...
rockchip,es8388-codec
...
device 0
...
板载 ES8388 音频 Codec
...
模拟音频输出(3.5mm 耳机 / 喇叭)+ 音频解码
...
耳机播放(核心设备)
...
rockchip,hdmi0
...
device 0
...
HDMI 接口音频通道
...
数字音频输出(HDMI 显示器 / 电视)
...
HDMI 音频播放
1.音频输出功能验证
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 步骤1:验证ADB连接(避免设备未连接导致后续操作失败)
adb devices
# 预期输出:列出设备序列号,状态为device(若显示offline/未列出,重新插拔USB/重启调试)
# 步骤2:推送测试音频文件到设备(电脑端执行)
adb push C:\Users\Administrator\Desktop\test.wav /test.wav
# 步骤3:进入ADB交互式shell(后续命令均在设备端执行)
adb shell
# 步骤4:查看设备音频输出列表(确认card编号对应关系)
aplay -l
# 步骤5:HDMI0音频输出测试
aplay -D plughw:1,0 /test.wav
# 预期现象:HDMI连接的显示设备播放音频
# 步骤6:板载音频(耳机)输出测试
aplay -D plughw:0,0 /test.wav
# 预期现象:3.5mm耳机播放音频
# 步骤7:硬件功能验证(正弦波测试,排除文件本身问题)
speaker-test -D hw:1,0 -t sine -f 1000 -c 2 -l 2
# 预期现象:耳机输出1000Hz双声道正弦蜂鸣声
|
...
测试项
...
操作命令
...
预期结果
...
HDMI0 音频输出
...
aplay -D plughw:1,0 /test.wav
...
显示设备正常播放音频
...
aplay -D plughw:0,0 /test.wav
...
耳机正常播放音频
...
speaker-test -D hw:1,0 -t sine -f 1000 -c 2 -l 2
...
耳机输出蜂鸣声
2.音频输入功能验证
1.列出所有音频采集设备
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 查看系统音频设备列表(重点关注“Capture”(输入)设备)
arecord -l
|
...
| ||||||
**** List of CAPTURE Hardware Devices ****
card 0: rockchipes8388c [rockchip,es8388-codec], device 0: dailink-multicodecs ES8323 HiFi-0 [dailink-multicodecs ES8323 HiFi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: rockchipes7210 [rockchip,es7210], device 0: fe480000.i2s-ES7210 4CH ADC 0 ES7210 4CH ADC 0-0 [fe480000.i2s-ES7210 4CH ADC 0 ES7210 4CH ADC 0-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
|
...
2. Audio Input Function Verification
|
4.录音测试(实时采集+播放)
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 功能:实时采集音频输入(hw:1,0)并输出到音频输出(hw:1,0)
# 参数说明:
# - arecord端:
# -D hw:0,0:指定音频输入设备(需根据实际`arecord -l`结果调整)
# -r 48000:采样率48000Hz(适配多数音频设备)
# -c 2:立体声采集(若MIC为单声道,可改为-c 1)
# -f s16_le:16位小端音频格式(通用兼容格式)
# -t raw:以原始格式传输(避免文件编码开销)
# - aplay端:
# -D hw:1,0:指定音频输出设备(如HDMI/板载扬声器)
# - 其余参数与arecord保持一致(确保格式匹配)
# - &:后台运行(避免终端阻塞)
arecord -D hw:0,0 -r 48000 -c 2 -f s16_le -t raw | aplay -D hw:1,0 -r 48000 -c 2 -f s16_le -t raw &
|
五、存储接口测试
1.M.2接口测试
1.硬件信息完整性
2.基础连接有效性
1.设备识别验证
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 查看系统是否识别到M.2 SSD
lsblk |
预期结果:输出中显示 SSD 对应的磁盘设备(如nvme0n1)。
...
|
预期结果:显示 SSD 的容量、分区表类型(如 GPT),接口协议为PCIe 3.0 x4。
3.读写性能测试
2.Typical Output Example
| |||||||
# 安装测试工具
sudo apt install hdparm fio
# 测试读取性能
sudo hdparm -tT /dev/nvme0n1 # 替换为实际SSD设备名
# 测试随机读写性能(示例:1GB数据)
fio --name=ssd-test --filename=/dev/nvme0n1 --size=1G --rw=randrw --bs=4k --numjobs=4 --iodepth=64 --runtime=30 --time_based |
2.SATA接口测试
1.硬件连接说明
通过标准 7Pin SATA3.0 接口连接硬盘,SATA 电源支持 5V 2A 输出
2.硬盘识别与健康状态检测
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 查看硬盘信息及SMART健康状态
fdisk -l
#更新软件源(可选,避免安装失败)
apt update
# 若提示权限不足,先提权(已 root 可跳过)
# sudo apt update
#安装 smartmontools
apt install -y smartmontools
# 注:/dev/sda为实际识别的SATA设备节点,需根据系统显示调整
smartctl -a /dev/sda |
1.设备识别状态:fdisk -l 输出中需显示 SATA 硬盘的容量、分区等信息;
2.SMART 健康状态:smartctl -a 输出中SMART overall-health self-assessment test result项需显示为PASSED(如图中红框标注项)。
六、无线通信模块测试
1.WIFI测试
2.基础连接稳定性
4.Recording Test (Real-time Capture + Playback) |
...
| ||||||
sudo systemctl start NetworkManager |
2.扫描并连接WiFi网络
| 代码块 | ||||
|---|---|---|---|---|
| ||||
sudo nmcli dev wifi rescan # 重新扫描WiFi网络
sudo nmcli dev wifi list # 查看可用WiFi列表(可选)
sudo nmcli dev wifi connect "WiFi名称" password "WiFi密码" ifname wlan1 |
3.网络连通性测试
| 代码块 | ||||
|---|---|---|---|---|
| ||||
ping www.baidu.com |
4.示例命令
| 代码块 | ||||
|---|---|---|---|---|
| ||||
sudo nmcli dev wifi connect "Hi nova 9 Pro" password "12345678" ifname wlan1 |
3.Wi-Fi 网络 TCP/UDP 协议性能测试
1.环境准备:
两台测试设备(如开发板 + PC),确保处于同一网络(WiFi / 以太网);
安装 Iperf3
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# Debian/Ubuntu
sudo apt install iperf3 |
2.角色定义:
服务端(Server):接收数据的设备;
客户端(Client):发送数据的设备。
3.TCP 带宽测试(常用)
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 服务端默认监听5201端口
iperf3 -s |
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 测试TCP带宽(持续10秒,默认)
iperf3 -c [服务端IP] |
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 测试30秒,每2秒输出一次实时数据
iperf3 -c [服务端IP] -t 30 -i 2
# 测试双向带宽(服务端/客户端互传)
iperf3 -c [服务端IP] -d |
4.UDP 丢包 / 延迟测试
| 代码块 | ||||
|---|---|---|---|---|
| ||||
iperf3 -s |
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 测试UDP(指定带宽100Mbps)
iperf3 -c [服务端IP] -u -b 100M |
5.结果解读(示例)
Test Operations and Result Verification Notes
VI. Storage Interface TestM.2 Interface Test1. Hardware Information Integrity Interface Type: PCIE 2.0 ×1 M.2 M‑Key, 5 Gbps 2. Basic Connection Validity 1. Device Identification Verification |
...
|
...
Expected Result: The corresponding disk device of the SSD (e.g., nvme0n1) is displayed in the output. 2.Disk Information Reading
|
6.常见场景测试
| 测试目标 | 命令示例 |
|---|---|
| 长连接稳定性(1 小时) | iperf3 -c [IP] -t 3600 |
| 多线程并发测试 | iperf3 -c [IP] -P 4(4 线程) |
| 限制带宽测试 | iperf3 -c [IP] -b 500M(限制为 500Mbps) |
2.蓝牙连接测试
Expected Result: Display SSD capacity, partition table type (e.g., GPT), PCIe x4 bus and NVMe storage protocol.
VII. Wireless Communication Module Test1. Wi‑Fi Test1. Hardware Specification Compliance
1. Start the NetworkManager Service |
...
|
...
2.Scan and connect to Wi‑Fi networks
3.Network Connectivity Test
4. |
...
Sample Commands
| ||||||
# 扫描后,对MAC为7C:B4:37:11:5B:83的设备执行操作
trust 7C:B4:37:11:5B:83
pair 7C:B4:37:11:5B:83
connect 7C:B4:37:11:5B:83 |
3.4G模块测试
验证 4G 模块对应的quectel.service服务的启动、自启配置及网络连通性。
1.检查初始状态
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 查看服务当前状态
systemctl status quectel.service
# 检查开机自启配置
systemctl is-enabled quectel.service |
预期结果
服务未运行,开机自启未设置
2.启动服务
3. Wi-Fi Network TCP/UDP Protocol Performance Test1. Environment Preparation: 3.Wi-Fi 网络 TCP/UDP 协议性能测试 1.环境准备: 两台测试设备(如开发板 + PC),确保处于同一网络(WiFi / 以太网); 安装 Iperf3
|
预期结果
服务状态显示为 active (running)
2. Role Definition
3. TCP Bandwidth Test (Commonly Used)
|
...
|
预期结果
自启配置返回 enabled
4.重启验证
|
预期结果
设备重启后,服务自动运行,状态显示为 active (running)
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 检查4G模块网络接口(以eth0为例,实际需根据模块接口调整)
ifconfig -a
# 测试网络连通性(ping公网地址)
ping -c 5 8.8.8.8 |
预期结果
4G网络接口正常获取 IP;
ping 测试成功,返回类似如下结果(无丢包):
| 代码块 | ||||
|---|---|---|---|---|
| ||||
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=109 time=60 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=109 time=60 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=109 time=60 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=109 time=60 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=109 time=60 ms |
4.SIM卡功能验证
1.测试准备
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 步骤1:查看wwan0接口的链路状态(确认接口是否激活)
ip link show wwan0
# 步骤2:查看wwan0的IP地址信息(确认网络是否获取到地址)
ip addr show wwan0
# 步骤3:测试SIM网络的外部连通性(指定从wwan0接口发起请求)
ping -c 4 -I wwan0 www.baidu.com |
3.结果说明
步骤 1 输出中,若wwan0状态为UP,LOWER_UP,表示接口已激活;
步骤 2 输出中,若wwan0存在inet开头的 IP 地址,说明网络已成功分配地址;
...
Extended Commands (Custom Parameters) Test for 30 seconds, output real‑time data every 2 seconds 4. UDP Packet Loss / Latency TestTest UDP (bandwidth limited to 100 Mbps) 5. Result Interpretation (Examples)TCP Test Result UDP Test Result 6. Common‑Scenario Tests
2. Bluetooth Connection Test1. Hardware Description 2. Enter Bluetooth Command Mode Connect to the device via ADB Launch Bluetooth control utility 3. Scan and Connect Bluetooth Devices4. Operation ExamplePerform operations on the device with MAC 7C:B4:37:11:5B:83 after scanning 5. Test Result Judgment |




