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.
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.
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
- A Heltec V3 (ESP32-S3) radio with a working USB data cable.
- A Linux computer with access to the radio's USB serial port.
- The Meshtastic Python CLI. The test system used version
2.7.11. - The correct LoRa region and the channel/modem settings used by the local mesh.
Step-by-step procedure
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.
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.
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.
Verify that the old keys were cleared
meshtastic --port /dev/ttyUSB0 --info
Before proceeding, check the output for:
regionset toUNSET.publicKeyempty.privateKeyempty.- 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.
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.
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.
| Test | Firmware | Before | After | Hardware MAC |
|---|---|---|---|---|
| Heltec V3 #1 | 2.8.2.d5f1619 | !de1d0ce3 | !479eb25d | d8:85:ac:a9:64:5cUnchanged |
| Heltec V3 #2 | 2.8.2.d5f1619 | !74f0f9d1 | !2152829c | d8:85:ac:a9:59:c0Unchanged |
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 tested | Observed result after reset and region setting |
|---|---|
2.7.26.54e0d8d | A new keypair was generated, but the Node ID (!aca959c0) and node number (2896779712) remained the same in this test. |
2.8.2.d5f1619 | On 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
- Pair the radio with the Meshtastic app again. The full reset clears Bluetooth bonds.
- 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.
- Set the owner name and short name.
- Set the modem preset and channel configuration to match the local mesh you intend to join.
- Confirm the radio can receive other nodes and that the local mesh settings match.
- Back up the new identity/configuration if you want to preserve it. A later full-device reset will create another identity.
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
- The CLI cannot connect: check the USB data cable, serial port path, Linux permissions and whether another program is using the port. Confirm that the board has finished booting.
- The CLI times out immediately after the reset: the radio may still be rebooting. Wait 15–20 seconds and retry
--info; do not keep issuing factory resets. - The old Node ID is still shown immediately after reset: check the security section. If both keys are empty and the region is
UNSET, continue by setting the correct region. - The Node ID does not change: verify the firmware version. The tested 2.7.26 build regenerated keys but did not change the displayed Node ID or node number in our test. The tested 2.8.2 build changed both on two Heltec V3 radios.
- The Android app cannot find the radio: press and release the physical RESET button, allow the radio to boot, then scan for Bluetooth devices again.
- The old node still appears on other people's radios: a new identity is a new node, but remote NodeDB entries for the old identity may remain until they age out or are removed. This procedure cannot erase other people's node databases.
- Direct messages still fail: verify the other node has learned the new public key, that both radios use compatible channel and LoRa settings, and that there is a working RF path. A new Node ID alone does not guarantee message delivery.
References
- Meshtastic: Encryption and node identity
- Meshtastic Python CLI guide
- Meshtastic: Joining your local mesh
- Meshtastic: Let's talk about 2.8