RPI3_HOTSPOTS
1. Features:
- Can install while wlan0 is connected to network.
- easy to switch betwwen stattion mode and hotspot mode.
- can share internet between eth0 and wlan0, can be config to share with wlan1 or ...
2. Introduction:
- This tutorial will guide you steps to setup the Wifi module of raspberry pi 3 work with Station and Access Point mode, you can easily switch between station mode and AP mode. Setup:
git clone https://github.com/quangthanh010290/RPI3_HOTSPOTS.git
sudo ./install.sh
3. Test:
- Station mode: sudo sta [SSID] [password] - Connect to a network with specific ssid name and password ,example:
sudo sta mySSID myPass
- Station mode: sudo sta - Connect to a network with saved ssid name and password ,example:
sudo sta
- AP mode: sudo ap [SSID] [pass] - Create an wifi hotspot with specific ssid and pass ,example:
sudo ap my_ssid 12345678
- AP mode: sudo ap [SSID] - Create an wifi hotspot with specific ssid and no pass ,example:
sudo ap Mlabviet_wifi
4. Bugs:
- station mode somtime need to run more than 1 time or need to be restart the board.
- work with 2.4GHz wifi(RPI3 not support 5GHz wifi)
5. Video
6. Share internet in hotspot mode
- Recently, many people asked me how to share internet from wlan1 with wlan0 while the wlan0 is in the hotspot mode. I make this guide to show you how to do it.
- run below command to share the interface wlan1 to wlan0
sudo ./sharewith.sh wlan1
- copy 2 files interface_share.ap and interface_share.sta to /etc/network/interface
sudo cp interface_share.ap /etc/network/interface.ap
sudo cp interface_share.sta /etc/network/interface.sta
git clone https://github.com/quangthanh010290/RPI3_HOTSPOTS.git
sudo ./install.sh
sudo sta mySSID myPass
sudo sta
sudo ap my_ssid 12345678
sudo ap Mlabviet_wifi
6. Share internet in hotspot mode
- Recently, many people asked me how to share internet from wlan1 with wlan0 while the wlan0 is in the hotspot mode. I make this guide to show you how to do it.
- run below command to share the interface wlan1 to wlan0
sudo ./sharewith.sh wlan1- copy 2 files interface_share.ap and interface_share.sta to /etc/network/interface
sudo cp interface_share.ap /etc/network/interface.ap
sudo cp interface_share.sta /etc/network/interface.sta
The above link does not work. I get `fatal: repository ... not found`. Do you know other repositories for the task?
ReplyDeletePlease check the direct link to Github, thank you!
Deletehttps://github.com/quangthanh010290/RPI3_HOTSPOTS
can Pi3 can act as ap and sta mode same time.
ReplyDeleteBecause of having only one Wifi device, so RPI3 can not work as Access Point or Station as the same time. But you can plug an Wifi usb, so you have 2 wifi devices then RPI can work as AP and Station.
Deletenice one. it seems to work. how to set password for my ap?
ReplyDelete