firmware icon indicating copy to clipboard operation
firmware copied to clipboard

[Bug]: 95906609d breaks message delivery on MediumTurbo preset

Open Deuteranomalous1 opened this issue 2 months ago • 3 comments

Category

Other

Hardware

Rak4631

Is this bug report about any UI (https://meshtastic.org/docs/configuration/device-uis/) component firmware?

  • [ ] Meshtastic UI aka MUI
  • [ ] InkHUD
  • [ ] BaseUI

Firmware Version

2.8.1.cb4efd8

Description

Building from develop I found that test nodes were not actually sending anything on MediumTurbo channel 0. DMs to other mediumturbo nodes do work but to channel 0 does not. MediumSlow (my mesh's current preset) works fine. Tested latest nightly from flasher and confirmed same behaviour. Switching to MediumSlow everything works fine. Going back to MediumTurbo the logs show a TX but nothing is RXed by adjacent MediumTurbo nodes. Switching to firmware before 95906609d and not changing any settings restores message delivery on channel 0. Did a bunch of bisection and it settled on 95906609d being the start of the issue. Why is beyond my skill but this is where it breaks.

Confirmed results on RAK4631 and DIY ProMicro nodes.

Summary from Clod:

Bisect confirmed 95906609db1a183b994ce2006e8000bc49a4b54e ("Sign the whole Data envelope, in one unambiguous layout") as the first bad commit.

Symptoms: Messages sent on MediumTurbo (BW=500kHz, SF=9, CR=4/5, 925.25MHz US ch47) show successful local TX (136ms air time logged) but receive no ACK and report "failed to deliver to mesh." MediumSlow on the same hardware, same node, same channel index works correctly.

Reproduction: Confirmed on stock unmodified nightly 2.8.1.cb4efd8 on RAK4631. Switching the same node to MediumSlow immediately restores delivery.

Bisect results:

8ef996f5b — GOOD (MediumTurbo works) 95906609d — BAD (MediumTurbo fails)

Root cause: Unknown. Static analysis of CryptoEngine.cpp and Router.cpp shows no obvious preset-specific logic. signedDataFits() and MAX_LORA_PAYLOAD_LEN are preset-agnostic. The signing buffer size (XEDDSA_SIGN_BUF_LEN = 267) is larger than the old MAX_BLOCKSIZE = 256 but a /ping payload is well under both limits. The failure mode is preset-specific and the mechanism is not yet identified.

Relevant log output


Deuteranomalous1 avatar Sep 26 '26 19:09 Deuteranomalous1

MT47 now works with remote admin and DM on 2.8.1.11eebcb.

b8b8 avatar Sep 28 '26 13:09 b8b8

The signature envelope of 2.8.0 is incompatible with 2.8.1, that is indeed known and affects all 2.8 series builds before https://github.com/meshtastic/firmware/commit/95906609db1a183b994ce2006e8000bc49a4b54e

Unfortunately there's no other way around this. interop with 2.7 series is not affected.

caveman99 avatar Sep 28 '26 13:09 caveman99

The signature envelope of 2.8.0 is incompatible with 2.8.1, that is indeed known and affects all 2.8 series builds before 9590660

Unfortunately there's no other way around this. interop with 2.7 series is not affected.

Thank you yes the preset was a red herring. due to longfast and mediumslow nodes in my area running 2.7 or older firmware relaying messages.

Deuteranomalous1 avatar Oct 03 '26 01:10 Deuteranomalous1