Meshtastic Waveshare LoRa HAT setup on Raspberry Pi 4
HTML-код
- Опубликовано: 11 сен 2024
- In this video I show the steps necessary to install the Meshtastic software on a headless Raspberry Pi 4 via ssh. Here is the list of commands which are needed:
ssh username@ipaddr
sudo apt update
sudo apt upgrade
sudo apt install libgpiod-dev libyaml-cpp-dev libbluetooth-dev openssl libssl-dev libulfius-dev liborcania-dev libulfius2.7
wget github.com/mes...
sudo raspi-config nonint set_config_var dtparam=spi on /boot/firmware/config.txt
sudo raspi-config nonint set_config_var dtparam=i2c_arm on /boot/firmware/config.txt
sudo sed -i -e '/^\s*#\?\s*dtoverlay\s*=\s*vc4-kms-v3d/! s/^\s*#\?\s*(dtoverlay|dtparam\s*=\s*uart0)\s*=.*/dtoverlay=spi0-0cs/' /boot/firmware/config.txt
if ! sudo grep -q '^\s*dtoverlay=spi0-0cs' /boot/firmware/config.txt; then
sudo sed -i '/^\s*dtparam=spi=on/a dtoverlay=spi0-0cs' /boot/firmware/config.txt
fi
sudo raspi-config nonint do_serial_hw 0
sudo raspi-config nonint do_serial_cons 1
sudo reboot
sudo apt install ./meshtasticd_2.3.10.d19607b_arm64.deb
sudo nano /etc/meshtasticd/config.yaml
(file is space sensitive - leave alone)
Uncomment sx1262 lines
Uncomment serial path line for gps
Change required loglevel setting to "debug"
Uncomment webserver lines
sudo systemctl enable meshtasticd --now
journalctl -u meshtasticd -f (to monitor debug info)
point webbrowser to url of pi: raspi
(ip address doesn't work - you must use the hostname)
After everything is working and the settings have been set on the webpage and saved, the Meshtastic software reboots. This causes the web browser to lose the http connection until you RELOAD THE WEBPAGE and CONNECT AGAIN. Then you see neighbouring nodes and messages !
The required battery for backing up ephemeris gps data is ML1220 rechargeable cell 3V.
www.waveshare....
meshtastic.org...
www.raspberryp...
www.raspberryp...
Those little batteries finally turned up, along with your post on the subject this morning. That was a nice start to the day.
Thank you for this, and for your advice on antennas, which I'm glad I listened to.
M
That sounds good. Let us know how you get on !
Enabling admin on your nodes to remote manage them then using pythonCLI you can interface with your whole mesh network. You can set virtually any setting. I use it more than anything
That's great advice. I haven't tried setting up an admin channel yet...
It's especially helpful for remote nodes administration and battery usage allowing you to turn off Bluetooth and Wi-Fi
curious if you’ve run into the bug where you can’t send longer messages. Short seem to work fine but anything over like 70 characters seems to fail.
It works fine for me but I am not sure what the longest message is that I sent.
I didn't find this in any of the instructions relating to meshtasticd docs I saw. I had to uncomment this in the config.yaml for it to work on the Rpi 5.
### Set gpio chip to use in /dev/. Defaults to 0.
### Notably the Raspberry Pi 5 puts the GPIO header on gpiochip4
gpiochip: 4
It is obvious once you read the comment but I wasn't looking for it.
Thank you. I will give this a try !
Mine doesn't worked on Pi 5. Could you please help me?
ERROR | ??:??:?? 10 Failed to find SX1262 radio
Great Video. Question? Can you use the lite version of bookworm (without desktop) ?
Yes you certainly can. This is sort of what I was doing in the video since I did not use the Raspberry Pi desktop at all.
Yes the battery is NOT a CR1220. It is a ML1220.
Exactly. It is an important difference since one does not want to try charging Lithium batteries ;-)
I have had this running for a couple of weeks now and I want to upgrade to the newer firmware but can't seem to get it upgraded
You mean the rasPi firmware ? I tend not to upgrade that unless it is necessary eg. for Nvme booting.