iMX6ULL开发板WIFI功能测试(三)

今日头条

1142人已加入

描述

步骤5:ping ip或者域名,命令如下。

root@fl-imx6ull:~# ping -c 4 www.baidu.com

PING www.baidu.com (220.181.38.149): 56 data bytes

64 bytes from 220.181.38.149: seq=0 ttl=51 time=26.648 ms

64 bytes from 220.181.38.149: seq=1 ttl=51 time=13.529 ms

64 bytes from 220.181.38.149: seq=2 ttl=51 time=15.656 ms

64 bytes from 220.181.38.149: seq=3 ttl=51 time=26.249 ms

 

--- www.baidu.com ping statistics ---

4 packets transmitted, 4 packets received, 0% packet loss

round-trip min/avg/max = 13.529/20.520/26.648 ms

步骤6:卸载已经加入内核的模块。

root@fl-imx6ull:~# rmmod 8188eu

打印信息如下:

RTL871X: module exit start

usbcore: deregistering interface driver rtl8188eu

RTL871X: indicate disassoc

RTL871X: rtw_cmd_thread: DriverStopped(1) SurpriseRemoved(0) break at line 478

wlan0: CTRL-EVENT-DISCONNECTED bssid=04:d7:a5:84:fa:40 reason=3 locally_generated=1

RTL871X: rtw_ndev_uninit(wlan0)

RTL871X: rtw_dev_unload: driver not in IPS

usb 1-1.3: reset high-speed USB device number 7 using ci_hdrc

RTL871X: module exit success

2、 板载WIFI的使用

说明:

l wifi频率为2.4G

l 兼容8723bu和8723du两种wifi驱动

l 默认路由器采用wpa加密方式。

如果开发板有板载的WIFI无线局域网卡,则焊接在评估板如图所示位置(下图为8723du):

 

WIFI

步骤1:检查iMX6ULL开发板是否已经焊接该模块,正确焊接如上图。连接上天线。

步骤2:iMX6ULL开发板上电,启动Linux系统,先使用lsmod查看模块加载状态:

root@fl-imx6ull:~# lsmod

Module                  Size  Used by

mx6s_capture           14876  0

8723 du                1313893  0             //默认wifi自动加载,8723du已加载成功

ov9650_camera          12446  0

注意:若 飞凌iMX6ULL 开发板上焊接的是8723 b u,使用lsmod会显示8723 b u

以下以8723du为例进行测试描述:

步骤3:测试

Ø STA模式

该模式即作为一个站点,连接到无线网络中,操作方法如下:

-i表示wifi型号;-s表示wifi热点名称;-p表示密码,若无密码输入-p NONE;路由器采用wpa加密方式,具体操作指令可查看wifi.sh脚本

root@fl-imx6ull:~# fltest_cmd_wifi.sh -i 8723du -s forlinx -p xxx        //执行测试脚本

打印信息如下:

wifi 8723du
ssid forlinx
pasw xxx
usbcore: deregistering interface driver rtl8723du
usbcore: registered new interface driver rtl8723du
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
udhcpc (v1.24.1) started
Sending discover...
wlan0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
wlan0: Trying to associate with 04:d7:a5:f9:26:1d (SSID='forlinx' freq=2427 MHz)
wlan0: Associated with 04:d7:a5:f9:26:1d
IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlan0: WPA: Key negotiation completed with 04:d7:a5:f9:26:1d [PTK=CCMP GTK=TKIP]
wlan0: CTRL-EVENT-CONNECTED - Connection to 04:d7:a5:f9:26:1d completed [id=0 id_str=]
nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
Sending discover...
Sending select for 192.168.5.186...
Lease of 192.168.5.186 obtained, lease time 1800
/etc/udhcpc.d/50default: Adding DNS 222.222.202.202
/etc/udhcpc.d/50default: Adding DNS 222.222.222.222
WLAN Finshed!

脚本运行完,能自动分配ip并生成DNS,则wifi连接成功。

ping ip或者域名,命令如下:

root@fl-imx6ull:~#ping -c 5www.baidu.com

 

 
审核编辑:汤梓红
打开APP阅读更多精彩内容
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉

全部0条评论

快来发表一下你的评论吧 !

×
20
完善资料,
赚取积分