Paradigm Control

Controlling the ETC Paradigm

The ETC Paradigm architectural control processor (LX-PARADIGM-ACP, 10.0.22.50) runs the house/architectural lighting — presets, macros, station lockout, relays. This page covers the ways to reach it, which of them work on our firmware, and the PSAP serial path with its object map.

   
Model Paradigm ACP in an ERn enclosure
Firmware 4.0.0.9.0.1027 (the saved project config is one build behind at …1026)
Web UI http://10.0.22.50/ — open as Administrator with no login
SSH Dropbear 2017.75 on port 22 (password + publickey). The built-in User/Administrator role passcodes don’t work here — see below.
Config Lighting/2018 Handover/Configuration Files/Sherwood Park Alliance Church, Rev 6.pcf, commissioned 2018-03-09 by FS.CA (Nelson Anselmo, job 3010083404)

The three control paths

Path Transport Status on our v4 processor
Web UI (Wt app) HTTP :80 Works. See below.
v3 HTTP API (/get/*, /do/*) HTTP :80 Gone — returns 404. Only exists on firmware v3.
PSAP (Paradigm Serial Access Protocol) RS-232 (9600 8N1), through the AMX EXB-COM2 in M21 Works. The only path that reaches macros/overrides. See below.

Web UI (the working path)

The web UI grants Administrator access with no passcode to anyone on the Lighting VLAN (the front-panel passcodes — User 2222, Admin 3333 — aren’t enforced on the web). This is worth tightening: the Setup page can set the default access level to Login.

It’s a Wt (C++ toolkit) single-page app. Two ways in:

  • &js=no fallback renders plain server-side HTML — curl-friendly. Bootstrap by fetching / for a session token (wtd=…), follow the redirect to ?_=/system, then navigate with the route parameter: ?_=/control, ?_=/network, ?_=/log, ?_=/setup&wtd=<token>&js=no.
  • Actions (activate a preset, etc.) are POSTs. Each button carries a per-session signal name (signal=sXXXX) that’s a server-side render-time counter — it changes every session, so it can’t be hard-coded. Fetch the page, read the signal off the target button’s own markup, and POST it once within that session. The field name is literally signal=sXXXX with an empty value.

Menu pages: System (status), Control (presets + sequences, with Activate/Deactivate/Record), Timed Events, Network (device roster), Setup (date/time + passcodes only), Log, Help. Serial/PSAP settings are not exposed anywhere in the web UI.

The Control page reads live preset state and can activate/deactivate/record. It does not list macros or overrides, so station lockout can’t be driven from here (see PSAP). The Log page records every change with parameters, e.g. Activate Preset (HTP) Works On/ Off [space=4, priority=100, fade=0.0, persist], and tags web-driven changes from the web UI — our own requests show up there.

v3 HTTP API (not on our firmware)

Older Paradigm firmware exposed an HTTP control API — GET /get/control_status, GET /get/<info>, GET /do/<action>?params. Those endpoints 404 on our processor: ETC replaced that API with the Wt app above at v4, and we’re on v4. There is no HTTP control path on our firmware — use PSAP.

SSH: tried, doesn’t take our passcodes

Dropbear 2017.75 answers on port 22 and offers password auth, so it’s tempting to reuse the two built-in roles. We tried — none of it works. The User and Administrator roles (passcodes 2222 / 3333, confirmed by the ACP manual: “the Admin passcode is ‘3333’ and the User passcode is ‘2222’”) are front-panel and web-UI access codes — four-digit login PINs for those roles — not OS-level shell accounts. Every combination was refused with Permission denied (publickey,password):

  • Usernames User, Administrator (and lowercase, Admin, admin, root, etc, paradigm)
  • Paired with passcodes 2222, 3333, and the project note’s default 1234

The Dropbear shell wants a real Unix user + password we don’t have (likely an ETC service account, not documented in our handover). So the role passcodes get you into the front panel and the web UI’s Login mode, but not the shell. This isn’t a control gap — PSAP already reaches everything we need — but it closes the “have we tried the logins over SSH?” question: yes, and they’re not SSH creds.

PSAP (the string protocol)

The project has ETC’s PSAP v4.0 script bound to the processor’s first Serial Input. PSAP is a plain-text command protocol — pst act <preset>[, <space>][, <fade>], macro on <name>, ovr enab <name>, plus read-only … get queries — over RS-232 or UDP (selectable per input). It’s the only path that can drive macros and overrides, including the Station Lock out macro that raises lockout level 50 on the five wall stations (macro on/off/get "Station Lock out").

Transport: RS-232, 9600 8N1, CR-terminated, on the processor’s first Serial Input. UDP is disabled in the config, so serial is the only serial-family path. The port is wired to port 1 of the AMX EXB-COM2 in M21 (M21-LX-COM2, 192.168.30.47, device 5003 on the NX controller — see the Control network map); the wiring is under Serial pinout. Port 1 stays in its power-up mode, 9600,N,8,1 with RS-485 disabled, which is what the Paradigm needs. A string sent to 5003:1 goes to the Paradigm, and its replies come back as strings from that port.

Sending PSAP

Automation/server/scripts/amx-nx-console.py sends lines out the COM2’s port and prints each reply:

amx-nx-console.py serial 5003:1:0 'grp get Stairs' 'pst geth Works On/ Off, Works'
amx-nx-console.py serial 5003:1:0 'pst act Preset 4, House, 5'    # a set is silent: no reply
amx-nx-console.py cmd 'show device'                               # any console command

It runs the telnet session on docker-server, reads the controller’s login from ~/.config/spac/nx-credentials (two lines: user, password), and deals with both traps below.

The same thing by hand, from the NX controller’s telnet console (192.168.30.150; end each line with a carriage return):

  • send string 5003:1:0,"'grp get Stairs',13" sends one command. The reply is not shown.
  • pass 5003:1:0 opens the port: each line typed goes to the Paradigm and its replies print. Leave with ++, Esc, Esc.

Two traps:

  • While any session has the port in pass mode, the controller silently drops send string to it from every other session. Type into the pass session instead.
  • Leaving pass mode puts ++ and an escape character on the serial line. Send a lone carriage return afterwards (send string 5003:1:0,"13"); otherwise those three bytes are glued to the front of the next command and the Paradigm rejects it.

The COM2 counts what crosses each port. On its engineering console (telnet to the COM2, superuser 2, remote debug 2 2000, then telnet to port 2000), comstats lists bytes written and received and the framing, parity and overrun errors per port, and clearcomstats zeroes them.

paradigm-psap.py

Automation/server/scripts/paradigm-psap.py builds PSAP commands from object names and reads the state back after each one. It has no route to the processor: it opens a serial adapter on docker-server (/dev/ttyUSB0), and the Paradigm’s port is on the COM2 instead. It also sends presets only in the LTP form — see LTP and HTP. Its commands:

paradigm-psap.py status                       # read every object's state (read-only)
paradigm-psap.py group "Auditorium" 50%       # set a zone intensity
paradigm-psap.py preset "House Out" on        # activate a preset (space supplied automatically)
paradigm-psap.py relay led on|off             # switch the LED / ML relay banks
paradigm-psap.py macro "Station Lock out" on  # raise station lockout
paradigm-psap.py raw "grp get Stairs"         # send a literal PSAP string
paradigm-psap.py                              # interactive menu of presets + macros (default)
paradigm-psap.py repl                         # command-style prompt (also reachable via `c` in the menu)

The tool knows each object’s type, space and verb, so you refer to things by name and it builds the right command — presets get their , <space> suffix, groups take 0-255/N%, macros take on/off. Every mutating command reads the state back and prints a ✓/✗ confirmation (e.g. Auditorium -> 128 ✓); a mismatch is loud. Run with no subcommand for an interactive menu that lists every preset (by space) and macro with live state and toggles them by number. The repl mode drives objects by name the same way — Preset 2 on, Auditorium 50%, HLX Row 3 128, a bare name to query — and still accepts a literal PSAP string. The confirmation is processor state, not proof of a physical change.

Grammar

Message framing: commands are terminated by the End of Message Char, configured here as a carriage return (\r). Log Level is set to Errors — invalid commands draw an error reply, which makes a bare invalid string (e.g. zzz\r) the safe first test that a connection is live. Objects are addressed by name (there’s no “list all” command); levels are 0-255 or N%; optional trailing args are [, spacename][, fadetime].

Fade time is in seconds and the ramp is linear: grp int:255 Stairs, Global, 10 takes 10 s, and pst act Preset 1, House, 8 and pst dact Preset 1, House, 8 take 8 s each. Channel, group, preset and sequence commands take it as the third argument, space commands as the second. Leave the space blank to give only a fade (grp int:128 Stairs,, 5). Without a fade time a preset uses its own recorded fade.

Family Commands
Channel chan int:LVL name · ras: · low: · tog name · min:LVL · max:LVL · get name
Group grp int:LVL name · ras: · low: · tog name · get name
Preset (LTP) pst act[:pri] name · dact name · tog[:pri] name · get name
Preset (HTP) pst acth:pri name · dacth name · togh:pri name · geth name
Sequence seq start[:pri] name · stop · pause · resume · rate:LVL · get name
Space spc off name · ras:LVL · low:LVL · master:LVL name
Wall wall open name · close · tog · get name
Macro macro on name · off · tog · cancel · get name
Override ovr enab name · disab name · tog name · get name
Contact con set:N name · slr:N name

Two preset commands change the saved configuration rather than the room, so they are left out of the table: pst rec name re-records a preset from the live levels, and pst time:<seconds> name rewrites its stored fade.

LTP and HTP: two activations of one preset

A preset has two independent states. pst get reads the LTP one and pst geth the HTP one, and both answer in the same pst act … / pst dact … form.

  • Each form is released only by its own deactivate. pst dact does nothing to a preset that is active in the HTP form; pst dacth releases it.
  • The stage works are switched in the HTP form by the wall stations and the web UI (the web UI logs Activate Preset (HTP) … priority=100 … persist), so works that are on read act under geth and dact under get. A house look set from a station reads act under get.
  • pst acth only holds with a priority. pst acth:100 name, space activates and stays active; a bare pst acth leaves geth reading dact.

So drive the stage works the way the stations do — see the object map.

Reply grammar (a read-only oracle). A valid … get echoes state in command form (grp int:255 Stairs, Global, pst dact Preset 1, House, macro off Station Lock out, ovr disab Relay Power Overide); an invalid command returns error invalid <type> "<name>". So any bogus string is a safe liveness probe, and get is a safe way to poll state without changing it. Sets are silent (empty reply) and take effect essentially instantly — the Work Light group snapped 0↔255 with no fade, and the Works On/ Off preset turned on within a query round-trip and dropped ~0.25 s slower than it made (a relay release lag). Confirm a set with a follow-up get, never by waiting for an ack. grp get follows the live level, so it reads intermediate values during a fade. macro get answers macro running on <name> while a macro’s steps are still running. A preset whose levels other presets have since changed answers pst alt … instead of pst act ….

Firmware gotcha — every preset command needs its space. This processor runs v4.0.0, which has a documented ETC bug that requires the space suffix on preset strings: pst act Preset 1 errors invalid preset, but pst act Preset 1, House works. (Fixed in v4.1.0; we’re not there.) Groups, macros and overrides don’t need it. The tool always appends the space from the map below.

Validated object map

Object names are not the touchscreen labels — they come from the config’s own tables (groups.elp, macros.elp, overrides.elp, spaces.elp, scenes/*.elp, stored as Qt UTF-16 QStrings) and were then confirmed over the wire. There is no “list all” command, so this table is the inventory.

Presets — pst act <name>, <space> / pst dact <name>, <space>:

Space Presets
House Preset 1–Preset 9, House Out
Universe 512 Stage 1–Stage 8
Works Works On/ Off
Performance Circuits LED Relays On, LED Relays Off, ML Relays On, ML Relays Off, All Relays & Dimmers Off

House looks. The processor only knows these as Preset N; the names are ours. Levels are what grp get reports (0–255) once the look has settled, and Organ Pipes is 0 in every one. The House presets are exclusive: activating one deactivates the one that was active.

Preset Name HLX Row1 / Row 2 / Row 3 / Row 4 Stairs Wing Pots Wing Doors
Preset 1 House 100 255 / 255 / 255 / 255 255 255 255
Preset 2 House 50 126 / 126 / 126 / 126 151 102 62
Preset 3 Dim Wings 255 / 255 / 255 / 255 255 178 177
Preset 4 Tech Booth 0 / 0 / 255 / 0 0 0 0
Preset 5 House 100 — the same levels as Preset 1 255 / 255 / 255 / 255 255 255 255
Preset 6 Front Full 255 / 255 / 255 / 0 0 152 38
Preset 7 Dim House 166 / 166 / 128 / 0 0 66 42
Preset 8 Dimmer House 102 / 102 / 51 / 0 0 87 38
Preset 9 All Off 0 / 0 / 0 / 0 0 0 0
House Out All Off — the same as Preset 9 0 / 0 / 0 / 0 0 0 0

The Stage presets are not in use. They accept commands and report active, but with Stage 1 on nothing lights on stage, and none of the eight moves a group level. pst geth answers nothing for Stage 6 and Stage 7 while they are active in the HTP form.

Stage works — the Works On/ Off preset, driven in the HTP form the wall stations use:

  Command
On pst acth:100 Works On/ Off, Works
Off pst dacth Works On/ Off, Works
State pst geth Works On/ Off, Works

Relay banks — the Performance Circuits presets switch the relay panels through streaming-ACN universe 21, the 21.xxx addresses of the relay map. Each takes its addresses straight to full or to 0, and the fixtures power up and drop with them:

Preset Universe 21
LED Relays On 69 addresses to full: 1, 3, 4, 6–18, 20–22, 24–26, 28–30, 32, 33, 35, 36, 38, 39, 41–48, 101, 103, 105, 107, 109, 111, 112, 114, 115, 118, 121–124, 126, 127, 129, 130, 132, 133, 135, 136, 139, 140, 143–148
LED Relays Off the same 69 to 0
ML Relays On 38 other addresses to full: 2, 5, 19, 23, 27, 31, 34, 37, 40, 102, 104, 106, 108, 110, 113, 116, 119, 120, 125, 128, 131, 134, 137, 138, 141, 142, 201–212
ML Relays Off the same 38 to 0, about 2.5 s after the command
All Relays & Dimmers Off all 107 to 0, about 2 s after the command

Both … On presets can be active together. Each On/Off pair is exclusive, and All Relays & Dimmers Off deactivates the other four; it leaves the House looks alone. Neither bank includes 21.117 (stage works) or 21.301–21.312 (dimmer plugs). Of the 107 addresses, 61 are in the relay map and the other 46 are not listed there.

Watching the output. The processor sends its DMX as streaming ACN (E1.31) on the Lighting VLAN: universes 1, 2, 21 and 22, source name Processor 1, priority 100, to 239.255.0.<universe>:5568. docker-server’s lighting interface (10.0.22.200) can join those groups and read the levels, which shows a relay or level command taking effect without anyone in the room. Automation/server/scripts/sacn-listen.py does it: scan lists the universes, show 21 22 prints the lit addresses, and watch 60 21 22 prints every change for a minute. It shows what the processor sends, not that a relay closed. Universe 21 is the relay panels. Universe 22 is the house lights: MASTER drives addresses 1–48, 51–58 and 61–71, and the Tech Booth look is address 16 alone.

Groups — grp int:<0-255> <name> (all in space Global): MASTER, Auditorium, Stairs, Wing Pots, Wing Doors, HLX Row1, HLX Row 2, HLX Row 3, HLX Row 4, HLX All, Organ Pipes, Work Light. Groups are the direct way to drive a patched zone. Auditorium, HLX All and MASTER report their brightest member, and Work Light reads 255 at any level above 0. MASTER is the whole house: all 64 house channels — the stairs, wing pots, wing doors, the four HLX rows, the organ pipes and the rest of the auditorium — and nothing else. It holds no relays and not the work light, so grp int:0 MASTER darkens the room and leaves the rig’s power alone.

Caution — not every object is patched to output. The processor accepts and echoes commands to objects that drive nothing physical, so a successful reply is not proof of a room change. Setting the Work Light group echoes levels (grp int:255 Work Light) but changes nothing in the room. The actual stage work lights are the Works On/ Off preset (a relay in space Works), driven with the commands above. The tool’s worklights on|off sends the LTP form (pst act / pst dact), which does not turn off works that a wall station switched on. Verify physical changes by eye, not by the reply.

Macros — macro on|off|get <name>: Station Lock out, Power Lock out, Stage Record Lockout, CC1. Station Lock out raises lockout level 50 on the five wall stations; PSAP itself isn’t a station, so lockout never blocks PSAP. While it is on, every wall-station button is dead and macro get answers macro running on Station Lock out; macro off Station Lock out releases it. The Station locked out override reads disab either way. CC1 is a contact closure thought to be meant for the under-balcony lights, which are not connected to it: the macro has no steps, and switching it on or off changes nothing else.

What the three lockout macros act on, from the config’s macro steps:

Macro Acts on Sets
Station Lock out the five 10-button wall stations: Balc Right (two stations carry that name), Stgae Right, Stage Left, Rear Centre lockout group A to 50; its last steps are a wait and a Macro Off on itself
Power Lock out the 7-inch touchscreen Portable 1 (10.0.22.6) only lockout group B to 50
Stage Record Lockout the same touchscreen only lockout group C to 50

The touchscreen does not answer on the Lighting VLAN, so Power Lock out and Stage Record Lockout have nothing to lock; going by their names, groups B and C are its power and stage-record buttons. Neither touches the wall stations.

Overrides — ovr enab|disab|get <name>: Station locked out, Relay Power Overide.

There are no ETC “Presets” in the classic sense and no walls configured; the station scenes live in the scenes/ tables and are reached as the space-qualified presets above.

Serial pinout

RS-232 on a male DB9, 9600 8N1, wired like a PC’s serial port: pin 2 = Rx, 3 = Tx, 5 = ground, as the ACP manual says (Lighting/2018 Handover/User Manuals/6. House Light Controls/6.2 Paradigm_ACP_ConfigManual_v.4_revA.pdf). A PC or a USB serial adapter therefore needs a null-modem cable to talk to it.

The run to the EXB-COM2 is a female DB9 pigtail landed on port 1’s terminal block:

Pigtail wire DB9 pin Paradigm signal COM2 port 1 terminal
Brown 2 Rx TXD
Red 3 Tx RXD
Yellow 5 ground GND

The pigtail’s other six wires are not connected. Seen from the rear of the COM2, port 1’s block reads +12VDC, RX-, RX+, TX-, TX+, RTS, CTS, TXD, RXD, GND from left to right; only the last three are used.

What we haven’t done

  • Logged into the web UI’s Login mode (a project note mentions a default password 1234, untried there). SSH itself has been tried — see below.
  • Exercised the Contact family (con set:N name) — the likely path behind the LED/ML relay presets — or the Sequence family; neither is needed for normal preset/group/macro control.
  • Given paradigm-psap.py a route through the COM2, or the HTP commands for the stage works.
  • Decoded which of the touchscreen’s controls sit in lockout groups B and C, or how long Station Lock out waits before it turns itself off.
  • Sent All Relays & Dimmers Off with the dimmer plugs (21.301–21.312) up, to see whether it clears them.