> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/qtech/datscan-and-data-loggers/datahost/configure.md).

# Set up DATAHost for Q48 loggers

Set the database connection, the listening port and a site for each Q48 logger in the DATAHost TBD.

Configuration is all done through the DATRAN.tbd file. Running TBBrowse will allow basic TBD editing (there is currently minimal dialog box help).

{% hint style="info" %}
**Applies to:** DATAHost V1.3 with Q48 Cellular Remote Data Loggers.
{% endhint %}

{% hint style="warning" %}
**Save the changes by pressing Ctrl + S.**
{% endhint %}

## Open the TBD

Run TBBrowse. It will allow basic TBD editing, with minimal dialog box help. Press F2 to rename a node.

## 1. Connect to the database

1. **The computer node will need to be renamed** (F2 in browser) otherwise ADO won't pick up the database configuration.
2. **The Database Server needs to be renamed.** Once this has been done ADO needs to be restarted from Control Panel. If successful you should see the ADO status being Open/Connected.
3. If you have issues with Windows authentication, change the Value of **Authentication** to "sql server authentication", then add a node **Login** and set the value to the SQL username configured, add another node **Password** and set the value to the SQL password. This should resolve the windows authentication issues with domain accounts.

## 2. Set the listening port

The TCP Port is probably fine using the default. But you may have to allow it on the Windows Firewall if a connection cannot be established (this may not be an issue as the installer will have already added QComms to the exception list).

## 3. Add a site for each logger

The DATRAN.tbd includes a draft configuration file for a single cellular Remote Datalogger.

1. **Address** is the RTU address.
2. The Comms Object **Site Short Name** (and Site Address) is used for creating new sites in the database. This should only be a few (less than 5) characters as the I/O point number gets appended before the data is logged. If you have several sites, you need different names for each site.

The RTU Clock and RTU Firmware Ver values are set upon status reply reception. See [Sites, nodes and the DatScan database](https://help.qtech.co.nz/qtech/datscan-and-data-loggers/datahost/reference.md).

## 4. Open the port

1. Check that the router on the base station is correctly configured to open the port.
2. The installer will have already added QComms to the Windows Firewall exception list. See [No data arrives from the loggers](https://help.qtech.co.nz/qtech/datscan-and-data-loggers/datahost/troubleshooting/no-data.md).
3. As a test of the TCP connection/Port open etc, from a remote computer's command prompt enter: `telnet <ip addr of DATAHost PC> 14124`. The diagnostics viewer will report Socket Connection from 192.168.x.x.
4. You can use ping.eu to see if the port Datahost is listening on is open.

## 5. Set up the Diagnostics viewer

1. Make the Diagnostics viewer run as administrator.
2. Running TBDiagViewer (TBDiagService is required for this) will provide real time diagnostics once you right click and change the display categories to show everything.
3. In the diag settings make sure the machine is 127.0.0.1 and the diag listening port is 14113.
4. Select all the display categories to get a full log of events.

You can also look in the diag logs subfolder in %PROGRAMDATA%\DATAHOST.

## 6. Configure the loggers

Set each logger's DATAHost address, port and daily connection time. See [Configure with Workbench](https://help.qtech.co.nz/qtech/datscan-and-data-loggers/q48-cellular-remote-data-logger/configure-with-workbench.md).

## 7. Restart and check

1. Save the changes by pressing Ctrl + S.
2. Start the services in order. See [Start the services](https://help.qtech.co.nz/qtech/datscan-and-data-loggers/datahost/install.md).
3. Check for "red crosses", which might need channels reapplying or the connection to SQL checking.

## Next

[Test the installation](https://help.qtech.co.nz/qtech/datscan-and-data-loggers/datahost/test.md).
