I am unable to setup wifi with NANO pi . I have used the below as per your literature: auto lo iface lo inet loopback auto wlan0 iface wlan0 inet dhcp wpa-driver wext wpa-ssid <MYSSID> wpa-ap-scan 1 wpa-proto RSN wpa-pairwise CCMP wpa-group CCMP wpa-key-mgmt WPA-PSK wpa-psk <MYWIFI PASSWORD> Still unable to connect to our local Wi-Fi. I have changed the security settings to WPA2-PSK in the above to suit our Router which is configured with WPA2-PSK security settings. The Access point SSID and Password are checked several times. Does this module work only for WPA-PSK ? or any other security schemes ? I am to scan and see the wifi networks, but not able to connect. any help is appreciated Thanks Naveen
Nanopi WIFI settings
This is the process I will be using when my NanoPi arrives. https://github.com/forrestbao/NanoPi/wiki/FriendlyARM-images After a quick look through I don't see anything different, but do post back if you sort it. Good luck, Dave
http://wiki.friendlyarm.com/wiki/index.php/NanoPi Looks like this document was just updated with some WiFi information.
I can not see my nanopi WiFi AP. I use command 'turn-wifi-into-apmode yes' but nothing changed. Is there any other initialization for WiFi? Thanks, Arash
I think problem is because of driver. Here is output of execution of hostapd manually: root@nanopi:~# hostapd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf nl80211: Could not configure driver mode nl80211 driver initialization failed. hostapd_free_hapd_data: Interface wlan0 wasn't started How can I fix this? Regard, Arash
how to disable the AP mode ??? followed the wiki link but bot much success ... please help which link you were following @Naveen
Nope .. nothing happened ...i want to run internet on my nanoPi .. and cant configure wifi settings ?????
turn-wifi-into-apmode no I also set a static address in wlan0 and I get: root@nanopi:~# hostapd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf Using interface wlano with hwaddr 04:e6:76:71:49:77 and ssid "nanopi-wifiap" wlan0: interface state UNINITIALIZED->ENABLED wlan0: AP-ENABLED Seems odd that cat /sys/module/bcmdhd/parameters/op-mode says 0 and the above says AP-ENABLED
Hi Dave I used wpa-cli commands, see http://nanopi.org/NanoPi_Quick%20Start.html for some suggestions. I did manage to get my nanopi connected to the net.
OK, I see there are few extra sections in that document. wpa_cli -iwlan0 scan OK wpa_cli -iwlan0 scan_result bssid freq signal level flags ssid 1c:af:05:39:1a:93 2437 -59 [WPA2-PSK-CCMP] [ESS]AndroidAP8362 There is no /usr/sbin/wpa_action to edit. I changed the sample wlan0 file: auto lo iface lo inet loopback auto wlan0 iface wlan0 inet static address 192.168.43.10 netmask 255.255.255.0 broadcast 192.168.43.255 gateway 192.168.43.1 (my WiFi Hotspot) wpa-driver wext wpa-ssid YourWiFiESSID wpa-ap-scan 1 wpa-proto RSN wpa-pairwise CCMP wpa-group CCMP wpa-key-mgmt WPA-PSK wpa-psk YourWiFiPassword The command route seems to indicate that the NanoPi has found the Hotspot. And ifconfig -a shows the correct information. I am also puzzled why lsusb shows nothing and dmesg | tail does not look anything like the example in the guides.
> I am also puzzled why lsusb shows nothing and dmesg | tail does not look > anything like the example in the guides. Ugh. Make sure you are using a USB data cable not a USB power only cable :(
Hi all, Last night, I've been successfully connected to Android AP Tethering mode by using wifi mode on NanoPI, I'm using OpenWrt Chaos Calmer 15.05 as a root file system, and connect to AP with some wireless tools package (not default luci wifi tools)... But still at my thinking that it seems to be has a driver problem, since i keep got erorr authentication while connecting to my TP-LINK AP... I will post some connection steps and logs that probably could be solved at this forum...
Here is my logs: ======================== root@OpenWrt:~# cat /etc/wpa_supplicant.conf # ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 ap_scan=1 network={ ssid="AndroidAP" psk="myAPpass" } network={ ssid="TP-LINK_7506B4" psk="myAPpass" } root@OpenWrt:~# iwinfo wlan0 info wlan0 ESSID: unknown Access Point: 00:00:00:00:00:00 Mode: Client Channel: unknown (unknown) Tx-Power: unknown Link Quality: unknown/70 Signal: unknown Noise: unknown Bit Rate: unknown Encryption: unknown Type: nl80211 HW Mode(s): 802.11bg Hardware: 02D0:A962 0000:0000 [Generic MAC80211] TX power offset: unknown Frequency offset: unknown Supports VAPs: no PHY name: phy0 root@OpenWrt:~# iwinfo wlan0 scan Cell 01 - Address: 90:F6:52:75:06:B4 ESSID: "TP-LINK_7506B4" Mode: Master Channel: 6 Signal: -89 dBm Quality: 21/70 Encryption: mixed WPA/WPA2 PSK (TKIP, CCMP) root@OpenWrt:~# ip link set wlan0 up root@OpenWrt:~# ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:144 errors:0 dropped:0 overruns:0 frame:0 TX packets:144 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:9792 (9.5 KiB) TX bytes:9792 (9.5 KiB) usb0 Link encap:Ethernet HWaddr E2:75:EB:29:F3:B2 inet addr:192.168.3.1 Bcast:192.168.3.255 Mask:255.255.255.0 inet6 addr: fe80::e075:ebff:fe29:f3b2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:467 errors:0 dropped:0 overruns:0 frame:0 TX packets:333 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:44767 (43.7 KiB) TX bytes:52610 (51.3 KiB) wlan0 Link encap:Ethernet HWaddr 04:E6:76:6F:F6:A2 inet6 addr: fe80::6e6:76ff:fe6f:f6a2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:7 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:818 (818.0 B) root@OpenWrt:~# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf Successfully initialized wpa_supplicant wlan0: Trying to associate with 90:f6:52:75:06:b4 (SSID='TP-LINK_7506B4' freq=2437 MHz) wlan0: CTRL-EVENT-ASSOC-REJECT bssid=90:f6:52:75:06:b4 status_code=1 wlan0: Trying to associate with 90:f6:52:75:06:b4 (SSID='TP-LINK_7506B4' freq=2437 MHz) wlan0: CTRL-EVENT-ASSOC-REJECT bssid=90:f6:52:75:06:b4 status_code=1 wlan0: Trying to associate with 90:f6:52:75:06:b4 (SSID='TP-LINK_7506B4' freq=2437 MHz) wlan0: CTRL-EVENT-ASSOC-REJECT bssid=90:f6:52:75:06:b4 status_code=1 wlan0: Trying to associate with 90:f6:52:75:06:b4 (SSID='TP-LINK_7506B4' freq=2437 MHz) wlan0: CTRL-EVENT-ASSOC-REJECT bssid=90:f6:52:75:06:b4 status_code=1 wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=2 ssid="TP-LINK_7506B4" auth_failures=1 duration=10 reason=CONN_FAILED wlan0: CTRL-EVENT-SSID-REENABLED id=2 ssid="TP-LINK_7506B4" wlan0: Trying to associate with 90:f6:52:75:06:b4 (SSID='TP-LINK_7506B4' freq=2437 MHz) wlan0: CTRL-EVENT-ASSOC-REJECT bssid=90:f6:52:75:06:b4 status_code=1 wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=2 ssid="TP-LINK_7506B4" auth_failures=2 duration=23 reason=CONN_FAILED ^Cnl80211: deinit ifname=wlan0 disabled_11b_rates=0 wlan0: CTRL-EVENT-TERMINATING ======================== root@OpenWrt:~# iwinfo wlan0 scan Cell 01 - Address: 90:F6:52:75:06:B4 ESSID: "TP-LINK_7506B4" Mode: Master Channel: 6 Signal: -88 dBm Quality: 22/70 Encryption: mixed WPA/WPA2 PSK (TKIP, CCMP) Cell 02 - Address: 9A:FA:E3:47:CB:29 ESSID: "AndroidAP" Mode: Master Channel: 1 Signal: -87 dBm Quality: 23/70 Encryption: WPA2 PSK (CCMP) root@OpenWrt:~# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf Successfully initialized wpa_supplicant wlan0: Trying to associate with 9a:fa:e3:47:cb:29 (SSID='AndroidAP' freq=2412 MHz) wlan0: Associated with 9a:fa:e3:47:cb:29 wlan0: WPA: Key negotiation completed with 9a:fa:e3:47:cb:29 [PTK=CCMP GTK=CCMP] wlan0: CTRL-EVENT-CONNECTED - Connection to 9a:fa:e3:47:cb:29 completed [id=0 id_str=] ======================== root@OpenWrt:~# iw wlan0 link Connected to 9a:fa:e3:47:cb:29 (on wlan0) SSID: AndroidAP freq: 2412 signal: -91 dBm tx bitrate: 52.0 MBit/s root@OpenWrt:~# udhcpc -i wlan0 -b udhcpc (v1.23.2) started Sending discover... Sending discover... Sending select for 192.168.43.193... Lease of 192.168.43.193 obtained, lease time 43200 udhcpc: ifconfig wlan0 192.168.43.193 netmask 255.255.255.0 broadcast 192.168.43.255 udhcpc: setting default routers: 192.168.43.1 root@OpenWrt:~# ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:384 errors:0 dropped:0 overruns:0 frame:0 TX packets:384 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:26112 (25.5 KiB) TX bytes:26112 (25.5 KiB) usb0 Link encap:Ethernet HWaddr E2:75:EB:29:F3:B2 inet addr:192.168.3.1 Bcast:192.168.3.255 Mask:255.255.255.0 inet6 addr: fe80::e075:ebff:fe29:f3b2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:775 errors:0 dropped:0 overruns:0 frame:0 TX packets:569 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:68122 (66.5 KiB) TX bytes:86424 (84.3 KiB) wlan0 Link encap:Ethernet HWaddr 04:E6:76:6F:F6:A2 inet addr:192.168.43.193 Bcast:192.168.43.255 Mask:255.255.255.0 inet6 addr: fe80::6e6:76ff:fe6f:f6a2/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1349 (1.3 KiB) TX bytes:2092 (2.0 KiB)
root@OpenWrt:~# iwinfo wlan0 scan Cell 01 - Address: 90:F6:52:75:06:B4 ESSID: "TP-LINK_7506B4" Mode: Master Channel: 6 Signal: -89 dBm Quality: 21/70 Is the signal level getting marginal? Later on -91dBm, I am surprised that it is still working. Can you get closer to the TP-Link and see if your command: root@OpenWrt:~# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf works successfully? root@OpenWrt:~# ifconfig lo Link encap:Local Loopback usb0 Link encap:Ethernet HWaddr E2:75:EB:29:F3:B2 inet addr:192.168.3.1 Bcast:192.168.3.255 Mask:255.255.255.0 192.168.3.1 Are you setting your own usb0 IP address, mine is 192.168.100.1
================================= Is the signal level getting marginal? Later on -91dBm, I am surprised that it is still working. --------------------------------- I'm not sure that's accurate, coz I place my devices near me (not far than 1 meter) ================================= Can you get closer to the TP-Link and see if your command: root@OpenWrt:~# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf works successfully? --------------------------------- Yeah, I'm curious too, since TP-Link use mixed method: Encryption: mixed WPA/WPA2 PSK (TKIP, CCMP) will post another logs soon... ================================= 192.168.3.1 Are you setting your own usb0 IP address, mine is 192.168.100.1 --------------------------------- Yes, I configured it my self on WebLuci of OpenWrt, seems everything configurable on Luci, except of the wifi, it's not detected automatically by Luci, so I should manual wifi connection instead... Btw, I'm using rootfs taken from openwrt-15.05-kirkwood-generic-rootfs.tar.gz, which was available here: http://downloads.openwrt.org/chaos_calmer/15.05/kirkwood/generic/ and installed some wifi tools from its distribution packages...
Finally got the NanoPi to find my Smartphone's HotSpot, so now have access to the internet. turn-wifi-into-apmode no And put in the suggested wlan0 file at /etc/network/interfaces.d/ When I did /etc/init.d/networking restart I looked at all the messages I saw on the UART and at the top there was a suggestion: systemctl daemon-reload So, I dropped that in on the command line and after that finished I did another /etc/init.d/networking restart Saw the same suggestion again, but this time when I pinged 8.8.8.8 it worked. Work for anyone else?