这是对先前询问的与EW7811U WiFi适配器相关的问题的评论(该主题已关闭,因此我无法直接回答)。我有相同的Edimax EW7811U适配器,这是我如何使用Red Pitaya和我的WPA2保护的802.11n网络。
首先关闭Red Pitaya,取出存储卡并将其连接到PC(我使用存储卡附带的适配器并将其插入笔记本电脑的存储卡插槽中。)
编辑文件/etc/network/wpa_supplicant.conf并插入ssid和psk字符串:
# WPA2 configuration example
network={
ssid="ssid-string"
psk="password-string"
proto=WPA2
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
auth_alg=OPEN
}
保存文件并将存储卡放回Red Pitaya并重新启动。
在我的控制台中,我可以看到wlan0接口已初始化,DHCP客户端获取IP地址:
++ Bringing up wlan0
Successfully initialized wpa_supplicant
rfkill: Cannot open RFKILL control device
ioctl[SIOCSIWAP]: Operation not permitted
udhcpc (v1.20.1) started
Sending discover...
Sending discover...
Sending discover...
Sending select for 192.168.11.115...
Lease of 192.168.11.115 obtained, lease time 43200
您可以使用iwconfig检查接口状态:
redpitaya> iwconfig
wlan0 IEEE 802.11bgn ESSID:"my-ssid" Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency:2.412 GHz Access Point: 20:C9:D0:1D:AB:CD
Bit Rate:150 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:****-****-****-****-****-****-****-**** Security mode:open
Power Management:off
Link Quality=100/100 Signal level=83/100 Noise level=0/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0