# Generic SW-P-08

> Set up communication with a SW-P-08 router, choose which sources, destinations and Levels Buttons exposes, and enable experimental Breakaway Audio or MADI breakaway channels.

The generic SW-P-08 integration covers routers that speak the SW-P-08 protocol directly, without a dedicated module of their own. Because Buttons can't ask this kind of router how many sources, destinations, or Levels it has, you configure all of that yourself. Buttons can also help you go beyond ordinary Level-to-Level routing with an experimental per-channel breakaway feature, for routers that support it.

## Before you begin

- A generic SW-P-08 connection already added.
- The router's IP address, port and matrix number, and its Level layout (video, and any audio channels), from its own configuration or documentation.
- Destination locking is not available on this module: see [Locking is not available](#locking-is-not-available) before assuming a lock control will appear.

A SW-P-08 connection is set up in two steps, both on the connection's **Config** tab: first the communication with the router, then which of its ports Buttons should show. The experimental breakaway features come last, and only if your router supports them.

## Step 1: Set up communication with the router

The top of the **Config** tab holds the module's own settings, which control how Buttons talks to the router:

![The top of the Config tab for an SW-P-08 connection named Ultrix: Device IP and Device Port 8910, Matrix Number 1, 17 levels defined in the router, every switch turned on, and Request name length set to 8 characters](https://bitfocus.io/api/docs-media/file/communication-settings.png?prefix=docs-media)

- **Device IP** and **Device Port**: the router's address. The default port is `8910`.
- **Matrix Number (Default 1) (extended mode)**: the router matrix to control, usually `1`.
- **Number of levels defined in router (extended mode)**: how many Levels the router itself has.
- **My router supports tally dump, and sends tally updates**: turn on if the router can send its full routing state and report changes, so Buttons doesn't have to keep asking.
- **Advanced tally/routing variables**: creates a variable for every destination on every Level.
- **Request supported commands on connection** and **Request names on connection**: ask the router what it supports and what its sources and destinations are called. Not every router supports these: turn one off if the connection has problems.
- **Router has more than 1024 source or destinations or has more than 16 levels**: turn on for larger routers. It switches to the extended command set, which raises the matrix and level limits.
- **Request name length (ignored by some routers)**: how long the source and destination names Buttons asks for are: **4**, **8**, or **12 characters**.

### Ross Ultrix

For a Ross Ultrix, turn on all of these switches. Every feature then works, including source and destination names and live routing updates. A router with one video Level and 16 audio Levels has 17 Levels, which is more than 16, so the extended command set switch is needed anyway.

## Step 2: Choose what Buttons exposes

The **Router Configuration** section below the module's settings decides which of the router's ports Buttons shows in the **Routing** view and in routing panels. You don't have to expose every port the router has.

![The Router Configuration section: the This module supports routing notice, Number of Sources and Number of Destinations both 64, and the start of the Levels table with SW-P Level, Label, Media Role and Channel columns, Level 1 Video and Levels 2 onwards A1, A2 and so on as Audio channels 0, 1 and up, with Presets and + Level buttons](https://bitfocus.io/api/docs-media/file/router-configuration.png?prefix=docs-media)

- **Number of Sources** and **Number of Destinations**: how many of the router's normal inputs and outputs Buttons should show, from 1 to 10,000 (default 16). Don't include breakaway or MADI channels here; those are added on top once you enable them below.
- **Configure Levels to Match Your Device Settings**: one row per independently-routable layer of the signal, for example Video, then Left Audio and Right Audio. SW-P-08 supports up to 256 Levels, so match this list to what your router actually uses. Each row has:
- **SW-P Level**: the Level number on the router.
- **Label**: the name Buttons adds to the port names, for example `A1`.
- **Media Role**: what the Level carries: **Video**, **Audio**, **Data**, or a combination such as **Video + Audio**.
- **Channel**: which channel of that media role the Level is, starting at `0`. Each role and channel pair can only be used once, so give each audio Level its own channel.

  **Presets** fills the list in one go with **1 Video + 2 Ch Audio**, **1 Video + 8 Ch Audio**, or **1 Video + 16 Ch Audio**, replacing what's there. **+ Level** adds a row, and the handle on each row lets you drag it to change the order.

With more than one Level configured, each Level routes independently: see [Route only one part of a bundle](/docs/buttons/v1.10/routing/take-a-route#route-only-one-part-of-a-bundle) for taking a route on a single Level while leaving the others alone.

### Choose a black or silent "None" source

SW-P-08 has no native disconnect command, so if one physical input on your router is wired to black or silence, set **None / black / silent source** in **Router Configuration** to **First input** or **Last input** to match it. Once set, a destination routed to that input shows `---` as its source on a panel's Router Section, the same behavior as the equivalent VideoHub setting. In **Routing → Route**, the destination shows the input's own name instead, or a **None** tag with **Options → Hide Black/Silence** turned on.

## Step 3 (optional): Breakaway Audio and MADI breakaway (experimental)

<callout color="yellow" title="Warning">
  Buttons labels both of these settings **Experimental** in the connection's configuration. Verify a breakaway route on a destination you can afford to get wrong before relying on it operationally.
</callout>

Beyond ordinary Level-to-Level routing, this module can let individual audio channels act as sources that route to *any* Level on a destination, not just the matching audio Level: for routers whose SW-P-08 implementation supports it.

![The bottom of Router Configuration: None / black / silent source set to Last input, Breakaway Audio (Experimental) set to 16 Channels with its explanation, and MADI Breakaway Sources and Destinations (Experimental) both Off](https://bitfocus.io/api/docs-media/file/breakaway-settings.png?prefix=docs-media)

- **Breakaway Audio (Experimental)**: set to **8 Channels** or **16 Channels** to match your router's licensed capability, then add one audio Level per channel (for example Ch1 through Ch8) in **Configure Levels to Match Your Device Settings**, up to that limit. Buttons counts the audio Levels in the order they're listed, so the first audio Level in the list is breakaway channel 1. Audio Levels beyond the limit still exist but only support ordinary same-Level routing.
- **MADI Breakaway Sources (Experimental)** and **MADI Breakaway Destinations (Experimental)**: add groups of individually routable MADI channels after your normal sources and destinations, for routers carrying embedded MADI streams. Choose **MADI (64 Channels)** or **MADI (56 Channels)**, then the number of streams, up to 32. Configure sources and destinations independently; you don't need both.

## Locking is not available

This module doesn't expose destination locking. No lock or unlock controls appear for its destinations in Buttons, and if the router enforces a lock of its own, Buttons doesn't see or reflect it. Protect a destination directly on the router if you need that.

## If you get stuck

| What you see | What to try |
| --- | --- |
| A breakaway or MADI channel routes the wrong physical source or destination. | Check that **Number of Sources** and **Number of Destinations** count only the router's normal ports: breakaway and MADI channels are appended automatically and shouldn't be included in those counts. |
| A route to several destinations partially succeeds. | This module routes each destination separately, so one unresponsive destination doesn't stop the others: check the routing report to see exactly which destinations failed. See [Troubleshoot a blocked or failed route](/docs/buttons/v1.10/routing/troubleshoot-a-route). |

## Where to go next

- [Check what a router integration supports](/docs/buttons/v1.10/connections/router-integrations), for how this compares with other router modules.
- [Take a physical route](/docs/buttons/v1.10/routing/take-a-route).
- [Troubleshoot a blocked or failed route](/docs/buttons/v1.10/routing/troubleshoot-a-route).
