Meshtastic: Difference between revisions

From NURDspace
No edit summary
No edit summary
Line 1: Line 1:
== Basic info ==
== Basic info ==
* Channel URL: https://meshtastic.org/e/#Ci0SIEfowNqBHrltz7bk6VcMvfDmtR87KcwwusNcNYchIRw4GglOdXJkU3BhY2USCggBOANAA0gBUBs
* Channel URL: Ask for this in the space!
* Lora Region: EU_868
* Lora Region: EU_868
* Channel name: NURDspace
* Channel name: NURDspace
Line 11: Line 11:


===  (cli client) ===
===  (cli client) ===
<nowiki>meshtastic --seturl 'https://meshtastic.org/e/#Ci0SIEfowNqBHrltz7bk6VcMvfDmtR87KcwwusNcNYchIRw4GglOdXJkU3BhY2USCggBOANAA0gBUBs'</nowiki>
<nowiki>meshtastic --seturl '<channel url>'</nowiki>




Line 19: Line 19:
meshtastic --ch-set downlink_enabled true --ch-index 0
meshtastic --ch-set downlink_enabled true --ch-index 0
meshtastic --ch-set uplink_enabled true --ch-index 0</nowiki>
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: 3
    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: 5
    region: EU_868
    txEnabled: true
    txPower: 27
    usePreset: true
  network:
    ntpServer: 0.pool.ntp.org
    wifiEnabled: true
    wifiPsk: <SSID Password>
    wifiSsid: <SSID>
  position:
    gpsAttemptTime: 900
    gpsUpdateInterval: 120
    positionBroadcastSecs: 900
    positionFlags: 3
    rxGpio: 34
    txGpio: 12
  power:
    lsSecs: 300
    meshSdsTimeoutSecs: 7200
    minWakeSecs: 10
    sdsSecs: 4294967295
    waitBluetoothSecs: 60
module_config:
  mqtt:
    address: 10.208.30.67
    enabled: true
  telemetry:
    deviceUpdateInterval: 900
    environmentUpdateInterval: 900
owner: <name>
owner_short: <shortname>
</nowiki>
Enable channel up/downlink
<nowiki>
meshtastic --ch-set downlink_enabled true --ch-index 0
meshtastic --ch-set uplink_enabled true --ch-index 0
</nowiki>

Revision as of 12:08, 15 March 2023

Basic info

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

Configuring a RF node

Android/IOS app

(cli client)

meshtastic --seturl '<channel url>'


Configuring a gateway node (MQTT)

meshtastic --seturl '<channel url>'
meshtastic --set mqtt.address '10.208.30.67' --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: 3
    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: 5
    region: EU_868
    txEnabled: true
    txPower: 27
    usePreset: true
  network:
    ntpServer: 0.pool.ntp.org
    wifiEnabled: true
    wifiPsk: <SSID Password>
    wifiSsid: <SSID>
  position:
    gpsAttemptTime: 900
    gpsUpdateInterval: 120
    positionBroadcastSecs: 900
    positionFlags: 3
    rxGpio: 34
    txGpio: 12
  power:
    lsSecs: 300
    meshSdsTimeoutSecs: 7200
    minWakeSecs: 10
    sdsSecs: 4294967295
    waitBluetoothSecs: 60
module_config:
  mqtt:
    address: 10.208.30.67
    enabled: true
  telemetry:
    deviceUpdateInterval: 900
    environmentUpdateInterval: 900
owner: <name>
owner_short: <shortname>

Enable channel up/downlink

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