Uploaded February 2026 | Updated December 2026, 1 day ago
uses multiple AI gen'D c++ code sets for udp sender & udp receiver over WAN, OS = ubuntu 24.04, using jack audio connection kit,
- here is the code if you would like to view it or download it,
- has both sender & receiver plus compile instructions
- NOTE: this is still working beta code...not all 'bugs' may have been found yet...
https://u.pcloud.link/publink/show?code=XZCJsl5ZBwEfYjfPo2JKGuJoqpabMubrMkuV
UPDATE: 2-17-2026, the udp receiver in the link above has been upgraded with a better working jitter buffer decay code system, after testing various WAN conditions using netem...
***************************************************************************************
UPDATE 2-23-2026, HERE is a new upgraded udp sender/receiver code set using cmake CMakeLists.txt files to compile both and the cmake compile commands
that were used shown at the bottom of the file... uses NINJA :
https://u.pcloud.link/publink/show?code=XZ9q3l5Z7JNVzk3j5QHlCmGu4vLRy5bMl7vV
***************************************************************************************
WAN Handling Features and Functions (UDP Sender and UDP Receiver)
- written by GROK ...
This section summarizes how both the sender and receiver collaboratively handle WAN conditions (e.g., jitter, loss, bursts, reordering) over UDP, except under extreme scenarios like total link failure or sustained high loss (15-20%). The system uses feedback loops, redundancy, and buffering for resilient CW transmission.
**• Adaptive Forward Error Correction (FEC):** Sender encodes groups with dynamic parity (4-10) via Reed-Solomon; receiver decodes/recovers lost packets. Adjusts based on RTCP loss feedback.
**• Adaptive Packet Duplication/Redundancy:** Sender duplicates (1x-3x) based on loss/burst density; receiver discards duplicates using seq checks.
**• Packet Reordering:** Sender uses seq in RTP/CwPacket; receiver slots out-of-order arrivals into buffer, handling up to 256 slots.
**• Adaptive Jitter Buffer:** Receiver dynamically sizes buffer via EMA on jitter/gaps/RTT; sender's pacing minimizes introduced jitter.
**• Loss Detection and Feedback:** Receiver computes fraction_lost, cum_lost, burst_density in RTCP RR and APP ACKs; sender adapts FEC/duplication using EMA-smoothed loss and burst thresholds.
**• Burst Protection:** Sender interleaves FEC banks (4) and watchdog flushes; receiver detects gaps (5000ms default) and expands buffer.
**• RTT Estimation and Pacing:** Receiver sends DLSR/LSR in RR; sender computes RTT, uses PI pacer (timerfd) for smooth spacing. Prevents self-congestion.
**• Rate Limiting:** Sender's token bucket caps bandwidth to avoid flooding unstable links.
**• Integrity and Validation:** Both use CRC32 per packet; discards corrupts. Magic numbers ensure protocol match.
**• Heartbeats and Session Management:** Bidirectional HbPackets maintain liveness, exchange session IDs, and trigger ACKs for rapid loss detection.
**• NTP Sync Support:** Both handle NTP requests for potential clock drift compensation, aiding timing under variable delays.
**• Overall Resilience:** System tolerates moderate loss (up to 15%), jitter (hundreds of ms), and reordering via combined buffering, redundancy, and adaptation. Fails gracefully under "worst" conditions by logging drops and inserting silence, but maintains precise CW timing when packets arrive.
uses multiple AI gen'D c++ code sets for udp sender & udp receiver over WAN, OS = ubuntu 24.04, using jack audio connection kit,
- here is the code if you would like to view it or download it,
- has both sender & receiver plus compile instructions
- NOTE: this is still working beta code...not all 'bugs' may have been found yet...
https://u.pcloud.link/publink/show?code=XZCJsl5ZBwEfYjfPo2JKGuJoqpabMubrMkuV
UPDATE: 2-17-2026, the udp receiver in the link above has been upgraded with a better working jitter buffer decay code system, after testing various WAN conditions using netem...
***************************************************************************************
UPDATE 2-23-2026, HERE is a new upgraded udp sender/receiver code set using cmake CMakeLists.txt files to compile both and the cmake compile commands
that were used shown at the bottom of the file... uses NINJA :
https://u.pcloud.link/publink/show?code=XZ9q3l5Z7JNVzk3j5QHlCmGu4vLRy5bMl7vV
***************************************************************************************
WAN Handling Features and Functions (UDP Sender and UDP Receiver)
- written by GROK ...
This section summarizes how both the sender and receiver collaboratively handle WAN conditions (e.g., jitter, loss, bursts, reordering) over UDP, except under extreme scenarios like total link failure or sustained high loss (15-20%). The system uses feedback loops, redundancy, and buffering for resilient CW transmission.
**• Adaptive Forward Error Correction (FEC):** Sender encodes groups with dynamic parity (4-10) via Reed-Solomon; receiver decodes/recovers lost packets. Adjusts based on RTCP loss feedback.
**• Adaptive Packet Duplication/Redundancy:** Sender duplicates (1x-3x) based on loss/burst density; receiver discards duplicates using seq checks.
**• Packet Reordering:** Sender uses seq in RTP/CwPacket; receiver slots out-of-order arrivals into buffer, handling up to 256 slots.
**• Adaptive Jitter Buffer:** Receiver dynamically sizes buffer via EMA on jitter/gaps/RTT; sender's pacing minimizes introduced jitter.
**• Loss Detection and Feedback:** Receiver computes fraction_lost, cum_lost, burst_density in RTCP RR and APP ACKs; sender adapts FEC/duplication using EMA-smoothed loss and burst thresholds.
**• Burst Protection:** Sender interleaves FEC banks (4) and watchdog flushes; receiver detects gaps (5000ms default) and expands buffer.
**• RTT Estimation and Pacing:** Receiver sends DLSR/LSR in RR; sender computes RTT, uses PI pacer (timerfd) for smooth spacing. Prevents self-congestion.
**• Rate Limiting:** Sender's token bucket caps bandwidth to avoid flooding unstable links.
**• Integrity and Validation:** Both use CRC32 per packet; discards corrupts. Magic numbers ensure protocol match.
**• Heartbeats and Session Management:** Bidirectional HbPackets maintain liveness, exchange session IDs, and trigger ACKs for rapid loss detection.
**• NTP Sync Support:** Both handle NTP requests for potential clock drift compensation, aiding timing under variable delays.
**• Overall Resilience:** System tolerates moderate loss (up to 15%), jitter (hundreds of ms), and reordering via combined buffering, redundancy, and adaptation. Fails gracefully under "worst" conditions by logging drops and inserting silence, but maintains precise CW timing when packets arrive.


