Meshtastic Firmware
 
 
 
 
 
 
Go to file
Kevin Hester e60ef655cb fix serious bug! plugin was incorrectly stopping packet processing 2021-05-03 10:53:24 +08:00
.devcontainer add codespace support 2021-04-21 18:00:34 +08:00
.github don't cache platformio for now 2021-05-03 10:36:44 +08:00
.idea don't checkin workspace files 2021-04-28 15:33:08 +08:00
.vscode add codespace support 2021-04-21 18:00:34 +08:00
bin use short version string on bootscreen 2021-05-03 09:50:06 +08:00
boards t-echo: enable nrfupload 2021-04-28 15:25:54 +08:00
data/static add placeholder index.html to avoid breaking device build (spiffs error) 2021-04-16 12:16:43 +08:00
deprecated Update to logo by @thepoweroftwo 2021-01-29 13:26:08 +08:00
design@73ba05ceef Update to logo by @thepoweroftwo 2021-01-29 13:26:08 +08:00
geeksville-private pinelora WIP 2021-05-01 11:27:37 +08:00
images Remove docs, moved to main repo 2021-04-15 17:24:28 +10:00
lib mqtt: downlink now works 2021-04-05 09:38:00 +08:00
linker experiment with wifi connections for nodes 2020-06-21 14:11:38 -07:00
nrf52 Update variant file and qspi flash programming settings for new ttgoeink 2021-01-16 10:34:46 +08:00
proto@d4232f9a89 pinelora WIP 2021-05-01 11:27:37 +08:00
release don't keep uf2 files in source control 2020-08-21 09:37:41 -07:00
sdk-nrfxlib@e6e02cb83d add remote update 2021-01-16 20:12:31 -08:00
src fix serious bug! plugin was incorrectly stopping packet processing 2021-05-03 10:53:24 +08:00
variants t-echo: add hwmodel 2021-04-29 09:51:10 +08:00
.clang-format add .clang-format file 2020-03-15 19:29:55 -07:00
.gitignore don't checkin workspace files 2021-04-28 15:33:08 +08:00
.gitmodules Update to logo by @thepoweroftwo 2021-01-29 13:26:08 +08:00
CMakeLists.txt progress on Wifi in portduino 2021-03-15 19:59:31 +08:00
CMakeListsPrivate.txt setup for intellij 2021-03-15 13:55:08 +08:00
LICENSE move my bt experiment into its own repo (about to remove ttn) 2020-02-01 08:30:53 -08:00
README.md add note about credit! 2021-03-28 11:43:28 +08:00
gdbinit changes from bringing up PPR 2020-06-05 11:00:18 -07:00
partition-table.csv for the time being use my old partition table to make TTGO happy 2020-02-08 08:47:08 -08:00
platformio.ini pinelora WIP 2021-05-01 11:27:37 +08:00
version.properties 1.2.29 get ready for automated releases 2021-04-16 15:29:33 +08:00

README.md

Meshtastic-device

This is the device side code for the meshtastic.org project.

Continuous Integration

Meshtastic® is a project that lets you use inexpensive GPS mesh radios as an extensible, super long battery life mesh GPS communicator. These radios are great for hiking, skiing, paragliding - essentially any hobby where you don't have reliable internet access. Each member of your private mesh can always see the location and distance of all other members and any text messages sent to your group chat.

The radios automatically create a mesh to forward packets as needed, so everyone in the group can receive messages from even the furthest member. The radios will optionally work with your phone, but no phone is required.

Typical time between recharging the radios should be about eight days.

This project is is currently in beta-testing - if you have questions please join our discussion forum.

This software is 100% open source and developed by a group of hobbyist experimenters. No warranty is provided, if you'd like to improve it - we'd love your help. Please post in the chat.

Supported hardware

We currently support three models of radios.

Note: The GPS and LoRa stock antennas should be placed in a way, that the GPS antenna faces the sky and the LoRa antenna radiates 360 degrees horizontally. For better GPS reception you might want to upgrade the GPS antenna and to properly align the antennas you might want to upgrade to a LoRa antenna that can be adjusted to radiate into the right directions.

Make sure to get the frequency for your country

  • US/JP/AU/NZ/CA - 915MHz
  • CN - 470MHz
  • EU - 868MHz, 433MHz
  • full list of LoRa frequencies per region is available here

Getting a version that includes a screen is optional, but highly recommended.

Firmware Installation

Prebuilt binaries for the supported radios are available in our releases. Your initial installation has to happen over USB from your Mac, Windows or Linux PC. Once our software is installed, all future software updates happen over bluetooth from your phone.

Be very careful to install the correct load for your board. In particular the popular 'T-BEAM' radio from TTGO is not called 'TTGO-Lora' (that is a different board). So don't install the 'TTGO-Lora' build on a TBEAM, it won't work correctly.

Please post comments on our group chat if you have problems or successes.

