Skip to content
On this page

Framework

Implementations

The AMRC Connectivity Stack, the open-source reference implementation of Factory+, and the component behind each framework function.

4 min read Edit this page

The AMRC Connectivity Stack (ACS) is the open-source reference implementation of Factory+.

A framework is only useful when software implements it, and an organisation adopting Factory+ needs working services before it can connect its first machine. The AMRC publishes ACS so that anyone can deploy a complete Factory+ system and implementers of a single function have working code to compare against.

The AMRC Connectivity Stack

ACS is a collection of open-source services that together implement every function on the Architecture page. It is published on GitHub under the MIT licence.

ACS runs on Kubernetes and is distributed as Helm charts. A central Kubernetes cluster runs the central services. The machines on the shop floor that run Edge Agents form one or more separate edge clusters, and the central cluster manages them.

Keeping the clusters separate lets the central cluster run on a managed or cloud Kubernetes service while the edge clusters use a Kubernetes distribution suited to small edge devices. The separation also limits the damage if someone gains physical access to a machine on the shop floor.

These are ACS choices. The framework does not require Kubernetes, Helm or separate edge clusters, and another implementation can provide the same functions on any platform.

Framework functions in ACS

Every framework function maps to one or more ACS components. Each component is a directory in the ACS monorepo, apart from the schema library in its own repository.

Framework functionACS componentNotes
Identityacs-identity, acs-krb-keys-operator, acs-keycloak, acs-keycloak-spiacs-identity is the Kerberos key distribution centre. The operator creates and manages the Kerberos credentials of services through the Kubernetes API. Keycloak is the OpenID Connect provider for sign-in from browsers and third-party tools, with a plugin that reads users from the Auth service.
Authacs-auth
Directoryacs-directoryService URLs are generated by the Helm chart and loaded into the Directory when ACS is installed or upgraded.
Configuration Storeacs-configdbACS calls this service the ConfigDB.
Command Escalationacs-cmdesc
MQTT brokeracs-mqttHiveMQ with a Factory+ plugin for authentication and topic permissions.
Historianacs-ingestRuns a Sparkplug historian and a UNS historian, both writing to InfluxDB.
UNS ingesteracs-ingestThe UNS ingester runs in the same application as the historians.
ISA-95 placementacs-configdb, acs-placement-watcherThe vocabulary and placements are ConfigDB entries. The placement watcher copies each device’s placement into its Edge Agent configuration.
Engineering unitsacs-service-setupLoads the units vocabulary into the ConfigDB.
Schemasacs-schemasThe schema library is a separate repository, loaded into the ConfigDB when ACS is installed or upgraded.
Edge Agentacs-edge
Driversedge-* directories, lib/js-edge-driver, lib/py-edge-driver, lib/rs-edge-driverEach protocol driver has its own edge-* directory, for example edge-modbus and edge-opcua. The libraries help third parties write drivers in JavaScript, Python and Rust.
Filesacs-files
Data Accessacs-data-access
i3Xacs-i3x
Service specificationlib/js-service-api, lib/js-service-client, lib/py-service-client, lib/java-service-client, lib/ex-service-clientjs-service-api implements the server side of the specification, including authentication, /ping, /token and change notification. The client libraries handle discovery, authentication and calls to each service in JavaScript, Python, Java and Elixir.

Components specific to ACS

ACS also contains components that the framework does not define. Most of them deploy and manage the edge clusters. The framework leaves edge cluster management to each implementation.

  • Admin UI (acs-admin) is the web console for managing devices, Edge Agents, permissions and the rest of ACS.
  • Cluster Manager (acs-cluster-manager) creates edge clusters and passes secrets to them.
  • Git server (acs-git) holds the repositories that edge clusters deploy from.
  • Flux deploys software to each edge cluster from those repositories.
  • Sealed Secrets carries encrypted secrets to the edge clusters.
  • Edge Sync (acs-edge-sync) reports the state of each edge cluster back to the central services.
  • Monitors (acs-monitor) watch Edge Agents at the edge and edge clusters from the centre.
  • Gateway Depot (acs-gateway-depot) prepares a blank computer as a cell gateway.
  • Briefcase (acs-briefcase) packages datasets for sharing outside Factory+.
  • User Admin (acs-user-admin) creates a human user’s Kerberos principal and Factory+ objects in one step.
  • Visualiser (acs-visualiser) displays live MQTT traffic.
  • Service setup (acs-service-setup) loads the well-known objects, permissions and service registrations when ACS is installed or upgraded.
  • Grafana displays historical data, and InfluxDB stores it.

Source code and documentation

The ACS source code, documentation and release notes are on GitHub. Installation, configuration and operation are covered there rather than on this site.

Esc