projecthorus / radiosonde_auto_rx

Automatically Track Radiosonde Launches using RTLSDR
GNU General Public License v3.0
499 stars 125 forks source link

Ensure that SSRC values are unique #929

Closed argilo closed 2 weeks ago

argilo commented 2 weeks ago

Spectrum scanning doesn't work properly with ka9q-radio because Auto-RX chooses the same RTP SSRC number (which ka9q-radio uses as a channel identifier) for both SDR tests and spectrum scanning. The SSRC value must be a unique 32-bit integer.

Here I've changed the SSRC generation to use the frequency in kHz (rounded to the nearest integer) followed by two digits to indicate the channel type (01 for sonde reception, 02 for SDR tests, 03 for spectrum scanning). I hope this will ensure the uniqueness of SSRC values.

argilo commented 2 weeks ago

Sonde frequencies should be limited to 7 digits, so SSRC values should be 9 digits at most, keeping them well below 2^32.