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

今日头条

1112人已加入

描述

一、iMX6ULL开发板 WIFI 功能测试

WiFi支持:

 

模块 支持
RTL8188EUS WiFi
RTL8723BU WiFi
RTL8723DU WiFi

 

 

1、 USB WIFI RTL8188eus使用

说明: USB WIFI无线局域网卡是选配模块 ,如若有需求,请联系飞凌嵌入式官网在线客服。

以下对wifi模块在STA模式下,连接到无线网络的测试:

步骤1:iMX6ULL开发板上电,启动Linux系统。

步骤2:连接USB WIFI到飞凌iMX6ULL开发板的USB Host接口

步骤 3 按照如下格式输入相应的参数:

-i表示wifi型号;

-s表示wifi热点名称;

-p表示密码,若无密码输入-p NONE;

路由器采用wpa加密方式。具体操作指令可查看wifi.sh脚本。

连接打印内容如下:

root@fl-imx6ull:~# fltest_cmd_wifi.sh -i 8188 -s forlinx -p xxxx

打印信息如下:

wifi 8188

ssid forlinx

pasw xxxx

usbcore: deregistering interface driver rtl8723bu

RTL871X: module exit start

usbcore: deregistering interface driver rtl8188eu

RTL871X: rtw_ndev_uninit(wlan1)

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

RTL871X: module exit success

RTL871X: module init start

RTL871X: rtl8188eu v4.3.0.9_15178.20150907

RTL871X: build time: Mar 25 2020 02:23:46

bFWReady == _FALSE call reset 8051...

RTL871X: rtw_ndev_init(wlan0)

usbcore: registered new interface driver rtl8188eu

RTL871X: module init ret=0

==> rtl8188e_iol_efuse_patch

IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

ps: invalid option -- 'f'

BusyBox v1.24.1 (2019-04-27 02:24:01 CST) multi-call binary.

 

Usage: ps

Successfully initialized wpa_supplicant

rfkill: Cannot open RFKILL controRTL871X: set bssid:00:00:00:00:00:00

l device

RTL871X: set ssid [g▒isQ▒J▒)ͺ▒▒▒▒F|▒T▒▒vZ.c3▒ɚ���<▒▒▒▒] fw_state=0x00000008

ioctl[SIOCSIWAP]: Operation not permitted

ioctl[SIOCGIWSCAN]: Resource temporarily unavailable

ioctl[SIOCGIWSCAN]: Resource temporarily unavailable

RTL871X: indicate disassoc

wlan0: Trying to associate with 04:d7:a5:84:fa:40 (SSID='forlinx' freq=2437 MHz)

RTL871X: set ssid [forlinx] fw_state=0x00000008

RTL871X: set bssid:04:d7:a5:84:fa:40

RTL871X: start auth

RTL871X: auth success, start assoc

RTL871X: assoc success

IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

RTL871X: recv eapol packet

wlan0: Associated with 04:d7:a5:84:fa:40

RTL871X: send eapol packet

RsvdPageNum: 8

udhcpc (v1.24.1) started

RTL871X: recv eapol packet

RTL871X: send eapol packet

RTL871X: recv eapol packet

RTL871X: send eapol packet

RTL871X: set pairwise key camid:4, addr:04:d7:a5:84:fa:40, kid:0, type:AES

wlan0: WPA: Key negotiation completed with 04:d7:a5:84:fa:40 [PTKRTL871X: set group key camid:5, addr:04:d7:a5:84:fa:40, kid:2, type:AES

=CCMP GTK=CCMP]

wlan0: CTRL-EVENT-CONNECTED - Connection to 04:d7:a5:84:fa:40 completed [id=0 id_str=]

Sending discover...

Sending select for 192.168.4.129...

Lease of 192.168.4.129 obtained, lease time 36000

/etc/udhcpc.d/50default: Adding DNS 222.222.202.202

/etc/udhcpc.d/50default: Adding DNS 222.222.222.222

Finshed!

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

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

全部0条评论

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

×
20
完善资料,
赚取积分