Why Your HSMS Host Never Sees an S6F5 Multi-Block Grant Inquire
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 project I worked on ported its host code straight from SECS-I. Before a large report arrives it waits for the equipment's S6F5, answers with GRANT6, then grows the receive buffer. After the move to HSMS that branch never ran once. The report came back as "the equipment throws S6F11 at us with no warning." The equipment is not at fault. On HSMS there is nothing to warn about.
S6F5 solved a problem SECS-I created
S6F5 in E5 is the Multi-block Data Send Inquire. The equipment asks "I am about to send this much, will you take it," and the host answers with GRANT6 in S6F6. GRANT6 0 is granted. Non-zero values are a refusal, and I have not verified the exact code list against a tool.
Why the question had to exist: SECS-I (E4) splits one message into several blocks and pushes them over a serial line. A block carries at most 244 data bytes, the header carries a block number, and only the last block has the End bit set. For a receiver holding a single block buffer, forty blocks arriving back to back is an incident. Hence the handshake that asks first.
On HSMS one message is one frame
I checked this against an E37 listener. Bytes went into the passive equipment EQ1 (/opt/secs-gem-simulator) from an outside socket client. Select first:
00 00 00 0A 00 0B 00 00 00 01 00 00 00 01 H→E Select.req (SType 01)
00 00 00 0A 00 0B 00 00 00 02 00 00 00 01 E→H Select.rsp (SType 02, byte 3 = 00, accepted)
Then a single S7F3 holding a PPID and a 706-byte PPBODY:
00 00 02 CC 00 0B 87 03 00 00 00 00 00 02 H→E S7F3 ... + 706 body bytes
The length field reads 716 — the 10-byte header plus 706 body bytes — and 720 bytes crossed the wire once the 4 length bytes are counted. The equipment packet log holds one RX line. Not two. No block number, no trace of fragmentation, no inquire beforehand.
The answer came back as:
00 00 00 0A 00 0B 07 00 00 00 00 00 00 02 E→H S7F0 (SystemBytes 2)
S7F0 is what this listener answers to a request it does not implement. The function number is not the point here; the point is that the body decoded intact. A broken item header gets S9F7 back from the same listener. 706 bytes went into one transaction and SystemBytes 2 came back unchanged.
The header has no slot for a block number
An E37 header is 10 bytes: SessionID in 2 bytes, byte 2 for Stream plus the W-bit, byte 3 for Function, then PType and SType, then SystemBytes in 4 bytes. In the capture above byte 5 and byte 6 are 00 00 — PType 0 and SType 0. HSMS spends on something else the two bytes SECS-I used for the block number and the End bit. Nothing was split, so there is nothing to number and nothing to ask about in advance.
Answer S6F5 anyway if it shows up
Delete the branch that waits. Keep the branch that replies. If the equipment stack was ported from SECS-I, you cannot be sure it will never send S6F5 over HSMS. Ignore a request with the W-bit set and the equipment waits until T3 expires, then drops the transaction — and the report that was going to follow disappears with it. Answering GRANT6 0 immediately and logging one line is cheaper.
The real ceiling is frame size, not block count. Where that one dies is written up separately — a SECS-II item header can address 16 MB and my socket died at 65,537 bytes.
Every capture above is reproducible on the public SECS/GEM simulator.