IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    Initial setup for AHPI7292S 802.11ah PiHAT module HaLow

    R0uter发表于 2022-09-04 06:32:57
    love 0

    去落格博客阅读完整排版的<span lang ="en">Initial setup for AHPI7292S 802.11ah PiHAT module HaLow</span>

    最近更新:4th 9月, 2022

    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:

    ...
    HaLow AP ready
    --------------------------------------------------------------------
    Done.

    On STA, you will see:

    ...
    [7] Connect and DHCP
    Waiting for IP
    Waiting for IP
            inet 192.168.200.23  netmask 255.255.255.0  broadcast 192.168.200.255
    IP assigned. HaLow STA ready
    --------------------------------------------------------------------
    Done.

    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

    <span lang ="en">Initial setup for AHPI7292S 802.11ah PiHAT module HaLow</span>,首发于落格博客。

    其他推荐:
    1. 更新Flash导致Safari崩溃的修复办法
    2. 思科路由器DHCP以及DHCP中继配置的简单示例
    3. iOS 独立开发:管理你的兑换码
    4. 正确使用 PIP 安装 Python 包 避免 TypeError: ‘module’ object is not callable
    5. DoT DoH 除了 DNSCrypt,你还可以了解一下更好的 DNS 加密方案



沪ICP备19023445号-2号
友情链接