Configure Wi-Fi and Bluetooth on the Raspberry Pi v3
Now that I got my baby Version 3, it is to take advantage of its new features : wifi and bluetooth. As usual I will not go through the GUI, but the command line to install and configure our Raspberry Pi 3
- As always the update is needed !
apt-get update && apt-get upgrade
- Make sure you have installed the modules to recognize the components
apt-get
install
apt-utilsfirmware-brcm80211 pi-bluetooth wpasupplicant
- You can now ensure that the interface is well recognized with the command ifconfig -a. You should see the interface wlan0.
- Option : scan the Wi-Fi networks around you
- Install Tools for wifi
apt-get install and wireless-tools
- Enable Interface
ifconfig wlan0 up
- Scan for available networks
iwlist wlan0 scan | grep ESSID
- You must have a list of visible networks
- Install Tools for wifi
- Install the following packages
apt-get install wpasupplicant
- Build a PSK of your Wifi password version
wpa_passphrase Mon_SSID
It will ask for the password to your network. The result will be something like :
network={ ssid="My_SSID" #psk="my_password" psk=12345.....def }
- Copy the value of PSK
- Edit the file/etc/network/interfaces
Auto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp wpa-ssid "My_SSID" wpa-psk 12345.....def
- Stop the Raspberry
- Unplug the ethernet cable
- Restart the Raspberry
That's the part Wifi.
For Bluetooth, it is to follow an instruction on to find and link devices:
- Run the command bluetoothctl
- Once the prompt appears bluetooth, activate the bluetooth with the command power on
- Then switch mode “discovery” with the command scan on then agent on
- When you see the device you want to link appear, use the command pair followed by device ID
- To store the device as authorized to login next time without binding via code, use the command trust monitoring device ID
You're ready to use your Raspberry Pi 3 avec ses nouveaux composants qui nous manquaient. Reste le Gigabit Ethernet et ca sera parfait ! 😉