> For the complete documentation index, see [llms.txt](https://help.security.gallagher.com/knowledge-hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.security.gallagher.com/knowledge-hub/configuration-client/integrated-systems/aperio-integration/connecting-the-communication-hubs-to-a-gallagher-controller.md).

# Connecting the communication hubs to a Gallagher Controller

### The RS-485 bus

The RS-485 bus is made up of a pair of twisted-pair cable with characteristic impedance between 90 Ohm and 120 Ohm. The maximum bus length is 1000m.

If there is more than one communication hub to connect they should be connected in a daisy chain (not a star) on the Aperio RS-485 bus so that all RS485 A connectors are connected together and all RS485 B connectors are connected together. Both ends of the Aperio RS-485 bus must be terminated.

<details>

<summary>AH30 Hubs</summary>

Aperio AH30 Hubs connect directly into the RS-485 bus. The RS485 bus needs to be configured for Aperio from the Controller's Setup tab in Command Centre. Note that other devices such as HBUS units will not be able to be used on this Aperio RS485 bus line. Aperio AH30 Hubs do not connect into I/O Expansion Boards.

#### DIP switch settings for AH30 Hubs

The communication hub DIP switches 1-4 can be used to address the communication hub, or by using the Aperio Programming Application Protocol (PAP). It is advised to use the Aperio PAP to address the communication hubs rather than the dip switches, as this is a more secure method.

A communication hub at the end of the bus must have switch 8 of the DIP switch in the position ON. All other communication hubs must have switch 8 of the DIP switch in position OFF.

Pull up and pull down-resistors should be enabled once per bus. However, Gallagher Controllers already have hard wired pull up and pull down resistors fitted. This means all of the communication hubs should have switches 6 and 7 set to the OFF position.

#### AH30 Gen5 Hubs

![](https://3000903572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfCvaxj3suxNBzdwQndVT%2Fuploads%2Fgit-blob-ef7e3c6e2821d5613c4286207165564a71a395fd%2Faperiowiringc6000_1_gen5.png?alt=media)

![](https://3000903572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfCvaxj3suxNBzdwQndVT%2Fuploads%2Fgit-blob-253ad358c121324c3b49bec2a863edf8d9a34ae3%2Faperiowiringc6000_2_gen5.png?alt=media)

#### AH30 Standard Hubs

![](https://3000903572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfCvaxj3suxNBzdwQndVT%2Fuploads%2Fgit-blob-db484509e579acba63a32a9f8ab4f45bf57b8825%2Faperiowiringc6000_1.png?alt=media)

![](https://3000903572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfCvaxj3suxNBzdwQndVT%2Fuploads%2Fgit-blob-895c1a974f5cefdb95fb8b01e7d760fd9ddced54%2Faperiowiringc6000_2.png?alt=media)

The purpose of each DIP switch is summarized in the table below:

**Note:** Settings indicated in **Bold** text are the Gallagher settings.

#### AH30 Gen5 Hubs

<table><thead><tr><th width="108">DIP Switch</th><th width="94">Label</th><th>Description</th></tr></thead><tbody><tr><td>1-5</td><td>A0-A4</td><td><p>RS-485 addressing BIT 0-BIT 4.</p><ul><li>ON = Address bit set.</li><li><strong>OFF</strong> = Address bit NOT set.</li></ul></td></tr><tr><td>6 - 7</td><td>Term</td><td><p>Controls use of termination resistor between RS485 A and RS485 B.</p><p>For termination to be enabled, both switches must be set to ON.</p><ul><li>ON = 120 Ohm termination resistor connected/enabled.</li><li><strong>OFF</strong> = 120 Ohm termination resistor disconnected/disabled.</li></ul></td></tr><tr><td>8</td><td>Int/Ext</td><td><p>Controls use of external/internal antenna if required.</p><ul><li><strong>ON</strong> = Selects use of Internal antenna.</li><li>OFF = Selects use of External antenna.</li></ul></td></tr></tbody></table>

#### AH30 Standard Hubs

<table><thead><tr><th width="108">DIP Switch</th><th width="94">Label</th><th>Description</th></tr></thead><tbody><tr><td>1-5</td><td>A0-A4</td><td><p>RS-485 addressing BIT 0-BIT 4.</p><ul><li>ON = Address bit set.</li><li><strong>OFF</strong> = Address bit NOT set.</li></ul></td></tr><tr><td>6</td><td>Down</td><td><p>RS485 pull down resistor (620 Ohm); set at the Controller.</p><ul><li>ON = 620 Ohm pull down connected.</li><li><strong>OFF</strong> = 620 Ohm pull down disconnected.</li></ul></td></tr><tr><td>7</td><td>Up</td><td><p>RS485 pull down resistor (620 Ohm); set at the Controller.</p><ul><li>ON = 620 Ohm pull down connected.</li><li><strong>OFF</strong> = 620 Ohm pull down disconnected.</li></ul></td></tr><tr><td>8</td><td>Term</td><td><p>Controls use of termination resistor between RS485 A and RS485 B.</p><ul><li>ON = 120 Ohm termination resistor connected.</li><li><strong>OFF</strong> = 120 Ohm termination resistor disconnected.</li></ul></td></tr><tr><td>9</td><td></td><td>Not used.</td></tr><tr><td>10</td><td>Int/Ext</td><td><p>Controls use of external/internal antenna if required.</p><ul><li><strong>ON</strong> = Internal antenna.</li><li>OFF = External antenna.</li></ul></td></tr></tbody></table>

![Example 1: Hub with DIP switches OFF for not an end-of-line hub with External antenna.](https://3000903572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfCvaxj3suxNBzdwQndVT%2Fuploads%2Fgit-blob-4421dc6bfc855fddf78f7415cd54d276a759448e%2Fds8%2610_off.png?alt=media) ![Example 2: Hub with DIP switches 6, 7 and 8 ON for an end-of-line hub with Internal antenna.](https://3000903572-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfCvaxj3suxNBzdwQndVT%2Fuploads%2Fgit-blob-58b7fdfcd4a1d41936e89058da04e27d3782ecf2%2Fds8%2610_on.png?alt=media)

</details>

<details>

<summary>AH20 Hubs</summary>

The communications protocol used on a Wiegand interface is known as the Wiegand protocol. The Aperio AH20 1:1 Wiegand Hubs connect into the following Gallagher Devices:

<table><thead><tr><th width="108">Part Number</th><th width="193">Description</th><th>Wiegand Devices</th></tr></thead><tbody><tr><td>C300181</td><td>8R Module</td><td>4 x AH20 Wiegand Hubs</td></tr><tr><td>C300141</td><td>4R Module</td><td>2 x AH20 Wiegand Hubs</td></tr><tr><td>C300665</td><td>HBUS Wiegand Door Module</td><td>2 x AH20 Wiegand Hubs</td></tr></tbody></table>

When using HBUS Wiegand door or 8R/4R module, the GREEN hub connector should be connected to OUT2.

Gallagher recommends that the Wiegand wiring between the Gallagher Controller and the Aperio AH20 Hub is installed to national wiring regulations.

#### DIP switch settings for AH20 Hubs

The purpose of each DIP switch is summarized in the table below:

**Note:** Settings indicated in **Bold** text are the Gallagher settings.

#### AH20 Gen5 Wiegand Hubs

<table><thead><tr><th width="103">DIP Switch</th><th width="81">Label</th><th>Description</th></tr></thead><tbody><tr><td>1</td><td>A0</td><td><p>Controls use of Red LED signal for access decision.</p><ul><li>ON = Red LED is used.</li><li><strong>OFF</strong> = Red LED is ignored.</li></ul></td></tr><tr><td>2</td><td>A1</td><td>Set to OFF by default. Reserved for future use.</td></tr><tr><td>3</td><td>A2</td><td><p>Controls addition of parity bits if required.</p><ul><li>ON = Addition of parity bits is enabled.</li><li><strong>OFF</strong> = Addition of parity bits is disabled.</li></ul><p>Credentials are transmitted as received.</p></td></tr><tr><td>4</td><td>A3</td><td><p>Controls byte order of transmitted credentials.</p><ul><li>ON = The byte order is reversed on the Wiegand interface compared to what is received from the Aperio lock.</li><li><strong>OFF</strong> = The byte order is left as is.</li></ul></td></tr><tr><td>5</td><td>A4</td><td><p>Used in "Pairing Mode".</p><ul><li>ON = Starts in pairing mode.</li><li><strong>OFF</strong> = Normal use.</li></ul><p><strong>Note:</strong> If the DIP switch is moved from ON to OFF within 10 seconds from boot up and the Hub LED is lit, all paired devices will be unpaired.</p></td></tr><tr><td>6-7</td><td></td><td>Not applicable (only used for AH30).</td></tr><tr><td>8</td><td>Int/Ext</td><td><p>Controls use of external/internal antenna.</p><ul><li><strong>ON</strong> = Internal antenna.</li><li>OFF = External antenna.</li></ul></td></tr></tbody></table>

#### AH20 Wiegand Hubs

<table><thead><tr><th width="103">DIP Switch</th><th width="81">Label</th><th>Description</th></tr></thead><tbody><tr><td>1</td><td>A0</td><td><p>Controls use of Red LED signal for access decision.</p><ul><li>ON = Red LED is used.</li><li><strong>OFF</strong> = Red LED is ignored.</li></ul></td></tr><tr><td>2</td><td>A1</td><td>OFF by default. Reserved for future use.</td></tr><tr><td>3</td><td>A2</td><td><p>Controls addition of parity bits if required.</p><ul><li>ON = Addition of parity bits is enabled.</li><li><strong>OFF</strong> = Addition of parity bits is disabled.</li></ul><p>Credentials are transmitted as received.</p></td></tr><tr><td>4</td><td>A3</td><td><p>Controls byte order of transmitted credentials.</p><ul><li>ON = The byte order is reversed on the Wiegand interface compared to what is received from the Aperio lock.</li><li><strong>OFF</strong> = The byte order is left as is.</li></ul></td></tr><tr><td>5</td><td>A4</td><td><p>Used in "Pairing Mode".</p><ul><li>ON = Starts in pairing mode.</li><li><strong>OFF</strong> = Normal use.</li></ul></td></tr><tr><td>6-8</td><td>Down</td><td>Not applicable (only used for AH30).</td></tr><tr><td>9</td><td></td><td>Not used.</td></tr><tr><td>10</td><td>Int/Ext</td><td><p>Controls use of external/internal antenna.</p><ul><li><strong>ON</strong> = Internal antenna.</li><li>OFF = External antenna.</li></ul></td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.security.gallagher.com/knowledge-hub/configuration-client/integrated-systems/aperio-integration/connecting-the-communication-hubs-to-a-gallagher-controller.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
