set lora.region and hop_limit unreliable

Offen
#941 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
python
Bereich
api, cli

Rechercherichtung

The log points at node.py, where beginSettingsTransaction and commitSettingsTransaction run, so start there and check whether lora.region and lora.hop_limit are written inside the transaction. Reproduce by setting those two values, committing, then reading them back with --get, and compare against the network and security values that persist. Done means the values survive the reboot and a --get returns the value that was set, which may need a device-side check as well.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

I use CLI to configure a stable of radios, Heltec V3 and V4. Each radio has its own bash script of particulars. Then I use a common script to write the specific configuration elements (example: IP address) and all the common elements (example: description of my LAN) to the device.

Here is a result. CLI claims that the configuration elements are set, then written, then committed. Immediately after, I --get those element that I can, to see if they are on the device.

Look specifically at the region and hop limit. They are set, written, and committed. When I check, no dice.

1 Set region US and owner -- USB
Thu Jun 25 09:11:41 AM EDT 2026
Connected to radio
INFO file:node.py reboot line:620 Telling node to reboot in 10 seconds
sleep
Connected to radio
Setting device owner to W2NJ Yagi 4524 and short name to 4524
Set lora.region to US
Set lora.hop_limit to 7
Set network.ipv4Config.ip to 3372329152
Set network.wifi_enabled to true
Set security.public_key to base64:[correct value redacted]
Adding 'base64:[correct value redacted] to the admin_key list
Writing modified preferences to device
Using a configuration transaction
INFO file:node.py beginSettingsTransaction line:634 Telling open a transaction to edit settings
Writing network configuration to device
Writing security configuration to device
Writing lora configuration to device
INFO file:node.py commitSettingsTransaction line:648 Telling node to commit open transaction for editing settings
Connected to radio
INFO file:node.py reboot line:620 Telling node to reboot in 10 seconds
 
Connected to radio
lora.region: 0
lora.hop_limit: 3
network.ipv4_config: ip: 3372329152
gateway: 16885952
subnet: 16777215
dns: 16885952

network.wifi_enabled: True
Completed getting preferences
Vorherrschende Sprache
Python
Sterne
855
Forks
355
Ø Merge
3 T. 3 Std.
Gemergte PRs (30 T.)
12

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus meshtastic/python

Alle Issues in meshtastic/python

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.