Skip to content

Conversation

manuignatius
Copy link
Collaborator

TX Shortcuts Script

Adds a convenient Groovy script (tx.groovy) that provides short command aliases for sending physical layer frames.

Usage

  1. Upload tx.groovy to the scripts folder
  2. Load in shell with: tx
  3. Use short commands:
    • c() - Broadcast CONTROL frame
    • c(4) - Send CONTROL frame to node 4
    • c(4, [1,2,3]) - Send CONTROL frame to node 4 with data
    • d() - Broadcast DATA frame
    • d(4) - Send DATA frame to node 4
    • d(4, [1,2,3]) - Send DATA frame to node 4 with data

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a Groovy script that provides convenient shortcuts for transmitting physical layer frames in the UNet framework. The script offers simple command aliases for sending CONTROL and DATA frames with various parameter combinations.

  • Adds tx.groovy script with short command functions c() and d() for frame transmission
  • Supports broadcast, targeted, and data-carrying frame transmission modes
  • Includes user-friendly help output when the script is loaded

manuignatius and others added 2 commits August 6, 2025 13:33
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@notthetup
Copy link
Collaborator

One thing to note, maybe add a comment, that this will break if some other script assigns a variable named c or d.

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.

2 participants