Waveshare SX1262 LoRaWAN Hat

waveshare_lorawan_hat.jpg

Semtech SX1262 based LoRa radio board for RPi.

The board can come with or without a GPS receiver.

Meshtastic

NB The Wareshare Hat is no longer supported by Meshtastic for transmitting messages.

Raspberry Pi Zero 2W / Pi 3B

Download

Kernel configuration

dtparam=spi=on
dtoverlay=spi0-0cs
enable_uart=1

Kernel command line

console=tty1 root=PARTUUID=xxxxxxxx-02 rootfstype=ext4 fsck.repair=yes rootwait cfg80211.ieee80211_regdom=GB

Meshtastic

Lora:
  Module: sx1262  # Waveshare SX126X XXXM
  DIO2_AS_RF_SWITCH: true
  CS: 21
  IRQ: 16
  Busy: 20
  Reset: 18
  
GPS:
  SerialPath: /dev/ttyS0
  
Logging:
  LogLevel: debug # debug, info, warn, error

Webserver:
  Port: 443 # Port for Webserver & Webservices
  RootPath: /usr/share/doc/meshtasticd/web # Root Dir of WebServer

Runit

systemctl stop meshtasticd
systemctl disable meshtasticd
systemctl mask meshtasticd
#! /bin/bash
sleep 1

#LOG
exec 2>&1
ulimit -aH

#RUN
mkdir -p /var/lib/meshtasticd
cd /var/lib/meshtasticd
exec /sbin/meshtasticd -d /var/lib/meshtasticd -c /etc/meshtasticd/config.yaml

Resources

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies