完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
运行环境
使用的开发板1
Host-AP 功能准备 下载需要的文件在网盘 “MYZR-IMX6 > 5_MY-Demo” 中下载以下文件:
MY-IMX6-EK200 Host-AP 使用步骤 加载 WIFI 模块的驱动# insmod ~/my-demo/MY_8188EUS_V4324_L4115_IMX6A9.koRTL871X: module init startRTL871X: rtl8188eu v4.3.24_16705.20160509bFWReady == _FALSE call reset 8051...RTL871X: hal_com_config_channel_plan chplan:0x08RTL871X: rtw_ndev_init(wlan0) if1 mac_addr=e0:b9:4d:7f:e4:40u***core: registered new interface driver rtl8188euRTL871X: module init ret=0==> rtl8188e_iol_efuse_patchIPv6: ADDRCONF(NETDEV_UP): wlan0: link is not readyRTL871X: set bssid:00:00:00:00:00:00为 WLAN0 配置 IP 地址# ifconfig wlan0 192.168.12.1==> rtl8188e_iol_efuse_patchIPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready为 WLAN0 启用 DHCP 服务# udhcpd -f /etc/my_udhcpd.conf &[1] 773udhcpd (v1.24.1) started为 WLAN0 启用 Host-AP 功能# hostapd /etc/my_hostapd_nl80211.conf -BConfiguration file: /etc/my_hostapd_nl80211.confrfkill: Cannot open RFKILL control deviceUsing interface wlan0 with hwaddr e0:b9:4d:7f:e4:40 and ssid "MY_WLAN0_HOSTAP"random: Cannot read from /dev/random: Resource temporarily unavailablerandom: Only 0/20 bytes of strong random data available from /dev/randomrandom: Not enough entropy pool available for sRTL871X: assoc successecure operationsWPA: Not enoughIPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready entropy in random pool for securRTL871X: set group key camid:1, addr:00:00:00:00:00:00, kid:1, type:AESe operations - update keys later when the first station connectswlan0: interface state UNINITIALIZED->ENABLEDwlan0: AP-ENABLED客户端设备连接到 Host-AP至此,开发板的 Host-AP 功能已启用,客户端设备可连接至此 AP。 需要说明的是,客户端设备(如手机)在首次连接 AP 成功前时可能会失败 0~2 次。
MY-IMX6-EK140P Host-AP 使用步骤 加载 WIFI 模块的驱动# insmod ~/my-demo/MY_8188EUS_V4324_L4115_IMX6A7.koRTL871X: module init startRTL871X: rtl8188eu v4.3.24_16705.20160509bFWReady == _FALSE call reset 8051...RTL871X: hal_com_config_channel_plan chplan:0x20RTL871X: rtw_ndev_init(wlan0) if1 mac_addr=10:a4:be:0e:c2:32u***core: registered new interface driver rtl8188euRTL871X: module init ret=0root@myimx6ek140p:~# ==> rtl8188e_iol_efuse_patchIPv6: ADDRCONF(NETDEV_UP): wlan0: link is not readyRTL871X: set bssid:00:00:00:00:00:00为 WLAN0 配置 IP 地址# ifconfig wlan0 192.168.12.1==> rtl8188e_iol_efuse_patchIPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready为 WLAN0 启用 DHCP 服务# udhcpd -f /etc/my_udhcpd.conf &[1] 613udhcpd (v1.24.1) started为 WLAN0 启用 Host-AP 功能# hostapd /etc/my_hostapd_nl80211.conf -BConfiguration file: /etc/my_hostapd_nl80211.confrfkill: Cannot open RFKILL control deviceUsing interface wlan0 with hwaddr 10:a4:be:0e:c2:32 and ssid "MY_WLAN0_HOSTAP"random: Cannot read from /dev/random: Resource temporarily unavailablerandom: Only 0/20 bytes of strong random data available from /dev/randomrandom: Not enough entropy pool available for secure operationsWPA: Not enough entropy in random pool for secure operations - update keys latRTL871X: assoc successer when the first station connectIPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes readysRTL871X: set group key camid:1, addr:00:00:00:00:00:00, kid:1, type:AESwlan0: interface state UNINITIALIZED->ENABLEDwlan0: AP-ENABLED客户端设备连接到 Host-AP至此,开发板的 Host-AP 功能已启用,客户端设备可连接至此 AP。 需要说明的是,客户端设备(如手机)在首次连接 AP 成功前时可能会失败 0~2 次。
设备连接成功时产生的信息Sending OFFER of 192.168.12.20Sending OFFER of 192.168.12.20Sending ACK to 192.168.12.20设备断开连接时产生的信息RTL871X: OnDeAuth(wlan0) reason=3, ta=b4:0b:44:f5:64:2fRTL871X: clear key for addr:b4:0b:44:f5:64:2f, camid:4 |
|
相关推荐
|
|
基于米尔瑞芯微RK3576核心板/开发板的人脸疲劳检测应用方案
606 浏览 0 评论
870 浏览 1 评论
768 浏览 1 评论
1984 浏览 1 评论
3230 浏览 1 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 12:34 , Processed in 0.533595 second(s), Total 31, Slave 25 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号