Package: meshtastic-flasher
Meshtastic-gui-installerCross Platform GUI for installingMeshtasticFirmware. It also checks and updates theRAK 4631andLilyGo T-Echobootloaders.Example showing esp32 device:Example showing a RAK WisBlock Core RAK4631:To install:Seehttps://meshtastic.org/docs/software/python/flasherNote: The "single executable" installation option has been deprecated as of March 10, 2022.Advanced optionsTo go into the Advanced Options page, press the "A" key or click on the "Advanced Options" in the top left of the main screenCapabilities:Update mode for esp32 devices: Instead of doing a complete flash, you can do an "update"view the equivalent ofmeshtastic --infosend a simple text messagebackup the connected device configuration to yaml filerestore configuration from yaml file to the connected deviceDevice SettingsClick on the "Device Settings" at the top of the main screen to change settings."Factory Reset" is available in the Admin tab"Hotkeys" and "Tips" are also optionsInstallation for DevelopmentSteps to install fromPyPi- typically used for developmentFirst clone repo and change into the Meshtastic-gui-installer directory.python3 -m venv venv
source venv/bin/activate
# or if on windows: venv\scripts\activate
pip install --upgrade pip
pip install .To run, type in "meshtastic-flasher"To lint (for developers)pylint *.pyormake lintTo test (for developers)pytestFor more infohttps://wiki.qt.io/Qt_for_Pythonhttps://pygithub.readthedocs.io/en/latest/introduction.htmlhttps://meshtastic.org/https://github.com/meshtastic/Meshtastic-deviceTested onUbuntu 20.04, 21.04, and 22.04 (x86_64)If you get this error:qt.qpa.plugin: Could not load the Qt platform "xcb" in "" even though it was found.
This application failed to start because not Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkrrdisplay, vnc, wayland-egl, wayland, xcb.
Aborted.Then this might solve the issue:sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-devFedora 33 (x86_64)Manjaro 21.2.3 (x86_64)Linux Mint 20.3 (x86_64)MacOS (arm and x86)Windows 7, 8.1, 10, and 11 (may work on other versions)ArchlinuxArm with the following commands:pacman -S qt6 pyside6
pip install meshtastic-flasherKnown limitationsThe following are known limitations:Raspberry Pi is not available, since it is arm-based and there are no pre-built libraries for PySide. There is an interesting link here:https://github.com/piwheels/packages/issues/4#issuecomment-772058821.Ubuntu 20.04 is the version used for testing, it may work with other versions (Known issue with Waylandhttps://github.com/meshtastic/Meshtastic-gui-installer/issues/8)Ubuntu 18.04 will not work as PySide6/Qt6 libraries are not available.Many linux arm variations will work as Qt does not support arm. Seehttps://doc.qt.io/qt-6/supported-platforms.htmlIf you just run thepip install meshtastic-flasheroutside of a fresh python virtual environment (like say on a mac that has usedbrewto install things) you may get this error:from meshtastic_flasher.installer import main
  File "/usr/local/lib/python3.9/site-packages/meshtastic_flasher/installer.py", line 20, in <module>
    from meshtastic.util import detect_supported_devices, findPorts, detect_windows_needs_driverIf you get this error, then install in a python virtual environment as described in the Installation step above.Windows 11 works with CP210x Universal Windows Driver, and you must start the command prompt as AdministratorWindows 10 will not work with python v3.8.0 due to issuehttps://stackoverflow.com/questions/56757044/pyside2-dll-load-failed-the-specified-procedure-could-not-be-found/70533728#70533728. It has been tested on python 3.10 on Windows 10.User reported it does not run on MacOS High Sierra.Note to DevelopersPlease keep code as simple as possible.