/RaspberryPi3-AP

Raspberry Pi 3 AP : Set up rPi3 WiFi AP for Raspbian

Primary LanguageShell

Raspberry Pi3 - AP

請確認已設好 rpi3 的時區及 Wi-Fi country 可用 sudo raspi-config 選 Localisation Options 然後再分別選用 Change Timezone 及 Change Wi-Fi Country 設定 rpi3 的時區 及 Wi-Fi 國家

下載 RaspberryPi3-AP.sh 到 rPi3,下載指令如下:

wget https://raw.githubusercontent.com/shiehyaotsung/RaspberryPi3-AP/master/RaspberryPi3-AP.sh

執行安裝指令,格式如下:(密碼最少 8 碼)

sudo bash RaspberryPi3-AP.sh WiFi名稱 密碼

範例:

sudo bash RaspberryPi3-AP.sh rPi3 raspberry

或者如下格式:

sudo bash RaspberryPi3-AP.sh WiFi名稱 密碼 區域IP前3碼 區域IP最後一碼開頭 區域IP最後一碼結尾

範例:

sudo bash RaspberryPi3-AP.sh rPi3 raspberry 172.18.1 100 160

假設依範例成功執行之後,可用手機連上 wifi 帳號 rPi3 ,密碼 raspberry

在瀏覽器的網址輸入:myrpi3:4567 或 pi.rpi3.my:4567,您將看到您的 rPi3 的 IP ,

您就可以用 putty 或 ssh 登入您的 rPi3 。

您的 arduino 也可以連上這 AP ,用 myrpi3 或 pi.rpi3.my 作為網址,將資料傳給你在 rPi3 的 IoT server 。

即使你 rPi3 的 IP 改變了,你也不須修改 arduino 程式裏的 IP 。

2018-02-21 修改 是因應 Debian 2017年的新版本 Stretch,且相容於 Jessie版。

============================================

You must setup Timezone and Wi-Fi Country.

Download RaspberryPi3-AP.sh

wget https://raw.githubusercontent.com/shiehyaotsung/RaspberryPi3-AP/master/RaspberryPi3-AP.sh

Please use WiFiName and password(minimum: 8 characters)

Usage:

sudo bash RaspberryPi3-AP.sh WiFiName password

or :

sudo bash RaspberryPi3-AP.sh WiFiName password localIP from to

Example:

sudo bash RaspberryPi3-AP.sh rPi3 raspberry

or

sudo bash RaspberryPi3-AP.sh rPi3 raspberry 172.18.1 100 160

After connect to this rPi3 AP , you can browse myrpi3:4567 or pi.rpi3.my:4567 and you will get your rPi3 IP.

If your arduino connects to this rPi3 AP, you can use "myrpi3" or "pi.rpi3.my" as the URL to pass data to the IoT server residing in this rPi3.

Even if your rPi3 IP changes, you do not need to modify the IP in the arduino program.