Turn text or a repeatable test pattern into the information bits the modem will carry.
Payload and frame sizing
“HF”2 characters · 2 bytes01001000 01000110The UTF-8 bytes for H and FText is encoded as UTF-8. PRBS-15 produces a deterministic test pattern instead. With interleaving enabled, the requested duration is quantized to a complete matrix, so the actual frame duration can differ slightly from the request.
How the source becomes an exact bit array
The simulator first chooses the payload length, then produces exactly that many MSB-first bits from text or PRBS-15. Everything after this boundary operates on bits, not characters.
text or PRBS-15Text makes the final decode readable. PRBS-15 creates a deterministic pattern for statistically useful BER measurements.
UTF-8 → uint8Each character becomes one or more bytes. Basic ASCII characters such as H and F each occupy one byte.
byte → b₇ … b₀The most-significant bit is emitted first so both ends agree on byte order.
repeat / truncate to N bitsText repeats if needed to fill the selected duration. PRBS generation continues until the same target length is reached.
Encode the two-character payload “HF”
72₁₀ = 48₁₆01001000₂70₁₀ = 46₁₆01000110₂01001000 0100011016 payload bitsWhat it means: The seed does not alter text bytes. It selects the PRBS sequence and also reproduces the later fading and noise realization.
Readable demo payload or repeatable bit statistics.
Controls the target amount of payload in one run.
Reproduces payload, fading, and noise.
Use PRBS-15 when BER matters; use text when you want the decode result to be immediately understandable.