Commit Graph
3746 Commits
Author SHA1 Message Date
upstream-sync-bot fbf9b072f2 Merge upstream/dev (7 commits) [upstream-sync] 2026-10-26 05:06:09 +00: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
ripplebiz e258ebc98f Merge pull request #3680 from fdlamotte/m5_wifi_usb_companion
ThinknodeM5: enable wifi in usb companion
2026-10-26 11:18:10 +11:00
Florent 6f9b3ba155 ThinknodeM5: enable wifi in usb companion 2026-10-25 17:49:16 -04:00
upstream-sync-bot 040b51e807 Merge upstream/dev (10 commits) [upstream-sync] 2026-10-25 01:03:21 +00:00
tthandClaude Opus 5.5 c959ff79ec platformio: zástupné secrets.admin_pw (upstream-sync CI bez local.ini padal na tth_fleet)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 02:54:46 +02:00
fdlamotte d65a6b9667 Merge pull request #3659 from fdlamotte/elecrow_eink_refactor
Elecrow eink refactor
2026-10-24 19:50:03 -04:00
Florent 81fa5d7f5a ThinknodeM1: update eink driver 2026-10-24 13:26:06 -04:00
Florent f0ea4620ca thinknode_m1: fix button2 definition 2026-10-24 11:15:28 -04:00
Florent e8be1ad6b2 UiTask: better cleaning of eink screens when hibernating 2026-10-24 10:16:56 -04:00
ripplebiz 2797dd7ba1 Merge pull request #3643 from marcelverdult/upstream-candidate/companion-channel-txt-min-len
Fix companion crash on a short CMD_SEND_CHANNEL_TXT_MSG frame
2026-10-24 11:40:49 +11:00
ripplebiz 8723caf0df Merge pull request #3646 from marcelverdult/upstream-candidate/af-nan-text-check
Refuse nan and inf for the airtime factor (set af, set dutycycle)
2026-10-24 11:34:10 +11: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 e97de59b57 fix(radio): refuse "nan" for the airtime factor
"set af nan" is accepted and stores a NaN in airtime_factor, the duty cycle
budget the roles hand to their airtime accounting. strtof() consumes the
token, so the parse guard does not fire, and no ordered comparison is true for
a NaN, so "af < 0 || af > 9" cannot reject it. "set dutycycle" writes the same
field and has the same hole.

Both commands now check the text before it is parsed: after optional white
space and sign, a number has to start with a digit or a '.'. That refuses
"nan", "inf" and their variants, and keeps every spelling that was accepted
before (signs, leading white space, ".5"). The ranges and both reply strings
are unchanged.

