03-Functional_Testing

Instructions

Unless otherwise specified, the testing methods are applicable to both Ubuntu and Android systems.

Ethernet

Connect the board's network port to a network cable.

K2B: 100M/1000M network port

image-20250427144337458

The left network port light being on indicates a 100M connection, and the right one being on indicates a 1000M connection.

K2C: 100M network port

K2C has no network port lights.

You can view the board's IP address through the router background or the serial port terminal.

image-20250412164019949

User-layer LED Status Control

The default LED trigger mode is "heartbeat", in which the LED status cannot be manually controlled. To enable command-based LED status control, use the following commands to set the trigger mode to "none" and then adjust the brightness:

echo none > /sys/class/leds/sys_led/trigger
echo 1 > /sys/class/leds/sys_led/brightness
echo 0 > /sys/class/leds/sys_led/brightness

IR Infrared

Android

Use a remote control to operate the main interface.

Ubuntu

cat /proc/bus/input/devices
hexdump /dev/input/event0
Press the remote control and check for event reports.
image-20250412151436282

HDMI

Android System

Connect the motherboard to an HDMI-1080P monitor. After the system starts successfully, the interface is as follows:

image-20240306171855522

Ubuntu System

Connect the board to an HDMI-1080P monitor. The system display is as follows when booting:

image-20250412150306655

Audio

Android

Headphone audio output is disabled by default. Enable analog audio output in Android 12.0 system settings:

image-20250428151212987
image-20250428151241109
image-20250428151317031
image-20250428151339351
image-20250428151524271

Ubuntu

Desktop Playback

Requires an HDMI screen with built-in speakers.

cd /bin
sudo ln -s pavucontrol pavucontrol-qt
sudo apt-get update
sudo apt purge pulseaudio
sudo apt install pulseaudio
reboot

Select the second option for HDMI output and the first for headphone output in the volume control menu at the top right corner.

image-20250427194148974

Command-line Playback

$ aplay <filepath> 		 # Play audio, use -h for help
$ amixer 				 # Alsa tool for audio configuration, use -h for help
$ cat /proc/asound/cards  # List sound cards

K2B

HDMI output:
aplay -D hw:0,0 music.wav
Headphone output:
aplay -D hw:1,0 music.wav

K2C

HDMI output:
aplay -D hw:2,0 music.wav
Headphone/speaker output:
aplay -D hw:1,0 music.wav

WiFi / Bluetooth

Android

image-20250428161839792

Ubuntu

WiFi

# View network device list
sudo nmcli dev

# Enable WiFi
sudo nmcli r wifi on

# Disable WiFi
sudo nmcli r wifi off

# Scan nearby hotspots
sudo nmcli dev wifi

# Connect to a hotspot (replace SSID and PASSWORD)
sudo nmcli dev wifi connect "SSID" password "PASSWORD" ifname wlan0

Bluetooth

1.Install Bluetooth Tools

$ sudo apt-get update
$ sudo apt-get install bluez

2.Check Bluetooth Devices

$ hciconfig -a  

3.Classic Bluetooth Operations

# Start scanning
bluetoothctl scan on
# Pair with a device (replace with target MAC)
bluetoothctl pair 28:52:E0:19:17:69
# Connect to a paired device
bluetoothctl connect 28:52:E0:19:17:69
# Trust the device for auto-connection
bluetoothctl trust 28:52:E0:19:17:69
# Disconnect
bluetoothctl disconnect 28:52:E0:19:17:69
# Unpair a device (replace with MAC)
bluetoothctl remove FC:E8:06:E7:96:AF   
# Block connection from a device
bluetoothctl block  FC:E8:06:E7:96:AF 
# List paired devices
bluetoothctl paired-devices

render audio via bluetooth audio device

# Check connected devices
bluetoothctl paired-devices 
# Set Bluetooth as default audio sink (replace MAC)
pacmd set-default-sink bluez_sink.28_52_E0_19_17_69.a2dp_sink
# Play audio through Bluetooth
aplay sample-15s.wav
image-20250428144858777
BLE (Low Energy) Scan
$ hcitool -i hci0 cmd 0x03 0x0003
$ hcitool -i hci0 cmd 08 01 3f 00 00 00 00 00 00 00
$ hcitool lescan

USB

Insert a USB flash drive and:

lsblk
image-20250412150828553

mount

 mkdir /mnt/sda
 mount /dev/sda1 /mnt/sda/
 ls /mnt/sda/

4G

Ubuntu

Applicable to K2C

1.Check USB Module Loading

# lsusb

2.Verify Serial Port Creation

# ls /dev/ttyUSB*

3.Re-dial with SIM Card

# sudo pppd call quectel-ppp &

If dialing fails:

ps -ef | grep pppd  # Find the process ID
kill -9 <PID>       # Terminate the process
# Repeat the dialing command

4.External Network Ping Test

# ping www.baidu.com

DNS Resolution Issue? Edit the resolv.conf file:

# vim /etc/resolv.conf

Add the following DNS servers:

nameserver 8.8.8.8
nameserver 8.8.4.4

Android

Android TV system does not support 4G functionality.

KEY

Android

Pressing the USER button wakes the device from sleep; long-pressing shuts it down (long-press does not power it on).

Ubuntu

Pressing the USER button opens the "Log out" interface.

image-20250512100543793

RS485/232

Applicable to K2C

KICKPI-K2C supports optional configurations: one RS485 port (/dev/ttyAS3) and one RS232 port (/dev/ttyAS4). Port labels are silkscreened on the board's back.

image-20250428162920707

Configuration Commands

stty -F /dev/ttyAS3 115200  # Set baud rate (e.g., 115200 for RS485)
echo "123" > /dev/ttyAS3     # Send data through RS485
cat /dev/ttyAS3              # Receive data from RS485

FAQ

Problem: Unable to access the internet when using both a wired LAN and WiFi connection.

image-20250427165431777

Solution: Refer to Resolving Network Priority Issues When Using Wired and Wireless Networks Simultaneously in Linux.

Last updated