A transaction whose remaining blocks never arrive (a lost datagram, or a
host that forwards a response header without its announced data block)
otherwise rejects every later PDU from that peer until the peer has been
silent long enough for the stale-call sweep to drop it.
* key up an idle P25 voice channel holding an SNDCP data permit so subscribers waiting for outbound frame sync can transmit their packet;
A subscriber granted an SNDCP data channel listens for outbound frame sync
before it sends its packet. A non-authoritative voice channel that only
holds the data permit stays unkeyed, so some subscribers (EFJ) never
transmit and the grant expires.
While a data permit is held and the channel is otherwise idle (no RF or
network traffic and no frame already queued), the voice channel now fills
the air with TDUs, checked every 15 ms. A TDU carries frame sync and
all-idle status symbols, advertising the inbound channel as free. The
normal control channel unpermit ends it; a 30 second permit hold (twice
the CC grant timer) stops it if that unpermit is lost.
* end the SNDCP data channel keep-alive once the SU transmits on the grant and never fill the native-modem PDU pacing guard;
The keep-alive only checked the frame queue, so while an outbound PDU was
held by the native-modem pacing guard it kept writing TDUs ahead of it, and
it kept the channel keyed after the SU had already started its exchange.
With the keep-alive running this way an 8-block outbound PDU drew repeated
ACK RETRY responses until it was declared undeliverable.
The keep-alive now stops for the rest of the grant as soon as the RF state
leaves listening (the SU no longer needs outbound frame sync), and it skips
any tick while a PDU is held or the pacing guard is still running. A new
data grant starts it again.
* forward the data block of an SU response packet to the network along with its header, so an ACK RETRY (selective retry) reaches the FNE as the complete transaction its blocks-to-follow announces;
The network PDU frame carries the response header's blocks to follow, but
only the header block was written. The FNE then waited for a block that
never arrived and rejected every later PDU from the voice channel as a
conflicting duplicate header, dropping SU uplinks (including KMM Hello)
and SU link ACKs. The block extraction lives in
Data::getResponseDataBlock().
* Renamed functions to not use the term 'clock'
* Removed m_permittedData and restored the original SNDCP permit check, but keep state
* add SNDCP data page TSBKs, correct PDU disassembly with a header offset and clear autonomous access in the SNDCP channel announcement;
- add ISP_SNDCP_DATA_PAGE_RES ($13) and OSP_SNDCP_DATA_PAGE_REQ ($15)
- Assembler::disassemble no longer shifts the coded block stream by the
data header offset; the offset counts octets of reassembled user data
- OSP_SNDCP_CH_ANN no longer sets autonomous access; the announced
channel is the control channel, which receives no SN-Data
* echo data service options in SNDCP grants, handle SNDCP data pages and relay SNDCP grants to the FNE;
- the SNDCP data channel grant echoes the Data Service Options of the
request; an SU ignores a grant whose options differ
- transmit an SNDCP data page request received from the FNE and answer
a "proceed" page response with a data channel grant
- pass the first copy of each SNDCP grant to the network, so the FNE
knows the SU has been directed to a data channel
- read the SNDCP reconnect request as an ISP_SNDCP_REC_REQ, the class
the factory builds for it
* implement trunked SNDCP packet data in the FNE: activation ACK, SN-Data uplink and downlink, data paging and downlink retransmission;
- send the link-layer ACK for the SNDCP context activation request
- strip the SNDCP header from SN-Data received on the user data SAP and
handle the IPv4 datagram as packet data
- frame downlink datagrams as SN-Data for an SU with an SNDCP context
- raise the standby timer in the context accept from 1 minute to 4 hours
- page an SU that has left the data channel through the control channel
that last granted it one, and hold the PDU until the grant is reported
- retransmit a confirmed downlink the SU does not acknowledge, up to
twice, with the same N(S)
---------
Co-authored-by: David Andrzejewski <181952+dandrzejewski@users.noreply.github.com>