An ACKC7 of 0 Doesn't Mean the Recipe Landed — a Fake PPID Got the Same Byte
An S7F3 carrying a PPID the tool never had and a zero-length PPBODY came back ACKC7 0. Real capture, and the S7F19 that aborted as S7F0.
Protocols
Protocol notes written for people who need to connect real devices, verify data, and troubleshoot communication paths.
Registers, unit IDs, polling, addressing, and mapping notes for Modbus TCP/RTU.
Typed data, subscriptions, address spaces, security, and interoperability notes.
Pub/sub telemetry patterns for edge gateways, brokers, topics, and payload context.
An S7F3 carrying a PPID the tool never had and a zero-length PPBODY came back ACKC7 0. Real capture, and the S7F19 that aborted as S7F0.
Real captures: data message replies echo any Session ID you invent, and Select.rsp is the one frame that returns the tool's own.
A reconnected host's S2F41 came back as S2F0. Two socket captures: the GEM communication state resets on a drop, the control state does not.
S6F5/GRANT6 solves a SECS-I blocking problem HSMS does not have. A measured 720-byte frame, and the header bytes where block numbers used to live.
A VID from the vendor table polled with S1F3 reads zero forever. Real S1F21, S1F11, S1F3 and S2F13 bytes separating SV, DVVAL and ECV.
One socket, 11 ms: an S2F25 loopback came back as an S2F0 abort while Linktest and S1F1 both answered. Where a host liveness check belongs.
One session, two namelist requests: S1F11 returns the full SVID catalogue, S1F23 comes back as S1F0, and the tool's CEIDs stay hidden.
A capture where S2F45 and S2F47 both drew S2F0 while S1F3 kept answering. GEM limits monitoring is optional, and thresholds belong in the host.
A zero-length CEID list makes S2F37 target every collection event, so one CEED byte decides whether S6F11 floods or stops. Real capture.
S7F5 came back as S7F6 — body 21 01 00, an ack and not a PPBODY. A real capture, and the reply check most host parsers skip.
A capture where Linktest, S1F13 and S1F1 all got answered before Select.req was ever sent, and what SEMI E37 says should have happened.
Real socket capture of all three S2F33 shapes — define, delete-one, delete-all — plus E5's DRACK 0-4 table and two requests that should have been refused but got 0.
How a GEM host turns alarms on with S5F3, byte by byte: a socket capture where disabling an ALID the tool has never heard of still acked 0, and the 10-byte S5F0 you get for sending S5F3 before S1F13.
A SECS-II item header can address 16 MB of PPBODY. The socket died at a 65,537-byte frame. Where the real recipe size ceiling sits, in bytes.
Skip or malform the S6F12 and the equipment drops the event when T3 expires — no retry, no S9F9, nothing back to the host. Four captured rounds.
A host asks for a report on demand with S6F19 and S6F15. Both abort with S6F0 while the communication gate is open. A real socket capture.
Four HSMS requests in one write() came back as three replies. Real captures of the missing W=0 reply, an S7F0 mid-batch, and the T3 that fires.
A socket capture: the listener answers a wrong PType as if nothing happened, and a Linktest.req written one byte left gets no reply at all.
Two captures from one HSMS session show S2F23 aborted twice for different reasons, and the reply bytes differ only in SystemBytes.
Select.rsp and Linktest.rsp carry the Session ID the tool chose, not the one you sent. Data replies echo it. Three real HSMS captures.
Alarm integration passes every test and no alarm ever arrives. A real capture: S5F1 sent by the host draws ACKC5 0, and S10F3 draws an abort.
One socket, five primaries: S1F13 answered, S3F17, S14F1 and S16F11 all came back SxF0. What SECS/GEM support does and does not include.
A swallowed Linktest.req burns T6 while an S1F1 on the same socket answers with a full S1F2 in 0.3 ms, and the host should close the connection anyway.
An S1F4 body carries no SVIDs at all. Real S1F11/S1F12 bytes showing where a host learns SVID numbers and names, and how S2F29 differs.
SELECTED is E37, COMMUNICATING is E30. Real bytes showing an S1F3 sent before S1F13/S1F14 aborted as S1F0, and the same S1F3 answered after.
You asked S2F13 for one ECID and S2F14 came back with two values. Real S2F29 and S2F13 bytes, and the length check host code must run.
Your report is defined but S6F11 never arrives. Real S2F33, S2F35 and S2F37 captures from two equipments, and what a non-zero LRACK tells the host.
Equipment clock drift reorders S6F11 events while HSMS stays green. Reading the clock with S2F17, setting it with S2F31, and why TIACK 0 proves nothing.
S2F41 START gets HCACK 2 while the tool reads ONLINE. SEMI E30 communication state versus control state, and the captured byte that flips HCACK to 0.
Run all ten SEMI E30 startup steps, S1F13 to S2F31, with one npx command against a simulator: the wire capture, what each PASS proves, a refused Select.
Five bad SECS-II messages sent to a live HSMS listener: one drew S9F7, four drew SxF0 aborts. What SEMI E5 stream 9 means and how to read MHEAD.
A real capture where two HSMS requests share one SystemBytes and the replies come back byte-identical, plus the allocation rules that prevent it.
One log line says timeout. A real capture separates T3 from T6, lists the SEMI E37 defaults, and shows the two timers your host must enforce itself.
A 300-byte PPBODY is 330 bytes on the socket. A real S7F1 and S7F3 capture, and what a host loses by skipping the grant step.
Connection refused in 3 ms, or a TCP session where nothing ever arrives. Real captures that tell the two HSMS mode mistakes apart.
A real capture on one socket: SELECTED but NOT COMMUNICATING, every data message before S1F13 aborted with SxF0, and the S1F14 COMMACK that opens the gate.
An S1F3 body byte by byte: the item header packs format code and length-byte count, and one wrong length silences the whole connection.
A capture where Deselect.req, Reject.req and two unassigned STypes all draw silence, while Linktest answers instantly and the session stays SELECTED.
A capture of two host connections into one passive HSMS listener. Both get Select Status 0, and the first is never told the second arrived.
S1F1 sent, no S1F2, T3 expires — and the tool did nothing wrong. Captures of Header Byte 2 showing what packing the W-bit and Stream together costs.
Replies lost only under load? The parser treats one recv() as one message. Four HSMS captures: coalesced, split, short-bodied, and a 1 MiB length.
The host shut down but the tool still shows SELECTED. Four real captures: a clean Separate.req teardown, a bare socket close, and two malformed Separate.reqs the equipment accepted anyway.
Alive is not selected. A real capture of Linktest and S1F13 sent before Select, the SEMI E37 Reject.req reason 4, and why T6 fires first, not T7.
Real Select.rsp captures: accepted, refused with SEMI E37 Select Status 1, 2 or 3, and answered under another SessionID. Where 'select failed' hides it.
Silence, mismatched SystemBytes, or a wrong SessionID: real captures of three Select failures and the SEMI E37 timers T5, T6 and T7 behind each log line.
The host logs no reply, but the equipment answered. A real capture of a Select.rsp with mismatched SystemBytes, decoded byte by byte, and why T6 fires.
Bringing WirelessHART gateway data into SCADA safely: update rate versus polling, stale-value detection, Modbus mapping pitfalls and join troubleshooting.
Sizing polls, timeouts and keepalives for SCADA over LTE: the byte arithmetic, carrier NAT timeouts, report-by-exception, and why nobody dials in.
How IEC 62439-3 PRP and HSR deliver bumpless redundancy for SCADA and IEC 61850, why a failed LAN goes unnoticed, and what to monitor at commissioning.
NTP holds most SCADA clocks within milliseconds, which is plenty — until you need 1 ms sequence-of-events across substations. Where PTP earns its cost.
How a driver discovers BACnet devices, reads present-value and writes commandable objects: object identifiers, the 16-slot priority array, COV and BBMD.
How GOOSE stNum/sqNum counters, allowedToLive and ConfRev decide whether SCADA sees a breaker trip in milliseconds or never — and proving it is alive.
How BRCB and URCB blocks feed substation data to SCADA: datasets, trigger options, buffer time, and the reservation fights that starve a client.
DNP3 double-bit inputs (groups 3 and 4) encode 52a/52b contacts as four states, killing the OPEN/CLOSED flicker single-bit status shows mid-travel.
Commissioning DNP3 Secure Authentication (SAv5, IEEE 1815-2012): which functions to mark critical, aggressive mode on slow links, and key mismatches.
Why OPC Classic (DA/HDA) links fail across DCOM — RPC endpoint mapper on 135, dynamic port ranges, server identity — and the fastest way through it.
A PLC exposes a UDT over OPC UA and your client shows a ByteString. What an ExtensionObject actually holds, and how clients decode structured DataTypes.
Pulling ControlLogix and CompactLogix tags over EtherNet/IP: connected versus unconnected CIP, RPI, connection budgets, and why array reads win.
TCP to port 2404 is up, the RTU is reachable, every point still stale. It is almost always STARTDT and the general interrogation nobody sent.
The two IIN octets in every DNP3 response report restart, lost events, missing time and local control. Reading them, and clearing the ones that stick.
How to pull HART secondary variables and diagnostics into SCADA beyond the 4-20 mA loop, using multiplexers, HART-enabled I/O, and WirelessHART gateways.
A VFD is commanded through a packed control word and reports through a status word. Map either wrong and it won't start, or it clears a latched fault.
The deadband decides whether a change becomes an event; the Group 32 variation decides its size. Set both wrong and you flood the buffer or lose time.
Commissioning a serial-to-Ethernet device server carrying Modbus RTU: operating mode, packing timers, TCP framing, idle timeouts and half-duplex control.
Computing usage across a wrapping counter without inventing phantom flow: the IEC 61131-3 widths, one mod that covers signed and unsigned, IEEE 1815 IIN1.7 and Freeze and Clear, and an OPC UA Part 4 quality gate.
Bridging a Modbus register gap pays below about 10 unused registers on serial RTU and not above it. Where the 125-register ceiling comes from, and why a hole mid-block may return zeros instead of exception 02.
Sequence numbers and the Republish service turn a dropped notification into zero data loss — but only if the client watches them and the queue is sized.
Class 0/1/2/3 assignment, deadbands, unsolicited responses, event buffers, and the IIN bits that decide whether a master survives a comms gap.
A DNP3 link that stalls or logs CRC errors gets fixed one layer down: addressing, confirmed service, retry and timeout tuning on radio and serial.
Select-before-operate versus direct operate, CROB trip/close codes, the select timeout that bites on slow links, and verifying feedback not the response.
Why outstations stamp their own events, how the Need Time (IIN1.4) bit and delay-corrected clock writes work, and how bad sync turns an SOE log to fiction.
Running report-by-exception and change-of-state — DNP3 events, deadbands, heartbeats, integrity polls — without losing short events or stale values.
Intermittent bad quality usually starts at a switch port. Which SNMP objects are worth polling, why counters only mean anything as rates, and trap gaps.
A Modbus TCP-to-RTU gateway can answer ping and still drop requests. Finding the queue saturation behind stale tags, and tuning the driver for it.
Browse succeeds but the tag import is short. OPC UA Part 4 v1.05 continuation point rules, MaxBrowseContinuationPoints, and how to find the cause.
Commissioning OPC UA PubSub (Part 14, UADP over UDP) without shipping stale values as live: dataset contracts, VLAN checks, and reboot-only failures.
How to choose Modbus RTU baud rate, silent interval (t3.5), and turnaround delay so slow serial devices get a fair chance to reply on a SCADA link.
MQTT arrival order is not process order. Why the DUP flag misses the duplicates that hurt, Sparkplug's 8-bit seq wrap, and MQTT 5.0 fixes for stale state.
Shared subscriptions split an MQTT stream across workers — and will quietly halve your historian feed and scramble trend order if you point them wrong.
Estimate the real load behind site/# and contain it with MQTT 5.0: Retain Handling, shared subscriptions, Receive Maximum and SUBACK reason codes.
AccessLevel vs UserAccessLevel vs WriteMask: why a setpoint that browses writable returns BadUserAccessDenied, and testing with the production identity.
NodeIds regenerate, browse paths move, DisplayName is a label. Picking the reference your HMI and historian store so firmware doesn't blank a screen.
Choosing DataChangeFilter settings — absolute versus percent deadband, DataChangeTrigger, queue size — so a filter cuts noise, not real movement.
Repairing a historian gap with OPC UA HistoryRead: scoping the window, letting returnBounds handle edges, keeping Bad quality, and paging safely.
A commissioning sequence for RSTP, MRP and PRP rings that measures what operators see: convergence time, dropped subscriptions, half-open sockets.
No Modbus specification states a connection limit. What the 253-byte PDU, RFC 1122 keepalive defaults, RFC 9293 TIME_WAIT and one RS-485 bus' airtime do tell you about capacity.
How a mishandled transaction ID lets a Modbus TCP gateway hand your SCADA driver the wrong register's value — and how to prove it with a capture.
Duplicate client IDs, wildcard ACL rules nobody owns, retained commands that re-fire, and silent denied publishes. What MQTT guarantees at the SCADA edge.
The secure channel, the session and the subscription each expire on their own clock. Which one fired tells you to blame the firewall, load or keepalive.
Using StatusCode severity bits, SourceTimestamp and ServerTimestamp to catch frozen data, cached gateway values and clock drift a value-only HMI hides.
Why a flat 1-second scan overloads PLCs and gateways, and how scan classes and load shedding keep the data operators act on fast under stress.
Modbus has no standard endianness for 32-bit values, so two registers can decode to garbage. Proving byte and word order on site instead of guessing.
MQTT 5.0 Content Type and User Property, Sparkplug B seq and rebirth, RFC 3339 offsets, and the retained-message trap — versioning edge telemetry payloads so consumers break loudly instead of quietly.
Client won't connect though ping and port 4840 are open? Usually an endpoint URL, hostname SAN or ApplicationUri mismatch. Reading the status codes.
Where to tap, what to filter, and how to read the first thirty seconds of a capture when comms drop and recover before anyone can get to a keyboard.
The host wrote the EC, EAC came back 0, and nine lots ran on the old value. SEMI E5 EAC codes, a real S2F13 readback, S2F29, and the SAT matrix.
A one-scan reject pulse lives for 20 ms. Poll every 250 ms and SCADA never sees it. Matching polling rates to PLC scan time, driver and historian.
SEMI E30 spooling covers only streams the host enabled with S2F43. SPOOL LOAD vs UNLOAD, S2F44 RSPACK and STRACK, S6F24 RSDA, and real S2F43 bytes.
Commissioning a Modbus RTU link the right way: prove polarity, termination, biasing and grounding before you ever open the register map.
Commissioning OPC UA Alarm & Condition subscriptions: event filters, the Retain flag, ConditionRefresh, and the failures that appear on reconnect.
Staged MQTT broker, client and CA certificate rotation: the RFC 5280 SAN and UTCTime rules, the OpenSSL verify codes that name the real fault, MQTT 5.0 session persistence, and Sparkplug 3.0.0 aliases.
How OPC UA separates certificate trust, user identity and Part 18 role mapping — and commissioning writes so the wrong session can't move a setpoint.
The Modbus unit identifier is 'useless' on TCP until a gateway is involved. How routing works behind serial gateways, and finding the slave that answered.
How reverse connect flips the TCP direction through a cell firewall, and the certificate, endpoint and diagnostic traps that still bite afterward.
How monitored item queues, discard policy and the Overflow status bit decide whether your client sees every fast tag change or only the latest one.
Nobody memorizes a service account password, so a 90-day policy buys little. What IEC 62443-3-3 SR 1.2 and NIST 800-63B actually ask for.
Why an MQTT edge gateway loses data during a WAN outage, and how to buffer with source timestamps, sequence numbers and a replay policy that holds.
SEMI E5 HCACK and CPACK codes read against a real S2F41 capture: why HCACK=4 exists, E30 control-state gating, and a retry that won't START twice.
A Modbus TCP write response says the transaction was accepted, not that the motor moved. Command discipline: permissives, readback, and the retry trap.
An OPC UA method call can return Good while the machine never moves. Wiring HMI calls so operators see acceptance, execution and a real failure reason.
Remote access designed against IEC 62443-3-3 SR 5.2 and SR 1.13, denied paths tested at commissioning, and the port and timeout numbers that break it.
Linking SECS/GEM collection events with S2F33/S2F35/S2F37, why report content empties after a tool restart, and proving S6F11 matches the real sequence.
Testing the deny-by-default IEC 62443-3-3 SR 5.2 RE 1 actually asks for: registered port numbers, the 49152-65535 DCOM range, and a measurement where nc says open while Modbus times out after 5 s.
A field-tested procedure for OPC UA redundant failover: ServiceLevel, subscription recovery, certificates, and catching stale data before operators do.
Why a client browses fine with security off but drops the secure channel, and how to fix trust stores, endpoints and certificate names in a project.
How historian timestamps go wrong — clock drift, NTP versus PTP, OPC UA source time, late data, DST — and catching it before a report dispute does.
Setting Modbus TCP poll rates, timeouts, retries and scan groups so one stalled device or saturated gateway can't drag the whole driver down with it.
Clear a stale MQTT retained message with one zero-byte publish, then set QoS, Retain Handling, Session Expiry and Message Expiry on purpose — with MQTT 5.0 clause numbers, property IDs and reason codes.
How sampling interval, publishing interval, queue size, deadband and the KeepAlive/Lifetime pair decide whether your client and historian see the process.
Reading Modbus exception responses on the wire, telling a refused request from a dead link, and chasing illegal-address and gateway causes.
After a PLC download the session opens and every item returns Bad_NodeIdUnknown. How namespace indexes and client caches shift, and what to check first.
Using Last Will, birth messages and retained state so a SCADA screen shows offline, stale and healthy as three things — not one green icon that lies.
Renewing an OPC UA certificate: the UTC trap in notAfter, reading SAN and key length with openssl, UpdateCertificate and ApplyChanges from IEC 62541-12, and ten pass criteria run with forced values.
Modbus connects, unit IDs respond, polls complete — and the operator still reads a swapped float. Proving a register map before the historian trusts it.
A SCADA screen shows a believable number long after the device stopped updating. Heartbeat, watchdog and stale-data tags that make freshness visible.
Laying out Sparkplug B group, edge node and device IDs — plus birth certificates, aliases and STATE — so a rename doesn't break every subscription.
Narrowing a SCADA comms failure: the blind spot in each check, the three answers TCP gives, Modbus exception 0x0B, and the 50 seconds a legacy STP reconvergence costs you.
S5F1 carries ALCD, ALID and ALTX. Bit 8 of ALCD means set or clear; drop it and MES alarms never clear. Plus S5F5/S5F6 recovery after a host restart.
Commissioning an OPC UA client means reading the revised values back: revisedSessionTimeout, revisedPublishingInterval, lifetimeCount, the 8192-byte buffer floor, and the top two bits of StatusCode — per OPC UA Part 4 and Part 6.
A Run bit is a signal; 'running' is a state you decided. Using NAMUR NE 43's 3.6 mA, OPC UA StatusCode severity, SEMI E10's six equipment states and ISA-18.2's alarm states to get the priority right.
Industrial Ethernet switch commissioning by the numbers: the IGMP querier and the 260-second membership interval, auto-negotiation half-duplex traps, RSTP's 20-second max age against IEC 62439-2 ring classes, and the real port numbers to test.
An OPC UA DataValue carries StatusCode, SourceTimestamp and ServerTimestamp with every sample. An MQTT PUBLISH carries a topic and bytes. The comparison that actually holds is OPC UA vs MQTT plus Sparkplug B.
The 253-byte PDU limit that sets every quantity cap, the 7-byte MBAP header whose Length field isn't the frame length, 0-based addressing, and why 32-bit word order is not in the standard at all.