下載:
https://iperf.fr/iperf-download.php
adb shell am start com.magicandroidapps.iperf/.iperf
https://iperf.fr/iperf-download.php
iPerf 2.0.5
將 iperf ,分別push 到手機和車機中
【測試步驟】
- 車機手動開啓熱點。
進入設置方法一:
adb shell am start com.android.settings/com.android.settings.Settings ---》 開啓5G wifi熱點,查看熱點密碼
進入設置方法二:
按5下軟件版本--》 hello50 ---> 進入工廠模式 ---》原生設置 ---》 開啓wifi熱點,查看熱點密碼
-
手機連接上車機的5G熱點。
-
分別通過 ifconfig 和 ipconfig 記錄下車機和手機的ip地址。
以車機作服務器, 測試5G吞吐量舉例:
- push iperf 到車機內,並運行
iperf -s -w 5M
adb -s b991f28f root
adb -s b991f28f remount
adb -s b991f28f push iperf /system/bin/iperf
adb -s b991f28f shell
chmod 777 /system/bin/iperf
iperf -s -w 5M
- 手機作爲client 和 車機測試 5G 吞吐量
> adb -s 5T7HGD199A038896 shell
HWTAS:/ # iperf -c 192.168.43.1 -p 5001 -w 5M -i 1 -t 60
------------------------------------------------------------
Client connecting to 192.168.43.1, TCP port 5001
TCP window size: 10.0 MByte (WARNING: requested 5.00 MByte)
------------------------------------------------------------
[ 3] local 192.168.43.90 port 48268 connected with 192.168.43.1 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 1.0 sec 30.2 MBytes 254 Mbits/sec
[ 3] 1.0- 2.0 sec 27.8 MBytes 233 Mbits/sec
[ 3] 2.0- 3.0 sec 21.2 MBytes 178 Mbits/sec
[ 3] 3.0- 4.0 sec 24.9 MBytes 209 Mbits/sec
[ 3] 4.0- 5.0 sec 17.4 MBytes 146 Mbits/sec
[ 3] 5.0- 6.0 sec 17.9 MBytes 150 Mbits/sec
[ 3] 6.0- 7.0 sec 24.8 MBytes 208 Mbits/sec
[ 3] 7.0- 8.0 sec 24.9 MBytes 209 Mbits/sec
[ 3] 8.0- 9.0 sec 26.0 MBytes 218 Mbits/sec
[ 3] 9.0-10.0 sec 25.2 MBytes 212 Mbits/sec
-
測試2.4G 步驟爲:
(1)車機開啓 2.4G wifi 熱點
(2)手機連接車機2.4G 熱點
服務器端配置iperf -s -w 2M
客戶端配置iperf -c 192.168.43.1(服務器端IP地址) -p 5001(服務器端端口號) -w 2M -i 1 -t 60(測試時長)
-
電腦作爲client 連接 車機
iperf.exe -c 192.168.43.1 -p 5001 -w 5M -i 1 -t 60