GalahUser guide · Black Squeak Systems v2.2.2 blacksqueak.com
Integration

Remote control (UDP / TCP)

Axia Pathfinder Pro, Bitfocus Companion, a playout system or a script can switch embedders, SRT, start and end of broadcast and recording by sending simple text strings over UDP or TCP.

Switching remote control on#

Remote control is off by default. Open Settings → Remote control (Pathfinder, Companion):

The Remote control card (here listening on UDP and TCP port 9300).123456789101112
The Remote control card (here listening on UDP and TCP port 9300).
  1. Remote control: on / off.
  2. UDP and its port (default 9300).
  3. TCP and its port (default 9300).
  4. Listen on: all interfaces, this computer only, or one interface (for example the automation network).
  5. Answer UDP: reply to UDP commands at the sender's address. Turn off for senders that cannot take replies.
  6. Key: every command must carry it. Copy copies it.
  7. New key makes a new random key; the old one stops working at once (update your senders).
  8. Allowed senders: blank = anyone; or a list of addresses and ranges, such as 192.0.2.10, 10.1.0.0/16.
  9. Save and Companion module (download; see Bitfocus Companion). Below: commands received and refused.
  10. Commands: the command set, written out with your key, ready to copy.
  11. Try a command: run any command against any embedder from here, with an optional duration, and see Galah's answer.
  12. Last commands received: when, from where (UDP or TCP), the command (key hidden) and the answer.

The status badge says Listening · UDP 9300 · TCP 9300 · 0 clients when it is running, with the number of TCP clients connected.

Command format#

GALAH <key> <command> [<embedder>] [<duration>]
CommandDoes
ENABLE <e> / DISABLE <e>Switch the embedder on / off.
SRT_ON <e> / SRT_OFF <e>Start / stop its SRT output.
SOB_ON <e> [duration] / SOB_OFF <e>Start of broadcast on (for the duration given, or the embedder's setting) / off.
EOB_ON <e> [duration] / EOB_OFF <e>End of broadcast on / cancel.
REC_START <e> / REC_STOP <e>Start / stop recording.
STATUS [<e>]Status of one embedder, or all.
LISTList the embedders with their numbers, IDs, names and output names.
PINGAnswers PONG; use it to check the connection.

Durations#

For SOB_ON and EOB_ON a duration after the embedder overrides the embedder's setting for that run:

WrittenMeans
120 or 120s120 seconds
2m, 1.5m, 1m30s2 minutes, 90 seconds, 90 seconds
01:30, 1:00:0090 seconds, one hour
DURATION=01:30The same, anywhere in the line: SOB_ON "Studio 2" DURATION=01:30
0Start of broadcast: until SOB_OFF.
(none)The embedder's own Show for setting.

An unquoted name ending in a number, such as SOB_ON Studio 2, is matched as the whole name first, so it does not become embedder Studio with 2 seconds. Quote names to be sure.

Replies#

Galah answers on TCP, and on UDP to the sender (unless Answer UDP is off). A UDP datagram without the right key, from a sender that is not allowed, or that cannot be read gets no answer at all, so the port cannot be used to bounce traffic at someone else:

OK SRT_ON 1 "Presenter cam"
STATUS 1 e1 "Presenter cam" ENABLED=1 SRT=1 EOB=0 EOB_REMAINING=0 SOB=0 SOB_REMAINING=0 REC=0 INPUT=LIVE ONAIR=1 CONNECTIONS=2
END
PONG
ERR KEY
STATUS fieldMeaning
ENABLED, SRT, REC1 = on.
SOB, EOB and …_REMAININGWhether a start / end of broadcast is running, and its seconds left.
INPUTLIVE, BACKUP, LOST or OFF.
ONAIR1 when the output has at least one connection (NDI® / OMT or SRT receiver) — the same as a red tally bar.
CONNECTIONSNumber of connections to the output.
ErrorCause
ERR KEYWrong key. A sender that gives five wrong keys within a minute is ignored for a minute.
ERR SYNTAXThe line does not start GALAH <key> <command>.
ERR UNKNOWN_COMMANDNot one of the commands above.
ERR NO_EMBEDDER / ERR UNKNOWN_EMBEDDERNo embedder given, or none matches.
ERR DURATIONThe duration could not be read.
ERR NOT_ALLOWEDThe sender is not in Allowed senders.
ERR BUSYToo many TCP clients (32) are connected.

Trying it out#

Use Try a command in the card, or send a string from any computer:

Try a command running STATUS; the answer appears underneath, and the command list shows recent commands from the network.
Try a command running STATUS; the answer appears underneath, and the command list shows recent commands from the network.
# macOS / Linux, TCP
printf 'GALAH K7QX2M9PLR4T STATUS\r\n' | nc studio2-embed 9300

# UDP
printf 'GALAH K7QX2M9PLR4T SOB_ON 1 120\r\n' | nc -u -w1 studio2-embed 9300

Axia Pathfinder Pro#

In Pathfinder Pro, add a UDP or TCP device for the Galah computer on port 9300, and use send string actions in your logic flows or buttons, for example:

Pathfinder can also start and stop recordings through a GPIO pin instead; see Recording → GPIO.

Treat the key like a password. Anyone who has it and can reach the port can switch your embedders. Use Allowed senders and Listen on to limit who can connect.