To use the pi as a wifi bridge, a local network or just as a wifi range extender.We at FOSSASIA are using it as a network to connect between our SUSI.AI smart speaker and the Android and IOS devices. Or maybe because you can !! :’)
- Raspberry Pi Model 3(since we will be using an internal wifi)
- Power supply for the Pi.
- Monitor (optional)
- Keyboard (optional)
- Mouse (optional)
1.Install and upgrade raspbian
|Sudo apt-get update && sudo apt-get install|
2. Install hostapd and dnsmasq .
This will allow us to use our raspberry pi as a wireless access point
|apt-get remove –purge hostapd -yqq
apt-get update -yqq
apt-get upgrade -yqq
apt-get install hostapd dnsmasq -yqq
3. Now we will add broadcasting IP and DNS address in the dnsmasq configuration file
To access the configuration file use:
|sudo nano /etc/dnsmasq.co|
And to the bottom of the file, add the following commands
- Now to select the SSID and the PASSWORD for the access point, we’ll need to change the configurations of hostapd package
|sudo nano /etc/hostapd/hostapd.conf|
Then, use the following commands :
- To finally sum up the configuration, we’ll have to create a custom network interface that combines all the settings that we have made.
|sudo nano /etc/network/interfaces|
And add the following lines it the EOF
iface wlan0 inet static
Now, we just have to have to disable default interfaces so that they do not interfere with the custom interfaces that we have made.
To do so
|sudo nano /etc/dhcpcd.conf|
Add the following line at the end of the file
- Now just restart the services
|systemctl enable hostapd && systemctl enable dnsmasq
sudo service hostapd start && sudo service dnsmasq start
Now, you will be able to enjoy a self-made access point which is used as a basic mode of connection in SUSI Smart Speaker and can also be used in various other access point methods.
GSOC’18 , FOSSASIA, ACCESS_POINT, SUSI.AI, GSOC, SUSI , SMART_SPEAKER