This guide provides step-by-step instructions on how to re-purpose a Linxdot device, originally designed for Helium mining, into a standard ChirpStack gateway.
First, download the factory tool installer required for reflashing the Linxdot device:
wget https://github.com/livinghuang/chirpstack_linxdot/raw/main/Linxdot-Factory-tool-Installer.zipNext, download the OpenWRT image and flash it onto the Linxdot device:
wget https://github.com/livinghuang/chirpstack_linxdot/raw/main/linxdot-opensource-image-1.0.1.tar.gzUse the default credentials to SSH into the Linxdot device:
- Username:
root - Password:
linxdot
Clone the ChirpStack Docker repository to set up the necessary services:
git clone https://github.com/chirpstack/chirpstack-docker.gitNavigate to the chirpstack-docker directory and start the ChirpStack services using Docker Compose:
cd chirpstack-docker
docker-compose upCheck the status of the ChirpStack services to ensure they are running:
docker psClone the Linxdot configuration repository and move the necessary files:
git clone https://github.com/livinghuang/linxdot.git
mv ~/linxdot/chirpstack /etc/init.d/
mv ~/linxdot/docker-compose.yml ~/chirpstack-docker/
mv ~/linxdot/global_conf.json.sx1250 /etc/lora/
mv ~/linxdot/lrpkfw /etc/init.d/Make the management scripts executable:
chmod +x /etc/init.d/chirpstack
chmod +x /etc/init.d/lrpkfwEnable the services to start on boot:
/etc/init.d/chirpstack enable
/etc/init.d/lrpkfw enableTest the service management scripts to ensure they work correctly:
/etc/init.d/chirpstack stop
/etc/init.d/chirpstack start
/etc/init.d/lrpkfw start本指南提供如何將原本設計用於 Helium 採礦的 Linxdot 設備重新配置為標準 ChirpStack 網關的步驟說明。
首先,下載重刷 Linxdot 設備所需的工廠工具安裝程式:
wget https://github.com/livinghuang/chirpstack_linxdot/raw/main/Linxdot-Factory-tool-Installer.zip接下來,下載 OpenWRT 開源映像檔並將其刷入 Linxdot 設備:
wget https://github.com/livinghuang/chirpstack_linxdot/raw/main/linxdot-opensource-image-1.0.1.tar.gz使用以下默認的登入資訊來 SSH 連線到 Linxdot 設備:
- 使用者名稱:
root - 密碼:
linxdot
克隆 ChirpStack Docker 儲存庫以設置必要的服務:
git clone https://github.com/chirpstack/chirpstack-docker.git進入 chirpstack-docker 目錄,並使用 Docker Compose 啟動 ChirpStack 服務:
cd chirpstack-docker
docker-compose up檢查 ChirpStack 服務的狀態,以確保其正常運行:
docker ps克隆 Linxdot 配置儲存庫並移動所需的檔案:
git clone https://github.com/livinghuang/linxdot.git
mv ~/linxdot/docker-compose.yml ~/chirpstack-docker/
mv ~/linxdot/global_conf.json.sx1250 /etc/lora/
mv ~/linxdot/lrpkfw /etc/init.d/
mv ~/linxdot/chirpstack /etc/init.d/使管理腳本具備執行權限:
chmod +x /etc/init.d/chirpstack
chmod +x /etc/init.d/lrpkfw啟用服務使其在開機時自動啟動:
/etc/init.d/chirpstack enable
/etc/init.d/lrpkfw enable測試服務管理腳本以確保其正常運作:
/etc/init.d/chirpstack stop
/etc/init.d/chirpstack start
/etc/init.d/lrpkfw start