Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:meshtastic [2024/08/28 12:47] – [Resources] darrontools:meshtastic [2024/09/11 11:25] (current) – [Command Line Interface] darron
Line 1: Line 1:
 ====Meshtastic==== ====Meshtastic====
  
-===CLI===+===Mestastic Linux=== 
 + 
 +Using the [[interfaces:wavesharehat|Wareshare Hat]] for RPi. 
 + 
 +==Raspberry Pi Zero 2W / Pi 3B== 
 + 
 +__Kernel configuration__
  
 <code> <code>
-apt install python3-full+dtparam=spi=on 
 +dtoverlay=spi0-0cs 
 +enable_uart=1
 </code> </code>
 +
 +__Kernel command line__
 +
 +<code>
 +console=tty1 root=PARTUUID=xxxxxxxx-02 rootfstype=ext4 fsck.repair=yes rootwait cfg80211.ieee80211_regdom=GB
 +</code>
 +
 +__Meshtastic__
 +
 +<code>
 +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
 +</code>
 +
 +__Runit__
 +
 +<code>
 +systemctl stop meshtasticd
 +systemctl disable meshtasticd
 +systemctl mask meshtasticd
 +</code>
 +
 +<code>
 +#! /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
 +</code>
 +
 +
 +===Command Line Interface===
 +
 +==Setup==
 +
 +<code>
 +sudo apt install python3-full
 +</code>
 +
 +== Install==
  
 <code> <code>
Line 25: Line 94:
 <code> <code>
 meshtastic --port /dev/ttyACM2 --noprot meshtastic --port /dev/ttyACM2 --noprot
 +</code>
 +
 +==Update==
 +
 +<code>
 +~/.venvs/meshtastic/bin/python -m pip install --upgrade meshtastic
 +</code>
 +===Channel===
 +
 +<code>
 +meshtastic --port /dev/ttyACM2 --ch-set name "XXX" --ch-index 1
 +Connected to radio
 +Set name to HOME
 +Writing modified channels to device
 +
 +meshtastic --port /dev/ttyACM2 --ch-set psk base64:xxx --ch-index 1 
 +Connected to radio
 +Writing modified channels to device
 </code> </code>
  
Line 32: Line 119:
  
 ==Receive== ==Receive==
- 
  
 __Install__ __Install__
Line 74: Line 160:
  
 ==Send== ==Send==
 +
 +Direct message
  
 <code> <code>
 meshtastic --port /dev/ttyACM2 --dest \!014fdb61 --sendtext "Hi!" meshtastic --port /dev/ttyACM2 --dest \!014fdb61 --sendtext "Hi!"
 </code> </code>
 +
 +Channel message
 +
 +<code>
 +meshtastic --port /dev/ttyACM2 --ch-index 1 --sendtext "Hello!"
 +</code>
 +
 ===Info=== ===Info===
 +
 +These are some parameters which can be used to sniff
 +the LoRa radio with [[:tools:rtlsdr|RTL-SDR]].
  
 <code> <code>
Line 101: Line 199:
  
 [[https://github.com/meshtastic/network-management-client|Meshtastic network manager]] [[https://github.com/meshtastic/network-management-client|Meshtastic network manager]]
 +
 +[[https://meshtastic.org/docs/configuration/tips/|Meshtastic Tips]]
  
 [[https://www.youtube.com/watch?v=6UwWQSTCr_I|Meshtastic Linux setup]] [[https://www.youtube.com/watch?v=6UwWQSTCr_I|Meshtastic Linux setup]]