You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

MQTT Engine automatically creates a known set folders containing tags for Engine Control, Engine Info and Message Diagnostics.

For each connected Edge Node, a Node Control and Node Info folder containing tags is created along with a Device Info folder for each connected device.

The tables below describes these tags.

Node Control

The tags in each Node Control folder are created based on a supplied metric within the NBIRTH message from the Edge Node. These will only appear if the Edge Node implementation supports them. It is up to the Edge Node implementation (MQTT Transmission for example) to support any functionality it supplies via the NBIRTH. If the Edge Node does not support the specific control, it should not include it in the NBIRTH payload.

NameData TypeDescription
Next ServerBooleanWriteable tag to request the Edge Node to walk to the next MQTT server
RebirthBooleanWriteable tag to request the Edge Node to resend its NBIRTH and DBIRTH messages without disconnecting or sending DEATH messages first

Node Info

The tags below are general information tags with respect to Sparkplug Edge Nodes. These are created, managed and updated by MQTT Engine based on messages arriving from each given Edge Node.

NameData TypeDescription
bdSeqLongThe last bdSeq number sent by the Edge Node in an NBIRTH message

Birth Count

Long

The number of NBIRTH messages since the last time the info metrics were reset via the Node Info/Reset Info tag

Current ServerStringThe current MQTT Server the Edge Node is connected to
Data Latency (ms)Long

The time in milliseconds between MQTT Engine receiving of the last message and the payload's reported time. Note: For this to be very accurate the edge node's clock and the system clock running MQTT Engine should be synced

Death CountLongThe number of NDEATH messages since the last time the info metrics were reset via the Node Info/Reset Info tag
Message SchemaStringThe schema associated with the Edge Node (e.g. Sparkplug B)
Offline DateTimeDateTimeThe time at which the last NDEATH message was received by MQTT Engine
OnlineBooleanWhether or not the Edge Node is online. This is determined by whether the last lifecycle message was an NBIRTH or NDEATH
Online DateTimeDateTimeThe time at which the last NBIRTH message was received by MQTT Engine
Reset InfoBooleanWritable tag to 'reset' the Node Info metrics
seqLongThe last Sparkplug seq number received from the Edge Node
Total Bytes RecvdLongThe number of bytes received from the Edge Node since the last time the info metrics were reset via the Node Info/Reset Info tag
Total Bytes XmitLong

The number of bytes sent to the Edge Node since the last time the info metrics were reset via the Node Info/Reset Info tag

Transmission VersionStringThe version of MQTT Transmission installed at the Edge Node

Device Info

The tags below are general information tags with respect to Sparkplug Devices. These are created, managed and updated by MQTT Engine based on messages arriving from each given Device.

NameData TypeDescription
Birth CountLongThe number of DBIRTH messages since the last time the info metrics were reset via the Device Info/Reset Info tag
Data Message CountLongThe number of DDATA messages since the last time the info metrics were reset via the Device Info/Reset Info tag
Death CountLongThe number of DDEATH messages since the last time the info metrics were reset via the Device Info/Reset Info tag
Last Command SizeLongThe size in bytes of the last DCMD that was sent from MQTT Engine
Last Data Message SizeLongThe size in bytes of the last DDATA that was received from the Device
Offline DateTimeDateTimeThe time at which the last DDEATH message was received by MQTT Engine
OnlineBooleanWhether or not the Device is online. This is determined by whether the last lifecycle message was an DBIRTH or NBIRTH
Online DateTimeDateTime

The time at which the last DBIRTH message was received by MQTT Engine

Reset InfoBoolean

Writable tag to 'reset' the Device Info metrics

Engine Control

Primary Host

The tags below give general information with respect to the primary host configuration.

NameData TypeDescription
EnabledBooleanWritable tag to control whether or not the Primary Host is enabled for MQTT Engine
IDStringWriteable tag to set the PrimaryHostID defined for MQTT Engine

Engine Info Tags

The tags below provide information regarding the MQTT Engine Devices, Edge Nodes, Latches, MQTT Client as well as information on MQTT Engine.

