03-Functional_Testing
Last updated
Last updated
This document is intended for users to quickly use or test the peripheral interfaces of the motherboard.
SDK - hereinafter refers to the source code path. console - hereinafter refers to the motherboard debugging command-line console. ADB - Android Debug Bridge command-line tool, hereinafter refers to the environment where ADB can be run.
The RK356x series development boards are equipped with the RTL8822CS high-performance Wi-Fi module. It supports dual-band 2.4G/5G, Wi-Fi 5, and 2T2R.
your_WiFi_name: The name of the Wi-Fi you want to connect to. WiFi_password: The password of the Wi-Fi you want to connect to.
After connecting, the Wi-Fi information can be found in this directory:
To cancel the automatic connection to a specific Wi-Fi, for example, Wi-Fi: wifi_oranth_5G
The RK356x series development boards are equipped with the RTL8822CS high-performance Bluetooth module. The following describes the Bluetooth testing methods.
In the Android system, testing is generally performed through the graphical interface. Open the system settings.
View the connected devices and select to pair with a new device.
After the scanning results are available, the scanned devices will appear.
Click on the device you want to connect to, and the following prompt will appear to start the pairing process.
After both devices select to connect, the connection will be successful.
Testing via the graphical interface
Click on the Bluetooth icon.
Open the Bluetooth Devices.
Click on Scan for devices.
First, click on Trust the device, then right-click to open the menu, and click on Pair. A pairing pop-up window will appear in the upper right corner. Click on Allow pairing.
After successful pairing
After successful connection, a connection icon will appear on the right side of the device. After a normal shutdown, the device will automatically connect when you turn on the board next time. If you are connecting a Bluetooth headset, you can play music.
Testing via the command line
The command line generally uses the bluetoothctl
tool. The following example shows how to use bluetoothctl
to connect a Bluetooth headset.
Enter the bluetoothctl
command line.
After entering the
bluetoothctl
command line, it will be similar to: [bluetooth]# Controller represents the Bluetooth device on the ARM board, and Device represents the connected Bluetooth headset.
Follow the steps below to initialize the Bluetooth device and connect the Bluetooth headset.
View the help information.
Start scanning.
Suppose the address of the Bluetooth headset is: 00:11:22:33:44:55
Pair.
Connect.
View the information of the Bluetooth headset.
Disconnect.
If you don't want the Bluetooth headset to connect automatically, you can delete the pairing information.
For more information on command-line Bluetooth connection, please refer to https://blog.csdn.net/chenjk10/article/details/90317028
The K1 development board is equipped with one SATA 3.0 hard drive interface.
The SATA hard drive wiring consists of a hard drive power supply interface and a hard drive data interface.
Special Note: The SATA hard drive power supply interface is a PH2.0 terminal. You need to purchase a PH2.0 terminal to SATA power cable separately. The power supply part includes 5V and 12V. You must confirm the correct wire sequence before connecting the hard drive; otherwise, the hard drive may be damaged.
Keep the development board powered off, connect the hard drive, and then power on the board. Android/Linux will automatically mount the hard drive partitions.
Special Note: It is recommended to partition the hard drive in advance and choose an appropriate partition format.
The K1 development board is equipped with one PCIe 3.0 M.2 SSD hard drive interface.
The Android system only supports NTFS
or Fat32
format partitions.
It is recommended to format the solid-state drive in advance and create partitions in a supported format. If the SSD partition is not in a format supported by the system, you can also follow the system prompts to format the partition. The default format is Fat32.
The M.2 interface supports the current mainstream 2280 specification hard drives and is equipped with fixing studs. Ensure that the development board is powered off, connect the hard drive, and then power on the board.
Test SSD model: Samsung PM981 256G
Test results:
K1 Android 13.0
243 MB/s
604 MB/s
K1 Debian 11
If there are no special requirements, it is recommended to use the Fat32 format for partitioning.
The K1 development board is equipped with the HYM8563 RTC chip, which can save the time even when the power is off.
To test the RTC function, you must connect an external coin cell battery and ensure that the battery has sufficient power.
Test steps:
Connect the development board to the network and automatically synchronize the correct network time.
Disconnect the network connection and the power supply of the development board.
Wait for some time and then reconnect the power supply of the development board.
If the system time is consistent with the current time, the RTC function is normal.
The K1 development board supports a single-channel MIPI CSI 4Lane camera interface and can connect up to two cameras at most. The K3 development board supports a dual-channel MIPI CSI 4Lane camera interface and can connect up to four cameras at most.
Cable Requirements
The number of pins is 40, and the cable direction is reverse.
It is recommended to use the cable included with the screen; otherwise, the screen may be damaged. Before plugging or unplugging any FPC interface peripheral, ensure that the board is completely powered off.
Enter the following command in the command line:
After executing the command to start the
cheese
program, the camera image will be directly displayed. There is currently an ISP library issue in Ubuntu, and the preview effect will be very poor and dark.
gst-launch-1.0
in DebianThe Debian file system has a built-in gst-launch-1.0
test script.
Depending on the number of connected cameras, the
/dev/video
node number may shift, causing the script to fail to open the correct camera. In this case, you can modify the script to specify the correct video number, for example,device=/dev/video-camera0
.
The K8 supports one HDMI input. Currently, the EDID in the driver code supports the following resolutions:
The supported input formats include:
GPU Utilization
You can move the mouse, windows, or perform GPU tests and check the GPU utilization to determine if hardware acceleration is working.
The RK Linux file system has a built-in glmark2-es
performance test tool.
Connect the board to a display device, open a virtual terminal or a debugging serial port terminal, and execute the following command to start the GPU performance test.
You can view the GPU-rendered graphics on an external display (score is approximately 49), and view the GPU rendering logs on the debugging serial port (score is approximately 203). Depending on the GPU performance, it may take about 10 minutes to complete the performance test.
K8 Test Results
When connected to HDMI_OUT0, the test result is 676.
The RK3568 is equipped with an NPU unit with a computing power of 0.8T.
Viewing NPU Usage
Open a virtual terminal or a debugging serial port terminal, and execute the following command to start the NPU function test.
The content after
Begin perf...
shows the performance data of multiple runs of the model:
Each record shows the run number, the corresponding elapsed time (
Elapse Time
), and the frames per second (FPS
). For example,0: Elapse Time = 2.85ms, FPS = 351.12
means that during the first run of the model inference, it took a total of 2.85 milliseconds, and based on this, it can process 351.12 frames of data per second (the FPS is calculated by dividing 1000 by the elapsed time for each run, and the unit is converted to frames per second).The
---- Top5 ----
section presents the top 5 categories with the highest probabilities in the model inference output results, along with their corresponding probability values and category numbers:
0.935059 - 156
means that the model believes the input data (such as an image) is most likely to belong to category number 156, with a corresponding probability of 0.935059. This relatively high probability indicates that the model has a relatively high confidence in this judgment.The subsequent
0.057037 - 155
,0.003881 - 205
,0.003119 - 284
,0.000172 - 285
list the category numbers and probability values of the second to fifth highest probability categories respectively. These probability values decrease sequentially, indicating that the model's confidence in these categories also gradually decreases.
K8 NPU Stress Test Results
When connected to HDMI_OUT0
From the printed information, it can be seen that the average number of frames processed per second is 450.
The detection data stream can be obtained from a camera or a video file. The detection results are directly output to the display, so you need to connect a display to view the results.
Rockchip MPP provides testing tools such as mpi_enc_test
and mpi_dec_test
.
You can directly call MPI through the command line for hardware encoding and decoding tests.
H.264 encoding test for 100 frames at 4096x2160
H.265 encoding test for 100 frames at 4096x2160
Parameter Explanation:
mpi_enc_test
: MPP encoding test tool
-w 4096 -h 2160
: Specify the encoding video resolution as 4096x2160
-t 16777220
: Specify the encoding type as H.265
-o ./test.h265
: Specify the output file for the encoded content
-n 100
: Specify the number of frames to be encoded
H.264 video decoding test for 100 frames
H.265 video decoding test for 100 frames
K8 Encoding and Decoding Test Results
Connect the board to a display device, open a virtual terminal or a debugging serial port terminal, and execute the following command to start the Chromium video test.
The RK3568 is equipped with 8 ADC channels. The K1 development board leads out the ADC3 channel to the expansion pin header.
The RK3568 is equipped with one watchdog. The watchdog is enabled by default after power-on, and the kernel thread automatically feeds the dog.
You can use the following command to switch to user-level manual dog feeding. You must repeat the following command every 44 seconds to feed the dog; otherwise, the system will restart.
The fan's power supply voltage is 5V. The connection method is shown in the following figure.
Currently, it is compatible with and supports the Quecte EC20 and Quecte EC200M-CN modules.
Testing Method: As long as the USB_4G module, antenna, and SIM card are properly installed, the system will automatically detect and obtain an IP address when it boots up.
For the UART module, you need to manually execute the connection script.
/dev/ttyS4
(UART4): The UART port to be used.
ALSA Tools
In the Linux system, you can generally control the sound card configuration and play audio through ALSA tools. The relevant tools are already built into the current Linux system software. If the relevant tools are not installed, you can execute the following command to install them.
After installation, commands such as
aplay
,arecord
, andamixer
can be used.
Tool Usage Instructions
You can use the
-h
option with the commands to view the usage instructions for the corresponding commands.
Listing and Viewing Sound Cards
The speaker's sound card is es8388, which is sound card 1.
Viewing the Sound Card Control Configuration List
Getting the Specified Configuration of the Sound Card
Setting the Specified Configuration of the Sound Card
Speaker Playback Test
The
amixer
configuration is applicable to the es8388 sound card.
Headphone Playback Test
The
amixer
configuration is applicable to the es8388 sound card.
MIC Recording Test
The
amixer
configuration is applicable to the es8388 sound card.
Headset MIC Recording Test
The
amixer
configuration is applicable to the es8388 sound card.
Applicable Platforms: KICKPI-K8 RK3588 Android/Linux
Currently, only the RK3588 supports one 4Lane PCIe 3.0 interface, with a theoretical transmission rate of up to 3.938GB/s. The standard PCI-E expansion port can be externally connected to commonly available PCIE USB expansion cards, PCIE Ethernet expansion cards, and PCIE SSD expansion cards on the market.
Hardware Wiring (PCIE X1 Module)
Software Testing
Hardware Wiring (PCIE X4 Module)
Software Testing
Applicable Platforms: All platforms
Connect a working Ethernet cable, and the Android system interface will display a wired network icon.
You can access web pages normally in the browser.
Click the "loader" button, which is configured as the "Volume Up" button in the Android system, and a volume progress bar will appear on the right side of the display screen. Click the "power" button to put the system into sleep mode or wake it up. Click the "Reset" button to power off and then power on the board, and it will restart.
RS485 Module (Can be powered by 3.3V/5V):
The wiring method for connecting the 4-pin end to the board's UART port is as follows (corresponding top to bottom):
Mainboard: RX TX GND VCC
Module: RXD TXD GND VCC
The wiring method for connecting the 3-pin end to the RS485 device is as follows (corresponding top to bottom):
Module: A GND B
RS485 Device: A GND B
RS232 Module (Can be powered by 3.3V/5V):
The wiring method for connecting the 4-pin end to the board's UART port is as follows (corresponding top to bottom):
Mainboard: TX RX GND VCC
Module: RXD TXD GND VCC
The wiring method for connecting the 3-pin end to the RS232 device is as follows (corresponding top to bottom):
Module: RXD GND TXD
RS232 Device: TXD GND RXD
Android
You can use a serial port app or the microcom
command in the command line for verification:
The microcom
command is as follows:
The received content will be printed, and the sent content will not be printed.
Linux System
You can install and use minicom
for verification:
Install minicom
The received content will be printed, and the sent content will not be printed.
Press
Ctrl+A
to enter the control mode. Use theB - Z
commands, andZ
is for help.
Ctrl+A W
Enable/disable auto line feed (default: disabled)
Ctrl+A E
Enable/disable input display (default: disabled)
Ctrl+A C
Clear the screen
If the serial port is abnormally occupied after exiting:
Serial port setup >> F Hardware Flow Control: Turn it off >> Save setup as dfl: Save >> Exit from Minicom: Exit
Or you can use echo
to directly send data: