Computing Library
Earlier articles
Troubleshooting
Fix a Mosquitto MQTT TLS listener that returns unknown error
Client null sending CONNECT followed by Unknown error is a TLS handshake failure, not an MQTT fault. Prove the transport with openssl s_client, confirm the Mosquitto listener loaded its certificate, then give the client your self-signed CA in PEM and make the certificate SAN match the host you dial. tls_version defaults to both TLS 1.2 and 1.3 and is not the cause.
Explainer
Why a PI value timestamp is not a receipt time
No, an AFDataPipe event carries one timestamp — the value's event time, assigned by whatever wrote it — and the PI Data Archive exposes no per-value server receipt time. A sync over a one-way diode therefore restarts from the earlier of the two readers' last sent timestamps minus an overlap margin, journals every event locally before sending, and reconciles archives on a schedule. Treat 0% data loss as a requirement you validate, not something AFDataPipe guarantees.
Explainer
Why PI SDK needs a real PI Server endpoint for cloud tests
No. No public PI Server accepts direct PI SDK connections on port 5450, so a cloud address alone never yields a read-only test endpoint. Use the managed VLE included with a paid PI Developers Club membership, deploy a licensed PI System on Azure or AWS, or build new code on AF SDK — and put the read-only boundary in the server-side identity, not the client code.
Troubleshooting
Why Ignition rejects a Sparkplug DBIRTH with a Rebirth request
A Rebirth request after a DBIRTH is a state rejection, not a transport failure. Working NBIRTH and NDATA traffic proves the MQTT link is fine; the device birth itself failed on identity, birth order, sequence number or payload field spelling. The confirmed field-level defect is the historical flag emitted as isHistorical instead of the Sparkplug B wire field is_historical.
Troubleshooting
Why an edge OPC UA server accepts local clients but not remote ones
A remote OPC UA client is refused by an edge gateway because the gateway exposes its OPC UA server to external clients only when the IIoT plugin is active on the license; the bind address field is hidden by design, so there is no setting to edit. Confirm the listener, add the plugin, then open the endpoint port through the firewalls.
How-to
Sending Sparkplug B device commands from Node-RED
Build each Sparkplug B DCMD in Node-RED from the alias map in the device's latest DBIRTH, one metrics entry per value, and never hard-code an alias. Keep the sequence counter on its documented progression, zero through 255 with wrap-around, unless a captured command proves the receiver accepts the minus-one convention.
Troubleshooting
Node-RED MQTT stuck on connecting inside a Docker container
A Node-RED MQTT node stuck on connecting means no session was ever established: the transport connection to the server address and port never completed, or the broker declined the client. Test name resolution and routing from inside the container, then set the server to the broker's IP address and the port of its active listener. The controller's own IP works only when a broker actually listens there.
How-to
Configuring UWF write protection on a Windows 10 IPC
Run uwfmgr volume protect c: and uwfmgr filter enable from an elevated command prompt, restart, and confirm with uwfmgr get-config all plus a desktop test file that disappears. On an Open Controller CPU 1515SP PC2, add uwfmgr File Add-Exclusion C:\Boot\BCD first to avoid a blue screen after a power interruption.
Comparison
Historian-like data logging on a restricted edge network
On a restricted plant network the approved destination decides the architecture: write directly from Node-RED to the database when that connection is approved, publish MQTT and land it in InfluxDB with Telegraf when only a broker is approved, and capture to local files when nothing outbound is allowed. Whatever the path, prove store-and-forward with an outage test sized from your tag count and write period.
Troubleshooting
Why WinCC tag data never reaches Process Historian 2014
An empty Outgoing Queues folder under Message Queuing on the WinCC host means the PH-Ready publisher never enqueued a message, so this is not a network or delivery fault. The fix is Process Historian 2014 SP2 Update 2 with Information Server 2014 SP2 Update 2 on both machines at the same level, a manually typed PH server name in the PH-Ready wizard, and the CCCAPHServer service account present with the same password on both machines.
Troubleshooting
Sparkplug node stuck on Connecting while MQTT connects
The node-red-contrib-sparkplug node takes its broker string literally and adds no transport scheme, so a bare IP:port is rejected before any connection attempt and the node sits on Connecting with no error. Write the broker as a full URI — tcp://192.168.1.50:1883 for plaintext or ssl://host:8883 for TLS — deploy, and it connects where the default MQTT node already did.
Explainer
When store-and-forward data counts as stored in the historian
InStoreForward = FALSE only clears the buffering indication. The documented transfer check is an empty Store-and-Forward folder, no .dat files, after the connection returns, with the loss flag never TRUE; durable commit into HistoryBlocks is proven separately by querying a known tag across the outage window.