NameData TypeDescription
Redundancy RoleStringThe redundancy configuration of the Ignition system that MQTT engine is installed on. Options are Independent, Master and Backup
Redundancy StateStringThe redundancy status of the Ignition system that MQTT engine is installed on. Options are Active or Cold
System-Wide Reset InfoBooleanWriteable tag to 'reset' all Engine metrics
Total Bytes RecvdIntegerThe number of bytes received by Engine since the last time the info metrics were reset via the System-Wide Reset Info tag
Total Bytes XmitIntegerThe number of bytes sent from Engine since the last time the info metrics were reset via the System-Wide Reset Info tag
Total Data Mesg CountIntegerThe number of messages received by Engine since the last time the info metrics were reset via the System-Wide Reset Info tag
VersionStringThe version MQTT Engine currently installed

Devices

The Devices folder tags provide information on the connected devices.

NameData TypeDescription
DeviceCountIntegerThe number of Sparkplug edge devices as determined by the received DBIRTH messages
DevicesOfflineIntegerThe number of Sparkplug edge devices that are offline. This is determined by whether the last lifecycle message was an DBIRTH or DDEATH
DevicesOnlineIntegerThe number of Sparkplug edge devices that are online. This is determined by whether the last lifecycle message was an DBIRTH or DDEATH

Edge Nodes

The Edge Nodes folder tags provide information on the connected Edge Nodes

NameData TypeDescription
Last Node to ConnectStringThe Sparkplug ID of the last node to connect
Last Node To DisconnectStringThe Sparkplug ID of the last node to disconnect
NodesOfflineIntegerThe number of Sparkplug Edge Nodes offline. This is determined by whether the last lifecycle message was an NBIRTH or NDEATH
NodesOnlineIntegerThe number of Sparkplug Edge Nodes online. This is determined by whether the last lifecycle message was an NBIRTH or NDEATH
NodeUnitCountIntegerThe total number of Sparkplug Edge Nodes as determined by the received NBIRTH messages
Offline NodesDatasetA dataset containing the Sparkplug ID and timestamp for all offline Sparkplug edge nodes
Online NodesDatasetA dataset containing the Sparkplug ID and timestamp for all online Sparkplug edge nodes 

Latches

The Latches folder tags provide a tag path to any configured tag latches in the MQTT Engine configuration

NameData TypeDescription
TagName as defined in the MQTT Engine configurationBooleanWriteable tag to 'reset' the tag latch

MQTT Clients

The MQTT Clients folder tags provide information on the connected MQTT Clients.

NameData TypeDescription
Latency Check Period (ms)IntegerFrequency in milliseconds that the message latency for each MQTT Client is checked if the Enable Latency Check is checked

For each identified MQTT Client, the following tags are available:

NameData TypeDescription
Primary Host State > PrimaryHostNameFolderFolder named as the Primary Host Id configured in MQTT Engine
PayloadStringStatus of the Primary Host. Options are OFFLINE or ONLINE
RetainBooleanStatus of Retain status of the LWT message for the Primary Host
Connected NodesIntegerNumber of currently connected Sparkplug Edge Nodes to this MQTT Client 
Enable Latency CheckIntegerWritable tag to enabled message latency checking for each MQTT Client 
Message Processing Latency (ms)IntegerThe amount of time to process the last Sparkplug message
Messages Per SecondIntegerThe number of MQTT messages received by Engine per second 
MQTT Client IDStringThe Client ID for the MQTT Client
Offline DateTimeDateTimeThe last time at which the MQTT Client successfully disconnected from the MQTT Server
OnlineBooleanA read-only tag showing the connection status of the MQTT Client
Online DateTimeDateTimeThe last time at which the MQTT Client successfully connected to the MQTT Server
Server Latency (ms)IntegerThe amount of time that it takes for a test MQTT message to be sent and received back by MQTT Engine
Target Server URLStringThe URL of the target MQTT Server to connect to
  • No labels