Skip to content

bridge: report what the chip's IrqMask kept out - #26

Open
NomDeTom wants to merge 2 commits into
MeshBench:mainfrom
NomDeTom:bridge-irq-suppressed
Open

NomDeTom wants to merge 2 commits into
MeshBench:mainfrom
NomDeTom:bridge-irq-suppressed

Conversation

@NomDeTom

@NomDeTom NomDeTom commented Oct 13, 2026 •

Copy link
Copy Markdown

This moves vendor/virtual-sx1262 from 2861950 to f2604d1, the merge of MeshBench/virtual-sx1262#2, which is where VirtualSX1262::irqSuppressed() arrives. f2604d1 has the same tree as 8fb9623, the head of that PR, so the builds under Verification below cover this pin.

What this changes

The radio stats record (kRadioStats) grows from 37 bytes to 47:

bytes field
0-36 unchanged
37-38 DIO1 mask (dio1Mask())
39-42 console baud rate: 0, since a native node's console is a socket
43-46 irqSuppressed(): IRQ events the firmware's IrqMask kept out of the status register

Bytes 37-42 follow the layout MeshBench already reads from emulated nodes, so the two writers send one shape. MeshBench reads the record by length; a host that predates bytes 37-46 ignores them. MeshBench/meshbench#745 reads bytes 43-46.

Verification

The radio stats record grows from 37 bytes to 47. Bytes 37-42 take the
emulator's tail so the two writers keep one shape: the DIO1 mask, then a
console rate of zero, since a native console is a socket rather than a UART.
Bytes 43-46 carry irqSuppressed(), the number of events the firmware's
IrqMask kept out of the chip's status register.

MeshBench reads the record by length, so a host that predates the field
keeps working with either size.

irqSuppressed() comes from MeshBench/virtual-sx1262#2; this does not build
against the chip at the current pin (2861950).
@NomDeTom
NomDeTom marked this pull request as ready for review October 13, 2026 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant