Skip to content

Conversation

@rightup
Copy link
Owner

@rightup rightup commented Dec 30, 2025

Support for anonymous login requests and adds Listen Before Talk (LBT) feedback metrics to the mesh network protocol. Clients can now securely authenticate using encrypted anonymous requests, and the radio layer provides detailed transmission feedback for improved network behaviour and diagnostics.
Key Changes

Anonymous authentication
Added LoginServerHandler to process encrypted ANON_REQ packets
Implements password validation and ACL enforcement for anonymous clients
Protocol request handling
Added ProtocolRequestHandler to manage REQ / RESPONSE protocol messages in a unified flow
LBT feedback metrics
Extended the SX1262 radio driver to collect LBT metrics, including:
Backoff delays
Channel busy detection
Airtime usage

Text message handling
Enhanced text message handler to support CLI command messages via the txt_type field
CLI messages do not require ACKs, reducing protocol overhead

Bug fix

Improved PI initialisation reliability for the radio chip by adding a required startup delay, resulting in faster and more stable initialisation

rightup and others added 30 commits November 11, 2025 17:14
This PR adds transport key functionality to the mesh packet system, enabling packet authentication using region-based transport codes. The implementation matches the C++ MeshCore firmware protocol, ensuring cross-platform compatibility.

Key Changes:

    Introduced transport key generation and transport code calculation utilities
    Extended packet structure to support optional 4-byte transport code fields for TRANSPORT_FLOOD and TRANSPORT_DIRECT route types
    Added helper methods to identify packet routing characteristics
[WIP] Address feedback on added transport key and mesh packet utilities
…ing-helper

Add common utility for upper-case hex string representation for packet hash
This PR implements control packet handling for mesh node discovery, adding a new packet type (0x0B CONTROL) and handler infrastructure to enable nodes to discover each other on the mesh network via zero-hop broadcast packets.

   - Added PAYLOAD_TYPE_CONTROL (0x0B) constant and corresponding packet type mapping
   - Implemented ControlHandler for processing discovery request and response packets
   - Added create_discovery_request() and create_discovery_response() methods to PacketBuilder
   - Provided two example scripts demonstrating discovery functionality
…ring proper signature verification and payload size limits
…date constructors and return types for better clarity
rightup and others added 29 commits December 12, 2025 11:53
…rupt handler and improving logging for CAD operations
…t trampoline for GPIO interrupts and capturing the event loop for thread-safe operations.
Fix SNR by implementing SNR and RSSI conversion utilities.
…; enhance ACL management and replay attack detection
…esting; improve packet handling in LoginServerHandler and PathHandler
This PR introduces authentication support for anonymous login requests and adds Listen Before Talk (LBT) feedback metrics to the mesh network protocol. Clients can now securely authenticate using encrypted anonymous requests, and the radio layer provides detailed transmission feedback for improved network behaviour and diagnostics.
Key Changes

Anonymous authentication
Added LoginServerHandler to process encrypted ANON_REQ packets
Implements password validation and ACL enforcement for anonymous clients
Protocol request handling
Added ProtocolRequestHandler to manage REQ / RESPONSE protocol messages in a unified flow
LBT feedback metrics
Extended the SX1262 radio driver to collect LBT metrics, including:
Backoff delays
Channel busy detection
Airtime usage

Text message handling
Enhanced text message handler to support CLI command messages via the txt_type field
CLI messages do not require ACKs, reducing protocol overhead

Bug fix

Improved PI initialisation reliability for the radio chip by adding a required startup delay, resulting in faster and more stable initialisation
@rightup rightup merged commit 6d69924 into main Dec 30, 2025
3 checks passed
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.

3 participants