3. IPC Application
In the IPC rockit version, the rkipc service starts automatically after system boot. To avoid conflicts during function tests, stop the rkipc service before testing other functions.
1RkLunch-stop.sh
1RkLunch.sh
3.1 Serial Terminal
❶ Connect the USB-to-serial module to the PC and connect the other end to the Debug UART interface on the board.
❷ Open a serial terminal tool on the PC, select the corresponding serial port, and set the baud rate to 1500000.
❸ Power on the board and check whether the boot log is displayed in the serial terminal.
3.2 Display
The KIT1126B uses an LT9611 MIPI-to-HDMI bridge chip to convert the MIPI DSI display signal to HDMI output. The HDMI interface supports 1920×1080@60Hz video output.
1cat /sys/class/lt9611/hdmi/status
After the IPC version system boots, if four MIPI cameras are connected before power-on, the system automatically displays the combined preview image from the four MIPI camera channels.
If the four MIPI cameras are not connected, the desktop UI will not be displayed after boot-up.
3.3 USB
3.3.1 USB3.0 DRD
The KIT1126B USB3.0 DRD supports both Host and Device roles, with Device as the default configuration for image flashing/upgrading. It can be switched to host mode by command, after which it supports peripherals such as mouse, keyboards, and USB flash drives.
1echo host > /sys/kernel/debug/usb/21500000.usb/mode
In USB host mode, when a USB flash drive is connected, it is mounted automatically. The current USB connection speed can be checked in the kernel log.
When the device operates in USB2.0 mode, the log usually shows high-speed.
When the device operates in USB3.0 mode, the log usually shows SuperSpeed.
1echo device > /sys/kernel/debug/usb/21500000.usb/mode
2usbdevice start
3/etc/init.d/S50usbdevice restart
3.3.2 USB2.0 Host
The USB2.0 Host can connect peripherals such as mouse, keyboards, and flash drives.
After a USB flash drive is connected, it will be mounted automatically. Check the mounted path.
1df -h
# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 48.0M 48.0M 0 100% /
devtmpfs 60.4M 0 60.4M 0% /dev
tmpfs 966.9M 0 966.9M 0% /dev/shm
tmpfs 966.9M 16.0K 966.9M 0% /tmp
tmpfs 966.9M 732.0K 966.2M 0% /run
/dev/block/by-name/oem
237.9M 54.7M 169.3M 24% /oem
/dev/block/by-name/userdata
5.8G 320.0K 5.7G 0% /userdata
/dev/mmcblk1p1 59.5G 12.1G 47.4G 20% /mnt/sdcard
/dev/sda1 58.0G 45.2G 12.8G 78% /tmp/sda1
3.4 Audio
3.4.1 Audio Input
❶ Connect the MIC to the connector (2-pin/2.0mm pitch).
❷ Stop the rkipc service.
1RkLunch-stop.sh
# RkLunch-stop.sh
Stop Application ...
[rkipc.c][sig_proc]:received signo 15
344 root 2776m S< rkipc -a /oem/usr/share/iqfiles
rkipc active
[server.c][rkipc_server_deinit]:rkipc_server_deinit failed
[osd.c][osd_time_server]:exit
[video.c][rkipc_osd_bmp_destroy]:RK_MPI_RGN_Destroy [2] failed with 0xa0038005
[video.c][rkipc_osd_bmp_destroy]:RK_MPI_RGN_Destroy [3] failed with 0xa0038005
[video.c][rkipc_osd_cover_destroy]:RK_MPI_RGN_Destroy [4] failed with 0xa0038005
[video.c][rkipc_osd_cover_destroy]:RK_MPI_RGN_Destroy [11] failed with 0xa0038005
❸ Configure Audio input gain.
1rk_mpi_amix_test -C 0 --control 'ACodec Digital Gain Volume' --value '100'
# rk_mpi_amix_test -C 0 --control 'ACodec Digital Gain Volume' --value '100'
cmd parse result:
sound control id : 0
control name : ACodec Digital Gain Volume
control value : 100
list controls : 0
list contents : 0
❹ Record audio.
1rk_mpi_ai_test --device_rate 44100 --device_ch 2 --out_rate 44100 --out_ch 2 -o /oem --sound_card_name hw:0,0
# rk_mpi_ai_test --device_rate 44100 --device_ch 2 --out_rate 44100 --out_ch 2 -
o /oem --sound_card_name hw:0,0
cmd parse result:
input file name : (null)
output file name : /oem
loop count : 1
channel number : 1
open sound rate : 44100
record data rate : 44100
sound card channel : 2
output channel : 2
bit_width : 16
frame_number : 4
frame_length : 1024
sound card name : hw:0,0
device id : 0
set volume curve : 0
set volume : 100
set mute : 0
set track_mode : 0
get volume : 0
get mute : 0
get track_mode : 0
data read enable : 0
aed enable : 0
bcd enable : 0
buz enable : 0
vqe gap duration (ms) : 16
vqe enable : 0
get vqe result : 0
bcd NN model path : (null)
vqe config file : (null)
dump algo pcm data : 0
dev queue len : 0
sed queue len : 0
fd get enable : 1
rockit_load start
v4l2_tx probe successv4l2_rx_probe success
rockit_load end
rockit log path (null), log_size = 0
log_file = (nil)
(null) 15:36:07-526 {log_level_init :209}
please use echo name=level > /tmp/rt_log_level set log level
name: all cmpi mb sys vdec venc rgn vpss vgs tde avs wbc vo vi ai ao aenc adec
log_level: 0 1 2 3 4 5 6
rockit default level 4, can use export rt_log_level=x, x=0,1,2,3,4,5,6 change
3.4.2 Audio Output
❶ Connect the Speaker to the connector (2-pin/2.0mm pitch)
❷ Configure Audio output volume.
1rk_mpi_amix_test -C 0 --control 'DAC Digital Volume' --value '250,250'
# rk_mpi_amix_test -C 0 --control 'DAC Digital Volume' --value '250,250'
cmd parse result:
sound control id : 0
control name : DAC Digital Volume
control value : 250,250
list controls : 0
list contents : 0
❸ Play the audio file.
1rk_mpi_ao_test -i /oem/cap_out.pcm --input_ch 2 --input_rate 44100 --device_rate 44100 --device_ch 2 --sound_card_name hw:0,0
1rk_mpi_ao_test -i /oem/cap_out.pcm --input_ch 2 --input_rate 44100 --device_rate 44100 --device_ch 2 --sound_card_name hw:1,0
3.5 Ethernet
The KIT1126B provides a 100M Ethernet RJ45 interface with PoE support, allowing both data transmission and power supply through a single Ethernet cable.
❶ Connect the network cable to the Ethernet port.
# dmesg | grep -Ei "link|100Mbps"
[ 0.284307] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 1.413451] mpp_rkvdec2 22140100.rkvdec: link mode probe finish
[ 1.420173] can: netlink gateway - max_hops=1
[ 3.188508] rk_gmac-dwmac 21c70000.ethernet eth0: configuring for phy/rmii link mode
[ 5.061192] dw-mipi-dsi-rockchip 22120000.dsi: [drm:dw_mipi_dsi_bridge_atomic_enable] final DSI-Link bandwidth: 996 x 4 Mbps
[ 5.244812] rk_gmac-dwmac 21c70000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 5.245030] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
❷ Check the network interface information.
1ifconfig eth0
# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 0E:2A:C5:09:62:B0
inet addr:192.168.0.188 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::c2a:c5ff:fe09:62b0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:448 errors:0 dropped:60 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:38540 (37.6 KiB) TX bytes:2296 (2.2 KiB)
Interrupt:79
❸ Test network connectivity.
1ping -I eth0 www.armdesigner.com
# ping -I eth0 www.armdesigner.com
PING www.armdesigner.com (13.32.99.68): 56 data bytes
64 bytes from 13.32.99.68: seq=0 ttl=246 time=183.090 ms
64 bytes from 13.32.99.68: seq=1 ttl=246 time=182.210 ms
64 bytes from 13.32.99.68: seq=2 ttl=246 time=181.958 ms
64 bytes from 13.32.99.68: seq=3 ttl=246 time=182.285 ms
64 bytes from 13.32.99.68: seq=4 ttl=246 time=181.792 ms
^C
--- www.armdesigner.com ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 181.792/182.267/183.090 ms
3.6 SD Card
After the micro SD card is inserted and recognized successfully, it will be mounted automatically. Run the following command to check the mount path of the SD card.
1df -h
# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 48.0M 48.0M 0 100% /
devtmpfs 60.4M 0 60.4M 0% /dev
tmpfs 966.9M 0 966.9M 0% /dev/shm
tmpfs 966.9M 16.0K 966.9M 0% /tmp
tmpfs 966.9M 728.0K 966.2M 0% /run
/dev/block/by-name/oem
237.9M 55.7M 166.8M 25% /oem
/dev/block/by-name/userdata
5.8G 328.0K 5.7G 0% /userdata
/dev/mmcblk1p1 59.5G 12.1G 47.4G 20% /mnt/sdcard
/dev/sda1 58.0G 45.2G 12.8G 78% /tmp/sda1
3.7 WiFi & Bluetooth
3.7.1 WiFi
❶ Connect the WiFi antenna.
❷ Check the Wi-Fi device information.
1ifconfig wlan0
# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 14:0A:02:C9:0B:71
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
❸ Scan for available WiFi hotspots.
1wpa_cli -i wlan0 scan
2wpa_cli -i wlan0 scan_results
# wpa_cli -i wlan0 scan
OK
# [network.c][rk_network_get_cable_state]:read Cable state
[network.c][rk_network_get_cable_state]:
[wlan0] link down
# wpa_cli -i wlan0 scan_results
bssid / frequency / signal level / flags / ssid
c8:3a:35:51:1e:98 2442 -47 [WPA-PSK-CCMP][ESS] Tenda_511E98
b4:f1:8c:6d:d1:24 2437 -49 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][ESS] Boardcon
b4:f1:8c:fd:d1:29 2437 -49 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][ESS] Boardcon_Wi-Fi5
b2:22:7a:5a:b6:4a 2437 -53 [WPA2-PSK-CCMP][ESS] DIRECT-4A-HP Laser 136w
38:20:28:50:1e:a1 2437 -65 [WPA2-PSK-CCMP][ESS] Casvi
9c:a6:15:10:e5:57 2437 -71 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][ESS] TP
9c:a6:15:10:da:c5 2462 -73 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP][ESS] TP
38:20:28:50:0f:81 2412 -70 [WPA2-PSK-CCMP][ESS] Casvi
b4:f1:8c:6d:d1:25 2437 -49 [ESS]
❹ Connect hotspot.
1rkwifi_server connect SSID PSK //'SSID': user SSID, 'PSK': password
After connecting, check the network status and test Wi-Fi connectivity.
1ifconfig wlan0
2ping -I wlan0 www.armdesigner.com
3.7.2 Bluetooth
By default, the device is configured to operate as a Bluetooth speaker. The following steps describe how to pair with and connect to a device:
❶ Start the BlueALSA A2DP sink service.
1bluealsa -p a2dp-sink &
# bluealsa -p a2dp-sink &
# bluealsa: W: Couldn't create storage directory: No such file or directory
bluealsa: E: Couldn't acquire D-Bus name. Please check D-Bus configuration. Requested name: org.bluealsa
[1]+ Done(1) bluealsa -p a2dp-sink
❷ Enter the Bluetooth control tool.
1bluetoothctl
# bluetoothctl
Waiting to connect to bluetoothd...Waiting to connect to bluetoothd...[bluetooth]# hci0 new_settings: powered bondable ssp br/edr le secure-conn
[bluetooth]# [bluetooth]# Agent registered
[bluetooth]# [bluetooth]# [CHG] Controller 14:0A:02:C9:0B:72 Pairable: yes
[bluetooth]# [bluetooth]#
❸ Enable Bluetooth and set it to discoverable mode.
Execute the following commands in bluetoothctl:
1power on
2discoverable on
[bluetooth]# [bluetooth]# power on
[bluetooth]# [bluetooth]# Changing power on succeeded
[bluetooth]# [bluetooth]# discoverable on
[bluetooth]# [bluetooth]# hci0 new_settings: powered connectable bondable ssp br/edr le secure-conn
[bluetooth]# [bluetooth]# hci0 new_settings: powered connectable discoverable bondable ssp br/edr le secure-conn
[bluetooth]# [bluetooth]# Changing discoverable on succeeded
[bluetooth]# [bluetooth]# [CHG] Controller 14:0A:02:C9:0B:72 Discoverable: yes
[bluetooth]# [bluetooth]#
After this step, the Bluetooth device can be discovered by the phone.
❹ Pair and connect the Bluetooth device.
On the phone, find the Bluetooth device named BlueZ 5.77 in the Bluetooth device list, then tap it to pair and connect.
If a pairing confirmation message appears, confirm it on both the phone and the board.
[bluetooth]# [bluetooth]# [liuy]# Request confirmation
[liuy]# [liuy]# [agent] Confirm passkey 781208 (yes/no): yes
[liuy]# [liuy]# hci0 new_link_key A8:35:12:9A:EB:4D type 0x05 pin_len 0 store_hint 1
[liuy]# [liuy]# hci0 device_flags_changed: A8:35:12:9A:EB:4D (BR/EDR)
[liuy]# [liuy]# supp: 0x00000000 curr: 0x00000000
[liuy]# [liuy]# [CHG] Device A8:35:12:9A:EB:4D Bonded: yes
[liuy]# [liuy]# [CHG] Device A8:35:12:9A:EB:4D Modalias: bluetooth:v010Fp107Ed1436
[liuy]# [liuy]# [CHG] Device A8:35:12:9A:EB:4D ServicesResolved: yes
[liuy]# [liuy]# [CHG] Device A8:35:12:9A:EB:4D Paired: yes
[liuy]# [liuy]# hci0 A8:35:12:9A:EB:4D type BR/EDR disconnected with reason 3
[liuy]# [liuy]# [CHG] Device A8:35:12:9A:EB:4D ServicesResolved: no
[liuy]# [liuy]# [bluetooth]# [CHG] Device A8:35:12:9A:EB:4D Connected: no
[bluetooth]# [bluetooth]# hci0 A8:35:12:9A:EB:4D type BR/EDR connected eir_len 11
[bluetooth]# [bluetooth]# [liuy]# [CHG] Device A8:35:12:9A:EB:4D Connected: yes
[liuy]# [liuy]# Authorize service
[liuy]# [liuy]# [agent] Authorize service 0000110d-0000-1000-8000-00805f9b34fb (yes/no): yes
[liuy]# [liuy]# [CHG] Device A8:35:12:9A:EB:4D UUIDs: 9664aa26-d76c-43ad-9775-d310f253a408
[liuy]# [liuy]# [CHG] Player /org/bluez/hci0/dev_A8_35_12_9A_EB_4D/player0 Track.Genre:
[liuy]# [liuy]# [CHG] Player /org/bluez/hci0/dev_A8_35_12_9A_EB_4D/player0 Position: 0x0001b781 (112513)
[liuy]# [liuy]# [CHG] Player /org/bluez/hci0/dev_A8_35_12_9A_EB_4D/player0 Position: 0x0001b781 (112513)
[liuy]# [liuy]#
Check the log output to confirm the MAC address. In this example, the MAC address of the mobile phone is A8:35:12:9A:EB:4D.
❺ Exit bluetoothctl.
1exit
❻ Start Bluetooth audio playback.
1bluealsa-aplay A8:35:12:9A:EB:4D &
[liuy]# [liuy]# exit
[liuy]# [liuy]# #
# bluealsa-aplay A8:35:12:9A:EB:4D &
After the Bluetooth connection is established, play audio on the phone. The audio should be output from the board.
3.8 IR
❶ Connect the IR receiver.
❷ Enable IR debug logs.
1echo 1 > /sys/module/rockchip_pwm_remotectl/parameters/code_print
❸ Press remote button, key value printed to log.
# echo 1 > /sys/module/rockchip_pwm_remotectl/parameters/code_print
# dmesg | grep -Ei "USERCODE|RMC_GETDATA"
[ 2086.646835] USERCODE=0x1818
[ 2086.674028] RMC_GETDATA=e4
[ 2086.956856] USERCODE=0x1818
[ 2086.984036] RMC_GETDATA=e6
[ 2087.258583] USERCODE=0x1818
[ 2087.285717] RMC_GETDATA=e5
[ 2087.597475] USERCODE=0x1818
[ 2087.624648] RMC_GETDATA=e7
[ 2087.906789] USERCODE=0x1818
[ 2087.933899] RMC_GETDATA=99
[ 2088.208530] USERCODE=0x1818
[ 2088.235625] RMC_GETDATA=99
[ 2088.531438] USERCODE=0x1818
[ 2088.556328] RMC_GETDATA=34
3.9 RS485
❶ Connect PC and board with USB-to-RS485 adapter.
RS485 connection
❷ Open two serial terminal windows. Set the debug serial port baud rate to 1500000, and set the RS485 serial port baud rate to 115200.
❸ Execute command on the terminal serial port of board to test RS485.
1com /dev/ttyS1 115200 8 0 1
❹ Input character to test RS485 communication.
3.10 CAN
❶ Connect PC and board with USB-to-CAN adapter.
CAN connection
❷ Open the CAN application and set the baudrate to 500000 on PC.
❸ Configure and enable the CAN on the board with a bitrate of 500000.
1ip link set can0 down
2ip link set can0 type can bitrate 500000
3ip link set can0 up
❹ Configure CAN as receiver.
1candump can0
❺ Set CAN as Transmitter.
1cansend can0 123#DEADBEEFDEADBEEF
3.11 4G & GPS
3.11.1 4G
❶ Insert 4G module to mPCIe slot (4G model: EC20/EC25).
❷ Connect antenna and insert SIM card.
❸ Power on.
❹ Initiate the PPP connection.
1pppd call quectel-ppp &
# pppd call quectel-ppp &
# pppd options in effect:
debug # (from /etc/ppp/peers/quectel-ppp)
nodetach # (from /etc/ppp/peers/quectel-ppp)
dump # (from /etc/ppp/peers/quectel-ppp)
noauth # (from /etc/ppp/peers/quectel-ppp)
user test # (from /etc/ppp/peers/quectel-ppp)
password ?????? # (from /etc/ppp/peers/quectel-ppp)
remotename 3gppp # (from /etc/ppp/peers/quectel-ppp)
/dev/ttyUSB3 # (from /etc/ppp/peers/quectel-ppp)
115200 # (from /etc/ppp/peers/quectel-ppp)
lock # (from /etc/ppp/peers/quectel-ppp)
connect chat -s -v -f /etc/ppp/peers/quectel-chat-connect # (from /etc/ppp/peers/quectel-ppp)
disconnect chat -s -v -f /etc/ppp/peers/quectel-chat-disconnect # (from /etc/ppp/peers/quectel-ppp)
nocrtscts # (from /etc/ppp/peers/quectel-ppp)
modem # (from /etc/ppp/peers/quectel-ppp)
hide-password # (from /etc/ppp/peers/quectel-ppp)
novj # (from /etc/ppp/peers/quectel-ppp)
novjccomp # (from /etc/ppp/peers/quectel-ppp)
ipcp-accept-local # (from /etc/ppp/peers/quectel-ppp)
ipcp-accept-remote # (from /etc/ppp/peers/quectel-ppp)
ipparam 3gppp # (from /etc/ppp/peers/quectel-ppp)
noipdefault # (from /etc/ppp/peers/quectel-ppp)
ipcp-max-failure 30 # (from /etc/ppp/peers/quectel-ppp)
defaultroute # (from /etc/ppp/peers/quectel-ppp)
usepeerdns # (from /etc/ppp/peers/quectel-ppp)
noccp # (from /etc/ppp/peers/quectel-ppp)
abort on (BUSY)
abort on (NO CARRIER)
abort on (NO DIALTONE)
abort on (ERROR)
abort on (NO ANSWER)
timeout set to 30 seconds
send (AT^M)
expect (OK)
AT^M^M
OK
-- got it
send (ATE0^M)
expect (OK)
^M
ATE0^M^M
OK
-- got it
send (ATI;+CSUB;+CSQ;+CPIN?;+COPS?;+CGREG?;&D2^M)
expect (OK)
^M
^M
Quectel^M
EC20F^M
Revision: EC20CEFILGR06A09M1G^M
^M
SubEdition: V02^M
^M
+CSQ: 30,99^M
^M
+CPIN: READY^M
^M
+COPS: 0,0,"CHN-CT",7^M
^M
+CGREG: 0,1^M
^M
OK
-- got it
send (AT+CGDCONT=1,"IP","3gnet",,0,0^M)
expect (OK)
^M
^M
OK
-- got it
send (ATD*99#^M)
expect (CONNECT)
^M
^M
CONNECT
-- got it
Script chat -s -v -f /etc/ppp/peers/quectel-chat-connect finished (pid 1993), status = 0x0
Serial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB3
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x566ea7f5> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0x6efcc53> <pcomp> <accomp>]
sent [LCP ConfAck id=0x0 <asyncmap 0x0> <auth chap MD5> <magic 0x6efcc53> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x566ea7f5> <pcomp> <accomp>]
rcvd [LCP DiscReq id=0x1 magic=0x6efcc53]
rcvd [CHAP Challenge id=0x1 <c5fd18131578c78f216cd726870715cf>, name = "UMTS_CHAP_SRVR"]
sent [CHAP Response id=0x1 <4b07fb1e479df566c522678c5cc8ef78>, name = "test"]
rcvd [CHAP Success id=0x1 ""]
CHAP authentication succeeded
CHAP authentication succeeded
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]
sent [IPV6CP ConfReq id=0x1 <addr fe80::780d:c3c8:7050:0a70>]
rcvd [IPCP ConfReq id=0x0]
sent [IPCP ConfNak id=0x0 <addr 0.0.0.0>]
rcvd [IPCP ConfNak id=0x1 <addr 10.3.226.122> <ms-dns1 202.96.134.33> <ms-dns2 202.96.128.166>]
sent [IPCP ConfReq id=0x2 <addr 10.3.226.122> <ms-dns1 202.96.134.33> <ms-dns2 202.96.128.166>]
rcvd [IPCP ConfReq id=0x1]
sent [IPCP ConfAck id=0x1]
rcvd [IPCP ConfAck id=0x2 <addr 10.3.226.122> <ms-dns1 202.96.134.33> <ms-dns2 202.96.128.166>]
Could not determine remote IP address: defaulting to 10.64.64.64
Failed to create /etc/ppp/resolv.conf: Read-only file system
not replacing default route to wlan0 [192.168.0.1]
local IP address 10.3.226.122
remote IP address 10.64.64.64
primary DNS address 202.96.134.33
secondary DNS address 202.96.128.166
Script /etc/ppp/ip-up started (pid 2005)
Script /etc/ppp/ip-up finished (pid 2005), status = 0x0
sent [IPV6CP ConfReq id=0x1 <addr fe80::780d:c3c8:7050:0a70>]
sent [IPV6CP ConfReq id=0x1 <addr fe80::780d:c3c8:7050:0a70>]
sent [IPV6CP ConfReq id=0x1 <addr fe80::780d:c3c8:7050:0a70>]
sent [IPV6CP ConfReq id=0x1 <addr fe80::780d:c3c8:7050:0a70>]
sent [IPV6CP ConfReq id=0x1 <addr fe80::780d:c3c8:7050:0a70>]
sent [IPV6CP ConfReq id=0x1 <addr fe80::780d:c3c8:7050:0a70>]
❺ Test network.
1ifconfig ppp0
2ping -I ppp0 www.armdesigner.com
# ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.3.226.122 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:52 (52.0 B) TX bytes:198 (198.0 B)
# ping -I ppp0 www.armdesigner.com
PING www.armdesigner.com (108.138.246.80): 56 data bytes
64 bytes from 108.138.246.80: seq=0 ttl=245 time=466.868 ms
64 bytes from 108.138.246.80: seq=1 ttl=245 time=431.883 ms
64 bytes from 108.138.246.80: seq=2 ttl=245 time=375.755 ms
64 bytes from 108.138.246.80: seq=3 ttl=245 time=344.079 ms
64 bytes from 108.138.246.80: seq=4 ttl=245 time=295.851 ms
64 bytes from 108.138.246.80: seq=5 ttl=245 time=264.560 ms
^C
--- www.armdesigner.com ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max = 264.560/363.166/466.868 ms
3.11.2 GPS
❶ Insert 4G module to mPCIe socket.
❷ Connect a GPS antenna.
❸ Power on.
❹ Enable the GPS function.
1echo -e "AT+QGPS=1\r\n" > /dev/ttyUSB2
❺ Read the GPS data.
1cat /dev/ttyUSB1
# echo -e "AT+QGPS=1\r\n" > /dev/ttyUSB2
# cat /dev/ttyUSB1
$GPVTG,,T,,M,,N,,K,N*2C
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGGA,,,,,,0,,,,,,,,*66
$GPRMC,,V,,,,,,,,,,N*53
$GPVTG,,T,,M,,N,,K,N*2C
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGGA,,,,,,0,,,,,,,,*66
$GPRMC,,V,,,,,,,,,,N*53
3.12 Motor
Note
Note: Motor_H is temporarily unavailable because its signals are multiplexed with other interfaces on the baseboard only. This document only covers Motor_V testing.
❶ Connect the motor.
❷ Run the test command.
1motor_test /dev/motorX <steps>
<steps>is the number of motor steps.Use a positive value for forward rotation and a negative value for reverse rotation.
Replace
/dev/motorXwith the actual motor device node.
Examples:
Run the motor forward for one full revolution (e.g., 4076 steps)
motor_test /dev/motor0 4076
Run the motor in reverse for 1000 steps:
motor_test /dev/motor0 -1000
3.13 ADC
This test is used to check whether the ADC raw value changes according to the input voltage.
Connect the ADC pin to two different voltage levels within 0~1.8V respectively. For each level, after setting the pin to that level, execute the test command.
Example for ADC1:
1cat /sys/bus/iio/devices/iio:\device0/in_voltage1_raw
# cat /sys/bus/iio/devices/iio:\device0/in_voltage1_raw
8187
# cat /sys/bus/iio/devices/iio:\device0/in_voltage1_raw
12
For other ADC read commands, refer to the ADC read command description below.
1cat /sys/bus/iio/devices/iio:\device0/in_voltage1_raw //ADC1
2cat /sys/bus/iio/devices/iio:\device0/in_voltage2_raw //ADC2
3cat /sys/bus/iio/devices/iio:\device0/in_voltage3_raw //ADC3
4cat /sys/bus/iio/devices/iio:\device0/in_voltage4_raw //ADC4
5cat /sys/bus/iio/devices/iio:\device0/in_voltage5_raw //ADC5
6cat /sys/bus/iio/devices/iio:\device0/in_voltage6_raw //ADC6
1for i in 1 2 3 4 5 6; do
2 echo -n "ADC$i: "
3 cat /sys/bus/iio/devices/iio:\device0/in_voltage${i}_raw
4done
3.14 Camera
CVBS
MIPI CSI
The KIT1126B provides six camera interfaces, including two CVBS and four MIPI CSI. The two CVBS camera interfaces (CH0 and CH1) share a single input channel. Only one can be enabled for preview at a time; the other remains inactive until selected. The CH0 is selected by default.
3.14.1 CVBS Camera
❶ Connect the AHD camera to the board and power on.
❷ Stop the default rkipc service.
1RkLunch-stop.sh
# RkLunch-stop.sh
Stop Application ...
[rkipc.c][sig_proc]:received signo 15
375 root 2720m S< rkipc -a /oem/usr/share/iqfiles
rkipc active
[server.c][rkipc_server_deinit]:rkipc_server_deinit failed
[osd.c][osd_time_server]:exit
[video.c][rkipc_osd_bmp_destroy]:RK_MPI_RGN_Destroy [2] failed with 0xa0038005
[video.c][rkipc_osd_bmp_destroy]:RK_MPI_RGN_Destroy [3] failed with 0xa0038005
[video.c][rkipc_osd_cover_destroy]:RK_MPI_RGN_Destroy [4] failed with 0xa0038005
[video.c][rkipc_osd_cover_destroy]:RK_MPI_RGN_Destroy [11] failed with 0xa0038005
[video.c][rkipc_osd_cover_destroy]:RK_MPI_RGN_Destroy [5] failed with 0xa0038005
❸ Obtain the Ethernet IP address and check the network interface status.
1udhcpc
2ifconfig eth0
# udhcpc
udhcpc: started, v1.36.1
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.0.188, server 192.168.0.1
udhcpc: lease of 192.168.0.188 obtained from 192.168.0.1, lease time 86400
deleting routers
adding dns 192.168.0.1
#
# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 0E:2A:C5:09:62:B0
inet addr:192.168.0.188 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::c2a:c5ff:fe09:62b0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:712 errors:0 dropped:85 overruns:0 frame:0
TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:100521 (98.1 KiB) TX bytes:4218 (4.1 KiB)
Interrupt:79
❹ Start the CVBS camera demo.
1sample_demo_cvbs_camera &
# sample_demo_cvbs_camera &
# === V4L2 Single-Camera RTSP Streamer ===
Config: /dev/video0 720x576 @ 30fps -> H265 -> rtsp://*:554/live/0
[INFO rtsp_demo.c:280:rtsp_new_demo] rtsp server demo starting on port 554
[DEBUG rtsp_demo.c:480:rtsp_new_session] add session path: /live/0
rockit_load start
v4l2_tx probe successv4l2_rx_probe success
rockit_load end
rockit log path (null), log_size = 0
log_file = (nil)
(null) 17:05:25-963 {log_level_init :209}
please use echo name=level > /tmp/rt_log_level set log level
name: all cmpi mb sys vdec venc rgn vpss vgs tde avs wbc vo vi ai ao aenc adec
log_level: 0 1 2 3 4 5 6
rockit default level 4, can use export rt_log_level=x, x=0,1,2,3,4,5,6 change
❺ Open VLC media player on the PC.
❻ Select Media -> Open Network Stream…
❼ Enter the following RTSP URL to preview the camera stream.
1rtsp://192.168.0.188:554/live/0
Note
Replace 192.168.0.188 with the actual Ethernet IP address of the board.
❽ Switch to the desired CVBS interface.
1echo 0 > /sys/class/gm7150/gm7150_4/input_channel
1echo 1 > /sys/class/gm7150/gm7150_4/input_channel
❾ Verify that the image from the selected CVBS interface is displayed correctly.
3.14.2 MIPI Camera
Connect the MIPI camera to the board and power on.
After the system boots, the stitched preview image from all four camera channels is displayed by default.
3.14.2.1 Four-Channel Camera Preview
❶ Check the network status and obtain the Ethernet IP address of the board.
1ifconfig eth0
# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 0E:2A:C5:09:62:B0
inet addr:192.168.0.188 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::c2a:c5ff:fe09:62b0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2462 errors:0 dropped:280 overruns:0 frame:0
TX packets:76802 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:282377 (275.7 KiB) TX bytes:94820146 (90.4 MiB)
Interrupt:79
❸ Open VLC media player on the PC.
❹ Select Media -> Open Network Stream…
❺ Enter the following RTSP URL to preview the camera stream.
1rtsp://192.168.0.188:554/live/0
Note
Replace 192.168.0.188 with the actual Ethernet IP address of the board.
❻ Verify that the image from the selected CVBS interface is displayed correctly.
3.14.2.2 Single-Channel Camera Preview
❶ Stop the default rkipc service.
1RkLunch-stop.sh
# RkLunch-stop.sh
Stop Application ...
[rkipc.c][sig_proc]:received signo 15
385 root 2720m S< rkipc -a /oem/usr/share/iqfiles
rkipc active
[server.c][rkipc_server_deinit]:rkipc_server_deinit failed
[osd.c][osd_time_server]:exit
[video.c][rkipc_osd_bmp_destroy]:RK_MPI_RGN_Destroy [2] failed with 0xa0038005
[video.c][rkipc_osd_bmp_destroy]:RK_MPI_RGN_Destroy [3] failed with 0xa0038005
[video.c][rkipc_osd_cover_destroy]:RK_MPI_RGN_Destroy [4] failed with 0xa0038005
[video.c][rkipc_osd_cover_destroy]:RK_MPI_RGN_Destroy [11] failed with 0xa0038005
[video.c][rkipc_osd_cover_destroy]:RK_MPI_RGN_Destroy [5] failed with 0xa0038005
[video.c][rkipc_osd_cover_destroy]:RK_MPI_RGN_Destroy [12] failed with 0xa0038005
[video.c][rkipc_osd_bmp_destroy]:RK_MPI_RGN_Destroy [6] failed with 0xa0038005
[video.c][rkipc_bind_deinit]:start
385 root 2667m S< rkipc -a /oem/usr/share/iqfiles
rkipc active
❷ Obtain the Ethernet IP address and check the network interface status.
1udhcpc
2ifconfig eth0
# udhcpc: started, v1.36.1
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.0.188, server 192.168.0.1
udhcpc: lease of 192.168.0.188 obtained from 192.168.0.1, lease time 86400
deleting routers
adding dns 192.168.0.1
# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 0E:2A:C5:09:62:B0
inet addr:192.168.0.188 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::c2a:c5ff:fe09:62b0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:863 errors:0 dropped:122 overruns:0 frame:0
TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:79750 (77.8 KiB) TX bytes:3302 (3.2 KiB)
Interrupt:79
❸ Start the camera demo.
1sample_demo_four_camera
# sample_demo_four_camera
No arguments provided, using default settings for 4 cameras.
usage example:
sample_demo_four_camera -s 0 -W 1920 -H 1080 -w 720 -h 576 -f 30 -r 0 -s 1 -W 1920 -H 1080 -w 720 -h 576 -f 30 -r 0 -s 2 -W 1920 -H 1080 -w 720 -h 576 -f 30 -r 0 -s 3 -W 1920 -H 1080 -w 720 -h 576 -f 30 -r 0 -n 0 -b 1
rtsp://xx.xx.xx.xx/live/0, camera 0 main-stream
rtsp://xx.xx.xx.xx/live/1, camera 0 sub-stream
rtsp://xx.xx.xx.xx/live/2, camera 1 main-stream
rtsp://xx.xx.xx.xx/live/3, camera 1 sub-stream
rtsp://xx.xx.xx.xx/live/4, camera 2 main-stream
rtsp://xx.xx.xx.xx/live/5, camera 2 sub-stream
rtsp://xx.xx.xx.xx/live/6, camera 3 main-stream
rtsp://xx.xx.xx.xx/live/7, camera 3 sub-stream
-s | --sensor id (0~3)
-f | --fps: frame per second, Default 30
-r | --hdr: high dynamic range, Default 0
-W | --main_width: main-stream width, Default 1920
-H | --main_height: main-stream height, Default 1080
-w | --sub_width: sub-stream width, Default 720
-h | --sub_height: sub-stream height, Default 576
-n | --enable_npu: enable npu, Default 0
-b | --buf_share: enable buf share, Default 1
Starting with default config...
❹ Open VLC media player on the PC.
❺ Select Media -> Open Network Stream…
❻ Enter the following RTSP URL to preview the camera stream.
1rtsp://192.168.0.188:554/live/0
1rtsp://192.168.0.188:554/live/2
1rtsp://192.168.0.188:554/live/4
1rtsp://192.168.0.188:554/live/6
Note
Replace 192.168.0.188 with the actual Ethernet IP address of the board.
3.15 Video Playback
Video playback can be tested using the simple_vdec_bind_vo command.
1simple_vdec_bind_vo -i /tmp/sda1/testh264.h264
# simple_vdec_bind_vo -i /tmp/sda1/testh264.h264
param list: w = 1920, h = 1080, i = /tmp/sda1/testh264.h264, b = 1
rockit_load start
v4l2_tx probe successv4l2_rx_probe success
rockit_load end
rockit log path (null), log_size = 0
log_file = (nil)
(null) 10:25:13-692 {log_level_init :209}
please use echo name=level > /tmp/rt_log_level set log level
name: all cmpi mb sys vdec venc rgn vpss vgs tde avs wbc vo vi ai ao aenc adec
log_level: 0 1 2 3 4 5 6
rockit default level 4, can use export rt_log_level=x, x=0,1,2,3,4,5,6 change
(null) 10:25:13-692 {read_log_level :083} text is all=4
(null) 10:25:13-692 {read_log_level :085} module is all, log_level is 4
(null) 10:25:13-692 {dump_version :060} ---------------------------------------------------------
(null) 10:25:13-692 {dump_version :061} rockit version: git-b85f3c523 Mon Jan 26 09:47:22 2026 +0800
(null) 10:25:13-692 {dump_version :062} rockit building: built-Chu 2026-01-27 09:45:41
(null) 10:25:13-692 {dump_version :063} ---------------------------------------------------------
(null) 10:25:13-693 {monitor_log_level :141} #Start monitor_log_level thread, arg:(nil)
vsys dev open 4
load library(librga.so) in releative path
mpp[3484]: mpp_info: mpp version: d7dd00e4f author: Herman Chen 2026-02-13 fix[h265d]: Fix invalid hvcc data crash on seek
mpp[3484]: hal_264d_com: control info: fmt 0, w 1920, h 1080
mpp[3484]: mpp_dec: mpp_dec_proc_cfg found MPP_DEC_SET_FRAME_INFO fmt 0
mpp[3484]: mpp_buf_slot: mismatch h_stride_by_pixel 1984 - 1920
mpp[3484]: mpp_buf_slot: mismatch h_stride_by_byte 1984 - 1920
Command explanation
simple_vdec_bind_vo: Video decoding and display test tool.-i: Specifies the input video file./tmp/sda1/testh264.h264: Input H.264 file path.
Note
This command supports H.264 elementary stream files, such as .h264 files. Standard MP4 files are not supported.