Cuối cùng tôi đã có thể kết nối Raspberry Pi của mình với mạng SSID ẩn (WPA2 Personal) bằng các cài đặt bên dưới (không sử dụng wpa_supplicant.conf).
Tuy nhiên, sau một vài giờ nó ngắt kết nối và không kết nối lại.
- Raspberry Pi B +, chạy NOOBS.
- Thẻ WiFi hỗ trợ USB (chipset Ralink RT5370)
- Đã kết nối với SSID ẩn (Tôi không chắc SSID ẩn có liên quan gì đến vấn đề này, có thể là cá trích đỏ)
Đây là nhật ký:
Feb 6 14:36:01 raspberrypi wpa_supplicant[1641]: wlan0: CTRL-EVENT-DISCONNECTED bssid=90:72:40:1c:ed:c8 reason=4
Feb 6 14:36:01 raspberrypi kernel: [33883.785257] cfg80211: Calling CRDA to update world regulatory domain
Feb 6 14:36:01 raspberrypi ifplugd(wlan0)[1634]: Link beat lost.
Feb 6 14:36:11 raspberrypi ifplugd(wlan0)[1634]: Executing '/etc/ifplugd/ifplugd.action wlan0 down'.
Feb 6 14:36:11 raspberrypi dhclient: Internet Systems Consortium DHCP Client 4.2.2
Feb 6 14:36:11 raspberrypi ifplugd(wlan0)[1634]: client: Internet Systems Consortium DHCP Client 4.2.2
Feb 6 14:36:11 raspberrypi dhclient: Copyright 2004-2011 Internet Systems Consortium.
Feb 6 14:36:11 raspberrypi ifplugd(wlan0)[1634]: client: Copyright 2004-2011 Internet Systems Consortium.
Feb 6 14:36:11 raspberrypi dhclient: All rights reserved.
Feb 6 14:36:11 raspberrypi ifplugd(wlan0)[1634]: client: All rights reserved.
Feb 6 14:36:11 raspberrypi dhclient: For info, please visit https://www.isc.org/software/dhcp/
Feb 6 14:36:11 raspberrypi ifplugd(wlan0)[1634]: client: For info, please visit https://www.isc.org/software/dhcp/
Feb 6 14:36:11 raspberrypi dhclient:
Feb 6 14:36:11 raspberrypi dhclient: Listening on LPF/wlan0/00:0f:60:01:de:14
Feb 6 14:36:11 raspberrypi ifplugd(wlan0)[1634]: client: Listening on LPF/wlan0/00:0f:60:01:de:14
Feb 6 14:36:11 raspberrypi dhclient: Sending on LPF/wlan0/00:0f:60:01:de:14
Feb 6 14:36:11 raspberrypi ifplugd(wlan0)[1634]: client: Sending on LPF/wlan0/00:0f:60:01:de:14
Feb 6 14:36:11 raspberrypi dhclient: Sending on Socket/fallback
Feb 6 14:36:11 raspberrypi ifplugd(wlan0)[1634]: client: Sending on Socket/fallback
Feb 6 14:36:11 raspberrypi dhclient: DHCPRELEASE on wlan0 to 192.168.128.254 port 67
Feb 6 14:36:11 raspberrypi ifplugd(wlan0)[1634]: client: DHCPRELEASE on wlan0 to 192.168.128.254 port 67
Feb 6 14:36:12 raspberrypi wpa_supplicant[1641]: wlan0: CTRL-EVENT-TERMINATING - signal 15 received
Feb 6 14:36:12 raspberrypi ifplugd(wlan0)[1634]: Program executed successfully.
Feb 6 14:36:14 raspberrypi ntpd[2157]: Deleting interface #2 wlan0, 192.168.128.122#123, interface stats: received=389, sent=396, dropped=0, active_time=33841 secs
Feb 6 14:36:14 raspberrypi ntpd[2157]: 192.96.207.244 interface 192.168.128.122 -> (none)
Feb 6 14:36:14 raspberrypi ntpd[2157]: 178.18.16.124 interface 192.168.128.122 -> (none)
Feb 6 14:36:14 raspberrypi ntpd[2157]: 204.2.134.164 interface 192.168.128.122 -> (none)
Feb 6 14:36:14 raspberrypi ntpd[2157]: 216.152.240.220 interface 192.168.128.122 -> (none)
Feb 6 14:36:14 raspberrypi ntpd[2157]: peers refreshed
Đây là / etc / mạng / giao diện
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-scan-ssid 1
wpa-ap-scan 1
wpa-key-mgmt WPA-PSK
wpa-proto RSN WPA
wpa-pairwise CCMP TKIP
wpa-group CCMP TKIP
wpa-ssid "Na*****"
wpa-psk *********************************************************
sudo iwconfig wlan0
nóPower Mgmt: On
không? Nếu vậy thì bạn cần phải vô hiệu hóa nósudo iwconfig wlan0 power off
để giải quyết vấn đề của bạn