Commit c6284f9
feat: 2.8 protobuf sync + LoRa region→preset compatibility map
Sync the vendored protobufs to 2.8 and implement the LoRa region→preset
compatibility feature (FromRadio.region_presets), gating the new 2.8
regions and presets behind connected-firmware support.
Protobuf sync holes:
- Regenerate the vendored .pb.swift from the 2.8 protobufs submodule.
- Handle the new meshBeaconApp PortNum (37) in the packet switch.
- Realign ModuleConfig.TrafficManagementConfig to its redesigned schema
(the boolean/precision/hop-management fields were dropped in favor of
five implicit-enable integers): update the proto<->entity mapping and the
config view, removing the defunct precision-bits and hop-management UI.
The SwiftData entity is left intact, so no migration is required.
LoRa region->preset map (per the firmware client spec):
- Decode FromRadio.region_presets into a per-region lookup
(LoRaRegionPresetMap.decoded -> RegionPresetInfo), store it on
AccessoryManager, and reset it on disconnect.
- LoRaConfig constrains the preset picker to the selected region's legal
set, switches to the region's default when the current preset is illegal,
and warns on licensed (ham) bands. Falls back to the full list when the
map or region is absent, and only consults the map on 2.8 firmware.
Firmware gating:
- New 2.8 regions (ham / EU-narrow) and presets (lite / narrow / tiny) are
hidden on radios reporting firmware < 2.8.0 via the RegionCodes /
ModemPresets selectable(supports2_8:) helpers.
Docs:
- Add a developer page for the region-preset map, update the LoRa and
Traffic Management user docs, add what's-new entries, and regenerate the
in-app documentation bundle.
Tests: LoRaRegionPresetMap decoding and firmware-gating suites.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent bad8024 commit c6284f9
44 files changed
Lines changed: 3689 additions & 1150 deletions
File tree
- MeshtasticProtobufs/Sources/meshtastic
- MeshtasticTests
- Meshtastic
- Accessory/Accessory Manager
- Enums
- Persistence
- Resources/docs
- developer
- markdown
- developer
- user
- user
- Views/Settings/Config
- Module
- docs
- developer
- user
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14062 | 14062 | | |
14063 | 14063 | | |
14064 | 14064 | | |
14065 | | - | |
14066 | | - | |
14067 | | - | |
14068 | 14065 | | |
14069 | 14066 | | |
14070 | 14067 | | |
| |||
34069 | 34066 | | |
34070 | 34067 | | |
34071 | 34068 | | |
34072 | | - | |
34073 | | - | |
34074 | | - | |
34075 | | - | |
34076 | | - | |
34077 | | - | |
34078 | 34069 | | |
34079 | 34070 | | |
34080 | 34071 | | |
| |||
40992 | 40983 | | |
40993 | 40984 | | |
40994 | 40985 | | |
40995 | | - | |
40996 | | - | |
40997 | | - | |
40998 | 40986 | | |
40999 | 40987 | | |
41000 | 40988 | | |
| |||
47160 | 47148 | | |
47161 | 47149 | | |
47162 | 47150 | | |
| 47151 | + | |
| 47152 | + | |
| 47153 | + | |
47163 | 47154 | | |
47164 | 47155 | | |
47165 | 47156 | | |
| |||
50472 | 50463 | | |
50473 | 50464 | | |
50474 | 50465 | | |
| 50466 | + | |
| 50467 | + | |
| 50468 | + | |
50475 | 50469 | | |
50476 | 50470 | | |
50477 | 50471 | | |
| 50472 | + | |
| 50473 | + | |
| 50474 | + | |
50478 | 50475 | | |
50479 | 50476 | | |
50480 | 50477 | | |
| |||
52348 | 52345 | | |
52349 | 52346 | | |
52350 | 52347 | | |
52351 | | - | |
52352 | | - | |
52353 | | - | |
52354 | 52348 | | |
52355 | 52349 | | |
52356 | 52350 | | |
| |||
57511 | 57505 | | |
57512 | 57506 | | |
57513 | 57507 | | |
57514 | | - | |
57515 | | - | |
57516 | | - | |
57517 | 57508 | | |
57518 | 57509 | | |
57519 | 57510 | | |
| |||
57760 | 57751 | | |
57761 | 57752 | | |
57762 | 57753 | | |
57763 | | - | |
57764 | | - | |
57765 | | - | |
57766 | 57754 | | |
57767 | 57755 | | |
57768 | 57756 | | |
| |||
64412 | 64400 | | |
64413 | 64401 | | |
64414 | 64402 | | |
64415 | | - | |
64416 | | - | |
64417 | | - | |
64418 | | - | |
64419 | | - | |
64420 | | - | |
64421 | 64403 | | |
64422 | 64404 | | |
64423 | 64405 | | |
| |||
71837 | 71819 | | |
71838 | 71820 | | |
71839 | 71821 | | |
71840 | | - | |
71841 | | - | |
71842 | | - | |
71843 | 71822 | | |
71844 | 71823 | | |
71845 | 71824 | | |
| |||
78375 | 78354 | | |
78376 | 78355 | | |
78377 | 78356 | | |
78378 | | - | |
78379 | | - | |
78380 | | - | |
78381 | | - | |
78382 | | - | |
78383 | | - | |
78384 | 78357 | | |
78385 | 78358 | | |
78386 | 78359 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
243 | 254 | | |
244 | 255 | | |
245 | 256 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
186 | 192 | | |
187 | 193 | | |
188 | 194 | | |
| |||
461 | 467 | | |
462 | 468 | | |
463 | 469 | | |
| 470 | + | |
464 | 471 | | |
465 | 472 | | |
466 | 473 | | |
| |||
762 | 769 | | |
763 | 770 | | |
764 | 771 | | |
| 772 | + | |
| 773 | + | |
765 | 774 | | |
766 | 775 | | |
767 | 776 | | |
| |||
811 | 820 | | |
812 | 821 | | |
813 | 822 | | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
814 | 826 | | |
815 | 827 | | |
816 | 828 | | |
| |||
0 commit comments