Installing from a GUI - Windows and Mac

  1. Download and unzip the latest Meshtastic firmware release.
  2. Download ESPHome Flasher (either x86-32bit Windows or x64-64 bit Windows).
  3. Connect your radio to your USB port and open ESPHome Flasher.
  4. If your board is not showing under Serial Port then you likely need to install the drivers for the CP210X serial chip. In Windows you can check by searching “Device Manager” and ensuring the device is shown under “Ports”.
  5. If there is an error, download the drivers here, then unzip and run the Installer application.
  6. In ESPHome Flasher, refresh the serial ports and select your board.
  7. Browse to the previously downloaded firmware and select the correct firmware based on the board type, country and frequency.
  8. Select Flash ESP.
  9. Once complete, “Done! Flashing is complete!” will be shown.
  10. Debug messages sent from the Meshtastic device can be viewed with a terminal program such as PuTTY (Windows only). Within PuTTY, click “Serial”, enter the “Serial line” com port (can be found at step 4), enter “Speed” as 921600, then click “Open”.

Installing from a commandline

These instructions currently require a few commmand lines, but it should be pretty straightforward.

  1. Install "pip". Pip is the python package manager we use to get the esptool installer app. Instructions here. If you are using OS-X, see these special instructions.
  2. Run "pip install --upgrade esptool" to get esptool installed on your machine.
  3. Connect your radio to your USB port.
  4. Confirm that your device is talking to your PC by running "esptool.py chip_id". The Heltec build also works on the TTGO LORA32 radio. You should see something like:
mydir$ esptool.py chip_id
esptool.py v2.6
Found 2 serial ports
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: 24:6f:28:b5:36:71
Uploading stub...
Running stub...
Stub running...
Warning: ESP32 has no Chip ID. Reading MAC instead.
MAC: 24:6f:28:b5:36:71
Hard resetting via RTS pin...
  1. cd into the directory where the release zip file was expanded.
  2. Install the correct firmware for your board with device-install.sh -f firmware-_board_-_country_.bin.
    • Example: ./device-install.sh -f firmware-HELTEC-US-0.0.3.bin.
  3. To update run device-update.sh -f firmware-_board_-_country_.bin
    • Example: ./device-update.sh -f firmware-HELTEC-US-0.0.3.bin.

Note: If you have previously installed meshtastic, you don't need to run this full script instead just run esptool.py --baud 921600 write_flash 0x10000 firmware-_board_-_country_-_version_.bin. This will be faster, also all of your current preferences will be preserved.

You should see something like this:

kevinh@kevin-server:~/development/meshtastic/meshtastic-esp32/release/latest$ ./device-install.sh firmware-TBEAM-US-0.1.8.bin
Trying to flash firmware-TBEAM-US-0.1.8.bin, but first erasing and writing system information
esptool.py v2.6
Found 2 serial ports
Serial port /dev/ttyUSB0
Connecting........____
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: 24:6f:28:b2:01:6c
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Erasing flash (this may take a while)...
Chip erase completed successfully in 6.1s
Hard resetting via RTS pin...
esptool.py v2.6
Found 2 serial ports
Serial port /dev/ttyUSB0
Connecting.......
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: 24:6f:28:b2:01:6c
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0220
Compressed 61440 bytes to 11950...
Wrote 61440 bytes (11950 compressed) at 0x00001000 in 0.2 seconds (effective 3092.4 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
esptool.py v2.6
Found 2 serial ports
Serial port /dev/ttyUSB0
Connecting.....
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: 24:6f:28:b2:01:6c
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 1223568 bytes to 678412...
Wrote 1223568 bytes (678412 compressed) at 0x00010000 in 10.7 seconds (effective 912.0 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
  1. The board will boot and show the Meshtastic logo.
  2. Please post a comment on our chat so we know if these instructions worked for you ;-). If you find bugs/have-questions post there also - we will be rapidly iterating over the next few weeks.

Meshtastic Android app

The companion (optional) Meshtastic Android app is here. You can also download it on Google Play.

Python API

We offer a python API that makes it easy to use these devices to provide mesh networking for your custom projects.

Development

We'd love to have you join us on this merry little project. Please see our development documents and join us in our discussion forum.

Credits

This project is run by volunteers. We are a friendly group and welcome any contribution (code fixes, documentation, features, bug reports etc...). We try to be good about listing contributor names in release notes, but it has become unwieldy for the main-devs to keep updating the list below and we've neglected it too long. If you'd like your name included in this list please send a pull request to edit this README and simply add your line yourself. Thank you very much for your help!

  • @astro-arphid: Added support for 433MHz radios in europe.
  • @claesg: Various documentation fixes and 3D print enclosures
  • @girtsf: Lots of improvements
  • @spattinson: Fixed interrupt handling for the AXP192 part

IMPORTANT DISCLAIMERS AND FAQ

For a listing of currently missing features and a FAQ click here.

Copyright 2019 Geeksville Industries, LLC. GPL V3 Licensed.