Skip to main content

Setup hotspots for raspberry pi 3


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

Comments

  1. The above link does not work. I get `fatal: repository ... not found`. Do you know other repositories for the task?

    ReplyDelete
    Replies
    1. Please check the direct link to Github, thank you!
      https://github.com/quangthanh010290/RPI3_HOTSPOTS

      Delete
  2. can Pi3 can act as ap and sta mode same time.

    ReplyDelete
    Replies
    1. Because 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.

      Delete
  3. nice one. it seems to work. how to set password for my ap?

    ReplyDelete

Post a Comment

Popular posts from this blog

Mô Hình Hóa Và Điều Khiển Mô Hình Xe - Con lắc ngược (Cart and Pole)

Thông số của mô hình: 1.       Khối lượng thân xe : M=2.0 (kg) 2.       Khối lượng con lắc : m=0.1 (kg) 3.       Chiều dài con lắc : l=0.5( m) 4.         là góc lệch của con lắc theo phương thẳng đứng 5.       x : là chuyển vị của xe. 6.       u : input ngoại lực tác động lên xe. 7.       g=9,81 (m/s 2 )  gia tốc trọng trường . 8.       Hệ thống hoạt động trong môi trường tuyến tính. 9.       Chỉ đo được góc lệch con lắc và vị trí xe. 10. Có nhiễu tác động vào hệ thống. Nhiễu đo vị trí xe có phương sai là 0.01, nhiễu góc lệch con lắc có phương sai 0.001. 11. Sử dụng bộ lọc Kalman để ước lượng trạng thái và lọc nhiễu. Bài toán đặt ra: Bài toán đặt ra là thiết kế bộ điều khiển cho (U ) để con lắc luôn ở vị trí thẳng đứng.  Giải bài toán động lực học. -          Giải phóng liên kết, phân tích lực tác động vào hệ: (Nguồn

Make Raspberry Pi3 as an emulator bluetooth keyboard

IIntroduction Step 1: update and upgrade your system sudo apt-get update sudo apt-get upgrade Step 2: Install Git tool sudo apt-get install git-core Step 3: Clone My Repo git clone https://github.com/quangthanh010290/BL_keyboard_RPI Sep 4: Install cd B L_keyboard_RPI sudo ./setup.sh Step 5: Change the bluetooth name (Optional) open the boot.sh file and find the line ./updateName.sh ThanhLe_Keyboard Change the name you want, example ./updateName.sh Mlabviet_Keyboard Step 6: Reboot then Run the app sudo reboot ./boot.sh Step 7: Modify some bluetooth setting. - Open tmux and switch to Bluetooth Console tmux a - Input these params to the console agent on default-agent scan on discoverable on II. Video Comming soon: - Make RPI as a racing wheel Buy the prebuild image Code and images

Remove boot messages (all texts) in Raspberry Pi Jessie

1. Demo 2. Change rainbow splash screen sudo nano /boot/config.txt add this line to the end of file  disable_splash=1 check if this config take effect (optional) sudo reboot 3. Hide the Raspberry logo sudo nano /boot/cmdline.txt Add this line to end of file  logo.nologo check if this config take effect (optional) sudo reboot 4. Hide boot messages sudo nano /boot/cmdline.txt Add this line to end of file  quiet change console  console=tty1 --> console=tty3 check if this config take effect (optional) sudo reboot 5. Change splash screen copy your custom splash to home directory and replace raspberry's splash.png  sudo cp ~/splash.png /usr/share/plymouth/themes/pix/splash.png check if this config take effect (optional) sudo reboot 6. Hide the cursor Add this line to the file /boot/cmdline.txt vt.global_cursor_default=0 check if this config take effect (optional) sudo reboot 7. Advances and disadvances With this setup, almost logs are hidden, but there is some log that