LoraWAN论坛

标题: 基于 docker 部署 chirpstack v4 (海外常用)操作 [打印本页]

作者: BeyondDream    时间: 2024-10-17 10:31
标题: 基于 docker 部署 chirpstack v4 (海外常用)操作
本帖最后由 BeyondDream 于 2024-11-23 08:39 编辑

- 下载 docker 仓库,补充全球 LoRaWAN 频段,选择国家地区,启动
- chirpstack- Download the docker repository to supplement the global LoRaWAN band, select the country region, and launch chirpstack
  1. git clone https://github.com/chirpstack/chirpstack-docker.git
  2. cd ./chirpstack-docker/
  3. wget https://rimelink.oss-cn-shenzhen.aliyuncs.com/add_extra_channels.sh
  4. sh ./add_extra_channels.sh
  5. region=as923
  6. sed -i "s/\(.*TOPIC_TEMPLATE=\)\([^/]\+\)\(.*\)/\1$region\3/" ./docker-compose.yml
  7. sudo docker-compose up -d
复制代码

- 切换 lorawan 频段并重启 chirpstack
- switch region of lorawan and restart the chirpstack
  1. region=kr920
  2. sed -i "s/\(.*TOPIC_TEMPLATE=\)\([^/]\+\)\(.*\)/\1$region\3/" ./docker-compose.yml
  3. sudo docker-compose down
  4. sudo docker-compose up -d
复制代码


- 停止  chirpstack
- down chirpstack
sudo docker-compose down

- 查看 chirpstack 日志
- logs for chirpstack
sudo docker-compose logs -f

- 查看 down 日志
- logs for downlink of device
sudo docker-compose logs -f | grep downlink-frame
















欢迎光临 LoraWAN论坛 (http://lora.timeddd.com/) Powered by Discuz! X3.3