Initial setup for AHPI7292S 802.11ah PiHAT module HaLow

Basic idea

For AP and STA mode, the AP acts like a gateway, STA is the end device. One AP can link to multiple STA, the STA.

Base start

A basic fresh start steps:https://docs.alfa.com.tw/Product/AHPI7292S/20_Getting_Started_New/

Go to this page and follow the instructions. Install the new Pi image through the internet, do not download the pre-build image. Before writing the image to the card, make sure to add a preset ssh config if you want to use ssh.

DO NOT upgrade the Pi, kernel version must remain the same, otherwise will need to compile the driver manually! Must use a screen and a keyboard to do the following things, the IP address will be set to DHCP even if you preset it to static.

Actually, the IP config setting will be reset every time you start the service. You must have a router that runs DHCP.

  1. After flashing the card, now the Pi can auto-pick the address from the router.
  2. Make sure Pi has an internet connection.
  3. Run the script: curl -sL https://downloads.alfa.com.tw/raspbian/nrc7292_setup.sh.txt | bash -
  4. if you encounter a PGP key problem, run curl -sL "https://downloads.alfa.com.tw/raspbian/raspbian.public.key" | sudo apt-key add - then retry the command above.
  5. Give it time. The Pi needs to restart multiple times; each reboot needs you to press return to confirm.
  6. Until: [Done] The setup program finished.

After the script,

  1. Use default user pi and password raspberry login to the pi.
  2. Use command sudo hostnamectl set-hostname Halow_RPi_xxx change pi name (give it a meaningful name for future use)
  3. e.g., name as Halow_RPi_9 or Halow_RPi_SAT

Config set located at ~/nrc_pkg/script/conf/AU

Something worth a note:If ssh encountered WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! , edit the file ~/.ssh/known_hosts , and remove the entry that starts with your targeting IP address.

Connection test

To start the simple link, device A(STA) run ./nrc_pkg/script/start.py 0 0 AU , device B(AP) run ./nrc_pkg/script/start.py 1 0 AU

On AP, you will see:

On STA, you will see:

Now use eth cable connect the STA direct to a computer, the computer can access internet through the 802.11ah link.

traceroute shows the device connect to internet through 200.x network

traceroute shows the device connect to internet through 200.x network

on AP, it has 192.168.200.1 ip address

on AP, it has 192.168.200.1 ip address

本文由 落格博客 原创撰写:R0uter's Blog » Initial setup for AHPI7292S 802.11ah PiHAT module HaLow

转载请保留出处和原文链接:https://www.logcg.com/archives/3591.html

About the Author

R0uter

The non-declaration,I have written articles are original,Reproduced, please indicate the link on this page and my name。

Comments

  1. I plugged my Ethernet cable into the sta and into my computer and I’m not getting any internet connection even though there is internet on the pi. Any tips?

    1. Then I d like to check on the pi, see if the redirection works, check on your interface config, see if the eth port under the same network or the gateway settings (I mean ip addresses)
      Sry not really helping since it was two yrs ago lol

Leave a Reply

Your email address will not be published. Required fields are marked *