> For the complete documentation index, see [llms.txt](https://help.security.gallagher.com/smb/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/smb/site-configuration/assign-a-controller-to-a-site.md).

# Assign a controller to a site

Once the site has been created, the [default configuration](/smb/site-configuration/default-configuration-overview.md) will display. The default configuration supports the pre-wired mains power failure and battery low inputs.

{% hint style="info" %}
If configuring the site remotely before installation, the controller assignment can be completed last, prior to site activation.
{% endhint %}

To associate a controller with a site, perform the following procedure:

1. Navigate to the customer's site.
2. Click the **Scan controller QR code** button and scan the QR code printed on the controller.

   If using a laptop, take a photo of the QR code using your phone and present it to the laptop.\
   If you are unable to scan the controller's QR code, you can enter the controller's ID in the **Controller ID** field. The controller's ID is printed on the controller, below the QR code.
3. Click the **ASSIGN CONTROLLER** button.

   The controller will come online and connect to the Gallagher cloud. An IP address is automatically assigned to the controller via DHCP. There is no MAC address or IP addressing required. The controller will download the latest firmware and update its default configuration. This takes approximately five ( 5 ) minutes.

   **Notes:**

   * If the controller does not come online, check the site has an internet connection.
   * If the site has a firewall preventing the controller from connecting to the internet, the following ports on the controller need to be reachable:

   | Port | Protocol | Details                 |
   | ---- | -------- | ----------------------- |
   | 67   | UDP      | DHCP to internal router |
   | 53   | UDP      | DNS to internal router  |
   | 123  | UDP      | NTP to time.google.com  |
   | 443  | TCP      | SMB Cloud HTTPS         |

   * If the message 'Cannot assign controller' displays, the controller has already been assigned to a site.
4. Select the Controller.

   The ‘Controller’ lightbox displays.

   **Notes:**

   * If the site is using tamper detection, the controller’s optical tampers can be enabled here.
   * The controller’s firmware version and application version are shown here.
   * The Controller's 'EOL Resistors' setting is only applied to the '8In Board 1' by default; not the '8In4Out Board 1'. This is because the 8In4Out Board's two power-monitored inputs (Battery Low and Mains Failure) require 4k7 Ohm Rs in order to function, and therefore are set this way in the 8In4Out Board's default configuration.
   * The controller’s **Event History** shows events generated by the controller, and cloud events that are related to the controller. Use the event history to help diagnose issues with the site.

     It also shows the HBUS device and reader serial numbers when they are detected by the controller.

   <figure><img src="/files/OHKjel3pfPY6ExfT2fMD" alt=""><figcaption></figcaption></figure>

> Refer to Troubleshooting > [Gallagher SMB Controller](https://help.security.gallagher.com/smb-installer-portal/~/revisions/NjGZAugfZxTbX4UTZX9d/troubleshooting/gallagher-smb-controller) for more information about the controller.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.security.gallagher.com/smb/site-configuration/assign-a-controller-to-a-site.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
