现在的位置: 首页 > 综合 > 正文

如何测试wifi direct的传输速度

2017年11月13日 ⁄ 综合 ⁄ 共 380字 ⁄ 字号 评论关闭

[DESCRIPTION]

本文描述了用iperf测试wifi direct的传输速度的方法。

[SOLUTION]

1.推送iperf文件到待测试的两个手机

adb remount

adb push iperf  /system/bin

adb shell

cd /system/bin/

chmod 777 iperf

2.两手机进行wifi direct连接

首先,对所有已保存的ap进行取消保存的操作。

然后wifi direct连接。

 

3.获取手机的ip地址

adb shell

ifconfig p2p0

 

4.在一个手机上启iperfserver

cd /system/bin/

iperf –s

 

5.在另一个手机上启iperfclient

cd /system/bin/

iperf –c [另一手机的ip地址]  -i 3 –t 180

这样就可以了。

-i 3表示每3s报告一次传输速度。

-t 180 表示打流量打180s

【上篇】
【下篇】

抱歉!评论已关闭.