Difference between revisions of "RK ALL RF Test"

From ESS-WIKI
Jump to: navigation, search
 
(10 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
<code>minicom</code><br>
 
<code>minicom</code><br>
 
<code>iperf3</code>
 
<code>iperf3</code>
</div>  
+
</div>
 +
 
 +
=== Close Firewall ===
 +
Use the following commands to close Firewall:
 +
<pre style="background:#eeeeee;border:2px solid #cccccc;padding:5px 10px;">
 +
# systemctl stop NetworkManager
 +
#
 +
</pre>
  
 
== Performance Mode ==
 
== Performance Mode ==
Line 28: Line 35:
  
 
== LTE ==
 
== LTE ==
How to Configure 4G/5G-module : <br>
+
How to Configure 4G/5G module : <br>
 
https://ess-wiki.advantech.com.tw/view/RK_Platform_4G
 
https://ess-wiki.advantech.com.tw/view/RK_Platform_4G
  
Line 59: Line 66:
  
 
=== Firmware Version ===
 
=== Firmware Version ===
How to get  Firmware Version for EC20.<br>
+
==== Quectel EC20/EC25 ====
 
Take <code>ttyUSB6</code> as AT port, change it according your DUT.
 
Take <code>ttyUSB6</code> as AT port, change it according your DUT.
 
<pre style="background:#eeeeee;border:2px solid #cccccc;padding:5px 10px;">
 
<pre style="background:#eeeeee;border:2px solid #cccccc;padding:5px 10px;">
Line 72: Line 79:
 
</pre>
 
</pre>
  
<code>EC20CEFRGR06A04M4G</code> is firmware verion.
+
<code>EC20CEFRGR06A04M4G</code> is firmware version.
 +
 
 +
==== Fibocom NL668 ====
 +
Take <code>ttyUSB6</code> as AT port, change it according your DUT.
 +
<pre style="background:#eeeeee;border:2px solid #cccccc;padding:5px 10px;">
 +
# 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
 +
</pre>
 +
 
 +
<code>19036.1000.00.02.76.05</code> is firmware version.
  
 
== WLAN ==
 
== WLAN ==
Line 78: Line 103:
 
https://ess-wiki.advantech.com.tw/view/RK_Platform_WIFI<br>
 
https://ess-wiki.advantech.com.tw/view/RK_Platform_WIFI<br>
  
== wpa_supplicant ==
+
=== wpa_supplicant ===
 
Configurate wlan through <code>wpa_supplicant</code>.<br>
 
Configurate wlan through <code>wpa_supplicant</code>.<br>
 
<code>Advantech for guest</code> is AP Host and <code>12345678</code> is its password. Change them according your condition.
 
<code>Advantech for guest</code> is AP Host and <code>12345678</code> is its password. Change them according your condition.
Line 90: Line 115:
 
</pre>
 
</pre>
  
== Firmware Version ==
+
 
TBD
+
=== Driver/Firmware Version ===
 +
 
 +
==== bcmdhd modules ====
 +
 
 +
{| border="1" cellpadding="1" cellspacing="1" style="width: 500px;"
 +
|-
 +
! scope="col" style="width: 149px; text-align: left;" | <span style="font-size:x-small;">Advantech PN</span>
 +
! scope="col" style="width: 165px; text-align: left;" | <span style="font-size:x-small;">Main Chip</span>
 +
|-
 +
| style="width: 149px;" | <span style="font-size:x-small;"><span style="color:#3498db;">AIW-162BS</span></span>
 +
| style="width: 165px;" | <span style="font-size:x-small;"><span style="color:#3498db;">Broadcom AP6275P</span></span>
 +
|-
 +
| style="width: 149px;" | &nbsp;
 +
| style="width: 165px;" | &nbsp;
 +
|}
 +
 
 +
 
 +
<pre style="background:#eeeeee;border:2px solid #cccccc;padding:5px 10px;">
 +
# 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
 +
</pre>
 +
 
 +
==== realtek modules ====
 +
{| border="1" cellpadding="1" cellspacing="1" style="width: 500px;"
 +
|-
 +
! scope="col" style="width: 149px; text-align: left;" | <span style="font-size:x-small;">Advantech PN</span>
 +
! scope="col" style="width: 165px; text-align: left;" | <span style="font-size:x-small;">Main Chip</span>
 +
|-
 +
| style="width: 149px;" | <span style="font-size:x-small;"><span style="color:#3498db;">EWM-W159M201E</span></span>
 +
| style="width: 165px;" | <span style="font-size:x-small;"><span style="color:#3498db;">RTL 8822CE-CG</span></span>
 +
|-
 +
| style="width: 149px;" | <span style="font-size:x-small;"><span style="color:#3498db;">EWM-W179M201E</span></span>
 +
| style="width: 165px;" | <span style="font-size:x-small;"><span style="color:#3498db;">RTL 8852BE</span></span>
 +
|}
 +
 
 +
 
 +
<pre style="background:#eeeeee;border:2px solid #cccccc;padding:5px 10px;">
 +
# ls /sys/module/88*/version
 +
# cat /sys/module/88*/version
 +
v1.15.10.0.5-0-gfa2af07cf.20220503
 +
</pre>
 +
 
 +
=== SDIO Infomation ===
 +
The sysfs interface provides detailed information on each mmc device:
 +
<pre style="background:#eeeeee;border:2px solid #cccccc;padding:5px 10px;">
 +
# 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)
 +
</pre>

Latest revision as of 08:34, 10 April 2024

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)