![Interrupt Modulated(IM) CW Mode - Live demo on the VLF band
Interrupt Modulated(IM) CW Mode
transmitting and receiving digital information using an analog carrier where the required bandwidth is limited to approximately the frequency of the analog carrier signal. The method is called interrupt modulation and consists of interrupting an un-modulated carrier signal so the interruptions correspond directly to the [CW]digital information to be transmitted. (encode/decode by Reagate sidechain in ducking mode plugin)
BASIC CONCEPT SETUP:
TRANSMITTER
a CW keyer, keys the ducking sidechain port of REAGATE plugin
interrupting the 4Khz VLF CARRIER wave according to each CW elements duration
RECEIVE
the opposite is done, a CW SIDETONE is attached to the upper port of a reagate ducking sidechain plugin, and the incoming vlf IMcw signal is attached to the RX regates ducking sidechain port, and only when the carrier approaches zero signal strength, does it allow the CW SIDETONE to pass through to the headphones
modified from this google patents info: https://patents.google.com/patent/US6194978B1/en
for more info on the setup for this, please see this playllist:
https://www.youtube.com/playlist?list=PLfFan4sDonOeaHZKCaqyaYz62WLLyprrn Interrupt Modulated(IM) CW Mode - Live demo on the VLF band](https://i.ytimg.com/vi/f8r1PWSpqvc/mqdefault.jpg)







