Meshtastic • Field-tested procedure

Give a Meshtastic Radio a Fresh Identity

A practical guide to clearing a radio's old PKI identity and generating a new Meshtastic Node ID. Tested on Heltec V3 hardware, without changing the factory hardware MAC address or burning eFuses.

Tested: Heltec V3Firmware 2.8.2Python CLI 2.7.11

Verified firmware build: 2.8.2.d5f1619. Test environment: Debian Linux, USB serial connection.

Read this before you begin

This is a destructive reset. The full-device reset clears the radio's PKI keys, Bluetooth bonds, channels, region and other configuration. You will need to configure the radio again and pair it with your phone again.

Back up anything you want to keep before proceeding. The CLI's full --info output can display the private key. Keep that key private, and redact it before sharing logs or screenshots.

This procedure has been verified on the Heltec V3 with the exact firmware build listed above. Other hardware and firmware releases may behave differently.

What this procedure does

Meshtastic uses a cryptographic keypair as part of a node's identity. This procedure clears the old keys, then causes the radio to create a fresh keypair. In our 2.8.2 tests, the regenerated identity produced a new Node ID and node number while the hardware MAC address stayed the same.

This is useful when you intentionally want a radio to appear as a new node. It does not change the physical radio's factory MAC address, and it does not require eFuse modification.

Firmware version matters.

We tested the same Heltec V3 procedure on firmware 2.7.26 and 2.8.2. On 2.7.26, the keys regenerated but the displayed Node ID and node number remained unchanged. After flashing 2.8.2 and repeating the procedure, both changed. For the behavior documented here, use the tested 2.8.2 build rather than assuming older firmware behaves identically.

What you need

Step-by-step procedure

1

Install the Meshtastic CLI

On Debian or Ubuntu, if the CLI is not already installed:

sudo apt update
sudo apt install -y pipx
pipx ensurepath
source ~/.bashrc
pipx install "meshtastic[cli]"

If meshtastic is already installed and working, skip this step. If the command is not found after installation, open a new shell and try again.

2

Connect the radio and confirm communication

Connect the radio by USB and identify its serial device. On Linux it commonly appears as /dev/ttyUSB0 or /dev/ttyACM0.

ls -l /dev/serial/by-id/
meshtastic --port /dev/ttyUSB0 --info

Replace /dev/ttyUSB0 in the commands below if your radio uses a different port. Do not proceed until --info successfully connects and identifies the radio.

If permission is denied, check serial-port access (commonly the dialout group) and log out and back in after changing group membership.

Record the original identity before resetting: note the Node ID, node number, hardware MAC, firmware version and region. Do not publish the private key.

3

Perform a full-device factory reset

meshtastic --port /dev/ttyUSB0 --factory-reset-device

Use --factory-reset-device, not --factory-reset. The regular factory reset does not clear the PKI keys and Bluetooth bonds. The full-device reset does.

Wait for the command to return, then allow the radio time to reboot. If the CLI times out immediately afterward, wait 15–20 seconds and try --info again. Do not repeatedly issue reset commands.

4

Verify that the old keys were cleared

meshtastic --port /dev/ttyUSB0 --info

Before proceeding, check the output for:

  • region set to UNSET.
  • publicKey empty.
  • privateKey empty.
  • The hardware MAC address still matching your baseline.

The old Node ID and node number may still be displayed at this stage. That does not mean the old keys survived; confirm the security fields are empty.

5

Set the correct LoRa region

Set the region where the radio will operate. Example for the United States:

meshtastic --port /dev/ttyUSB0 --set lora.region US

Use the region appropriate to your location and local radio regulations. Do not copy US if you operate elsewhere.

On the tested 2.8.2.d5f1619 firmware, setting the region after the full reset caused a fresh PKI keypair to be generated and produced a new Node ID and node number.

6

Verify the new identity

meshtastic --port /dev/ttyUSB0 --info

Compare the new output with the baseline you recorded in Step 2. On our 2.8.2 tests:

  • The Node ID changed.
  • The node number changed.
  • A new public/private keypair appeared.
  • The hardware MAC address stayed the same.
  • The region was set to US.

Security reminder: the output includes the private key. Never post the full unredacted output publicly.

Verified results from two Heltec V3 radios

These are actual before-and-after Node IDs from our field tests. They are examples for comparison only; do not copy them.

TestFirmwareBeforeAfterHardware MAC
Heltec V3 #12.8.2.d5f1619!de1d0ce3!479eb25dd8:85:ac:a9:64:5c
Unchanged
Heltec V3 #22.8.2.d5f1619!74f0f9d1!2152829cd8:85:ac:a9:59:c0
Unchanged

In both 2.8.2 tests, the public/private keys, Node ID and node number changed; the physical hardware MAC did not.

Firmware version notes

Firmware testedObserved result after reset and region setting
2.7.26.54e0d8dA new keypair was generated, but the Node ID (!aca959c0) and node number (2896779712) remained the same in this test.
2.8.2.d5f1619On two Heltec V3 tests, a new keypair was generated and both the Node ID and node number changed.

These are observed results from the tested Heltec V3 radios, not a guarantee about every firmware build or hardware model. Firmware behavior can change between releases.

Set the radio up again

  1. Pair the radio with the Meshtastic app again. The full reset clears Bluetooth bonds.
  2. If Android does not discover the radio after the reset, press and release the Heltec's physical RESET button, wait for it to reboot, then scan again.
  3. Set the owner name and short name.
  4. Set the modem preset and channel configuration to match the local mesh you intend to join.
  5. Confirm the radio can receive other nodes and that the local mesh settings match.
  6. Back up the new identity/configuration if you want to preserve it. A later full-device reset will create another identity.
Check the modem preset.

On our 2.8.2 tests, setting the region to US left the modem preset at LONG_FAST. One radio started with LONG_TURBO before reset, but after the reset and region-setting step it showed LONG_FAST. The region setting does not guarantee that the modem preset or channel matches your local mesh. Check those settings before operating.

Troubleshooting

References