...
| Sv translation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Test File Downloaduart file download :uart Basic Equipment Information
I. Basic Power Supply Test1. Power Interface Function Verification2. Test Environment and Tool Adaptability
3. Basic Test Procedure Specifications1. DC Power Interface Compatibility Test
2. Input Voltage Lower Limit Verification
3. POE Interface Extended Power Supply Test (Optional)
The device can be stably powered by the POE module and operates normally. 2II.Wired Communication Interface Test1.RS232 Serial Port TestRS232 corresponding device node: ttyS3 (V1.2 version) / ttyS4 (V1.4 version) Test Preparation: 1.Confirm the serial port node
2.Two-minute Loopback Test
Output Example
2.RS485 Serial Port Test Test
3. Hardware Wiring
4. Test Steps 4.1 PC-side UART Assist Configuration
4.2 Unidirectional Transceiver Test (PC → RK3588)
2.Enter test data (e.g. "RK3588 RS485 Test") in UART Assist on the PC side, and click "Send" (as shown in the figure below); 3.Observe RK3588 Terminal 1 (as shown in the figure below). If the received test data is displayed, the unidirectional receiving function is normal. 4.3 Unidirectional Transceiver Test (RK3588 → PC)
3. USB Interface Test1.Device Connection Status Identification
Result Description: In the output of lsusb, ID 1d6b:0002 stands for USB 2.0 controller, and ID 1d6b:0003 stands for USB 3.0 controller. The corresponding USB version can be judged by the bus where the device is mounted. 2.USB Version Compatibility Test 1.Check device speed file
2.Verify through detailed information
Result description: In the output, Speed: 480Mbit/s corresponds to USB2.0, and Speed: 5000Mbit/s corresponds to USB3.0. 3. Transmission Performance Test Transmission speed is the core difference between USB2.0 and USB3.0. The theoretical speed of USB2.0 is 480Mbps, while that of USB3.0 is 5Gbps. Two commonly used test methods are provided below, applicable to USB storage devices and network USB devices respectively. 1. Simple Test: dd Command The dd command can quickly test read and write speeds for preliminary verification. Mount the USB device first before testing.
1.2 Test sequential write speed:
1.3.Test sequential read speed:
1.4.Clean up temporary files after testing:
Result Description: After the command is executed, the transfer time and speed will be displayed.
2. Professional Test: fio Tool The fio tool supports complex IO scenario testing with more comprehensive results, suitable for in-depth performance evaluation. 2.1 Install fio:
2.2.Code block for fio test commands:
4. Type-C Interface Test1. ADB Function Test1.1 Basic ADB Connection TestTest Purpose: Verify that the Type-C interface can establish ADB connection normally and the device can be recognized by PC.
Expected Results:
1.2 Core ADB Command Execution TestTest Purpose: Verify that core ADB commands work properly over the Type-C link.
Expected Results:
1.3 Type-C Plug & Play and Stability TestTest Purpose: Verify the stability of ADB connection during Type-C cable plugging, unplugging and shaking.
Expected Results:
1.4 High-load Stability Test for Type-C ConnectionTest Purpose: Verify the stability of Type-C ADB function under high load.
Expected Results:
2. Type-C to USB Hub Test2.1 Device Recognition and Compatibility TestPrerequisites:
Operation Steps:
Expected Results:
2.2 Data Transfer Speed TestPrerequisites:
Operation Steps:
3.Record the transmission time and calculate the speed: Speed = 1024MB / Time (seconds) 4.Copy files back to the development board in reverse direction and repeat the test 3 times. Expected Results:
2.3 Power Supply Capability TestPrerequisites:
Operation Steps:
Expected Results:
2.4 Abnormal Scenario Test
3. Type-C to HDMI/DP Output Test3.1 Video Output Function TestPrerequisites:
Operation Steps:
Expected Results:
3.2 Audio and Video Synchronization TestPrerequisites:
Operation Steps:
Expected Results:
3.3 Hot-plug TestPrerequisites:
Expected Results:
3.4 Abnormal Scenario Test
III. Display and Video Interface Test1. HDMI/DP Output Test1. Specification Description:
1.Query display interfaces and resolution list
2.Audio Output Test Steps (Command Line Operation)
2. HDMI Input Test1. Test Preparation
2. HDMI Input Device Node Query and Verification
Query Results:
3. HDMI Input Video Stream Playback Test 1.Execute video playback command:
Output Interpretation
Display Performance 异常现象 | 可能原因 | 排查方法 | | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 终端提示 “No such device” | /dev/video0 节点不存在 | 1.检查 HDMI IN 驱动是否加载:lsmod grep rk_hdmirx
| 显示屏无播放窗口 | DISPLAY 环境变量配置错误 | 执行||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 画面卡顿 / 花屏 | 信号源分辨率不兼容 | 将 HDMI 信号源输出分辨率调整为 1080P@60Hz 后重新测试 |
| Abnormal Phenomenon | Possible Cause | Troubleshooting Methods |
|---|---|---|
| Terminal prompts "No such device" | The node /dev/video0 does not exist | 1. Check if the HDMI IN driver is loaded: lsmod grep rk_hdmirx
|
| No playback window on the display | Incorrect configuration of the DISPLAY environment variable | Run echo $DISPLAY to confirm the value is :0.0, or execute commands in the local terminal |
| Stuttering / distorted image | Incompatible resolution of the signal source | Adjust the output resolution of the HDMI signal source to 1080P@60Hz and test again |
3. Video Hard Decoding Performance Test
1. Test Environment (MPP Video Hard Decoding Device)
Based on the hard decoding tool information of the Rockchip MPP (Media Process Platform) framework:
| Item | Details |
|---|---|
| Tool Name | ppvidedec |
| Tool Version | 1.14.4 |
| Dependency Library Path | /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstrockchipmpp.so |
| Supported Encoding Formats | HEVC/H.265, AVC/H.264, VP8, VP9 |
| Decoding Type | Hardware-accelerated decoding |
| Maximum Decoding Capability | Supports 8K 10-bit video decoding and 8K 60Hz video output |
Test Steps:2.测试步骤:
2.1.准备测试视频: Prepare test videos:
| 代码块 | ||||
|---|---|---|---|---|
| ||||
#1.本地测试视频路径: C:\ Local test video path:C:\Users\Administrator\Desktop\test_video\4K_60fps.mp4 # 2.通过 ADB 将视频推送至开发板:#2. Push the video to the development board via ADB: adb push "C:\Users\Administrator\Desktop\boot\4K_60fps.mp4" /tmp/ |
2.2.执行硬解码测试(以Perform hardware decoding test (take H.264 格式为例) format as an example)
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# Use 使用gstgst-launch-1.0调用0 to invoke the MPP 硬解码工具,验证解码功能: hardware decoding tool and verify the decoding function: gst-launch-1.0 filesrc location=/tmp/4K_60fps.mp4 ! \ qtdemux ! \ h264parse ! \ mppvideodec ! \ videoconvert ! \ autovideosink |
22.3 .测试验证要点
decode error、Resource not found、Test Verification Points
Video playback status: No abnormalities such as screen tearing, green screen, or stuttering shall occur;
Log information: No errors including decode error, Resource not found, or pipeline doesn't want to preroll
shall appear in the terminal output. A normal startup process shall be displayed (example shown below);
Display effect: After executing the playback command, the display interface shall present a complete and clear video image (no image distortion or color distortion caused by decoding exceptions).
Example of normal log output (description)
| 代码块 | ||||
|---|---|---|---|---|
| ||||
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 pipeline to PAUSED ...:GStreamer 管道进入暂停状态,开始初始化音视频解码组件(如 MPP 硬解码器),无报错代表组件加载初始化无异常;
#Pipeline is PREROLLING ...:管道进入预滚动阶段,开始读取视频文件并解析码流,为硬解码做数据准备;
#Pipeline is PREROLLED ...:预滚动完成,视频码流解析成功,RK3566 的 MPP 硬解码单元已获取有效数据;
#Prerolled, waiting for async message to finish...:预滚动完成后等待异步消息确认,是 GStreamer 适配嵌入式设备的正常等待流程,无异常;
#Setting pipeline to PLAYING ...:管道切换至播放状态,硬解码开始输出视频帧至显示设备;
#New clock: GstSystemClock:系统时钟同步完成,音视频时序匹配,无卡顿、音画不同步风险。 |
(Note: The attached picture is an example of the interface during normal video playback, which can intuitively verify that the picture is free of distortion and displayed normally.)
3. Open a second terminal to monitor CPU usage
3.1 Operation Steps
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# Step 1: Enter the ADB interactive shell
adb shell
# Step 2: Execute the top command in the shell (runs normally with TTY environment available)
|
3.开启第二个终端进行cpu占用率监控
3.1操作步骤
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 操作说明:通过ADB远程执行top命令,查看系统资源占用(取前20行关键信息) adb shell "top -n1 | head -20" |
3.2系统状态输出示例(终端执行后输出如下,红框为核心监控项)2 Example of system status output (the following content is displayed after terminal execution; core monitoring items are marked in the red box)
| 代码块 | ||||
|---|---|---|---|---|
| ||||
#
top - 06:01:06 up 17:57, 1 user, load average: 2.10, 2.61, 2.56
Tasks: 276 total, 2 running, 274 sleeping, 0 stopped, 0 zombie
%Cpu(s): 3.8 us, 6.0 sy, 0.0 ni, 90.2 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 3899.3 total, 91.5 free, 822.6 used, 2985.2 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 1694.6 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1981 root 20 0 4747336 266284 215960 R 50.0 6.7 877:37.20 Xorg
2456 blueber+ 20 0 1839264 74872 56884 S 12.5 1.9 60:46.06 xfwm4
2513 blueber+ 20 0 314400 39220 29936 S 12.5 1.0 44:54.98 xfce4-p+
38043 root 20 0 529528 23188 11316 S 12.5 0.6 0:13.87 gst-lau+
38263 root 20 0 9048 3400 2712 R 6.2 0.1 0:00.02 top
1 root 20 0 165012 9932 7220 S 0.0 0.2 5:17.56 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.45 kthreadd
3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp
4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par+
8 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_perc+
9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tas+
10 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tas+
11 root 20 0 0 0 0 S 0.0 0.0 0:04.57 ksoftir+ |
3.3状态分析
3.3 Status Analysis
| Monitoring Item | Result | Description |
|---|---|---|
| Overall CPU Load | User |
| 3.8% + |
| System 6.0% + |
| Idle 90.2% |
3.4测试结论:视频功能播放正常,无卡顿、花屏现象;CPU 占用率低(硬解码加速生效),系统资源负载符合预期。
四、音频接口测试
| Idle ratio exceeds 90%, sufficient CPU resource redundancy; current high-ratio processes are desktop services (Xorg, xfwm4), belonging to basic system load | ||
| Memory Status | Total 3899MB, Used 829MB, Free 2968MB | Sufficient remaining memory, no risk of insufficient memory |
| Key Process CPU Ratio | Desktop Service (Xorg) 50%, Terminal (tilda) 12.5% | When running the video playback process, focus on its % CPU value (usually <10% when hardware decoding takes effect) |
| Memory Usage | Used 829MB, Cache 2864MB | High memory cache ratio ensures efficient system data read/write |
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
| Card No. | Device Name | Hardware Interface | Function Description |
|---|
card编号
设备名称
硬件接口
| 0 | rockchiphdmi0 | HDMI0 |
| Audio output for the first HDMI port | ||
| 1 | rockchipdp0 | DisplayPort0 |
| 1st DisplayPort port (video output only, no audio support) | ||
| 2 | rockchipdp1 | DisplayPort1 |
| 2nd DisplayPort port (video output only, no audio support) | ||
| 4 | rockchipes8388 | ES8388 Codec |
板载音频接口(3.5mm 4 节接口,支持:耳机输出、扬声器输出、MIC 输入)
| Onboard audio interface (3.5mm 4-pin jack, supporting headphone output, speaker output and MIC input) |
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.
1.Audio Output Function Verification
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 步骤1:通过adb连接设备(确保设备已开启调试模式) adb shell # 步骤2:推送测试音频文件到设备(电脑端执行)# Step 1: Connect to the device via ADB (Ensure USB debugging is enabled) adb shell # Step 2: Push test audio file to the device (Run on PC) adb push C:\Users\Administrator\Desktop\test.wav /test.wav # 步骤3:查看设备音频输出列表(确认card编号对应关系) Step 3: List audio output devices (Verify corresponding card numbers) aplay -l # 步骤4:HDMI0音频输出测试 Step 4: HDMI0 audio output test aplay -D plughw:0,0 /test.wav # Expected result: Audio plays on the display device connected via HDMI # Step 5: Onboard audio (headphone) output test aplay -D plughw:4,0 /test.wav # 预期现象:HDMI连接的显示设备播放音频 # 步骤5:板载音频(耳机)输出测试 aplay -D plughw:4,0 /test.wav # 预期现象:3.5mm耳机播放音频 # 步骤6:硬件功能验证(正弦波测试,排除文件本身问题) Expected result: Audio plays through the 3.5mm headphone jack # Step 6: Hardware function verification (Sine wave test to exclude file issues) speaker-test -D hw:4,0 -t sine -f 1000 -c 2 -l 2 # 预期现象:耳机输出1000Hz双声道正弦蜂鸣声 |
Expected result: 1000Hz dual-channel sine tone is output from headphones
|
| Test Item | Operation Command | Expected Result |
|---|---|---|
| HDMI0 Audio Output |
测试项
操作命令
预期结果
| aplay -D plughw:0,0 /test.wav |
显示设备正常播放音频
| Audio plays normally on the display device | |
| Onboard Headphone Output | aplay -D plughw:4,0 /test.wav |
耳机正常播放音频
| Audio plays normally through headphones | |
| Hardware Sine Wave Test | speaker-test -D hw:4,0 -t sine -f 1000 -c 2 -l 2 |
| Beep sound is output from headphones |
2.
音频输入功能验证Audio Input Function Verification
- List all audio capture devices
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# Check the system audio device list (focus on "Capture" (input) devices) |
1.列出所有音频采集设备
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 查看系统音频设备列表(重点关注“Capture”(输入)设备) arecord -l |
2.典型输出示例Typical Output Example
| 代码块 | ||||
|---|---|---|---|---|
| ||||
**** List of CAPTURE Hardware Devices **** card 3: rockchiphdmiin [rockchip,hdmiin], device 0: rockchip,hdmiin i2s-hifi-0 [rockchip,hdmiin i2s-hifi-0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 4: rockchipes8388 [rockchip-es8388], device 0: dailink-multicodecs ES8323.3-0010-0 [dailink-multicodecs ES8323.3-0010-0] Subdevices: 1/1 Subdevice #0: subdevice #0 |
| Device Type |
|---|
| Key Information & |
|---|
| Purpose |
|---|
| Status |
|---|
| Description | |
|---|---|
| card 3: rockchiphdmiin device 0 | HDMI-IN |
用于采集 HDMI 信号中的音频流
| audio capture card | Corresponds to the HDMI input audio channel of Rockchip chip Used to capture audio stream from HDMI signal | Detected normally (Subdevices: 1/1) |
| card 4: rockchipes8388 device 0 | Onboard audio codec chip |
| ES8388/ES8323 |
用于板载麦克风 / 扬声器的音频采集 / 播放
| is a low-power audio codec Supports audio capture and playback for onboard microphone and speaker | Detected normally (Subdevices: 1/1) |
4.)Recording Test (Real-time Capture + Playback)4.录音测试(实时采集+播放)
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 功能:实时采集音频输入(hwFunction: Real-time audio input capture (hw:4,0)并输出到音频输出(hw0) and playback to audio output (hw:0,0)0) # 参数说明:Parameter Description: # - arecord端: arecord (capture side): # -D hw:4,0:指定音频输入设备(需根据实际`arecord -l`结果调整)0: Specify audio input device (adjust based on actual 'arecord -l' output) # -r 48000:采样率48000Hz(适配多数音频设备) 48000: Sample rate 48000Hz (compatible with most audio devices) # -c 2:立体声采集(若MIC为单声道,可改为-c 1) 2: Stereo capture (change to -c 1 for mono microphone) # -f s16_le:16位小端音频格式(通用兼容格式) # -t raw:以原始格式传输(避免文件编码开销)le: 16-bit little-endian format (universal compatible format) # -t raw: Transmit in raw format (avoid file encoding overhead) # - aplay端: aplay (playback side): # -D hw:0,0:指定音频输出设备(如HDMI/板载扬声器)0: Specify audio output device (e.g. HDMI/onboard speaker) # - 其余参数与arecord保持一致(确保格式匹配) Other parameters match arecord (ensure format consistency) # - &:后台运行(避免终端阻塞): Run in background (prevent terminal blocking) arecord -D hw:4,0 -r 48000 -c 2 -f s16_le -t raw | aplay -D hw:0,0 -r 48000 -c 2 -f s16_le -t raw & |
五、存储接口测试
Test Operations and Result Verification
Notes
- If Device or resource busy appears: Run
killall arecord aplayto release occupied audio devices, then retry the test. - No sound output: Verify the device number of the
-Dparameter viaarecord -landaplay -l. - Excessive noise: Change
-c 2to-c 1for mono mode, or set the sample rate to 44100. - System audio input configuration: Open system sound settings and go to the Input Devices tab. Select Internal Microphone from the Port drop-down list of the target device to enable the audio input channel properly.
VI. Storage Interface Test
1.M.2
接口测试Interface Test
1. 硬件信息完整性
Hardware Information Integrity
Interface Type: PCIE 2.0 ×1 M.2 M‑Key, 5 Gbps
Hardware Installation: Insert the
M.2 SSD
插入开发板into the M.2
插槽slot on the development board.
2. 基础连接有效性Basic Connection Validity
1.
设备识别验证Device Identification Verification
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 查看系统是否识别到MCheck whether the system recognizes the M.2 SSD. lsblk |
预期结果:输出中显示 SSD 对应的磁盘设备(如nvme0n1)。Expected Result: The corresponding disk device of the SSD (e.g., nvme0n1) is displayed in the output.
2.磁盘信息读取Disk Information Reading
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 查看M.2 SSD的详细信息(如容量、接口协议) Check detailed information of the M.2 SSD (e.g., capacity, interface protocol). sudo fdisk -l |
预期结果:显示 SSD 的容量、分区表类型(如 GPT),接口协议为PCIe 3.0 x4。
Expected Result: Display SSD capacity, partition table type (e.g., GPT), PCIe x4 bus and NVMe storage protocol.
3. Read‑Write Performance Test
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# Install Test 安装测试工具Tools sudo apt install hdparm fio # 测试读取性能Test Read Performance sudo hdparm -tT /dev/nvme0n1 # Replace with your actual # 替换为实际SSD设备名 SSD device name # 测试随机读写性能(示例:1GB数据)Test Random Read/Write Performance (Example: 1GB data) fio --name=ssd-test --filename=/dev/nvme0n1 --size=1G --rw=randrw --bs=4k --numjobs=4 --iodepth=64 --runtime=30 --time_based |
4.
结果判定标准lsblk显示 SSD 设备→识别成功;Judgment Criteria
接口协议:- Device detection: The SSD is displayed via
lsblk→ Detection succeeded. - Interface protocol:
fdisk -l
- shows PCIe 3.0 x4
- → Interface matches.
- Performance requirement: Read speed ≥ 1000MB/s (typical value for PCIe 3.0 SSD) → Performance normal.
2. SATA Interface Test
2.1 Hardware Connection Description
Connect the hard drive via standard 7-pin SATA 3.0 interface. The SATA power supply supports 5V 2A output.
2.2 Hard Drive Detection & Health Check
2.SATA接口测试
1.硬件连接说明
通过标准 7Pin SATA3.0 接口连接硬盘,SATA 电源支持 5V 2A 输出
2.硬盘识别与健康状态检测
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 查看硬盘信息及SMART健康状态 View hard drive information and SMART status fdisk -l #更新软件源(可选,避免安装失败)# Update software sources (optional, to avoid installation failure) apt update # 若提示权限不足,先提权(已 root 可跳过) Elevate privileges if permission denied (skip if already root) # sudo apt update #安装# Install smartmontools apt install -y smartmontools # 注:Note: /dev/sda为实际识别的SATA设备节点,需根据系统显示调整 sda is the actual SATA device node, adjust according to system output smartctl -a /dev/sda |
Test Result Verification
- Device detection:
fdisk -l
smartctl -a 输出中- shall display the capacity and partition information of the SATA hard drive.
- SMART health status: The item SMART overall-health self-assessment test result
PASSED(如图中红框标注项)。- in
smartctl -aoutput shall show PASSED.
VII. Wireless Communication Module Test
六、无线通信模块测试1.
WIFI测试Wi‑Fi Test
1.
硬件规格符合性WiFi 型号:AP6275P,支持 WiFi6(IEEEHardware Specification Compliance
WiFi Model: AP6275P. It supports Wi-Fi 6 (IEEE 802.11a/b/g/n/ac/ax
MIMO),双发双收。2.基础连接稳定性MIMO) with 2T2R (2 Transmit, 2 Receive).
2. Basic Connection Stability
1. 启动NetworkManager服务Start the NetworkManager Service
| 代码块 | ||||
|---|---|---|---|---|
| ||||
sudo systemctl start NetworkManager |
2.扫描并连接WiFi网络Scan and connect to Wi‑Fi networks
| 代码块 | ||||
|---|---|---|---|---|
| ||||
sudo nmcli dev wifi rescan # 重新扫描WiFi网络 sudo nmcli dev wifi list # 查看可用WiFi列表(可选) sudo nmcli dev wifi connect "WiFi名称" password "WiFi密码" ifname wlan1 |
3.网络连通性测试Network Connectivity Test
| 代码块 | ||||
|---|---|---|---|---|
| ||||
ping www.baidu.com |
4.示例命令Sample Commands
| 代码块 | ||||
|---|---|---|---|---|
| ||||
sudo nmcli dev wifi connect "Hi nova 9 Pro" password "12345678" ifname wlan1 |
3. Wi-Fi
网络Network TCP/UDP
协议性能测试Protocol Performance Test
1. 环境准备:
两台测试设备(如开发板 + PC),确保处于同一网络(WiFi / 以太网);
安装 Iperf3Environment Preparation:
Two test devices (e.g., development board + PC), ensure they are on the same network (Wi-Fi/Ethernet);
Install Iperf3
3.Wi-Fi 网络| 代码块 | ||||
|---|---|---|---|---|
| ||||
# Debian/Ubuntu sudo apt install iperf3 |
2. 角色定义:
服务端(Server):接收数据的设备;
客户端(Client):发送数据的设备。Role Definition Server: Device receiving data
Client: Device sending data
3. TCP 带宽测试(常用)
步骤 1:启动服务端Bandwidth Test (Commonly Used)
Step 1: Start the server
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 服务端默认监听5201端口 The server listens on port 5201 by default iperf3 -s |
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 测试TCP带宽(持续10秒,默认) Test TCP bandwidth (default duration: 10 seconds) iperf3 -c [服务端IPServer IP] |
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 测试30秒,每2秒输出一次实时数据Test for 30 seconds, output real-time data every 2 seconds iperf3 -c [服务端IPServer IP] -t 30 -i 2 # 测试双向带宽(服务端/客户端互传) 30 -i 2 # Test bidirectional bandwidth (simultaneous upload and download) iperf3 -c [服务端IPServer IP] -d |
4. UDP 丢包 Packet Loss / 延迟测试Latency Test
| 代码块 | ||||
|---|---|---|---|---|
| ||||
iperf3 -s |
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 测试UDP(指定带宽100Mbps) Test UDP with specified bandwidth 100Mbps iperf3 -c [服务端IPServer IP] -u -b 100M |
5. 结果解读(示例)Result Interpretation (Examples)
TCP 测试结果Test Result
| 代码块 | ||||
|---|---|---|---|---|
| ||||
[ 5] local 192.168.1.10 port 5001 connected to 192.168.1.20 port 5201 [ ID] Interval Transfer Bitrate [ 5] 0.00-10.00 sec 1.10 GBytes 943 Mbits/sec # Actual bandwidth: 实际带宽:943Mbps943Mbps |
UDP测试结果UDP Test Result
| 代码块 | ||||
|---|---|---|---|---|
| ||||
[ 5] local 192.168.1.10 port 5001 connected to 192.168.1.20 port 5201 [ ID] Interval Transfer Bitrate Jitter Lost/Total Datagrams [ 5] 0.00-10.00 sec 119 MBytes 100 Mbits/sec 0.035 ms 0/85000 (0%) # 丢包率:0% |
6.常见场景测试Common‑Scenario Tests
| Test Objective |
|---|
| Command Example | |
|---|---|
| Long connection stability (1 hour) | iperf3 -c [IP] -t 3600 |
| Multi-thread concurrent test | iperf3 -c [IP] -P 4 |
| (4 threads) | |
| Bandwidth limit test | iperf3 -c [IP] -b 500M |
| (limited to 500Mbps) |
1.
硬件说明Hardware Description
AP6256 is a Wi‑Fi 5 + Bluetooth dual‑mode module launched by AMPAK, supporting Bluetooth 5.2.
2. Enter Bluetooth Command Mode
2.进入蓝牙命令模式
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 通过adb连接设备 Connect to the device via ADB adb shell # 启动蓝牙控制工具Launch the Bluetooth control utility sudo bluetoothctl |
3.扫描并连接蓝牙设备Scan and Connect Bluetooth Devices
| 代码块 | ||||
|---|---|---|---|---|
| ||||
scan on # Enable Bluetooth scanning (press Ctrl+C to # 开启蓝牙扫描(按Ctrl+C停止扫描)stop scanning) trust [设备MAC地址]Device MAC Address] # Trust the # 信任目标设备target device pair [设备MAC地址]Device MAC Address] # Pair with the # 配对目标设备target device connect [设备MAC地址]Device MAC Address] # Connect to the target # 连接目标设备device |
4.操作示例Operation Example
| 代码块 | ||||||
|---|---|---|---|---|---|---|
| ||||||
# Perform operations on the device with MAC 7C# 扫描后,对MAC为7C:B4:37:11:5B:83的设备执行操作83 after scanning trust 7C:B4:37:11:5B:83 pair 7C:B4:37:11:5B:83 connect 7C:B4:37:11:5B:83 |
3.
4G模块测试4G Module Test
验证 4G 模块对应的Verify the startup, auto-start configuration and network connectivity of the quectel.service服务的启动、自启配置及网络连通性。 for the 4G module。
1.检查初始状态Check Initial Status
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 查看服务当前状态 Check current service status systemctl status quectel.service # 检查开机自启配置 Check auto-start configuration systemctl is-enabled quectel.service |
预期结果
服务未运行,开机自启未设置Expected Result
The service is inactive and auto-start is disabled.
2. 启动服务Start the Service
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 启动quectel服务Start quectel service systemctl start quectel.service # 验证服务状态Verify service status systemctl status quectel.service |
预期结果
服务状态显示为 Expected Result
The service status shows active (running).
3.设置开机自启Configure Auto-Start
| 代码块 | |||||||
|---|---|---|---|---|---|---|---|
| |||||||
# Enable service auto-start on boot# 配置服务开机自启 systemctl enable quectel.service # 验证自启配置Verify auto-start setting systemctl is-enabled quectel.service |
预期结果
自启配置返回 enabledExpected Result
The command returns enabled.
4. 重启验证Reboot Verification
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 重启设备Reboot the device reboot # 重启后检查服务状态 Check service status after reboot systemctl status quectel.service |
预期结果
设备重启后,服务自动运行,状态显示为| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 检查4G模块网络接口(以eth0为例,实际需根据模块接口调整) Check 4G network interface (take eth0 as example, adjust according to actual interface) ifconfig -a # 测试网络连通性(ping公网地址) Test network connectivity by pinging public address ping -c 5 8.8.8.8 |
预期结果
4G网络接口正常获取 IP;
ping 测试成功,返回类似如下结果(无丢包):Expected Result
- The 4G interface obtains a valid IP address normally.
- Ping test succeeds with no packet loss, sample output as below:
| 代码块 | ||||
|---|---|---|---|---|
| ||||
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卡功能验证SIM Card Function Verification
1. 测试准备
系统:确保quectel.service服务处于Test Preparation
- Hardware: Fully tested 4G module and device with target 4G SIM card inserted.
- System: Ensure
quectel.serviceis inactive (running)
- state.
2.
SIM卡网络状态SIM Card Network Status
| 代码块 | ||||
|---|---|---|---|---|
| ||||
# 步骤1:查看wwan0接口的链路状态(确认接口是否激活)Step 1: Check link status of wwan0 interface ip link show wwan0 # 步骤2:查看wwan0的IP地址信息(确认网络是否获取到地址)Step 2: Check IP address of wwan0 interface ip addr show wwan0 # 步骤3:测试SIM网络的外部连通性(指定从wwan0接口发起请求) Step 3: Test external network connectivity via wwan0 ping -c 4 -I wwan0 www.baidu.com |
3. 结果说明Result Description步骤 1 输出中,若wwan0状态为
- Step 1: Status
UP,LOWER_UP
步骤 2 输出中,若wwan0存在inet开头的 IP 地址,说明网络已成功分配地址;
- means the interface is activated.
- Step 2: An address starting with
inetindicates the interface has obtained an IP address successfully. - Step 3: Output starting with
64 bytes from xxx.xxx.xxx.xxx
- means the SIM network works normally.






