Meshtastic: Difference between revisions

From NURDspace
No edit summary
No edit summary
 
(25 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<nowiki>meshtastic --seturl 'https://meshtastic.org/e/#Ci0SIEfowNqBHrltz7bk6VcMvfDmtR87KcwwusNcNYchIRw4GglOdXJkU3BhY2USCggBOANAA0gBUBs'
{{Project
|Name=Meshtastic
|Status=Active
|Niche=Radio
|Purpose=Communication
|Picture=Lorapager-Meshtastic.JPG
|Tool=Yes
|Participants=berend
}}
Meshtastic introduction https://meshtastic.org/docs/introduction


meshtastic --set mqtt.address '10.208.30.67' --set mqtt.enabled true --set mqtt.json_enabled true
== Basic info ==
* Channel URL: Ask for this in the space!
* Lora Region: EU_868
* Channel name: NURDspace
* Channel option: Long range / Fast


meshtastic --set bluetooth.enabled 1</nowiki>
== Node installation ==
* Firmware https://github.com/meshtastic/firmware/releases/
 
 
* The [https://meshtastic.org/docs/getting-started/flashing-firmware/esp32/web-flasher Web-Based Installer] requires either Chrome or Edge browsers but is an excellent choice for quickly flashing devices. '''This method is highly recommended for firmware flashing, especially for new users of the project, as it is easy to use.'''
* The [https://meshtastic.org/docs/software/python/flasher Python Flasher] does a lot under the hood to prevent you from needing to use the terminal.
* The [https://meshtastic.org/docs/getting-started/flashing-firmware/esp32/cli-script CLI Script] is considered the "manual process" for flashing firmware.
* Flashing your device using an [https://meshtastic.org/docs/getting-started/flashing-firmware/esp32/external-serial-adapter external serial adapter] should only be attempted as a last resort if no other method has been successful.
 
== Configuring a RF node ==
=== Android/IOS app ===
* Android https://meshtastic.org/docs/software/android/usage
* IOS Docs should be mostly the same as android https://apps.apple.com/us/app/meshtastic/id1586432531
 
===  Python client ===
* https://meshtastic.org/docs/software/python/cli
<nowiki>meshtastic --seturl '<channel url>'</nowiki>
 
== Configuring a gateway node (MQTT) ==
<nowiki>meshtastic --seturl '<channel url>'
meshtastic --set mqtt.address '10.208.1.49' \
--set mqtt.enabled true \
--set mqtt.json_enabled true \
--set mqtt.username ''\
--set mqtt.password ''
meshtastic --ch-set downlink_enabled true --ch-index 0
meshtastic --ch-set uplink_enabled true --ch-index 0</nowiki>
 
 
== Config examples ==
=== Importing config (CLI) ===
<nowiki>meshtastic --configure <yaml file></nowiki>
=== Client RF node ===
<nowiki># start of Meshtastic configure yaml
channel_url: <channel url>
config:
  bluetooth:
    enabled: true
    fixedPin: 123456
  device:
    debugLogEnabled: true
    serialEnabled: true
  display:
    screenOnSecs: 600
  lora:
    hopLimit: 7
    region: EU_868
    txEnabled: true
    txPower: 27
    usePreset: true
  network:
    ntpServer: 0.pool.ntp.org
  power:
    lsSecs: 300
    meshSdsTimeoutSecs: 7200
    minWakeSecs: 10
    sdsSecs: 4294967295
    waitBluetoothSecs: 60
module_config:
  telemetry:
    deviceUpdateInterval: 900
    environmentUpdateInterval: 900
owner: <Long name>
owner_short: <short name></nowiki>
 
=== Gateway node ===
After loading this config the channel still needs to be enabled for up/downlink
<nowiki>
# start of Meshtastic configure yaml
channel_url: <channel url>
config:
  bluetooth:
    enabled: true
    fixedPin: 123456
  device:
    role: ROUTER_CLIENT
    serialEnabled: true
  display:
    screenOnSecs: 600
  lora:
    hopLimit: 7
    region: EU_868
    txEnabled: true
    txPower: 27
    usePreset: true
  network:
    ntpServer: 0.pool.ntp.org
    wifiEnabled: true
    wifiPsk: <SSID Password>
    wifiSsid: <SSID>
  power:
    lsSecs: 300
    meshSdsTimeoutSecs: 7200
    minWakeSecs: 10
    sdsSecs: 4294967295
    waitBluetoothSecs: 60
module_config:
  mqtt:
    address: 10.208.1.49
    enabled: true
  telemetry:
    deviceUpdateInterval: 900
    environmentUpdateInterval: 900
owner: <name>
owner_short: <shortname>
</nowiki>
 
==== Enable channel up/downlink ====
This configuration is needed after loading the yaml configuration since the up/downlink config is saved in the channel url
<nowiki>
meshtastic --ch-set downlink_enabled true --ch-index 0
meshtastic --ch-set uplink_enabled true --ch-index 0
</nowiki>
 
==== Enable TLS via the internet ====
Needs minimal version 2.1.7
 
To get a username and password create one http://10.208.1.54:18083/#/authentication/detail/password_based:built_in_database
for admin creds ask in the space
<nowiki>
meshtastic --set mqtt.address 'space.nurdspace.nl' \
--set mqtt.enabled true \
--set mqtt.json_enabled false \
--set mqtt.username '<your user>'\
--set mqtt.password '<your password>' \
--set mqtt.tls_enabled true
</nowiki>
 
== Space node antenne ==
 
[[File:IMG_20230318_142536.jpg|400px]]
 
== Guerrilla nodes ==
 
This is an idea some of us came up with randomly to spread the network even more plans are pending.
 
=== mobile car nodes ===
TBD
 
== Space node gps map ==
* https://mesh.nurd.space/
* Source: https://github.com/NURDspace/meshMap

Latest revision as of 20:57, 6 April 2024

Meshtastic
Lorapager-Meshtastic.JPG
Participants
Skills
Status Active
Niche Radio
Purpose Communication
Tool Yes
Location
Cost
Tool category

Meshtastic

Lorapager-Meshtastic.JPG {{#if:Yes | [[Tool Owner::{{{ProjectParticipants}}} | }} {{#if:Yes | [[Tool Cost::{{{Cost}}} | }}

Meshtastic introduction https://meshtastic.org/docs/introduction

Basic info

  • Channel URL: Ask for this in the space!
  • Lora Region: EU_868
  • Channel name: NURDspace
  • Channel option: Long range / Fast

Node installation


  • The Web-Based Installer requires either Chrome or Edge browsers but is an excellent choice for quickly flashing devices. This method is highly recommended for firmware flashing, especially for new users of the project, as it is easy to use.
  • The Python Flasher does a lot under the hood to prevent you from needing to use the terminal.
  • The CLI Script is considered the "manual process" for flashing firmware.
  • Flashing your device using an external serial adapter should only be attempted as a last resort if no other method has been successful.

Configuring a RF node

Android/IOS app

Python client

meshtastic --seturl '<channel url>'

Configuring a gateway node (MQTT)

meshtastic --seturl '<channel url>'
meshtastic --set mqtt.address '10.208.1.49' \
 --set mqtt.enabled true \
 --set mqtt.json_enabled true \
 --set mqtt.username ''\
 --set mqtt.password ''
meshtastic --ch-set downlink_enabled true --ch-index 0
meshtastic --ch-set uplink_enabled true --ch-index 0


Config examples

Importing config (CLI)

meshtastic --configure <yaml file>

Client RF node

# start of Meshtastic configure yaml
channel_url: <channel url>
config:
  bluetooth:
    enabled: true
    fixedPin: 123456
  device:
    debugLogEnabled: true
    serialEnabled: true
  display:
    screenOnSecs: 600
  lora:
    hopLimit: 7
    region: EU_868
    txEnabled: true
    txPower: 27
    usePreset: true
  network:
    ntpServer: 0.pool.ntp.org
  power:
    lsSecs: 300
    meshSdsTimeoutSecs: 7200
    minWakeSecs: 10
    sdsSecs: 4294967295
    waitBluetoothSecs: 60
module_config:
  telemetry:
    deviceUpdateInterval: 900
    environmentUpdateInterval: 900
owner: <Long name>
owner_short: <short name>

Gateway node

After loading this config the channel still needs to be enabled for up/downlink

# start of Meshtastic configure yaml
channel_url: <channel url>
config:
  bluetooth:
    enabled: true
    fixedPin: 123456
  device:
    role: ROUTER_CLIENT
    serialEnabled: true
  display:
    screenOnSecs: 600
  lora:
    hopLimit: 7
    region: EU_868
    txEnabled: true
    txPower: 27
    usePreset: true
  network:
    ntpServer: 0.pool.ntp.org
    wifiEnabled: true
    wifiPsk: <SSID Password>
    wifiSsid: <SSID>
  power:
    lsSecs: 300
    meshSdsTimeoutSecs: 7200
    minWakeSecs: 10
    sdsSecs: 4294967295
    waitBluetoothSecs: 60
module_config:
  mqtt:
    address: 10.208.1.49
    enabled: true
  telemetry:
    deviceUpdateInterval: 900
    environmentUpdateInterval: 900
owner: <name>
owner_short: <shortname>

Enable channel up/downlink

This configuration is needed after loading the yaml configuration since the up/downlink config is saved in the channel url

meshtastic --ch-set downlink_enabled true --ch-index 0
meshtastic --ch-set uplink_enabled true --ch-index 0

Enable TLS via the internet

Needs minimal version 2.1.7

To get a username and password create one http://10.208.1.54:18083/#/authentication/detail/password_based:built_in_database for admin creds ask in the space

meshtastic --set mqtt.address 'space.nurdspace.nl' \
 --set mqtt.enabled true \
 --set mqtt.json_enabled false \
 --set mqtt.username '<your user>'\
 --set mqtt.password '<your password>' \
 --set mqtt.tls_enabled true

Space node antenne

IMG 20230318 142536.jpg

Guerrilla nodes

This is an idea some of us came up with randomly to spread the network even more plans are pending.

mobile car nodes

TBD

Space node gps map