当前位置:网站首页>Wireless network test based on Feiling NXP i.mx6ull
Wireless network test based on Feiling NXP i.mx6ull
2022-07-20 09:41:00 【Kakarot GT】
One 、iMX6ULL Development board WIFI A functional test
WiFi Support :
modular | Support |
RTL8188EUS | WiFi |
RTL8723BU | WiFi |
RTL8723DU | WiFi |
1、 USB WIFI RTL8188eus Use
explain : USB WIFI WLAN card is an optional module , If there is a need , Please contact the Feiling embedded Online customer service on the official website .
The following for wifi Modules in STA In mode , Connect to Wireless network Test of :
step 1:iMX6ULL Power on the development board , start-up Linux System .
step 2: Connect USB WIFI To Feiling iMX6ULL Development board USB Host Interface
step 3 : Enter the corresponding parameters in the following format :
-i Express wifi model ;
-s Express wifi hotspot name ;
-p The password , If no password is entered -p NONE;
The router uses wpa encryption . Specific operation instructions can be viewed wifi.sh Script .
The printed content of the connection is as follows :
[email protected]:~# fltest_cmd_wifi.sh -i 8188 -s forlinx -p xxxx |
The printed information is as follows :
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! |
The script is finished , Can automatically assign ip And add DNS, be wifi Successful connection .
step 5:ping ip Or domain name , The order is as follows .
[email protected]:~# 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 |
step 6: Uninstall modules that have been added to the kernel .
[email protected]:~# rmmod 8188eu |
The printed information is as follows :
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、 On board WIFI Use
explain :
l wifi The frequency is 2.4G
l compatible 8723bu and 8723du Two kinds of wifi drive
l The default router is wpa encryption .
If the development board has on-board WIFI Wireless LAN card , Then weld it on the evaluation board as shown in the figure ( The following figure for 8723du):
step 1: Check iMX6ULL Whether the development board has welded the module , The correct welding is shown in the figure above . Connect the antenna .
step 2:iMX6ULL Power on the development board , start-up Linux System , First use lsmod Check the module loading status :
[email protected]:~# lsmod Module Size Used by mx6s_capture 14876 0 8723 du 1313893 0 // Default wifi Automatic loading ,8723du Successfully loaded ov9650_camera 12446 0 |
Be careful : if Feiling iMX6ULL What is welded on the development board is 8723 b u, Use lsmod Will be displayed 8723 b u
The following 8723du As an example, test description :
step 3: test
Ø STA Pattern
This mode is used as a site , Connect to a wireless network , Operation method as follows :
-i Express wifi model ;-s Express wifi Hot spot name ;-p The password , If no password is entered -p NONE; The router uses wpa encryption , Specific operation instructions can be viewed wifi.sh Script
[email protected]:~# fltest_cmd_wifi.sh -i 8723du -s forlinx -p xxx // Execute test script |
The printed information is as follows :
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! |
The script is finished , Can automatically assign ip And generate DNS, be wifi Successful connection .
ping ip Or domain name , The order is as follows :
[email protected]:~# ping -c 5 www.baidu.com |
The printed information is as follows :
PING 192.168.4.1 (192.168.4.1): 56 data bytes 64 bytes from 192.168.4.1: seq=0 ttl=128 time=39.783 ms 64 bytes from 192.168.4.1: seq=1 ttl=128 time=81.529 ms 64 bytes from 192.168.4.1: seq=2 ttl=128 time=15.236 ms 64 bytes from 192.168.4.1: seq=3 ttl=128 time=12.076 ms 64 bytes from 192.168.4.1: seq=4 ttl=128 time=16.300 ms
--- 192.168.4.1 ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max = 12.076/32.984/81.529 ms |
wifi The signal
see WiFi The signal method is as follows :
[email protected]:~# cat /proc/net/wireless | grep wlan0 | awk '{print $3}' // Get the signal strength 78. [email protected]:~# cat /proc/net/wireless | grep wlan0 | awk '{print $4}' // Get signal quality , Company dBm -68. [email protected]:~# cat /proc/net/wireless | grep wlan0 | awk '{print $5}' // Background noise of network port , Company dBm -256. |
AP Pattern
explain :
l This module supports AP Pattern , The theoretical maximum connected users are 8 individual .
l This example is Ethernet eth0 Instructions for connecting the router , After configuring Ethernet , Need to test eth0 Whether you can connect to the Internet , If you can connect to the Internet ( Method reference “ Wired network card ” chapter ), Please continue to follow the steps , If not, please check whether the Ethernet or router connection is normal .
Working in AP In mode , Mobile phones and other devices can be directly connected to modules .
Set up Ethernet IP, Configure network firewall :
[email protected]:~# udhcpc -i eth0 // Automatically assigned IP, If you test eth0 Normal network , This step is not necessary [email protected]:~# echo 1 > /proc/sys/net/ipv4/ip_forward // open IP forward [email protected]:~# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE// Set forwarding rules |
Set up WiFi The pattern of IP
Make sure that the module 8723bu Already loaded .
[email protected]:~# ifconfig wlan0 up // open WiFi [email protected]:~# ifconfig wlan0 192.168.0.10 netmask 255.255.255.0 // Set up IP And subnet mask [email protected]:~# ifconfig wlan0 promisc // Set up wlan0 For hybrid mode |
Turn on AP
[email protected]:~# udhcpd /etc/udhcpd/udhcpd.conf & //WiFi Address 、 gateway Wait for configuration information [email protected]:~# hostapd -d /etc/hostapd/hostapd.conf & // encryption 、 user name 、 Password and other settings |
hostapd.conf In file :ssid Username ,/ Is password
Mobile terminals such as mobile phones can use WiFi Connected to the development board AP hotspot ,iMX6ULL The development board uses the following user name and password by default :
Hotspot name :forlinxtest password :1234567890
step 4: Uninstall modules that have been added to the kernel :
[email protected]:~# rmmod 8723du usbcore: deregistering interface driver rtl8723du wlan0: CTRL-EVENT-DISCONNECTED bssid=04:d7:a5:f9:26:1d reason=0 |
FETMX6ULL-C The core board is based on NXP i.MX6U The third core board launched by series processor , Mature technology programme , Bring a stable and reliable new experience . Core board size is only 40*29mm, And USES the 2mm Close the high board to board connector , Put a small volume 、 The advantages of easy disassembly are integrated .iMX6ULL Series core board -iMX6ULL Core board arm Cortex-A7 Linux Core board - ARM Core board - Baoding Feiling Embedded Technology Co., Ltd
边栏推荐
- How to understand the freezing network parameters in the mindscore official website tutorial? Can you explain it?
- This paper interprets "semi supervised medical image segmentation with local contrast loss based on pseudo label self training"
- PCB在导出gerber文件时过孔盖油设置方法
- ZYNQ ARM核之SCU
- SMPL模型
- Vsftp server setup
- Interpretation of the paper: Transformers make strong encoders for medical image segmentation
- SCU of zynq ARM core
- xilinx中的复位
- RTOS——RT-Thread快速入门
猜你喜欢
基於linux操作系統安裝oracle 11g及建庫(centos7x無圖形)
硬核实力!飞凌 TI Sitara AM62X 系列-335x经典再续
smplify-x笔记
基于linux操作系统安装oracle 11g及建库(centos7x无图形)
Research progress of pathological pictures based on deep learning [including papers and overview]
Mysql45 talking about reading notes in simple terms index (5)
RDO部署Openstack 单节点
EIM总线如何测试可用性及稳定性
Vit structure
全志 T507实现SPI转CAN 全过程
随机推荐
瑞萨G2L核心板及开发板上手评测
This paper interprets DNA binding site prediction using a deep learning method
论文解读《Protein subcellular localization based on deep image features and criterion learning strategy》
EIM总线如何测试可用性及稳定性
Spin process
虚拟主机的搭建(多个站点)
FPGA——SPI总线详解(概念)
Mindspore running model_ Bert Thor in zoo, outputs are unreasonable
Absolute position information of the target in the image (1) -- how much position information do revolutionary neural networks encode
QT calls external exe program (the simplest and easiest to use)
[cvpr2021] article, code and data link
FPGA 译码器+解码器 (含代码)
有趣的torch.einsum
Xilinx 7系列原语使用(时钟相关)——(一)
1人天搞定9人天的日志接入开发——基于指令集物联网操作系统的项目开发实践
Carte centrale de la série g2l - Introduction au processeur rz / g2l | schéma de cadre | consommation d'énergie | schéma et Guide de conception matérielle
FPGA刷题P4:使用8-3优先编码器实现16-4优先编码器、 使用3-8译码器实现全减器、 实现3-8译码器、使用3-8译码器实现逻辑函数、数据选择器实现逻辑电路
MNN learning notes
FreeRTOS线程安全、中断安全的printf实现方式
FPM生成封装时关联Allegro打开后无法生成封装问题解决办法