diff --git a/cli_commands/index.html b/cli_commands/index.html index 11075c3e..f2d6d9da 100644 --- a/cli_commands/index.html +++ b/cli_commands/index.html @@ -694,17 +694,6 @@ - - -
  • - - - - View or change the boosted receive gain mode - - - -
  • @@ -730,10 +719,10 @@
  • - + - View or change this node's rx boosted gain mode (SX12xx only, v1.14.1+) + View or change this node's rx boosted gain mode (SX12xx and LR1110, v1.14.1+) @@ -1058,6 +1047,17 @@ +
  • + +
  • + + + + Limit the number of hops for an unscoped flood message + + + +
  • @@ -1213,6 +1213,17 @@ + + +
  • + + + + Define region hierarchy (single line) + + + +
  • @@ -1349,10 +1360,10 @@
  • - + - View or change thevalue of a sensor + View or change the value of a sensor @@ -2231,17 +2242,6 @@ -
  • - -
  • - - - - View or change the boosted receive gain mode - - - -
  • @@ -2267,10 +2267,10 @@
  • - + - View or change this node's rx boosted gain mode (SX12xx only, v1.14.1+) + View or change this node's rx boosted gain mode (SX12xx and LR1110, v1.14.1+) @@ -2595,6 +2595,17 @@ +
  • + +
  • + + + + Limit the number of hops for an unscoped flood message + + + +
  • @@ -2750,6 +2761,17 @@ + + +
  • + + + + Define region hierarchy (single line) + + + +
  • @@ -2886,10 +2908,10 @@
  • - + - View or change thevalue of a sensor + View or change the value of a sensor @@ -3225,15 +3247,6 @@

    Default: Varies by board

    Notes: This setting only controls the power level of the LoRa chip. Some nodes have an additional power amplifier stage which increases the total output. Refer to the node's manual for the correct setting to use. Setting a value too high may violate the laws in your country.


    -

    View or change the boosted receive gain mode

    -

    Usage: -- get radio.rxgain -- set radio.rxgain <state>

    -

    Parameters: -- state: on|off

    -

    Default: off

    -

    Note: Only available on SX1262 and SX1268 based boards.

    -

    Change the radio parameters for a set duration

    Usage: - tempradio <freq>,<bw>,<sf>,<cr>,<timeout_mins>

    @@ -3255,7 +3268,7 @@

    Note: Requires reboot to apply Serial Only: set freq <frequency>


    -

    View or change this node's rx boosted gain mode (SX12xx only, v1.14.1+)

    +

    View or change this node's rx boosted gain mode (SX12xx and LR1110, v1.14.1+)

    Usage: - get radio.rxgain - set radio.rxgain <state>

    @@ -3331,7 +3344,7 @@ - text: Owner information text

    Default: <blank>

    Note: | characters are translated to newlines

    -

    Note: Requires firmware 1.12.+

    +

    Note: Requires firmware 1.12+


    Fine-tune the battery reading

    Usage: @@ -3359,7 +3372,7 @@

    Parameters: - on: enable power saving - off: disable power saving

    -

    Default: on

    +

    Default: off

    Note: When enabled, device enters sleep mode between radio transmissions


    Routing

    @@ -3383,7 +3396,7 @@ - 3: DO NOT USE (Reserved)

    Default: 0

    Note: the 'path.hash.mode' sets the low-level ID/hash encoding size used when the repeater adverts. This setting has no impact on what packet ID/hash size this repeater forwards, all sizes should be forwarded on firmware >= 1.14. This feature was added in firmware 1.14

    -

    Temporary Note: adverts with ID/hash sizes of 2 or 3 bytes may have limited flood propogation in your network while this feature is new as v1.13.0 firmware and older will drop packets with multibyte path ID/hashes as only 1-byte hashes are suppored. Consider your install base of firmware >=1.14 has reached a criticality for effective network flooding before implementing higher ID/hash sizes.

    +

    Temporary Note: adverts with ID/hash sizes of 2 or 3 bytes may have limited flood propagation in your network while this feature is new as v1.13.0 firmware and older will drop packets with multibyte path ID/hashes as only 1-byte hashes are supported. Consider your install base of firmware >=1.14 has reached a criticality for effective network flooding before implementing higher ID/hash sizes.


    View or change this node's loop detection

    Usage: @@ -3396,7 +3409,7 @@ - moderate: packets are dropped if repeater's ID/hash appears 2 or more times (1-byte), 1 or more (2-byte), 1 or more (3-byte) - strict: packets are dropped if repeater's ID/hash appears 1 or more times (1-byte), 1 or more (2-byte), 1 or more (3-byte)

    Default: off

    -

    Note: When it is enabled, repeaters will now reject flood packets which look like they are in a loop. This has been happening recently in some meshes when there is just a single 'bad' repeater firmware out there (prob some forked or custom firmware). If the payload is messed with, then forwarded, the same packet ends up causing a packet storm, repeated up to the max 64 hops. This feature was added in firmware 1.14

    +

    Note: When it is enabled, repeaters will now reject flood packets which look like they are in a loop. This has been happening recently in some meshes when there is just a single 'bad' repeater firmware out there (probably some forked or custom firmware). If the payload is messed with, then forwarded, the same packet ends up causing a packet storm, repeated up to the max 64 hops. This feature was added in firmware 1.14

    Example: If preference is loop.detect minimal, and a 1-byte path size packet is received, the repeater will see if its own ID/hash is already in the path. If it's already encoded 4 times, it will reject the packet. If the packet uses 2-byte path size, and repeater's own ID/hash is already encoded 2 times, it rejects. If the packet uses 3-byte path size, and the repeater's own ID/hash is already encoded 1 time, it rejects.


    View or change the retransmit delay factor for flood traffic

    @@ -3406,6 +3419,7 @@

    Parameters: - value: Transmit delay factor (0-2)

    Default: 0.5

    +

    Note: When multiple nearby repeaters all hear the same flood packet, each waits a random amount of time before retransmitting to avoid simultaneous collisions. This factor scales the size of that random window. Higher values reduce collision risk at the cost of added latency. 0 disables the window entirely.


    View or change the retransmit delay factor for direct traffic

    Usage: @@ -3414,6 +3428,7 @@

    Parameters: - value: Direct transmit delay factor (0-2)

    Default: 0.2

    +

    Note: Same collision-avoidance random window as txdelay, but applied to direct (non-flood, routed) traffic. The default is lower because direct packets are addressed to a specific next hop, so far fewer nodes compete to retransmit them.


    [Experimental] View or change the processing delay for received traffic

    Usage: @@ -3422,6 +3437,7 @@

    Parameters: - value: Receive delay base (0-20)

    Default: 0.0

    +

    Note: When enabled, repeaters that received a flood packet with a weak signal are held in a delay queue before processing, while those that received it with a strong signal process it immediately. This gives strong-signal paths forwarding priority. By the time weak-signal nodes process their copy, the packet may have already propagated and will be suppressed as a duplicate, reducing redundant retransmissions.


    View or change the duty cycle limit

    Usage: @@ -3503,6 +3519,15 @@ - value: Maximum flood hop count (0-64)

    Default: 64


    +

    Limit the number of hops for an unscoped flood message

    +

    Usage: +- get flood.max.unscoped +- set flood.max.unscoped <value>

    +

    Parameters: +- value: Maximum flood hop count (0-64) for a packet without a scope (no region set)

    +

    Default: 0xFF - indicates it hasn't been set, will track flood.max until it is.

    +

    Note: An alternative to region denyf *, setting flood.max.unscoped to a lower value such as 3 would allow for local unscoped messages to propagate, while preventing noisy neighbors from flooding a local region.

    +

    ACL

    Add, update or remove permissions for a companion

    Usage: @@ -3585,6 +3610,34 @@ - name: Region name - parent_name: Parent region name (optional, defaults to wildcard)


    +

    Define region hierarchy (single line)

    +

    Usage: +- region def <token> [<token> ...]

    +

    Parameters (tokens): Space-separated. A logical cursor starts at the wildcard *.

    + +

    Behavior: Each created region defaults to flood-allowed (same as region put). The reply is the resulting region tree (same format as bare region); review it before running region save to persist. On error, the reply is Err - ... and any regions placed before the failure remain on the node, just like a partial chain of region put.

    +

    Existing regions: region def does not clear the existing tree — if a name already exists, its parent is updated to the current cursor; otherwise a new region is created. To start from scratch, region remove the unwanted regions first.

    +

    Limits: Repeater serial accepts one line up to 160 characters. For larger trees, split across multiple region def commands; the cursor resets to * between commands, so lead the next command with child|ancestor to reposition. Each token splits at most once on |region def a|b|c|d is not a flat-list shorthand; see the flat-list example below.

    +

    Example — linear chain (each token becomes a child of the previous):

    +
    region def a b c d e
    +region save
    +
    +

    Example — branched tree (equivalent to region put a, region put b a, region put c b, region put d c, region put e b, region put f e):

    +
    region def a b c d|b e f
    +region save
    +
    +

    Example — error and partial state:

    +
    region def a b c|nope d
    +
    +

    The reply is Err - unknown jump: nope. a, b, and c were placed before the failure; d was not. Run region to inspect, then re-run with a corrected jump or repair with region remove / region put.

    +

    Example — flat list (each region a child of *). Use |* after each token to pop the cursor back to the root before the next token:

    +
    region def a|* b|* c|* d|* e|* f
    +region save
    +
    +

    Remove a region

    Usage: - region remove <name>

    @@ -3598,7 +3651,7 @@

    Serial Only: Yes

    Parameters: - filter: allowed|denied

    -

    Note: Requires firmware 1.12.+

    +

    Note: Requires firmware 1.12+


    Dump all defined regions and flood permissions

    Usage: @@ -3712,7 +3765,7 @@ region save - start: Optional starting index (defaults to 0)

    Note: Output format: <var_name>=<value>\n


    -

    View or change thevalue of a sensor

    +

    View or change the value of a sensor

    Usage: - sensor get <key> - sensor set <key> <value>

    diff --git a/companion_protocol/index.html b/companion_protocol/index.html index dfeda26f..618cab39 100644 --- a/companion_protocol/index.html +++ b/companion_protocol/index.html @@ -542,13 +542,41 @@ + + +
  • + +
  • + + + + Receive Channel Data Datagram + + + +
  • - + - 6. Get Message + 7. Get Message @@ -556,10 +584,10 @@
  • - + - 7. Get Battery and Storage + 8. Get Battery and Storage @@ -683,6 +711,17 @@