RPi3 Wireless & Bluetooth
|
Posts: 23
Threads: 4
Joined: Feb 2016
Reputation:
4
[Solved]
Sep 25, 2016, 11:36 AM
(This post was last modified: Sep 25, 2016, 11:39 AM by lostprophet.)
Hi everybody,
I have a brand new RPi3, that I have setup according to all the instructions in the htpcguides.com as my HTPC. I managed to install and configure all that I needed so that it works nice and smooth. Now I want to setup the Wireless and Bluetooth, but I have an issue
All is installed on a fresh image of Minibian - not the image with all included. I installed everything by hand (even sudo - as the Minibian distr did not have it installed), however, I cannot get this part from the tutorial:
" If you want the Raspberry Pi 3 WiFi to work on Minibian then download this brcm.zip and unpack the brcm folder to
so the path for the brcm drivers becomes
I cannot find the /lib/firmware folder in my setup. Mountpoint is root - I can see all the folders, except for this structure - /lib/firmware
I have the brcm folder copied in root - so I can copy it from there, I even tried to create the /lib/firmware folder - however, after running the 2 commands -
Code:
sudo modprobe -r brcmfmac
sudo modprobe brcmfmac
nothing happens - the result of
is:
root@RaspberryPi3:/# sudo modprobe -r brcmfmac
root@RaspberryPi3:/# sudo modprobe brcmfmac
root@RaspberryPi3:/# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
root@RaspberryPi3:/#
Can you please tell me what I am missing?
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Sep 25, 2016, 12:40 PM
The Minibian image I provide has these modifications and then i did rpi-update before adding the wireless driver. Hopefully that does the trick.
Posts: 23
Threads: 4
Joined: Feb 2016
Reputation:
4
[Solved]
Sep 25, 2016, 03:47 PM
(Sep 25, 2016, 12:40 PM)Mike Wrote: The Minibian image I provide has these modifications and then i did rpi-update before adding the wireless driver. Hopefully that does the trick.
Mike - spot on as usual - thank you , this below was what I was missing
Code:
apt-get install firmware-linux-nonfree wireless-tools wpasupplicant -y
Once ran - it populated the /lib/firmware folder - I rebooted and ran iwconfig and got this:
root@RaspberryPi3:~# iwconfig
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
lo no wireless extensions.
eth0 no wireless extensions.
now I need to configure the wireless settings - but I am a bit lost where as to how to configure them
Also, is the bluetooth enabled by default, or is there another setting/s to go through
Thank you very much for the help.
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Sep 25, 2016, 09:47 PM
Great, glad you got this far! I do have a wifi guide in progress which is mostly based on this one http://www.htpcguides.com/build-debian-i...ultiplier/ which should get you started.
As for bluetooth I can't help you since I don't use it.
Posts: 23
Threads: 4
Joined: Feb 2016
Reputation:
4
[Solved]
Sep 26, 2016, 06:45 AM
(Sep 25, 2016, 09:47 PM)Mike Wrote: Great, glad you got this far! I do have a wifi guide in progress which is mostly based on this one http://www.htpcguides.com/build-debian-i...ultiplier/ which should get you started.
As for bluetooth I can't help you since I don't use it.
Thank you Mike for the info.
For the bluetooth I just installed for now the packages
sudo apt-get install pi-bluetooth
and left it like that for the moment, as I do not use it.
Regarding the Wireless, what I have done is:
using your info - I created the passphrase -
Code:
wpa_passphrase SSID wifpassword
it only worked once I stated wifpassword in ' ' as I have special characters into the password (to be remembered)
then I ran
Code:
nano /etc/network/interfaces
where I only had these lines
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
and I added your block (with proper edits)
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
# Wireless adapter #1
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid GrimmReaper5
wpa-psk 686df9650cda5971933ce9aea7659f5fc72fa1e9bc87246146738861acf2769b
rebooted the pi, and now iwconfig gives me:
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
lo no wireless extensions.
eth0 no wireless extensions.
in nano /etc/wpa_supplicant/wpa_supplicant.conf I have:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="GrimmReaper5"
psk="password"
}
network={
ssid="GrimmReaper2"
psk="password"
}
my router has 2 bands - 2.4 and 5 - and depending on the capabilities of my devices, I connect either to 5 (N) or to 2.4
I am a bit stuck now - as the PI does not connect to either the 2 or the 5 network. Can you please give me a hint?
Posts: 23
Threads: 4
Joined: Feb 2016
Reputation:
4
[Solved]
Sep 28, 2016, 10:06 AM
Hi Mike,
Any idea on this?
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Solved]
Sep 28, 2016, 10:35 AM
I actually don't use WiFi on any of my Pis, only did it for an initial test. It is weird that it is showing encryption as off. I know there are some other tools for doing this, maybe @manne can help?
Posts: 403
Threads: 26
Joined: Aug 2015
Reputation:
39
[Solved]
Sep 28, 2016, 06:09 PM
This worked for me, you can give it a try.
This was tested on a RPI 2 with a WiFi adapter.
1. Setting up WiFi connection
Edit the network interfaces file:
Code:
sudo nano /etc/network/interfaces
Code:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
#Wifi (Add this)
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
Now save the file by pressing Ctrl+X then Y, then finally press Enter.
2. Getting WiFi network details
Code:
sudo iwlist wlan0 scan
This will list all available WiFi networks, along with other useful information.
Code:
Cell 01 - Address: C0:3F:0E:F4:88:12
ESSID:"YOURSSID-WIFI"
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
3. Configuring WiFi connection /
Adding the network details to the Raspberry Pi
Open the wpa-supplicant configuration file in nano:
Code:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Go to the bottom of the file and add the following:
Code:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="YOURSSID-WIFI"
psk=”PASSWORD"
}
Now save the file by pressing Ctrl+X then Y, then finally press Enter.
At this point, wpa-supplicant will normally notice a change has occurred within a few seconds, and it will try and connect to the network. If it does not, either manually restart the interface with sudo ifdown wlan0 and sudo ifup wlan0, or reboot your Raspberry Pi with sudo reboot.
You can verify if it has successfully connected using ifconfig wlan0. If the inet addr field has an address beside it, the Pi has connected to the network. If not, check your password and ESSID are correct.
Rebbot
Posts: 23
Threads: 4
Joined: Feb 2016
Reputation:
4
[Solved]
Sep 28, 2016, 06:58 PM
(Sep 28, 2016, 06:09 PM)manne Wrote: This worked for me, you can give it a try.
This was tested on a RPI 2 with a WiFi adapter.
1. Setting up WiFi connection
Edit the network interfaces file:
Code:
sudo nano /etc/network/interfaces
Code:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
#Wifi (Add this)
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
Now save the file by pressing Ctrl+X then Y, then finally press Enter.
2. Getting WiFi network details
Code:
sudo iwlist wlan0 scan
This will list all available WiFi networks, along with other useful information.
Code:
Cell 01 - Address: C0:3F:0E:F4:88:12
ESSID:"YOURSSID-WIFI"
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
3. Configuring WiFi connection /
Adding the network details to the Raspberry Pi
Open the wpa-supplicant configuration file in nano:
Code:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Go to the bottom of the file and add the following:
Code:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="YOURSSID-WIFI"
psk=”PASSWORD"
}
Now save the file by pressing Ctrl+X then Y, then finally press Enter.
At this point, wpa-supplicant will normally notice a change has occurred within a few seconds, and it will try and connect to the network. If it does not, either manually restart the interface with sudo ifdown wlan0 and sudo ifup wlan0, or reboot your Raspberry Pi with sudo reboot.
You can verify if it has successfully connected using ifconfig wlan0. If the inet addr field has an address beside it, the Pi has connected to the network. If not, check your password and ESSID are correct.
Rebbot
@manne You are the man. It worked finally.
root@RaspberryPi3:~# iwconfig
wlan0 IEEE 802.11bgn ESSID:"GrimmReaper2"
Mode:Managed Frequency:2.422 GHz Access Point: A4:2B:B0 F:AC:C4
Bit Rate=72.2 Mb/s Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Link Quality=70/70 Signal level=-12 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
The missing piece was the code in interfaces that I was missing.
Thank you so much. Now, only the Bluetooth remains to be aolved and then off to my new project
Posts: 403
Threads: 26
Joined: Aug 2015
Reputation:
39
[Solved]
Sep 28, 2016, 07:10 PM
Cool.
Try to have one problem / thread (post)
Skickat från min SM-G925F via Tapatalk
|
|
|