Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that SSRC values are unique #929

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

argilo
Copy link
Contributor

@argilo argilo commented Nov 6, 2024

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
Copy link
Contributor Author

argilo commented Nov 6, 2024

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

@darksidelemm darksidelemm merged commit 50524fa into projecthorus:testing Nov 6, 2024
6 checks passed
@argilo argilo deleted the unique-ssrc branch November 7, 2024 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants