set lora.region and hop_limit unreliable

Ouverte
#941 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Calme
Stack technique
python
Domaine
api, cli

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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
Langage dominant
Python
Étoiles
855
Forks
355
Merge moyen
3 j 3 h
PR mergées (30 j)
12

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de meshtastic/python

Toutes les issues de meshtastic/python

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.