meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
3.46k stars 849 forks source link

[Bug]: NodeID Changed after Update #3641

Closed daniel-hofer closed 6 months ago

daniel-hofer commented 6 months ago

Category

BLE

Hardware

T-Echo

Firmware Version

2.3.5.2f9b68e

Description

The NodeID changed after Update to latest alpha 2.3.5 on t-echo to !7c3b4eeb. Did nrf reset and resetted android app. Noticed, that my node was shown twice in the app and noticed, that the mac-address nodeID changed. Noticed that the pairing started with 000_xxxx new node ID. Did a restore of the settings via app. reinstalled android app and reflashed node.

Relevant log output

No response

GUVWAF commented 6 months ago

So your initial flash was without full erase, right? Might it be that there was another node with this node number on your mesh? If you now reboot, I assume the node number stays the same. If you fully reset it again, will it have the original one or yet another new one?

daniel-hofer commented 6 months ago

2024-04-16 21_31_44-Meshtastic Web Node is showing zero as MAC-Address I will reset it and write a summary with the needed information.

GUVWAF commented 6 months ago

Ah, so it's only the MAC address and thus BLE name, but not actually the node number that changed?

daniel-hofer commented 6 months ago

Steps: Save Node-Config via Android App Version 2.3.4 Full erase node with Meshtastic_nRF52_factory_erase_v2.uf2 Serial console and confirm factory reset with any key -> Formatting done -> node restart Copy firmware-t-echo-2.3.5.2f9b68e.uf2 to node -> node restart Delete local appdata on Android App. Delete Bluetooth pairing Search for node, node shows up with correct ble name Meshtastic_b561 after + Symbol. Pairing with pin on display Pairing done Device Name Meshtastic b561 Region unset. Device config -> factory reset from menu of android app -> reboot node Now the Device Name changed to Meshtastic 0000 region unset. Region set to EU_868 -> node reboot Other Node hast now this node shown up as Meshtastic 0000 T_ECHO wit 00:00... MAC Address Node ID is !4162b561 in Settings, correct node. Import config via Andorid app cfg file -> node reboot After this, all went correct, but the shown mac-address in the nodelist from the webview of the other node still sowes zeroes for this node. After delete the nodelist of the webview node, my device showed up with zeroes in the MAC Address section again. Finally I couldn't manage it to show me a wrong nodeID in the App like after updating without formatting. Maybe it was a misconfiguration regarding to another node, wich was connected earlier by bluetooth bot not recognized in the app anymore after deleting the cache of the app.

daniel-hofer commented 6 months ago

I made all steps again WITHOUT radioconfiguration/factory reset from android app 2.3.4 and the mac address is shown correctrly again image So it is an issue with the radioconfiguration/factory reset part of the implementation, I suggest

GUVWAF commented 6 months ago

Thanks for the elaborate explanation, I now understand what happened and it should not happen anymore with the above PR.