Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 24968|Reply: 1

How to setup wifi in Orange Pi Zero?

[Copy link]

1

Threads

2

Posts

13

Credits

Novice

Rank: 1

Credits
13
Post time 2016-12-9 05:53:02 | Show all posts |Read mode
Hello, I have an Orange Pi Zero with raspbian installed and I'm trying to setup the wifi connection but I got stuck.

I managed to create wpa_supplicant.conf with my SSID and PSK but when I try to connect typing "wpa_supplicant -D nl80211 -i wlan0 -c wpa_supplicant.conf" or "wpa_supplicant -D wext -i wlan0 -c wpa_supplicant.conf" it always get stuck.
My psk has special characters, so I generated wpa_supplicant.conf with this command: wpa_passphrase MySSID < ~/MyPSK.txt > /etc/wpa_supplicant.conf

Can someone help me?

0

Threads

1

Posts

8

Credits

Novice

Rank: 1

Credits
8
Post time 2017-2-26 19:15:52 | Show all posts
I was having no success setting up the wifi until I hit this thread (http://raspberrypi.stackexchange.com/questions/11631/how-to-setup-multiple-wifi-networks/11738#11738)
Here's my working config...

the critical component was pairing up id_str="mywifi" with iface mywifi inet dhcp. Until I did that it would connect but wouldn't obtain an ip address.

/etc/wpa_supplicant/wpa_supplicant.conf

  1. network={
  2.    ssid="myssid"
  3.    scan_ssid=1
  4.    mode=0
  5.    proto=WPA2
  6.    auth_alg=OPEN
  7.    pairwise=CCMP
  8.    group=CCMP
  9.    key_mgmt=WPA-PSK
  10.    psk="mypassword"
  11.    id_str="mywifi"
  12.    priority=1
  13. }
Copy the Code


/etc/network/interfaces

  1. # Local loopback
  2. auto lo
  3. iface lo inet loopback

  4. allow-hotplug wlan0
  5. iface wlan0 inet manual
  6.   wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
  7. iface mywifi inet dhcp

  8. allow-hotplug eth0
  9. iface eth0 inet static
  10. address 192.168.1.14
  11. netmask 255.255.255.0
  12. gateway 192.168.1.1
  13. dns-nameservers 192.168.1.1

Copy the Code
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2020-10-23 13:35 GMT+8 , Processed in 0.027822 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list