RK ALL RF Test
Contents
Applications
The following applications have been installed:
wpa_supplicant
chromium
minicom
iperf3
Close Firewall
Use the following commands to close Firewall:
# systemctl stop NetworkManager #
Performance Mode
Configurate CPU GPU NPU and DDR
Configurate CPU
GPU
NPU
and DDR
to performance mode at the same time:
# echo performance | tee $(find /sys/ -name *governor) #
Configurate CPU only
# echo performance | tee $(find /sys/devices/system/cpu/cpufreq/policy* -name *governor) #
U-Disk
U-Disk
will be mounted at /run/media/sda1
automatically./run/media/sda1
is most common condition, it may be /run/media/sdb1
/run/media/sdc1
.
Plug out U-Disk
, see which one is disappeared, and then to plug in U-Disk
again.
LTE
How to Configure 4G/5G module :
https://ess-wiki.advantech.com.tw/view/RK_Platform_4G
AT Port
How to find AT Port:
Method 1:
# mmcli -m 0 | grep ttyUSB | ports: cdc-wdm0 (qmi), ttyUSB4 (qcdm), ttyUSB5 (gps), | ttyUSB6 (at), ttyUSB7 (at), wwan0 (net)
ttyUSB6
and ttyUSB7
are for the ports for AT command.
Method 2:
# dmesg | grep ttyUSB [ 5.574612] usb 3-1: cp210x converter now attached to ttyUSB0 [ 5.586590] usb 3-1: cp210x converter now attached to ttyUSB1 [ 5.598584] usb 3-1: cp210x converter now attached to ttyUSB2 [ 5.610583] usb 3-1: cp210x converter now attached to ttyUSB3 [ 18.535820] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB4 [ 18.542643] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB5 [ 18.548504] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB6 [ 18.553115] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB7
ttyUSB4
to ttyUSB7
are ports for GSM modem.
And ttyUSB6
(the second port counted backwords) is the port for AT command.
Firmware Version
Quectel EC20/EC25
Take ttyUSB6
as AT port, change it according your DUT.
# stty -F /dev/ttyUSB6 9600 # cat /dev/ttyUSB6 & # echo -e "ATI\r\n" > /dev/ttyUSB6 Quectel EC20F Revision: EC20CEFRGR06A04M4G OK
EC20CEFRGR06A04M4G
is firmware version.
Fibocom NL668
Take ttyUSB6
as AT port, change it according your DUT.
# stty -F /dev/ttyUSB6 9600 # cat /dev/ttyUSB6 & # echo -e "ATI\r\n" > /dev/ttyUSB6 Manufacturer: Fibocom Wireless Inc. Model: NL668-EU Revision: 19036.1000.00.02.76.05 ESN: +GSN: 0x0 +GCAP: +CGSM,+FCLASS,+DS IMEI: 861756050627285 OK
19036.1000.00.02.76.05
is firmware version.
WLAN
How to Configure WLAN module :
https://ess-wiki.advantech.com.tw/view/RK_Platform_WIFI
wpa_supplicant
Configurate wlan through wpa_supplicant
.
Advantech for guest
is AP Host and 12345678
is its password. Change them according your condition.
# systemctl stop NetworkManager # ifconfig wlan0 up # iwlist wlan0 scan | grep ESSID # wpa_passphrase "Advantech for guest" 12345678 > /tmp/wpa.conf # wpa_supplicant -d -B -i wlan0 -c /tmp/wpa.conf -Dnl80211 # udhcpc -i wlan0
Driver/Firmware Version
bcmdhd modules
Advantech PN | Main Chip |
---|---|
AIW-162BS | Broadcom AP6275P |
# ls /sys/module/bcmdhd*/parameters/info_string # cat /sys/module/bcmdhd*/parameters/info_string Driver: 101.10.361.20 (wlan=r892223-20220701-3) [dhd] Firmware: wl0: Jul 12 2022 18:54:54 version 18.35.387.23.146 (g412cc5ec) FWID 01-93c53be6 [dhd] CLM: 9.9.12_SS (2021-10-12 17:03:28) [dhd] Chip: aae8 Rev 2
realtek modules
Advantech PN | Main Chip |
---|---|
EWM-W159M201E | RTL 8822CE-CG |
EWM-W179M201E | RTL 8852BE |
# ls /sys/module/88*/version # cat /sys/module/88*/version v1.15.10.0.5-0-gfa2af07cf.20220503
SDIO Infomation
The sysfs interface provides detailed information on each mmc device:
# cat /sys/kernel/debug/mmc3/ios clock: 50000000 Hz vdd: 21 (3.3 ~ 3.4 V) bus mode: 2 (push-pull) chip select: 0 (don't care) power mode: 2 (on) bus width: 2 (4 bits) timing spec: 2 (sd high-speed) signal voltage: 0 (3.30 V) driver type: 0 (driver type B)