DH Historian Agent
Note: This driver is available for Litmus Edge version 3.11.0 and later.
Review the following information for setting up and configuring the OSI Agent driver V2.3.0
- Verify that the Windows environment runs at least .Net 4.8 or higher
- Install an OSI Server and OSI Agent on a Windows system.
- Make sure the OSI Client dll is on the same system running the OSI Agent.
- Open port 443 and 4777 between Windows and Litmus Edge. Otherwise, the OSI Agent won't work.
- Configure Windows authentication so that the OSI Pi Server can work.
- A machine with at least 16 GB memory.
- Windows Workstation OS version 10 or greater
- Or Windows Server OS version 2012 or Grater
- PiServer 2012 version 3.4.375 or greater Available
- “PI User Login Credentials” OR “Windows user login Credentials” of a user that is permitted to connect to PI System and read data.
There are 2 different options to deploy the Device-Hub-Agent.
- On the PI Server itself
- On a “PI Node” – a separate machine that is connected to PI Server.
- Make sure than Dot Net Framework 4.8 is installed or just install it on the server.
- Unzip the Deployed package into a separate folder.
- Run: Device-Hub-Agent.UI.Exe as Administrator.
- Fill in all the fields of the configuration tabs.
- Start Device-Hub-Agent.Controller.
- Make sure than Dot Net Framework 4.8 is installed or just install it on the machine. (Download URL: https://dotnet.microsoft.com/en-us/download/dotnet-framework/thank-you/net48-web-installer.)
- Open the Add/Remove Programs and Make sure that the “PI AF Client” is installed. Or else, ask the customer to install it for you.
- Click on “Start” -> “PI System” -> “About PI SDK”
- Make sure that there is an entry for the PI Server in the connections list or else, just add one with the parameters that you have.
- Click the “CheckBox” to test the connection.
- Unzip the Deployed package into a separate folder.
- Run: Device-Hub-Agent.UI.exe as Administrator.
- Fill in all the fields of the configuration tabs.
- Start Device-Hub-Agent.Controller.
The Device-Hub-Agent is Tested:
- # Using: PI AFClient 2018 SP2 Patch 2, Ver: 2.10.99.593 PI system Management Tools 2018 SP3 Patch 1, ver: 3.6.3.65
- # Using: PI AFClient 2018 SP3 Patch 4, Ver: 2.10.10.2593 PI system Management Tools 2018 SP3 Patch 1, ver: 3.6.3.65
Install the ZIP file with the OSI Agent and all required files on a Windows system.
Step | Description |
---|---|
1 | Add an OSI Agent Advanced device in Litmus Edge DeviceHub. Network Port, User and Password, Nats Connection Name fields are required. |
2 | Unzip the downloaded file. |
3 | Go to the unzipped folder. From the root folder, open the DH-Historian-Agent folder, then right-click DH-Historian-Agent.UI and select Run as administrator. A Device-Hub Historian Agent application will open. |
Use the DH Historian Agent app to configure the DH-Historian-Agent and DeviceHubAgentController :
- On the first page, press Next. The page for Theme/Skin/Menus configuration will open.
-
- Press Save, then Next. The PI Server/Operation Mode page will open.
-
- Press Load PI Servers.
- Wait for the servers to load, then select the host name of the server you want to connect to. Select between PI user authentication or Windows authentication
- Select Polling on tags intervals or Events-Based
- Once you have made your selections, press Save, then Next.
- The DH-Historian Agent/ WebApi page will open.
- Here is some help regarding the terms used:
- PI User: Open the PI System Management Tool and navigate to Security > PI Users and Groups. Enter the correct username and password.
- Windows: The PI Server needs to be properly configured to use Windows authentication.
-
- In the Host field, enter the IP address of our Litmus Edge Instance. Enter any text in the User and Password and Conn. Name fields and they need to be the same with configuration of OSI Agent Advanced device in Litmus Edge. Sample site settings are as follows:
- Host: Enter the IP address for the Litmus Edge instance.
- Port: Enter 4777.
- User: Enter the username to connect to the server in DeviceHub.
- Password: Enter the password to connect to the server in DeviceHub.
- Check Validate against server Certificate (optional)
- Click ... button and select Certificate file from host Windows machine (Optional, if previous option is checked)
- Keepalive Packet Interval: Every minute the agent and controller will send keepalive messages. When 3 consecutive messages fail, then the connection with LE will be discarded . The keepalive packet interval can be changed from the default value, which is 60 seconds. If put "0 secs" interval, then the agent/controller will not send keep alive messages. And in such a case it is up to the server side (L.E.) to decide if to keep the opened connection or to drop it.
- Click TEST CONNECTION button to validate configuration.
- Press Save, then Next.
- The Logs page will open.
-
- Check Log file folder and enter any name for the log folder, which will be generated automatically in the same directory.
- Press Save, then Next.
- The Agent Service and Agent Controller Service page will open.
-
- Create and start both services to make them running.
- Press EXIT to leave DH-Historian-Agent.UI
-
- Go to Litmus Edge DeviceHub and confirm the device is connected
If you review or edit the settings of the OSI Agent device, refer to the following parameters.
Parameter | Value |
---|---|
Type | OSI |
Driver | OSI Agent Advanced |
Network Port | The port configured in the DH Historian Agent. The default value is 4777. |
Interface | You have the option of selecting the interface for accepting client connections. The default value is 0.0.0.0, which means using all network interfaces for accepting connections from clients. |
User | The username configured in the DH Historian Agent. |
Password | The password configured in the DH Historian Agent. |
V2.3.0
- KeepAlive Feature
- Installed services should be with automatic Start
- Agent Starts even when TagsList is empty and finding tag name in the tags list
- New Feature added to the UI Running on PI Events (Visual Part) Bringing back Events based version Sending of initial values
- Currently it will only send initial values when the agent is manually restarted, not on DH driver restart
- When the Driver restarts, the Agent and Controller notice that the TCP Connection was dropped, and they will re-establish it again.
- All the operations will work as they did before. The only thing that will not happen, is the re-sending of the initial values, and that is simply because if there was no request to do that, the agent can't tell if this disconnection happened due to a slow network or a cable disconnection or any other infrastructural issue.
- Removed _test project from the compilation in release.
- Fixed the issue of timestamp was less than the minimum
- new Icons in UI
- removing Certificate page. and loading the certificate as a file which support .pem, .crt. and .txt format