meshtastic/docs/configuration/tips.mdx

100 lines
6.7 KiB
Plaintext
Raw Normal View History

2023-09-24 20:26:08 -07:00
---
id: tips
title: Configuration Tips
description: Tips and Solutions to help you get the most out of your Meshtastic device and network.
2023-09-24 20:26:08 -07:00
sidebar_label: Tips
2023-09-25 16:08:33 -07:00
sidebar_position: 4
2023-09-24 20:26:08 -07:00
---
2023-10-30 21:44:07 -07:00
## Roles
2024-06-27 12:31:24 -07:00
It is strongly recommended to keep your [ROLE](/docs/configuration/radio/device#roles) set to `CLIENT`. Only change this if you have a specific, well-understood reason to do so.
2023-10-30 21:44:07 -07:00
2024-06-27 12:31:24 -07:00
### Why `CLIENT` is Recommended
2023-10-30 21:44:07 -07:00
2024-06-27 12:31:24 -07:00
- `CLIENT` nodes efficiently repeat and route packets as needed.
- They use smart delays for rebroadcasting, improving network stability.
2023-10-30 21:44:07 -07:00
2024-08-18 13:59:30 -07:00
![Client Node Example](/img/configuration/client.webp)
*One example of a 'Client' node. Photo credit: Cully@KBOXLABS*
2024-07-03 09:00:55 -07:00
### Avoid `ROUTER`and `REPEATER`
2024-06-27 12:31:24 -07:00
2024-07-03 09:00:55 -07:00
Using `ROUTER` or `REPEATER` roles unnecessarily can cause serious network issues:
2024-06-27 12:31:24 -07:00
- Increased risk of packet collision.
- Reduced message delivery rates.
- Decreased effective network range due to unnecessary hop consumption.
These roles are for very specific applications. Before changing from `CLIENT`, carefully [review the documentation](/docs/configuration/radio/device#roles) to understand the implications. Additionally, coordinating this with your local community to ensure its impact is a positive one rather than a negative one.
Remember: A network of `CLIENT` nodes with a small number of well-placed `ROUTERS` is usually the most efficient and stable configuration.
2023-10-30 21:44:07 -07:00
2024-08-18 13:59:30 -07:00
![Router Node Example](/img/configuration/router.webp)
*One example of a 'Router' node. Photo credit: Cully@KBOXLABS*
2023-09-24 20:26:08 -07:00
## (Not) Sharing Your Location
2024-06-27 12:31:24 -07:00
Telemetry is shared over your [PRIMARY channel](/docs/configuration/radio/channels#role). This means that if your node has acquired GPS coordinates from an integrated GPS chip, or from your mobile device, your coordinates will be sent to the mesh over this channel, using it's defined encryption (if any).
By default the PRIMARY channel's name is LongFast with the encryption key "AQ==" (Base64 equivalent of Hex 0x01). If this is left unchanged, your location will be shared with all nodes in range that are also using the default channel.
2023-09-24 20:26:08 -07:00
2024-06-27 12:31:24 -07:00
### Using Position Precision
Meshtastic now supports the ability to control the precision of location data sent over a particular channel.
The `position_precision` setting allows control of the level of precision for location data that is sent over a particular channel. This can be useful for privacy reasons, where obfuscating the exact location may be desired when sending position data over certain channels.
For detailed information on position precision settings and how to configure them, please refer to the [Position Precision documentation](/docs/configuration/radio/channels/#position-precision).
2023-09-24 20:26:08 -07:00
### Creating a Private Primary with Default Secondary
2024-06-27 12:31:24 -07:00
Alternatively, if you wish to only share your location with trusted parties, you may create a private PRIMARY channel and use the defaults for a SECONDARY channel.
2023-09-24 20:26:08 -07:00
2023-09-28 19:10:42 -07:00
1. Ensure you have not changed the LoRa [Modem Preset](/docs/configuration/radio/lora#modem-preset) from the default `unset` / `LONG_FAST`.
2023-09-24 20:26:08 -07:00
2. On your PRIMARY channel, set anything you'd like for the channel's name and choose a random PSK.
2023-12-13 21:31:12 -08:00
3. Enable a SECONDARY channel named "LongFast" with PSK "AQ==".
2024-03-14 13:49:22 -07:00
4. If your LoRa frequency slot is set to the default (`0`), the radio's transmit frequency will be automatically changed based on your PRIMARY channel's name. In this case, you will have to manually set it back to your region's default (in LoRa settings) in order to interface with users on the default slot:
2023-09-24 21:33:52 -07:00
2024-03-14 13:47:04 -07:00
### Default Primary Frequency Slots by Region
2023-10-30 21:44:07 -07:00
2024-06-27 12:31:24 -07:00
| US | EU_433 | EU_868 | CN | JP | ANZ | KR | TW | RU | IN | NZ_865 | TH | UA_433 | UA_868 | MY_433 | MY_919 | SG_923 | LORA_24 |
| :-: | :----: | :----: | :-: | :-: | :-: | :-: | :-: | :-: | :-: | :----: | :-: | :----: | :----: | :----: | :----: | :----: | :-----: |
| 20 | 4 | 1 | 36 | 20 | 20 | 12 | 16 | 2 | 4 | 4 | 16 | 6 | 2 | 4 | 16 | 4 | 6 |
2023-10-05 17:22:48 -07:00
To quickly test this configuration, find and scan your region's QR from [this repository](https://github.com/meshtastic/meshtastic/tree/master/static/img/configuration/qr-private-primary-example/). Remember to generate a new PSK for your private channel before sharing with your trusted nodes.
2023-09-24 20:26:08 -07:00
## Rebroadcast "Public" Traffic
2023-09-28 19:10:42 -07:00
Meshtastic nodes will rebroadcast all packets if they share [LoRa modem settings](/docs/configuration/radio/lora#lora-config-values), regardless of encryption (unless [Rebroadcast mode](/docs/configuration/radio/device#rebroadcast-mode) is set to `LOCAL_ONLY`).
2023-09-24 20:26:08 -07:00
:::info
2024-06-27 12:31:24 -07:00
If you would like your nodes to include/expand the "public" mesh, you must use the default [modem preset](/docs/configuration/radio/lora#modem-preset) `LONG_FAST`. If you change your PRIMARY channel name, you must manually set the LoRa channel to the default for your region (see above).
2023-09-24 20:26:08 -07:00
:::
2024-06-27 12:31:24 -07:00
### Hop Count
It is **strongly** recommended to leave your [MAX HOPS](/docs/configuration/radio/lora#max-hops) set to 3 unless you're sure you need more (or less) to reach your destination node. Unnecessarily high hop counts often lead to network issues.
2024-08-18 13:59:30 -07:00
![Hop Count Image](/img/configuration/max-hops.webp)
2024-03-14 13:47:04 -07:00
## Chat Channels and LoRa Frequency Slots
2023-09-24 20:26:08 -07:00
2024-03-14 13:47:04 -07:00
Previously, Meshtastic used the word "channels" to define two different configuration properties: Messaging Channels & LoRa Channel Numbers. However, this could lead to confusion since "channels" was being used to refer to two distinct concepts. To clarify the distinction, the decision was made to change "LoRa Channel Number" to "LoRa Frequency Slot".
2023-09-24 20:26:08 -07:00
### Radio Config: Channels
2023-09-24 20:26:08 -07:00
2024-03-14 13:47:04 -07:00
These configure "message groups" and include your PRIMARY and SECONDARY channels. All SECONDARY channels use the same LoRa modem config as your PRIMARY channel (including LoRa frequency slot).
2023-09-24 20:26:08 -07:00
2024-03-14 13:47:04 -07:00
There are 8 total messaging channels. Channel 0 is your PRIMARY channel, with channels 1-7 available for private group messaging and/or special channels such as [`admin`](/docs/configuration/remote-admin).
2023-09-24 20:26:08 -07:00
2024-03-14 13:47:04 -07:00
### Radio Config: LoRa Frequency Slot
2023-09-24 20:26:08 -07:00
This property, formerly known as "LoRa Channel Number", configures the frequency the radio is set to. Check out the [frequency calculator](/docs/overview/radio-settings#frequency-slot-calculator) to view the relationship between "frequency slot" and radio frequency.
2023-09-24 20:26:08 -07:00
## Best Practices
2024-06-27 12:31:24 -07:00
2023-09-24 20:26:08 -07:00
- If you are part of a large mesh and don't know what a setting does, don't change it (unless you're super curious).
- TEST your settings and hardware before you install in hard-to-reach locations.
2024-06-27 12:31:24 -07:00
- Connecting a node to the [public MQTT server](/docs/configuration/module/mqtt#connect-to-the-default-public-server) may publish the locations of all nodes in your mesh to the internet. This will also add every globally connected node to your node database and potentially flood your mesh with all types of packets.