Commit Graph
1137 Commits
Author SHA1 Message Date
tthandClaude Opus 5.5 fd04fdf093 Merge upstream/dev (11 commits) [upstream-sync]
Conflict in examples/companion_radio/ui-new/UITask.cpp: upstream replaced
UI_SHOW_CLOCK with the runtime pref ui_show_clock; kept that and our
BLE pin condition (shown only while Bluetooth is enabled).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 13:36:32 +01:00
Liam Cottle b09b12d4ef Merge pull request #3603 from A13xB0/companion-buzzer-cli
Add CLI command to toggle the buzzer for companions
2026-10-30 12:53:18 +13:00
fdlamotte bd4be350c5 Merge pull request #3687 from fdlamotte/display_prefs
ui: add some parameters to the cli (mostly regarding eink behaviour)
2026-10-29 08:35:36 -04:00
Florent 1d88a709bd ui: add some parameters to the cli (mostly regarding eink behaviour) 2026-10-29 08:34:41 -04:00
tth ec8e6bcdda Merge remote-tracking branch 'origin/dev' 2026-10-28 20:29:38 +01:00
ripplebiz 65c6a42627 Merge pull request #3688 from Blake-Latchford/fix/stats-dup-count-wrap
Saturate duplicate packet stats instead of wrapping
2026-10-28 17:06:21 +11:00
Liam Cottle d1e27f5b21 Merge pull request #3615 from radek-sixi/fix/common-radio-prefs-signed-tx-power
Fix unsigned conversion of negative TX power in CommonRadioPrefs
2026-10-27 22:44:04 +13:00
upstream-sync-bot fbf9b072f2 Merge upstream/dev (7 commits) [upstream-sync] 2026-10-26 05:06:09 +00:00
Blake LatchfordandClaude Opus 5.5 8e0e5b8110 Saturate duplicate packet stats instead of wrapping
Tested on a Heltec V4 repeater with the counter seeded at 65530.

Fixes #3255

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 21:45:10 -04:00
ripplebiz 4d3178d82a Merge pull request #3617 from aXistem-dev/feat/tz-offset-quarter-hours
Show quarter-hour timezone offsets with two decimals
2026-10-26 12:27:10 +11:00
ripplebiz a36ab23469 Merge pull request #3667 from Blake-Latchford/fix/kiss-modem-usbcdc-tx-buffer
Fix broken KISS modem build on 6 ESP32-S3 platforms
2026-10-26 12:02:57 +11:00
upstream-sync-bot 040b51e807 Merge upstream/dev (10 commits) [upstream-sync] 2026-10-25 01:03:21 +00:00
fdlamotte d65a6b9667 Merge pull request #3659 from fdlamotte/elecrow_eink_refactor
Elecrow eink refactor
2026-10-24 19:50:03 -04:00
Florent e8be1ad6b2 UiTask: better cleaning of eink screens when hibernating 2026-10-24 10:16:56 -04:00
Blake Latchford fded88ac6a Fix broken KISS modem build on 6 ESP32-S3 platforms
Broken out from PR #3496 which has been open for a month.
2026-10-22 17:57:33 -04:00
Marcel Verdult 97a6ff714c fix(chat): refuse a negative text length for a group message
CMD_SEND_CHANNEL_TXT_MSG reads txt_type, channel_idx and a 4 byte timestamp, so
the frame needs 7 bytes before the text starts, and the branch had no length
guard. For a shorter frame "len - i" is computed in size_t, wraps, and reaches
sendGroupMessage() as a negative int. The clamp there tests
"text_len + prefix_len > MAX_TEXT_LEN", which a negative value passes, and the
following memcpy() converts the length back to a size_t: a 3 byte frame asks for
4294967292 bytes into a 197 byte stack buffer.

Two guards, because there are two mistakes. The branch now states its minimum
like most other branches of handleCmdFrame do, so a frame below 7 bytes is
answered through the existing path instead of being parsed. And
sendGroupMessage() refuses a negative length the way sendGroupData() in the same
file already does, which protects every other caller.

A frame of exactly 7 bytes keeps working and sends an empty message, as before.

Evidence. On a T-Echo running dev c9fa617c, built with
FIRMWARE_BUILD_DATE "f1-dev" and confirmed by "ver => v1.18.0 (Build: f1-dev)":

  CH_TXT len=7    -> RESP_CODE_OK
  GET_STATS core  -> uptime=78s
  CH_TXT len=3    -> NO REPLY
  DEVICE_QUERY    -> NO REPLY  (three times over 8 s, node never came back)
