Meshtastic Waveshare LoRa HAT setup on Raspberry Pi 4

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ก.ย. 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...

ความคิดเห็น • 19

  • @Smash-n-Grab
    @Smash-n-Grab วันที่ผ่านมา +1

    @Simon Phillips No PI3b? tried it on arm64 and libyaml-cpp0.7 let me down on the dependency , not only that i tried pointing to /boot/config.txt as i never had /boot/firmware/config.txt . i cannot install meshtasticd .....meh ive run out of pi4 but have a load of 3b+

    • @fotografm
      @fotografm  9 ชั่วโมงที่ผ่านมา

      I never had a Pi 3. Only model 4 plus now a 5 which still had problems with Meshtastic and Ubuntu las time I tried it.

  • @wishbone1138
    @wishbone1138 2 หลายเดือนก่อน +1

    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.

    • @fotografm
      @fotografm  2 หลายเดือนก่อน

      It works fine for me but I am not sure what the longest message is that I sent.

  • @lostngone2007
    @lostngone2007 3 หลายเดือนก่อน +2

    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.

    • @fotografm
      @fotografm  3 หลายเดือนก่อน +1

      Thank you. I will give this a try !

    • @orhunavcu
      @orhunavcu 2 หลายเดือนก่อน

      Mine doesn't worked on Pi 5. Could you please help me?
      ERROR | ??:??:?? 10 Failed to find SX1262 radio

  • @nickwebb6702
    @nickwebb6702 3 หลายเดือนก่อน +1

    Great Video. Question? Can you use the lite version of bookworm (without desktop) ?

    • @fotografm
      @fotografm  3 หลายเดือนก่อน +1

      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.

  • @juggalizzle75
    @juggalizzle75 3 หลายเดือนก่อน +2

    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

    • @fotografm
      @fotografm  3 หลายเดือนก่อน +1

      That's great advice. I haven't tried setting up an admin channel yet...

    • @juggalizzle75
      @juggalizzle75 3 หลายเดือนก่อน

      It's especially helpful for remote nodes administration and battery usage allowing you to turn off Bluetooth and Wi-Fi

  • @lostngone2007
    @lostngone2007 3 หลายเดือนก่อน +1

    Yes the battery is NOT a CR1220. It is a ML1220.

    • @fotografm
      @fotografm  3 หลายเดือนก่อน

      Exactly. It is an important difference since one does not want to try charging Lithium batteries ;-)

  • @JustinHardy5015
    @JustinHardy5015 3 หลายเดือนก่อน +1

    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

    • @fotografm
      @fotografm  3 หลายเดือนก่อน

      You mean the rasPi firmware ? I tend not to upgrade that unless it is necessary eg. for Nvme booting.

  • @richardsonma1
    @richardsonma1 3 หลายเดือนก่อน +1

    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

    • @fotografm
      @fotografm  3 หลายเดือนก่อน

      That sounds good. Let us know how you get on !