The check is on the text rather than on the parsed float on purpose. nRF52
builds use -Ofast, and under -ffast-math the compiler may assume a float is
never NaN or infinite. A test on the value, even one that reads its bits, can
then be folded away: clang does exactly that with a bit test at -Ofast, while
arm-none-eabi-gcc keeps it. A character test does not depend on that.
2026-10-22 09:42:58 +00: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
upstream-sync-bot 2f276d60dd Merge upstream/dev (2 commits) [upstream-sync] 2026-10-22 05:06:05 +00:00
ripplebiz dace1a32d4 Merge pull request #3651 from liamcottle/feature/auto-detect-display
New AutoDetectDisplay for SH1106 and SSD1306
2026-10-22 10:44:26 +11: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
upstream-sync-bot 29d14dde23 Merge upstream/dev (4 commits) [upstream-sync] 2026-10-21 05:06:08 +00:00
liamcottle 75ea17ea46 implement new auto detect display for sh1106 and ssd1306 2026-10-21 15:41:11 +13:00
Liam Cottle 2e6c8824eb Merge pull request #3614 from amdoolittle/fix/heltec-v4-tft-wifi-enable
Fix: Added WiFi to TFT BLE version of Heltec V4
2026-10-21 13:59:37 +13:00
Liam Cottle 99b4114627 Merge pull request #3627 from radek-sixi/tbeam-supreme-ble-wifi
added dynamic wifi to: lilygo t-beam supreme sx1262
2026-10-21 13:31:07 +13:00
tthandClaude Opus 5.5 c4f8d14d36 hardware/cavity-box: díra PG11 zpět na 18,6 mm (závit má 18,4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 15:01:20 +02:00
tthandClaude Opus 5.5 1b609fd90a hardware/cavity-box: kulaté rohy, náběh 45° i v rozích, PG11 19 mm, šrouby mimo drážku
Tisk se zkroutil a odlepil od podložky a v rozích příruby byl převis
~56° (ostrý offset lichoběžníku). Všechny obrysy jsou teď rovnoběžné
offsety zaobleného vnitřku (corner_r 5), takže náběh má 45° všude.
Díra pro vložku zasahovala 1,1 mm do drážky těsnění: drážka 2,5 mm
o 0,5 blíž k vnitřku, příruba 12 mm, šrouby na `screw_off` (1,35 mm od
drážky). Příruba 5 mm místo 6 (míň plastu nahoře). Díra PG11 19,0 mm,
tištěná vychází menší než závit 18,6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 14:58:40 +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
Radek ad0324d354 added dynamic wifi to: lilygo t-beam supreme sx1262 ble companion 2026-10-18 11:02:07 +02:00
tthandClaude Opus 5.5 26c0f46ee5 hardware/cavity-box: díra pro průchodku PG11 (18,6 mm) místo PG7
PG7 drží RF240, ale SMA konektor jí neprojde. PG11 s vyjmutou a
naříznutou vložkou ano. V hlavičce těsnění silikonem v drážce.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 22:44:08 +02:00
tthandClaude Opus 5.5 6f25a97b61 hardware/cavity-box: díry pro vývodky zase kulaté, slza volitelně
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 22:10:38 +02:00
tthandClaude Opus 5.5 27bba1a173 hardware/cavity-box: tisk zády dolů bez supportu, vložky M3, tunely na pásky
- záda 8 mm se třemi zapuštěnými tunely na stahovací pásky (do 9 mm),
  vstupy šikmo 45°, záda zvenku rovná a interiér neproražený
- náběh 45° pod přírubou, díry pro vývodky jako slzy
- víko i filtr na zatavených vložkách M3x5x5 (uši filtru 4,1 mm => M3x10)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 22:06:35 +02:00
tthandClaude Opus 5.5 44be0a979d hardware/cavity-box: uchycení třemi hadicovými sponami místo třmenů
Spona obejme tyč libovolného průřezu (zábradlí i stožár). Tunel celý
v liště, záda zůstanou celá. Verze s třmeny M6 je v 967962d8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 21:46:39 +02:00
tthandClaude Opus 5.5 967962d8b6 hardware/cavity-box: parametrická krabice na cavity filtr pro zábradlí na Plešivci
Lichoběžníkový profil (zkosené bočnice, vývodky PG7 šikmo dolů = odkapová
smyčka), víko s TPU těsněním a šrouby vně těsnění, dno jako trychtýř do
odtokové dírky, lišty pro hranaté třmeny M6 na tyč zábradlí. Rozměry
filtru z fotek a měření 17. 10.: díry 4 mm 95 x 51, výška 45, osa SMA 18.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 21:43:39 +02: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
amdoolittle 757e84647c Added WiFi to TFT BLE version of Heltec V4 2026-10-16 22:39:26 -07: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
Liam Cottle b3043807c3 Merge pull request #3610 from liamcottle/fix/timezone-offset
Fix: tz_offset should allow for half hour timezone offsets
2026-10-17 15:30:59 +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 df8e962998 Merge branch 'dev' companion-v1.18.0 repeater-v1.18.0 room-server-v1.18.0 2026-10-15 19:42:40 +11:00
Scott Powell a4f1601df3 * version 1.18.0 2026-10-15 19:42:01 +11:00
ripplebiz 77889e61dc Merge pull request #3596 from recrof/wifi-companion-boards
added dynamic wifi to: heltec wsl3, v4r8, wireless paper; rak 3112; seeed xiao s3 (wio)
2026-10-15 19:35:32 +11:00
Rastislav Vysoky 59663042a8 added dynamic wifi to: heltec wsl3, v4r8, wireless paper; rak 3112; xiao s3 (wio) 2026-10-15 09:57:31 +02:00