当前位置:网站首页>1. Mx6ul core module serial WiFi test (VIII)
1. Mx6ul core module serial WiFi test (VIII)
2022-07-26 02:02:00 【szembed】
The following is already in Iot-6ULX/EVB-6ULX The verification on the platform passed ,Iot-6ULX/EVB-6ULX Introduce the following :

7. WIFI test
IoT-6ULx On the core board WIFI+BT modular AP6214A, Support WIFI And Bluetooth . The backplane is equipped with an antenna interface , It can be used to connect the antenna , Enhance wireless signal . test WIFI Before function , Connect to the development board WIFI Antenna of the module .

WIFI Schematic diagram of antenna interface
WIFI The driver of the module is not integrated into linux In the kernel image , stay linux Only when the device is detected during startup can the driver be loaded . If the driver is not loaded after the system starts , You need to execute instructions to pass modprobe Install the module driver .
[email protected] ~# modprobe brcmfmac // adopt modprobe Installation driver
Use ifconfig Command to display the network .
[email protected] ~# ifconfig // View network information

see WIFI Internet Information
wlan0 yes WIFI Network nodes , The node can be queried in the network configuration information , Indicates that the driver has been loaded correctly . At this time, the network does not get IP Information , Not yet available , The network needs to be configured and connected .
7.1 Network connection configuration
Configure the wireless network , Need to use wpa_supplicant Tools .wpa_supplicant yes linux A very powerful wireless network card management program under the system , It is WPA(WIFI Network security access point ) Application layer authentication client , Be responsible for completing the login related to authentication 、 Encryption, etc .
First , We need to make a configuration file of the relevant information of the wireless network to be connected , Put it in the file system , So that when you connect to the network, you can read the information of the network . In our supporting system , A configuration file has been made wpa_supplicant.conf, Put it in etc Under the table of contents , Execute the following instructions to view the configuration information :
[email protected] ~# cat /etc/wpa_supplicant.conf see etc In the catalog wpa_supplicant.conf file

View the wireless network configuration file
In the display information of the terminal ,network={ } The contents in brackets are the specific configuration information of the wireless network . The following is a brief description of the configuration parameters :
- ssid="artcor", Name of wireless network .
- psk="82523090", Encrypted wireless network password .
- proto=WPA RSN, Network protocol .
- key_mgmt=WPA-PSK, Authentication key management protocol .
- group=CCMP, Group key encryption .
- pairwise=CCMP, Encrypt the key .
The user is testing WIFI In the process , The wireless network name in the configuration file (ssid) And network password (psk) Change the name and password of the wireless network you want to connect to , Other parameters need not be modified .
Execute the following instructions to enter the editing interface of the configuration file :
[email protected] ~# vi /etc/wpa_supplicant.conf // edit etc In the catalog wpa_supplicant.conf file

Get into vi Editor command mode
Input vi After the instruction , Automatically enter to vi The command mode of the editor . here , Click on the keyboard “i” key , Switch to edit mode , You can start to modify the contents of the file .

Get into vi Editor editing mode
After the configuration information is modified , Click on the keyboard “Esc” key , Switch to command mode , Input “:wq”, You can save the modification information and exit vi Editor . And then you can go through cat Command to check whether the file information is modified correctly :
[email protected] ~# cat /etc/wpa_supplicant.conf // see etc In the catalog wpa_supplicant.conf file
After the network configuration file is modified , adopt wpa_supplicant The tool connects to the wireless network in the configuration file , Execute the following instructions :
[email protected] ~# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf -B
among “-i” Represents the specified network port ,“-c” The representative executes according to the configuration file ,“-B” Represents the execution of processes in the background .

Connect to a wireless network
According to the terminal information ,wlan0 Connected to the network . Use ifconfig Command to see wlan0 Whether it has been correctly obtained IP. If wlan0 Failed to get IP, adopt udhcpc Command acquisition :
[email protected] ~# ifconfig // View network information
[email protected] ~# udhcpc -i wlan0 // obtain wlan0 Of IP
wlan0 Get IP in the future , Then you can start the network test .
7.2 Network connectivity test
adopt ping Command to test the connectivity of the network .
ping The host connected to the development board , In this test , Our mainframe IP by 192.168.0.6. During the test, the user will IP Replace it with your own host IP that will do . The test process is as follows “Ctrl+c” End ping Instructions .
[email protected] ~# ping 192.168.0.6 -I wlan0 // use wlan0 ping host 192.168.0.6

wlan0 Connectivity testing
ping After the test , View terminal information , There is no packet loss , It shows that the network connectivity is good .
ping Baidu , Test whether you can surf the Internet . The test process is as follows “Ctrl+c” End ping Instructions .
[email protected] ~# ping www.baidu.com -I wlan0 // use wlan0 ping Baidu

WIFI Online testing
ping After the test , View terminal information , There is no packet loss , It shows that the network connectivity is good .
7.3 TCP/UDP Bandwidth test
Bandwidth test use iperf3 Tools . About iperf3 Please refer to the chapter for the installation and use information of the tool 4.6.2 The content of , No more details here .
Open on the host side Powershell window :

Powershell Window interface
stay Powershell The window executes the following instructions , open iperf3 Tools :
PS E:\iperf-3.1.3-win64> .\iperf3 -s

open iperf3 Tools
here , The host side acts as a server , Development board as client , You can test the network bandwidth .
Start iperf3 Before testing , To avoid interference , Turn off irrelevant network devices first , Keep only the equipment to be tested . Now we are testing wlan0, If eth0 There is a connection , Just turn it off .
[email protected] ~# ifconfig eth0 down // close eth0,down Means closing
After shutting down the irrelevant network , Execute the following instructions , test TCP bandwidth , This test host IP by 192.168.0.6:
[email protected] ~# iperf3 -c 192.168.0.6 -t 10 -4 // test TCP bandwidth , Duration 10s,IPv4 standard
During the test , HyperTerminal and Powershell The window will print relevant information , As shown in the figure below :

test TCP Bandwidth terminal display

test TCP bandwidth Powershell Show
TCP The default is to test with the maximum bandwidth ,WIFI Of TCP Bandwidth is related to network performance .
Execute the following instructions , test UDP bandwidth , This test host IP by 192.168.0.6:
[email protected] ~# iperf3 -c 192.168.0.6 -u -t 10 -4 // test UDP bandwidth , Duration 10s,IPv4 standard
During the test , HyperTerminal and Powershell The window will print relevant information , As shown in the figure below :

test UDP Bandwidth terminal display

test UDP bandwidth Powershell Show
UDP Default bandwidth 1Mbit/sec, The closer the test value is to the theoretical value, the better the test result .
边栏推荐
- 还在用==0 null equal 判断空值吗,对isEmpty 和 isBlank有多少了解呢
- Worthington产气荚膜梭菌神经氨酸酶的特征及测定
- Build embedded development environment and FRP penetration under win
- [C language brush leetcode] 1604. Warn people who use the same employee card more than or equal to three times within an hour (m)
- MySQL locking table problem
- D - Dire Wolf (interval DP)
- 【2021】【论文笔记】6G技术愿景——OTFS调制技术
- Add an interceptor to resttemplate to record the request response, and you also need to solve the problem that the flow is read only once
- Cross Site Request Forgery (CSRF): impact, examples, and Prevention
- Overview of database stress testing methods
猜你喜欢

C# 迭代器的实现

Dest0g3 520 orientation (under update)

vite 本地运行首次进入页面加载慢问题

一款可插拔的AM335X工控模块板载wifi模块

怎么使用宝塔面板把node全栈项目部署到服务器上

The slow loading of the first entry page of vite local operation

Worthington产气荚膜梭菌神经氨酸酶的特征及测定

Video game quiz? I think it's useless. It's better to do these well!

I.MX6UL核心模块使用连载-RS485测试 (十)

CD from grabbing the track to building a streaming media server -- a case study of "moon in the hometown of sleep"
随机推荐
BGP知识点总结
Detailed explanation of redis6.x configuration parameters
Leetcode/ numbers that appear only once
Navica tool imports remote MySQL into local MySQL database
登堂入室soc之arm汇编基础
The e-commerce project is written in the resume. How to answer it during the interview
餐饮连锁门店重塑增长背后的数字化转型
Jupiter notebook reported an error: notebook validation failed: non unique cell ID '2a4xx6' detected
E2. escape the maze (hard version)
Zhinai buys melons (DP backpack)
[paper reading] coat: CO scale conv attentional image transformers
# Dest0g3 520迎新赛(更新中)
Worthington产气荚膜梭菌神经氨酸酶的特征及测定
G2. passable paths (hard version) (tree diameter + LCA)
There is no setter method in grpc list under flutter. How to use related attributes
Worthington nuclease and Micrococcus related research and determination scheme
C# 迭代器的实现
G. Count the trains (thought set + two points)
[in simple terms, play with FPGA learning 11 --- testbench writing skills 2]
MPLS知识点
