当前位置:网站首页>Configuration of AP hotspot on xunwei-imx6ull development board
Configuration of AP hotspot on xunwei-imx6ull development board
2020-11-06 22:00:54 【Book white】
The development board connects the power supply and debug the serial port , Then open the debug serial port terminal , Then power up the development board , Wait for the system to start complete , Pictured 99.6.1 Shown :
And then make chapter five U The disk is inserted into the development board USB Interface , You can see that the serial port prints out USB Device information , Pictured 99.6.2 Shown :
We are debugging the serial terminal input “df” command , You can see U Disk mount Directory , The operation result is as shown in the figure 99.6.3 Shown :
Next, we are debugging the serial terminal input “cd /run/media/sda1/hostap” command , Go to what we created in Chapter 5 “hostap” Folder , Pictured 99.6.4 Shown :
We type in “ls” command , You can see the file copied in Chapter 5 , Pictured 99.6.5 Shown :
And then we use cp Command copy “ lib_nl.tar.gz ” and “ openssl.tar.gz ” To the system directory “ /usr/lib ” Catalog Next , The operation result is as shown in the figure 99.6.6 Shown :
And then we use “cd /usr/lib” command , Enter into “/usr/lib” Under the table of contents , Pictured 99.6.7 Shown :
Then type in “ tar -xvf lib_nl.tar.gz ” and “ tar -xvf openssl.tar.gz ” These two commands , decompression libnl and openssll Library file to the current directory ( Because what I'm using here is yocto file system , The system has been installed libnl and openssll The library file of , So I don't decompress , If you use other file systems , You need to decompress it here ).
Then back U Disk directory , Copy “hostapd.conf”,“udhcpd.conf”,“udhcpd.leases” To systematic “/etc” Under the table of contents , Pictured 99.6.8 Shown :
hostapd.conf Files are settings AP Network name of the hotspot , And the password , It reads as follows :
ctrl_interface=/var/run/hostapd
interface=wlan0
driver=nl80211
ssid=Topeet_TEST
channel=1
macaddr_acl=0
auth_algs=1
hw_mode=g
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=123456780
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
above ssid yes wifi The name of (Topeet_test),wpa_passphrase yes wifi Password (1234567890).
udhcpd.conf The file is configuration dhcp Of , The contents are as follows :
start 192.168.0.2
end 192.168.0.100
interface wlan0
max_leases 20 #default: 254
remaining yes #default: yes
auto_time 7200
decline_time 3600
conflict_time 3600
offer_time 60
min_lease 60
lease_file /etc/udhcpd.leases
opt dns 10.221.0.11 8.8.8.8
option subnet 255.255.255.0
opt router 192.168.0.1
Start and end It specifies wifi The distribution of IP Address range (192.168.0.2-192.168.0.100), Other parameters can be found on the Internet , I won't talk about it in detail here .
Then copy “hostapd” To systematic “/usr/sbin” Catalog , Pictured 99.6.9 Shown :
because yocto File system usage rfkill Command to manage wifi and bluetooth , First of all, we are debugging the serial terminal input “rfkill unblock wifi” To open wifi( If you don't use yocto file system , You can ignore the next step ), The operation result is as shown in the figure 99.6.10 Shown :
And then in the debug serial port input “ifconfig wlan0 192.168.0.1 up” command , To configure wlan0 Of ip, And enable the wlan, Pictured 99.6.11 Shown :
And then in the debug serial port input “hostapd -B /etc/hostapd.conf -dd” Start AP hotspot , The operation result is as shown in the figure 99.6.12 Shown :
And then in the debug serial port input “udhcpd -fS /etc/udhcpd.conf &”, Turn on dhcp server service (udhcpd This program is when we are making a file system busybox It is provided by default , If your file system doesn't have this program , You can reconfigure busybox Or transplant it alone udhcpd This procedure , The specific migration steps will not be introduced here ), The operation result is as shown in the figure 99.6.13 Shown :
thus AP The hotspot feature has been turned on , We can input in the debug serial port “ps -el” View all processes , Be able to see hostapd and udkcpd Two processes are running in the background , Pictured 99.6.14 Shown :
And then we can use a mobile phone or a laptop to scan wifi, Can find “Topeet_TEST” The Internet , And connect the wifi The Internet , Password input “123456780”, It will eventually connect to “Topeet_TEST” The Internet , At the same time, we will see when debugging the serial port dhcp Assigned to our cell phones ip Address “192.168.0.2”, Pictured 99.6.15 Shown :
So far, we have finished the introduction of creating hot spots on the development board .
版权声明
本文为[Book white]所创,转载请带上原文链接,感谢
边栏推荐
- C++ 数字、string和char*的转换
- C++学习——centos7上部署C++开发环境
- C++学习——一步步学会写Makefile
- C++学习——临时对象的产生与优化
- C++学习——对象的引用的用法
- C++编程经验(6):使用C++风格的类型转换
- Won the CKA + CKS certificate with the highest gold content in kubernetes in 31 days!
- C + + number, string and char * conversion
- C + + Learning -- capacity() and resize() in C + +
- C + + Learning -- about code performance optimization
猜你喜欢
-
C + + programming experience (6): using C + + style type conversion
-
Latest party and government work report ppt - Park ppt
-
在线身份证号码提取生日工具
-
Online ID number extraction birthday tool
-
️野指针?悬空指针?️ 一文带你搞懂!
-
Field pointer? Dangling pointer? This article will help you understand!
-
HCNA Routing&Switching之GVRP
-
GVRP of hcna Routing & Switching
-
Seq2Seq实现闲聊机器人
-
【闲聊机器人】seq2seq模型的原理
随机推荐
- LeetCode 91. 解码方法
- Seq2seq implements chat robot
- [chat robot] principle of seq2seq model
- Leetcode 91. Decoding method
- HCNA Routing&Switching之GVRP
- GVRP of hcna Routing & Switching
- HDU7016 Random Walk 2
- [Code+#1]Yazid 的新生舞会
- CF1548C The Three Little Pigs
- HDU7033 Typing Contest
- HDU7016 Random Walk 2
- [code + 1] Yazid's freshman ball
- CF1548C The Three Little Pigs
- HDU7033 Typing Contest
- Qt Creator 自动补齐变慢的解决
- HALCON 20.11:如何处理标定助手品质问题
- HALCON 20.11:标定助手使用注意事项
- Solution of QT creator's automatic replenishment slowing down
- Halcon 20.11: how to deal with the quality problem of calibration assistant
- Halcon 20.11: precautions for use of calibration assistant
- “十大科学技术问题”揭晓!|青年科学家50²论坛
- "Top ten scientific and technological issues" announced| Young scientists 50 ² forum
- 求反转链表
- Reverse linked list
- js的数据类型
- JS data type
- 记一次文件读写遇到的bug
- Remember the bug encountered in reading and writing a file
- 单例模式
- Singleton mode
- 在这个 N 多编程语言争霸的世界,C++ 究竟还有没有未来?
- In this world of N programming languages, is there a future for C + +?
- es6模板字符
- js Promise
- js 数组方法 回顾
- ES6 template characters
- js Promise
- JS array method review
- 【Golang】️走进 Go 语言️ 第一课 Hello World
- [golang] go into go language lesson 1 Hello World