Inject_packet does not push raw bytes to companion clients #101

Closed
opened 2026-10-27 09:33:12 +01:00 by adam · 3 comments
Owner

Component: repeater/packet_router.py — PacketRouter.inject_packet()

When a companion sends a channel message (GRP_TXT), pyMC transmits it over the air via inject_packet() but never pushes the raw packet bytes to connected companion frame server clients via PUSH_CODE_LOG_RX_DATA (0x88). Apps that decrypt locally from raw RX — such as RemoteTerm — therefore never see companion-to-companion messages.

Injected TX packets should be pushed to companion frame server clients as raw RX frames (PUSH_CODE_LOG_RX_DATA 0x88), with RSSI=0 and SNR=0 to indicate local origin. This is consistent with how physical firmware behaves from the perspective of other nodes on the mesh.

Component: repeater/packet_router.py — PacketRouter.inject_packet() When a companion sends a channel message (GRP_TXT), pyMC transmits it over the air via inject_packet() but never pushes the raw packet bytes to connected companion frame server clients via PUSH_CODE_LOG_RX_DATA (0x88). Apps that decrypt locally from raw RX — such as RemoteTerm — therefore never see companion-to-companion messages. Injected TX packets should be pushed to companion frame server clients as raw RX frames (PUSH_CODE_LOG_RX_DATA 0x88), with RSSI=0 and SNR=0 to indicate local origin. This is consistent with how physical firmware behaves from the perspective of other nodes on the mesh. <!-- github-sync-id:4557430061 -->
adam closed this issue 2026-10-27 09:33:12 +01:00
Author
Owner

@agessaman

@agessaman <!-- github-comment-id:4592556521 -->
Author
Owner

Good catch. I have this working. Going to send it over with the other companion fixes.

Good catch. I have this working. Going to send it over with the other companion fixes. <!-- github-comment-id:4598490508 -->
Author
Owner

Thank you very much.

Thank you very much. <!-- github-comment-id:4603731939 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/pyMC_Repeater#101