set lora.region and hop_limit unreliable

Đang mở
#941 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
api, cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Python
Star
855
Fork
355
Merge trung bình
3 ngày 3 giờ
Pull request đã merge (30 ngày)
12

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của meshtastic/python

Tất cả issue của meshtastic/python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.