2026-10-22 09:33:07 +00:00
Florent afbab2de16 DisplayDriver: fixing alignment issue in vtable for nrf52 and epd display 2026-10-21 17:13:27 -04:00
Florent d1d06b92ab refactoring eink devices behaviour 2026-10-21 14:08:56 -04:00
Confituurke 8c4769d1ed Use two decimals only for exact quarter-hour offsets 2026-10-21 11:24:34 +02:00
tthandClaude Opus 5.5 f6fc21d40d nrf52: hardfault recorder v aplikaci a v .noinit (#5)
Recorder nikdy nefungoval: handler byl patch v utility/debug.cpp
frameworku, jenže jádro se linkuje jako archiv a weak HardFault_Handler
ze startupu už vektor pokrývá, takže debug.o se do žádného buildu
nedostal (nm ukazoval jen W symbol). Záznam navíc ležel na 0x2003FFF0,
kam po resetu sahá zásobník bootloaderu.

Handler je teď silný symbol v NRF52Board.cpp a zapisuje do
g_hardfault_record v .noinit; funguje i s commitnutým pinem frameworku
(lokální patch už není potřeba). Ověřeno na x2: testovací build
s -D BENCH_FAULT_CMD, příkaz hardfault → po resetu
'HARDFAULT before last reboot: PC=00033442' = udf v handleCommand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 22:59:02 +02:00
tthandClaude Opus 5.5 c7f9c2ef79 companion: clkreboot srovná hodiny napřed (#5)
Od 72618655 hodiny na nRF52 přežijí warm reset, takže companionu
s hodinami napřed už nepomůže reboot, a CMD_SET_DEVICE_TIME dozadu
neprojde — zbývalo jen odpojit napájení. clkreboot (stejně jako
u repeateru) zahodí retained záznam, nastaví build epoch a rebootne;
lokálně (CMD_RUN_CLI_COMMAND) i vzdáleně pro kontakty s ACL.
Ověřeno na x1: +30 dní → clkreboot → build epoch → čas znovu dopředu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 22:48:49 +02:00
tthandClaude Opus 5.5 7261865583 nrf52: hodiny přežijí warm reset v .noinit (#5)
VolatileRTCClock ukládá čas do g_retained_clock (sekce .noinit, linker
ji dá hned za .bss) a při prvním čtení po warm resetu ho obnoví; po
power-on (RESETREAS 0) ne. Dřívější pokus 7. 8. na vrcholu RAM selhal,
protože tam sahá zásobník bootloaderu — střed RAM přežije: x1 (XIAO,
companion) nastaven +30 dní, reboot, hodiny zpět +30 dní.

BaseChatMesh::bootstrapRTCfromContacts posouvá hodiny už jen dopředu:
bezpodmínečný set vracel čas pod build epoch a rušil obnovu, která
ještě neproběhla (první test proto vyšel negativně).

Repeater: mrtvý mechanismus s pevnou RETAINED_CLOCK_ADDR nahrazen
výpisem stavu obnovy při bootu; ukládání obstarává tick().
Podle weebl2000/meshcore 9a561fd7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 22:17:40 +02:00
R0ck edb94d3fdc Apply buzzer setting changes in the UI so no reboot needed. 2026-10-17 23:53:27 +01:00
R0ck b9fa77ed69 Move to companion firmware, remove from varient 2026-10-17 23:37:14 +01:00
Confituurke 5f967d818a Show quarter-hour timezone offsets with two decimals
'get tz.offset' printed one decimal, so a UTC+5:45 offset (5.75)
read back as 5.8. Print two decimals when the offset is on a quarter
hour (x.25 / x.75); everything else keeps one decimal.
2026-10-17 13:03:06 +02:00
rado b2bde37fe4 Fix unsigned conversion of negative TX power in CommonRadioPrefs 2026-10-17 09:36:59 +02:00
upstream-sync-bot bcc1c74c01 Merge upstream/dev (6 commits) [upstream-sync] 2026-10-17 05:05:28 +00:00
Liam Cottle c9fa617c38 Merge pull request #3606 from amdoolittle/feature/ble-conditional-display
Remove BLE screen when BLE not available
2026-10-17 15:38:18 +13:00
liamcottle c2c5de52be tz_offset should be treated as float when down casting calculation result to int32 2026-10-17 15:22:46 +13:00
liamcottle a763fd4c91 timezone offset is now stored as float to allow half hour offsets 2026-10-17 15:16:38 +13:00
amdoolittle 7bbc19b010 Update UITask.cpp
Housekeeping: removed unnecessary space
2026-10-16 17:30:19 -07:00
amdoolittle da9329b096 Remove BLE screen when BLE not available 2026-10-16 10:04:44 -07:00
upstream-sync-bot 1be4e685af Merge upstream/main (20 commits) [upstream-sync] 2026-10-15 11:56:47 +00:00
Scott Powell a4f1601df3 * version 1.18.0 2026-10-15 19:42:01 +11:00
tthandClaude Opus 5.5 eb02217497 simple_repeater: filter hash -- runtime deny-forward podle hashe kanálu
Keyless doplněk k ChannelFilter: payload[0] u GRP_TXT/GRP_DATA je hash
kanálu v čistém, takže repeater může odmítnout přeposílat celý kanál bez
znalosti PSK (soukromý 0x43 = 43 % provozu CZ meshe). Kontrola sedí
v MyMesh::allowPacketForward(), tedy bez zásahu do core a před
takeForwardingRateLimit() -- zahozený paket nežere tokeny FairnessLimiteru.
Příjem a rxlog/pktfeed zůstávají nedotčené.

Za běhu přes konzoli i RF admin: `filter hash [add|del <hex>|list|clear]`,
max 8 bajtů, persistováno v prefs (f_dhash, f_dhash_n). Nezávislé na
FILTER_CHANNEL_PSKS.

Lavice 14. 10. (866.5/SF8): x1 DUT, x4 companion posílá do 0x75 a 0x09,
x2 svědek přes rxlog. Bez listu x2 slyší oba i s cestou 8704 (x1);
s `add 75` jen 0x09 přes x1, 0x75 jen přímo; x1 si 0x75 dál loguje;
po rebootu list drží; po `del 75` zase oba.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 20:34:19 +02:00
Liam Cottle ac25e7d956 Merge pull request #3591 from liamcottle/feature/companion-ble-wifi
Add WiFi support to Heltec v3 and v4 BLE variants
2026-10-14 20:23:11 +13:00
liamcottle 3448d06943 rework companion ui for ip address so it fits in multi interface variants 2026-10-14 16:29:41 +13:00
Scott Powell 174582e8a1 * only 'repeat on' now intercepted 2026-10-14 12:21:38 +11:00
Scott Powell 5f2deeb875 * Room: "set repeat" CLI now deprecated 2026-10-14 11:48:58 +11:00
tthandClaude Opus 5.5 5ac50acfca blepwr: explicitní hodnota se ukládá vždy, blepwr default ji zapomene
Druhé kolo review-three: soubor držel jen odchylku od build defaultu, takže
`blepwr 8` na mast-three (default 8) soubor smazal, odpověděl „saved" — a obraz
s jiným RPT_BLE_CONN_TX_POWER by uzel vrátil na 0 dBm. Teď se uloží každá
zadaná hodnota; návrat na default buildu je výslovně `blepwr default`.
static_assert hlídá RPT_BLE_CONN_TX_POWER při buildu, selhané smazání
starého souboru = NOT saved.

Ověřeno na x1: 6 → reboot → 6; default → reboot → 0; 216 → ERR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 23:54:44 +02:00
tthandClaude Opus 5.5 2386504e2d blepwr/fairness: opravy z review-three
- `blepwr` parsuje striktně (strtol + kontrola celého argumentu a platné
  hodnoty) — `atoi` udělal z „216" −40 a z „abc" 0, a teď se to ukládá.
  Stará syntaxe `blepwr -20 hold` skončí ERR místo tichého uložení −20.
- „saved" jen když zápis do InternalFS opravdu prošel, jinak „NOT saved".
- mast-three env: RPT_BLE_CONN_TX_POWER=8, aby po flashi nenaběhl na 0 dBm,
  na kterých most z bridge-host přes zavřené okno padá.
- FairnessLimiter: opravené odůvodnění 0x00/0xFF — náš companion identitu
  přegeneruje, ale na CZ meshi za 30 dní prošlo 50 floodů od takových
  odesílatelů a u ANON_REQ je payload[1] bajt náhodného klíče (2/256 všech).
  Test přejmenován (cap 100 je teď pod defaultem).
- tools/fairness_replay.py: přehrání floodů z CoreScope přes model limiteru,
  odkud jsou výchozí hodnoty; pro přepočet, až se provoz změní.

Ověřeno na x1: 216/264/abc/„-20 hold"/1 → ERR; 6 → saved → reboot → 6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 23:46:40 +02:00
tthandClaude Opus 5.5 29ef420486 repeater/ble: blepwr se ukládá a přežije reboot
Výkon BLE spojení (výchozí 0 dBm) se dal měnit za běhu, ale každý reboot ho
vrátil na nulu. mast-three přitom drží most z bridge-host přes zavřené okno jen na
+8 dBm. `blepwr <dBm>` teď platnou hodnotu uloží do InternalFS (/ble_pwr,
výchozí = žádný soubor) a boot ji načte. Neplatná hodnota (mimo
−40,−20,−16,−12,−8,−4,0,2..8) skončí ERR a neuloží se.

Automatický návrat oslabení po 5 minutách a `hold` jsou pryč: s uloženou
hodnotou by se rozcházely s tím, co platí po rebootu. Špatně nastavený výkon
se opraví přes mesh admin CLI, které na BLE nezávisí.

Ověřeno na x1: ERR + neuloženo, 6 → reboot → 6, −4 → reboot → −4,
0 → reboot → 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 23:39:44 +02:00
tthandClaude Opus 5.5 89a50b8542 Merge remote-tracking branch 'origin/dev'
Konflikty:
- ESP32Board.h: upstream obnovuje čas z RTC backupu přes všechny resety;
  záchytná hodnota je teď novější z FIRMWARE_BUILD_EPOCH (náš stamping)
  a RTC_TIME_MIN.
- t1000-e: upstream sloučil sleep_gps() do stop_gps() (drží VRTC + Airoha
  RTC backup sleep) ⇒ gps duty používá stop_gps(), sleep_gps() zrušen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 16:28:45 +02:00
Scott Powell 48aae4072d * don't respond to DISCOVER requests if node has adverts turned off. (isHiddenNode()) 2026-10-04 15:02:00 +11:00
Huw Duddy d07e11d7ed Merge pull request #3495 from meshcore-dev/increase-max-search-results
increased MAX_SEARCH_RESULTS to 24. (was 8)
2026-09-29 20:42:48 +10:00
tth 59c875fa97 Merge remote-tracking branch 'origin/dev' 2026-09-27 19:40:39 +02:00
Scott Powell 5c8ee09635 * changed onUnhandledResponse() to return true if handled/consumed
* unhandled responses (eg. push telemetry) now sent to app as PUSH_CODE_BINARY_RESPONSE frames
2026-09-24 13:49:57 +10:00
Scott Powell 49d0dd3141 increased MAX_SEARCH_RESULTS to 24. (was 8)
Closes #3243
2026-09-24 13:35:27 +10:00
tthandClaude Opus 5.5 36de0d92cd Merge remote-tracking branch 'origin/dev' into main
77 upstream commitů (8.–23. 9. 2026): MyMesh::Listener místo UITask,
Board::handleCommand + board.loop() hook, agc.reset.interval, validace
`set af`, CMD_SEND_CHANNEL_DATA gate, DC-DC na LR1110/LR1121, nové desky.

Konflikty:
- simple_repeater/main.cpp: náš BLE vstup konzole + upstream oprava
  plného bufferu (\r na size-2, NUL na konci)
- platformio.ini: zůstává ${nrf52_fw.pkg} (pin je shodný s upstreamem)
- TxtDataHelpers.cpp: upstream verze (ltoa + include api/itoa.h) místo
  našeho sprintf — řeší totéž STM32 selhání
- EnvironmentSensorManager.h: obě metody

Postaveno: SenseCap_Solar_repeater_ble, SenseCap_hreb_rpt,
SenseCap_ples_rpt, Xiao_x1_rpt, Xiao_x2_cmp, T1000E_cmp_cz. Neflashováno.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-23 18:35:35 +02:00
Scott Powell 0812e09b40 missing board.loop() in companion, room server, kiss modem. 2026-09-22 18:01:15 +10:00