为了方便用户对核心板的性能及功能进行测试,飞凌提供了配套的功能评估板,将产品开发过程中常用的功能接口引出,比如说2路的Ethernet、2路的USB、2路的CAN以及4路的UART、2路的SPI和2路的IIC,同时这里还预留了显示的LCD接口以及4G模组、WIFI模组的插槽等。
本文以用户快速熟悉产品,了解接口功能和测试方法为目的,主要讲述了飞凌iMX6ULL开发板WIFI接口功能的测试方法,以及使用过程中出现的一些问题如何排查。在测试过程中,对一些命令进行了注释,方便用户理解,以实用够用为主。
一、iMX6ULL开发板 WIFI 功能测试
WiFi支持:
模块支持RTL8188EUSWiFiRTL8723BUWiFiRTL8723DUWiFi1、 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连接成功。